RL78/G15 CHAPTER 4 PORT FUNCTIONS
R01UH0959EJ0110 Rev.1.10 Page 126 of 765
Mar 7, 2023
Table 4-7. Setting Examples of Registers and Output Latches When Using Pin Function (9/10)
Pin
Name
Used Function PIORr POMp PMCq PMn
Pm CMC
(EXCLK,OSCSEL)
Alternate
Function Output
20-
pin
16-
pin
10-
pin
8-
pin
Function
Name
I/O
P121 P121 Input — — — 1 × 00/10/11 × — —
Output — — — 0 0/1 00/10/11 TO07 = 0
X1 Input — — — × × 01 × — —
(INTP3) Input PIOR22 = 1 — — 1 × 00/10/11 × — —
TI07 Input — — — 1 × 00/10/11 × — —
TO07 Output — — — 0 0 00/10/11 × — —
P122 P122 Input — — — 1 × 00/10 × — —
Output — — — 0 0/1 00/10 TO05 = 0
X2 Input — — — × × 01 × — —
EXCLK Input — — — × × 11 × — —
(INTP2) Input PIOR21 = 1 — — 1 × 00/10 × — —
TI05 Input — — — 1 × 00/10 × — —
TO05 Output — — — 0 0 00/10 × — —
Table 4-7. Setting Examples of Registers and Output Latches When Using Pin Function (10/10)
Pin
Name
Used Function PIORr POMp PMCq PMn
Pm Notes Alternate
Function Output
20-
pin
16-
pin
10-
pin
8-
pin
Function
Name
I/O
P125 P125 Input — — — 1 × Optional bytes 000C1H
PORTSELB = 0
×
Output — — — 0 0/1 (VCOUT0) = 0
Note 1
INTP1 Input PIOR20 = 0
Note 1
— — 1 × ×
(VCOUT0) Output PIOR32 = 1 — — 0 0
Note 1
(VCOUT1) Output PIOR33 = 1 — — 0 0 (VCOUT0) = 0 — — —
(SI01) Input PIOR13 = 1
PIOR12 = 0
— — 1 × × — — —
RESET
¯¯¯¯¯¯
Input — — — × × Optional bytes 000C1H
PORTSELB = 1
×
P137 P137 Input — — — — × — —
TI00 Input PIOR01 = 0
Note 1
PIOR00 = 0
— — — × — —
INTP0 Input — — — — × — —
Note 1. 20-pin products only