
RL78/G1P
CHAPTER 4 PORT FUNCTIONS
R01UH0895EJ0100 Rev.1.00
92
Nov 29, 2019
Table 4-12. Settings of Port Related Register When Using Alternate Function (2/2)
Pin Name
Alternate Function
PM
P
Name I/O
P30 INTP2
Input 1
TxD0 Output
0
1
TOOLTxD Output
0
1
SO00 Output
0
1
P31 INTP1
Input 1
RxD0 Input
1
TOOLRxD Input
1
SI00 Input
1
P32 INTP3
Input 1
SCK00 Input
1
Output 0
1
P33 TI02
Input 1
TO02 Output
0
0
SSI00 Input
1
P40 TOOL0
I/O
P60 SCLA0
I/O
0
1
SCLA1 I/O
0
1
P61 SDAA0
I/O
0
1
SDAA1 I/O
0
1
P137 INTP0
Input
Remarks 1.
: don’t
care
PM
: Port mode register
P
:
Port output latch
2.
The relationship between pins and their alternate functions shown in this table indicates the relationship
when a 32-pin product is used. In other products, alternate functions might be assigned to different pins,
but even in this case, the PMxx and Pxx set in the same way.
Note
The functions of the ANI0/P20 to ANI7/P27 pins can be selected by using the A/D port configuration register
(ADPC), analog input channel specification register (ADS), and port mode register 2 (PM2).
Table 4-13. Setting Functions of ANI0/P20, ANI1/P21, and ANI4/P24 to ANI7/P27 Pins
ADPC Register
PM2 Register
ADS Register
ANI0/P20, ANI1/P21,
ANI4/P24 to ANI7/P27 Pins
Digital I/O selection
Input mode
Digital input
Output mode
Digital output
Analog input selection
Input mode
Selects ANI.
Analog input (to be converted)
Does not select ANI.
Analog input (not to be converted)
Output mode
Selects ANI.
Setting prohibited
Does not select ANI.
Remark
: don’t care