CHAPTER 4 PORT FUNCTIONS
User’s Manual U16898EJ3V0UD
63
Figure 4-15. Format of Port Mode Control Register 2
Address: FF84H After reset: 00H R/W
Symbol
7 6 5 4 3 2 1 0
PMC2
0 0 0 0
PMC23
PMC22
PMC21
PMC20
PMC2n
Specification of operation mode (n = 0 to 3)
0 Port
mode
1
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)
P20 to P23
ANI0 to ANI3
Input
1
×
1
TI000 Input
1
×
−
P30
INTP0 Input
1
×
−
TO00 Output
0
0
−
TI010 Input
1
×
−
P31
INTP2 Input
1
×
−
P41 INTP3
Input
1
×
−
P42 TOH1
Output 0 0
−
TxD6 Output
0
1
−
P43
INTP1 Input
1
×
−
P44 RxD6
Input
1
×
−
Remark
×
:
don’t care
PM
××
: Port mode register, P
××
: Port register (output latch of port)
PMC2
×
: Port mode control register