RL78/G10 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 302
Dec 22, 2016
12.3.17 Registers controlling port functions of serial input/output pins
Using the serial array unit requires setting of the registers that control the port functions multiplexed on the target
channel (port mode register (PM0), port register (P0), port output mode register (POM0), port mode control register
(PMC0)).
For details, see 4.3.1 Port mode registers 0, 4 (PM0, PM4), 4.3.2 Port registers 0, 4, 12, 13 (P0, P4, P12, P13), 4.3.4
Port output mode register 0 (POM0), and 4.3.5 Port mode control register 0 (PMC0).
For an example of settings when using a port pin for serial input and output, see 4.5.3 Example of register settings for
port and alternate functions used.
Specifically, using a port pin with a multiplexed serial data or serial clock output function (e.g. P00/SO00/TXD0/INTP1)
for serial data or serial clock output, requires setting the corresponding bits in the port mode control register (PMC0) and
port mode register (PM0) to 0, and the corresponding bit in the port register (P0) to 1.
When using the port pin in N-ch open-drain output (V
DD tolerance) mode, set the corresponding bit in the port output
mode register (POM0) to 1.
Example: When P00/SO00/TXD0/INTP1 is to be used for serial data output
Set the PMC00 bit of port mode control register 0 to 0.
Set the PM00 bit of port mode register 0 to 0.
Set the P00 bit of port register 0 to 1.
Specifically, using a port pin with a multiplexed serial data or serial clock input function (e.g.
P01/ANI0/SI00/RXD0/SDA00/KR2) for serial data or serial clock input, requires setting the corresponding bit in the port
mode register (PM0) to 1, and the corresponding bit in the port mode control register (PMC0) to 0. In this case, the
corresponding bit in the port register (P0) can be set to 0 or 1.
Example: When P01/ANI0/SI00/RXD0/SDA00/KR2 is to be used for serial data input
Set the PMC01 bit of port mode control register 0 to 0.
Set the PM01 bit of port mode register 0 to 1.