RL78/G15 CHAPTER 4 PORT FUNCTIONS
R01UH0959EJ0110 Rev.1.10 Page 97 of 765
Mar 7, 2023
CHAPTER 4 PORT FUNCTIONS
4.1 Port Functions
The RL78 microcontrollers are provided with digital I/O ports, which enable variety of control operations.
In addition to the function as digital I/O ports, these ports have several alternate functions. For details of the alternate
functions, see CHAPTER 2 PIN FUNCTIONS.
4.2 Port Configuration
Ports include the following hardware.
Table 4-1. Port Configuration
Item Configuration
Control registers Port mode registers 0, 2, 4, 12 (PM0, PM2, PM4, PM12)
Port registers 0, 2, 4, 12, 13 (P0, P2, P4, P12, P13)
Pull-up resistor option registers 0, 2, 4, 12 (PU0, PU2, PU4, PU12)
Port output mode registers 0, 2, 4 (POM0, POM2, POM4)
Port mode control registers 0, 2 (PMC0 ,PMC2)
Peripheral I/O redirection registers 0 to 3 (PIOR0 to PIOR3)
Port
●
8-pin products
Total: 6 (CMOS I/O: 5 (N-ch open drain output (V
DD
tolerance): 2), CMOS input: 1)
●
10-pin products
Total: 8 (CMOS I/O: 7 (N-ch open drain output (V
DD
tolerance): 3), CMOS input: 1)
●
16-pin products
Total: 14 (CMOS I/O: 13 (N-ch open drain output (V
DD
tolerance): 7), CMOS input: 1)
●
20-pin products
Total: 18 (CMOS I/O: 17 (N-ch open drain output (V
DD
tolerance): 9), CMOS input: 1)
On-chip pull-up resistor
●
8-pin products Total: 5
●
10-pin products Total: 7
●
16-pin products Total: 13
●
20-pin products Total: 17