108
Table 7.1 (a) Port Functions for H8/3337 Series
Expanded
Modes
Single-Chip
Mode
Port
Description
Pins
Mode 1
Mode 2
Mode 3
Port 1
8-bit I/O port
Can drive LEDs
Built-in input
pull-ups
P1
7
to P1
0
/A
7
to A
0
Lower address
output (A
7
to A
0
)
Lower address
output (A
to A
0
)
or general input
General
input/output
(Can also be
used as Key-
scan output
port)
Port 2
8-bit I/O port
Can drive LEDs
Built-in input
pull-ups
P2
7
to P2
0
/A
15
to A
8
Upper address
output (A
15
to A
8
)
Upper address
output (A
to A
8
)
or general input
General
input/output
(Can also be
used as Key-
scan output
port)
Port 3
8-bit I/O port
Built-in input
pull-ups
HIF data bus
P3
7
to P3
/
HDB
to HDB
0
/
D
7
to D
0
Data bus
(D
7
to D
0
)
Data bus
(D
7
to D
0
)
HIF data bus
(HDB
to
HDB
) or
general input/
output
Port 4
8-bit I/O port
P4
7
/PW
1
P4
6
/PW
0
P4
5
/TMRI
1
/HIRQ
12
P4
4
/TMO
1
/HIRQ
1
P4
3
/TMCI
1
/HIRQ
11
P4
2
/TMRI
0
P4
1
/TMO
0
P4
0
/TMCI
0
P5
2
/SCK
0
P5
1
/RxD
0
P5
0
/TxD
0
P6
7
/
IRQ
7
/
KEYIN
7
P6
6
/FTOB/
IRQ
6
/
KEYIN
6
P6
5
/FTID/
KEYIN
5
P6
4
/FTIC/
KEYIN
4
P6
3
/FTIB/
KEYIN
3
P6
2
/FTIA/
KEYIN
2
P6
1
/FTOA/
KEYIN
1
P6
0
/FTCI/
KEYIN
0
PWM timer 0/1 output (PW
0
, PW
1
), or general input/
output
8-bit timer 1 input/output (TMCI
, TMO
, TMRI
), host
processor interrupt request output from HIF (HIRQ
11
,
HIRQ
1
, HIRQ
12
), or general input/output
8-bit timer 0 input/output (TMCI
0
, TMO
0
, TMRI
0
) or
general input/output
Port 5
3-bit I/O port
Serial communication interface 0 input/output (TxD
0
,
RxD
0
, SCK
0
) or general input/output
Port 6
8-bit I/O port
Built-in input
pull-ups
Key sense
interrupt input
16-bit free-running timer input/output (FTCI, FTOA,
FTIA, FTIB, FTIC, FTID, FTOB), key sense interrupt
input (
KEYIN
to
KEYIN
), external interrupt input (
IRQ
7
,
IRQ
6
), or general input/output