134
Table 8.1
Port Functions (cont)
Port
Description
Pins
Other Functions
Function
Switching
Registers
Port 4
•
1-bit input port
P4
3
/
IRQ
0
External interrupt 0
PMR3
•
3-bit I/O port
P4
2
/TXD
32
P4
1
/RXD
32
P4
0
/SCK
32
SCI3-2 data output (TXD
32
),
data input (RXD
32
), clock
input/output (SCK
32
)
SCR32
SMR32
Port 5
•
8-bit I/O port
•
MOS input pull-up
option
P5
7
to P5
0
/
WKP
7
to
WKP
0
/
SEG
8
to SEG
1
Wakeup input (
WKP
7
to
WKP
0
), segment output
(SEG
8
to SEG
1
)
PMR5
LPCR
Port 6
•
8-bit I/O port
•
MOS input pull-up
option
P6
7
to P6
0
/
SEG
16
to SEG
9
Segment output (SEG
16
to
SEG
9
)
LPCR
Port 7
•
8-bit I/O port
P7
7
to P7
0
/
SEG
24
to SEG
17
Segment output (SEG
24
to
SEG
17
)
LPCR
Port 8
•
8-bit I/O port
P8
7
/SEG
32
/CL
1
P8
6
/SEG
31
/CL
2
P8
5
/SEG
30
/DO
P8
4
/SEG
29
/M
P8
3
to P8
0
/
SEG
28
to SEG
25
Segment output
(SEG
32
to SEG
25
)
Segment external expansion
latch clock (CL
1
),
shift clock (CL
2
),
display data (DO),
alternation signal (M)
LPCR
Port A
4-bit I/O port
PA
3
to PA
0
/
COM
4
to COM
1
Common output (COM
4
to
COM
1
)
LPCR
Port B
8-bit input port
PB
7
to PB
0
/
AN
7
to AN
0
A/D converter analog input
AMR