RL78/G13 CHAPTER 2 PIN FUNCTIONS
R01UH0146EJ0100 Rev.1.00 73
Sep 22, 2011
(4/4)
Function Name I/O Function After Reset Alternate Function
P120 I/O
Analog input
port
ANI19
P121 X1
P122 X2/EXCLK
P123 XT1
P124
Input
XT2/EXCLKS
P125
−
P126
−
P127
I/O
Port 12.
4-bit I/O port and 4-bit input port.
P120 can be set to analog input.
For only P120, P125 to P127, input/output can be specified in
1-bit units.
For only P120, P125 to P127, use of an on-chip pull-up
resistor can be specified by a software setting.
Input port
−
P130 Output Output port
−
P137 Input
Port 13.
1-bit output port and 1-bit input port.
Input port INTP0
P140 PCLBUZ0/INTP6
P141 PCLBUZ1/INTP7
P142 SCK30/SCL30
P143 SI30/RxD3/SDA30
P144 SO30/TxD3
P145 TI07/TO07
P146
Input port
(INTP4)
P147
I/O
Port 14.
8-bit I/O port.
Input of P142 and P143 can be set to TTL input buffer.
Output of P142 to P144 can be set to N-ch open-drain output
(V
DD tolerance).
P147 can be set to analog input.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Analog input
port
ANI18
P150 ANI8
P151 ANI9
P152 ANI10
P153 ANI11
P154 ANI12
P155 ANI13
P156
I/O
Port 15.
7-bit I/O port.
Input/output can be specified in 1-bit units.
Analog input
port
ANI14
Remark Functions in parentheses in the above figure can be assigned via settings in the peripheral I/O redirection
register (PIOR).