![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F9212CS-CAB-A_datasheet_99863/UPD78F9212CS-CAB-A_72.png)
CHAPTER 4 PORT FUNCTIONS
User’s Manual U16994EJ6V0UD
70
Figure 4-10. Format of Port Mode Control Register 2 (
μPD78F921x only)
Address: FF84H, After reset: R/W
Symbol
7
6
5
4
3
2
1
0
PMC2
0
PMC23
PMC22
PMC21
PMC20
PMC2n
Specification of operation mode (n = 0 to 3)
0
Port/alternate-function (except the A/D converter function) mode
1
A/D converter mode
Caution
When PMC20 to PMC23 are set to 1, the port function on the P20/ANI0 to P23/ANI3 pins cannot
be used. Moreover, be sure to set the pull-up resistor option registers (PU20 to PU23) to 0 for the
pins set to A/D converter mode.
Table 4-3. Setting of Port Mode Register, Port Register (Output Latch), and Port Mode Control Register
When Alternate Function Is Used
Alternate-Function Pin
Port Name
Name
I/O
PM
××
P
××
PMC2n
(n = 0 to 3)
Note
ANI0
Note
Input
1
×
1
TI000
Input
1
×
0
P20
TOH1
Output
0
ANI1
Note
Input
1
×
1
TI010
Input
1
×
0
TO00
Output
0
P21
INTP0
Input
1
×
0
P22
ANI2
Note
Input
1
×
1
P23
ANI3
Note
Input
1
×
1
P32
INTP1
Input
1
×
Note
μPD78F921x only
Remark
×:
don’t care
PM
××:
Port mode register, P
××: Port register (output latch of port)
PMC2
×: Port mode control register
<R>