245
Table 9-1 Port Functions (cont)
Port
Description
Pins
Mode 1 Mode 2 Mode 3 Mode 4 Mode 5
Mode 6
Mode 7
Port 9
• 6-bit I/O port
P9
5
/SCK
1
/IRQ
5
, Input and output (SCK
1
, SCK
0
, RxD
1
, RxD
0
, TxD
1
, TxD
0
) for serial
P9
4
/SCK
0
/IRQ
4
, communication interfaces 1 and 0 (SCI1/0), IRQ
5
and IRQ
4
input, and
P9
3
/RxD
1
,
6-bit generic input/output
P9
2
/RxD
0
,
P9
1
/TxD
1
,
P9
0
/TxD
0
Port A • 8-bit I/O port
PA
7
/TP
7
/
Output (TP
7
) Address
output
TPC output Address
TPC
• Schmitt inputs
TIOCB
2
/A
20
from pro-
(A
20
)
(TP
7
), ITU
output output
grammable input
or
(A
20
)
(TP
7
),
timing pattern
output
ITU input
controller (TPC),
(TIOCB
2
), or
output
input or output
and generic
(TIOCB
2
),
(TIOCB
2
) for
input/output
and
16-bit integrated
generic
timer unit
input/
(ITU), and
output
generic input/
output
PA
6
/TP
6
/
TPC output
TPC output
TPC output TPC output TPC
TIOCA
2
/A
21
/CS
4
(TP
6
to TP
4
), (TP
6
to TP
4
), (TP
6
to TP
4
), (TP
6
to TP
4
), output
PA
5
/TP
5
/
ITU input and
ITU input and
ITU input
ITU input
(TP
6
to
TIOCB
1
/A
22
/CS
5
output (TIOCA
2
, output
(TIOCA
2
,
and output and output TP
4
), ITU
PA
4
/TP
4
/
TIOCB
1
, TIOCB
1
, (TIOCA
2
, (TIOCA
2
, input
and
TIOCA
1
/A
23
/CS
6
TIOCA
1
),
CS
4
to TIOCA
1
), TIOCB
1
, TIOCB
1
, output
CS
6
output, and
address output
TIOCA
1
), TIOCA
1
), (TIOCA
2
,
generic input/
(A
23
to A
21
), CS
4
to CS
6
address TIOCB
1
,
output
CS
4
to
CS
6
output, and output
TIOCA
1
),
output,
generic (A
23
to A
21
), and
and generic
input/output
CS
4
to
CS
6
generic
input/output
output, and input/
generic output
input/output
PA
3
/TP
3
/
TPC output (TP
3
to TP
0
), output (TEND
1
, TEND
0
) from DMA controller
TIOCB
0
/TCLKD, (DMAC), ITU input and output (TCLKD, TCLKC, TCLKB, TCLKA,
PA
2
/TP
2
/
TIOCB
0
, TIOCA
0
), and generic input/output
TIOCA
0
/TCLKC,
PA
1
/TP
1
/
TEND
1
/TCLKB,
PA
0
/TP
0
/
TEND
0
/TCLKA
Port B
PB
7
/TP
15
/
TPC output (TP
15
), DMAC input (DREQ
1
), trigger input (ADTRG) to A/D
DREQ
1
/ADTRG, converter, and generic input/output
PB
6
/TP
14
/
TPC output (TP
14
), DMAC input (DREQ
0
), CS
7
output,
TPC output
DREQ
0
,/CS
7
and generic input/output
(TP
14
),
DMAC
input
(DREQ
0
),
and generic
input/
output
• 8-bit I/O port
• Can drive LEDs
• PB
3
to PB
0
have Schmitt
inputs
www.DataSheet4U.com