120
Table 8.1
Port Functions
Port
Description
Pins
Other Functions
Function
Switching
Register
Port 1
•
8-bit I/O port
•
Input pull-up MOS
option
P1
7
to P1
5
/
IRQ
3
to
IRQ
1
/
TMIF, TMCIY
External interrupts 3 to 1
Timer event input TMIF, TMCIY
PMR1
TCRF, TMY
P1
4
/PWM
14-bit PWM output
PMR1
P1
3
/TMIG
Timer G input capture
PMR1
P1
2
, P1
1
/TMOFH,
TMOFL
Timer F output compare
PMR1
P1
0
/TMOW
Timer A clock output
PMR1
Port 2
•
1-bit input-only port P2
7
/
IRQ
0
External interrupt 0
PMR2
•
7-bit I/O port
•
Input pull-up MOS
option
P2
6
/TXD
P2
5
/RXD
P2
4
/SCK
3
SCI3 data output (TXD), data input
(RXD), clock input/output (SCK
3
)
SCR3
SMR3
PMR6
P2
3
/SO
1
P2
2
/SI
1
P2
1
/SCK
1
SCI1 data output (SO
1
), data input
(SI
1
), clock input/output (SCK
1
)
PMR2
P2
0
/
IRQ
4
/
ADTRG
External interrupt 4 and A/D
converter external trigger
PMR2
Port 5
•
8-bit I/O port
•
Input pull-up MOS
option
P5
7
to P5
0
/
WKP
7
to
WKP
0
Wakeup input (
WKP
7
to
WKP
0
)
PMR5
Port 6
•
8-bit I/O port
•
Input pull-up MOS
option
P6
7
to P6
0
None
Port 7
•
8-bit I/O port
P7
7
to P7
0
None
Port 8
•
8-bit I/O port
P8
7
to P8
0
None
Port 9
•
8-bit I/O port
P9
7
to P9
0
None
Port A
•
4-bit I/O port
PA
3
to PA
0
None
Port B
•
4-bit input port
PB
7
to PB
4
/
AN
7
to AN
4
A/D converter analog input
AMR
Port E
•
2-bit I/O port
PE
3
to PE
2
None