
CHAPTER 4 PORT FUNCTIONS
User’s Manual U19780EJ2V0UD
123
Table 4-13. Settings of Port Mode Register and Output Latch When Using Alternate Function
(78K0/KC2-A) (1/3)
Alternate Function
Pin Name
Function Name
I/O
PM
××
P
××
P00 TI000
Input
1
×
TI010 Input
1
×
P01
TO00 Output
0
0
P02 INTP8
Input
1
×
P10 TxD6
Output
0
1
P11 RxD6
Input
1
×
TOH0 Output
0
0
P12
INTP7 Input
1
×
TOH1 Output
0
0
P13
INTP6 Input
1
×
ANI0
Note 1
Input
1
×
P20
AMP0
−
Note 1
Input
1
×
ANI1
Note 1
Input
1
×
P21
AMP0OUT
Note 1
Output
1
×
ANI2
Note 1
Input
1
×
P22
AMP0+
Note 1
Input
1
×
ANI3
Note 1
Input
1
×
P23
AMP1
−
Note 1
Input
1
×
ANI4
Note 1
Input
1
×
P24
AMP1OUT
Note 1
Output
1
×
ANI5
Note 1
Input
1
×
P25
AMP1+
Note 1
Input
1
×
P26 ANI6
Note 1
Input
1
×
ANI15
Note 1
Input
1
×
P27
AV
REFM
Note 1
Input
1
×
INTP5 Input
1
×
Input 1
×
P31
(SCK10)
Note 2
Output 0
1
INTP4 Input
1
×
P32
(SI10)
Note 2
Input
1
×
TI51 Input
1
×
TO51 Output
0
0
P33
INTP3 Input
1
×
Notes 1.
The function can be selected by using the ADPC, ADS, PM2, OAENn (n = 0, 1). Refer to Tables 4-5 to 4-8.
2.
The functions of pins whose names are in parentheses can be used by setting bit 2 (ISC2) of the input
switch control register (ISC) to 1.
Remarks 1.
×
: Don’t
care
PM
××
: Port mode register
P
××
:
Port output latch
2.
P31 and P32 can be used as on-chip debug mode setting pins (OCD0A, OCD0B, OCD1A, and OCD1B)
when the on-chip debug function is used. For how to connect an on-chip debug emulator (QB-MINI2),
see
CHAPTER 26 ON-CHIP DEBUG FUNCTION
.