RL78/G1P
CHAPTER 4 PORT FUNCTIONS
R01UH0895EJ0100 Rev.1.00
91
Nov 29, 2019
4.5 Settings of Port Related Register When Using Alternate Function
To use the alternate function of a port pin, set the port mode register, and output latch as shown in
Table 4-12
.
Caution If the output function of an alternate function is assigned to a pin that is also used as an output pin,
the output of the unused alternate function must be set to its initial state. See 4.6.2 for details about
the applicable units and how to handle such pins.
Table 4-12. Settings of Port Related Register When Using Alternate Function (1/2)
Pin Name
Alternate Function
PM
P
Name I/O
P12 TI03
Input 1
TO03 Output
0
0
INTP4 Input
1
PCLBUZ0 Output
0
0
P13 TI00
Input 1
TO00 Output
0
0
P15 PCLBUZ1
Output 0
0
P16 TI01
Input 1
TO01 Output
0
0
INTP5 Input
1
P20
Note
ANI0
Note
Input
1
AV
REFP
Note
Input
1
P21
Note
ANI1
Note
Input
1
AV
REFM
Note
Input
1
P22
Note
ANI2
Note
Input
1
ANO0 Output
1
P23
Note
ANI3
Note
Input
1
ANO1 Output
1
P24 to P27
Note
ANI4 to ANI7
Note
Input
1
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
is described on next page.)