RL78/G1P
CHAPTER 4 PORT FUNCTIONS
R01UH0895EJ0100 Rev.1.00
64
Nov 29, 2019
CHAPTER 4 PORT FUNCTIONS
4.1 Port Functions
The RL78/G1P 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 (PM1 to PM4, PM6)
Port registers (P1 to P4, P6, P12, P13)
Pull-up resistor option registers ( PU1, PU3, PU4)
Port mode control register 1 (PMC1)
A/D port configuration register (ADPC)
Port
24-pin products:
Total: 20 (CMOS I/O: 15, CMOS input: 3, N-ch open drain I/O: 2)
32-pin products:
Total: 28 (CMOS I/O: 23, CMOS input: 3, N-ch open drain I/O: 2)
Pull-up resistor
24-pin products: Total:10
32-pin products: Total:15
Caution Most of the following descriptions in this chapter use the 32-pin products as an example.