RL78/F13, F14 CHAPTER 15 SERIAL ARRAY UNIT
R01UH0368EJ0210 Rev.2.10 826
Dec 10, 2015
15.3.19 Port mode registers 1, 3 to 7, 12 (PM1, PM3 to PM7, PM12)
These registers set input/output of ports1, 3 to 7, and 12 in 1-bit units.
When using the port (P12) to be shared with the serial data output pin or serial clock output pin for serial data output
or serial clock output, set the bit in the port mode register (PMxx) corresponding to each port to 0. And set the bit in
the port register (Pxx) corresponding to each port to 1
Example: When using P12/TI11/TO11/(TRDI0D0)/INTP5/SO10/TXD1/SNZOUT3 for serial data output or serial clock
output
Set the PM12 bit of the port mode register 1 to 0.
Set the P12 bit of the port register 1 to 1.
When using the ports to be shared with the serial data input pin or serial clock input pin for serial data input or
serial clock input, set the bit in the port mode register (PMxx) corresponding to each port to 1. At this time, the bit
in the port register (Pxx) may be 0 or 1.
Example: When using P16/TI02/TO02/TRDI0C1/SI00/SDA00/RXD0/TOOLRXD for serial data input or serial clock
input
Set the PM16 bit of port mode register 1 to 1.
Set the P16 bit of port register 1 to 0 or 1.
Set the PM1, PM3 to PM7, and PM12 registers by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets the PM1, PM3 to PM7, and PM12 registers to FFH.