Hardware manual

Rev. 3.0, 09/98, page 82 of 361
Table 6.1 Port Functions
Expanded Modes
Single-Chip
Mode
Port Description Pins Mode 1 Mode 2 Mode 3
Port 1
8-bit input-output port
Can drive LEDs
Input pull-ups
P1
7
to P1
0
/
A
7
to A
0
Address output
(low)
General input
when DDR = “0”
(initial state)
Address output
(low) when
DDR = “1”
General input/
output
Port 2
8-bit input-output port
Can drive LEDs
Input pull-ups
P2
7
to P2
0
/
A
15
to A
8
Address output
(high)
General input
when DDR = “0”
(initial state)
Address output
(high) when
DDR = “1”
General input/
output
Port 3
8-bit input-output port
Input pull-ups
P3
7
to P3
0
/
D
7
to D
0
Data bus Data bus General input/
output
Port 4
8-bit input-output port
P4
7
to P4
0
General input/output, 8-bit timer 0/1 input/output
(TMCI
0
, TMO
0
, TMRI
0
, TMCI
1
, TMO
1
, TMRI
1
), or
PWM timer 0/1 output (PW
0
, PW
1
)
Port 5
3-bit input-output port
P5
2
to P5
0
General input/output or serial communication
interface 0 input/output (TxD
0
, RxD
0
, SCK
0
)
Port 6
8-bit input-output port
P6
7
to P6
0
General input/output, 16-bit free-running timer
input/output (FTCI, FTOA, FTOB, FTIA, FTIB,
FTIC, FTID), or external interrupt input (IRQ
6
,
IRQ
7
)