RL78/G13 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0146EJ0100 Rev.1.00 569
Sep 22, 2011
(19) Port mode registers 0, 1, 3 to 5, 7 to 9, and 14 (PM0, PM1, PM3 to PM5, PM7 to PM9, and PM14)
These registers set input/output of ports 0, 1, 3 to 5, 7 to 9, and 14 in 1-bit units.
When using the ports (such as P02/ANI17/SO10/TXD1, P04/SCK10/SCL10) to be shared with the serial data
output pin or serial clock output pin for serial data output or serial clock output, set the port mode register (PMxx)
bit corresponding to each port to 0. And set the port register (Pxx) bit corresponding to each port to 1
Example: When using P02/ANI17/SO10/TXD1 for serial data output
Set the PM02 bit of the port mode register 0 to 0.
Set the P02 bit of the port register 0 to 1.
When using the ports (such as P04/SCK10/SCL10, P50/INTP1/SI11/SDA11) to be shared with the serial data
input pin or serial clock input pin for serial data input or serial clock input, set the port mode register (PMxx) bit
corresponding to each port to 1. At this time, the port register (Pxx) bit may be 0 or 1.
Example: When using P50/INTP1/SI11/SDA11 for serial data input
Set the PM50 bit of port mode register 5 to 1.
Set the P50 bit of port register 5 to 0 or 1.
The PM0, PM1, PM3 to PM5, PM7 to PM9, and PM14 registers can be set by a 1-bit or 8-bit memory manipulation
instruction.
Reset signal generation sets the PM0, PM1, PM3 to PM5, PM7 to PM9, and PM14 registers to FFH.