Hitachi H8/329 Series Hardware Manual page 85

Single-chip microcomputer
Table of Contents

Advertisement

Table 5-1. Port Functions
Port
Description
Port 1 • 8-bit input-output P1
port
• Can drive LEDs
• Input pull-ups
Port 2 • 8-bit input-output P2
port
• Can drive LEDs
• Input pull-ups
Port 3 • 8-bit input-output P3
port
• Input pull-ups
Port 4 • 8-bit input/output P4
Port 5 • 3-bit input-output P5
port
Port 6 • 8-bit input-output P6
port
Port 7 • 8-bit input port
Pins
Mode 1
to P1
/
Address output
7
0
A
to A
(low)
7
0
to P2
/
Address output
7
0
A
to A
(high)
15
8
to P3
/
Data bus
7
0
D
to D
7
0
/WAIT
WAIT input
7
P4
System clock
6
output
P4
/AS
AS output
5
P4
/WR
WR output
4
P4
/RD
RD output
3
P4
/IRQ
General input/output or external interrupt input
2
0
P4
/IRQ
(IRQ
1
1
0
P4
/ADTRG/
General input/output, A/D converter trigger input
0
IRQ
(ADTRG), or external interrupt input (IRQ
2
to P5
General input/output or serial communication interface
2
0
input/output (TxD, RxD, SCK)
to P6
General input/output, 16-bit free-running timer
7
0
input/output (FTCI, FTOA, FTOB, FTIA, FTIB, FTIC,
FTID), or 8-bit timer 0/1 input/output (TMCI
TMRI
P7
to P7
General input, or analog input to A/D converter
7
0
76
Expanded modes
Mode 2
General input
when DDR = "0" output
(initial state)
Address output
(low) when
DDR = "1"
General input
when DDR = "0" output
(initial state)
Address output
(high) when
DDR = "1"
Data bus
, IRQ
)
1
, TMCI
, TMO
, TMRI
0
1
1
Single-chip mode
Mode 3
General input/
General input/
General input/
output
General input/
output
General input
when DDR = "0"
(initial state)
System clock
output when
DDR = "1"
General input/
output
)
2
, TMO
,
0
0
)
1

Advertisement

Table of Contents
loading

Table of Contents