RL78/G15 CHAPTER 4 PORT FUNCTIONS
R01UH0959EJ0110 Rev.1.10 Page 100 of 765
Mar 7, 2023
4.3 Registers Controlling Port Function
Port functions are controlled by the following 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)
Caution Which registers and bits are included depends on the product. For registers and bits mounted on
each product, see Table 4-2 to Table 4-5. Be sure to set bits that are not mounted to their initial
values.
Table 4-2. Pm, PMn, PUp, POMq, PMCr Registers and the Bits (8-pin Products)
Port Bit name
Pm register PMn register PUp register POMq register PMCr register
PORT0 1 P01 PM01 PU01 POM01 PMC01
3 P03 PM03 PU03 POM03 PMC03
4 P04 PM04 PU04 — PMC04
PORT4 0 P40 PM40 PU40 — —
PORT12 5 P125 PM125 PU125 — —
PORT13 7 P137 — — — —
Table 4-3. Pm, PMn, PUp, POMq, PMCr Registers and the Bits (10-pin Products)
Port Bit name
Pm register PMn register PUp register POMq register PMCr register
PORT0 0 P00 PM00 PU00 POM00 —
1 P01 PM01 PU01 POM01 PMC01
2 P02 PM02 PU02 — PMC02
3 P03 PM03 PU03 POM03 PMC03
4 P04 PM04 PU04 — PMC04
PORT4 0 P40 PM40 PU40 — —
PORT12 5 P125 PM125 PU125 — —
PORT13 7 P137 — — — —