HD404358 Series
Rev. 6.0
Sept. 1998
Description
The HD404358 Series is a 4-bit HMCS400-Series microcomputer designed to increase program
productivity and also incorporate large-capacity memory. Each microcomputer has an A/D converter, input
capture timer, and two low-power dissipation modes.
The HD404358 Series includes seven chips: the HD404354, HD40A4354 with 4-kword ROM; the
HD404356, HD40A4356 with 6-kword ROM; the HD404358, HD40A4358 with 8-kword ROM; the
HD407A4359 with 16-kword PROM.
The HD40A4354, HD40A4356, HA40A4358, and HD407A4359 are high speed versions (minimum
instruction cycle time: 0.47
µs)
The HD407A4359 is a PROM version (ZTAT™microcomputer). A program can be written to the PROM
by a PROM writer, which can dramatically shorten system development periods and smooth the process
from debugging to mass production. (The ZTAT™ version is 27256-compatible.)
ZTAT™: Zero Turn Around Time ZTAT is a trademark of Hitachi Ltd.
Features
•
34 I/O pins
One input-only pin
33 input/output pins: 4 pins are intermediate-voltage NMOS open drain with high-current pins (15
mA, max.)
•
On-chip A/D converter (8-bit
×
8-channel)
Low power voltage 2.7 V to 6.0 V
•
Three timers
One event counter input
One timer output
One input capture timer
•
Eight-bit clock-synchronous serial interface (1 channel)
•
Alarm output
HD404358 Series
•
Built-in oscillators
Ceramic oscillator or crystal
External clock drive is also possible
•
Seven interrupt sources
Two by external sources
Three by timers
One by A/D converter
One by serial interface
•
Two low-power dissipation modes
Standby mode
Stop mode
•
Instruction cycle time
0.47
µs
(f
OSC
= 8.5 MHz, 1/4 division ratio):
HD40A4354, HD40A4356, HD40A4358,
HD407A4359
0.8
µs
(f
OSC
= 5 MHz, 1/4 division ratio):
HD404354, HD404356, HD404358
Ordering Information
Type
Instruction Cycle
Time
Product Name
HD404354
Model Name
HD404354S
HD404354H
HD404356
HD404356S
HD404356H
HD404358
HD404358S
HD404358H
High speed versions HD40A4354
(f
OSC
= 8.5 MHz)
HD40A4356
HD40A4354S
HD40A4354H
HD40A4356S
HD40A4356H
HD40A4358
HD40A4358S
HD40A4358H
ZTAT™
(f
OSC
= 8.5 MHz)
HD407A4359
HD407A4359S
HD407A4359H
16,384
512
8,192
6,144
4,096
384
8,192
6,144
ROM
(Words)
4,096
RAM
(Digit)
384
Package
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
Mask ROM Standard versions
(f
OSC
= 5 MHz)
2
HD404358 Series
Pin Arrangement
RA
1
R0
0
/SCK
R0
1
/SI
R0
2
/SO
R0
3
/TOC
TEST
RESET
OSC
1
OSC
2
GND
AV
SS
R3
0
/AN
0
R3
1
/AN
1
R3
2
/AN
2
R3
3
/AN
3
R4
0
/AN
4
R4
1
/AN
5
R4
2
/AN
6
R4
3
/AN
7
AV
CC
V
CC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
DP-42S
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
R2
3
R2
2
R2
1
R2
0
R1
3
R1
2
R1
1
R1
0
R8
3
R8
2
R8
1
R8
0
D
8
D
7
D
6
D
5
D
4
/STOPC
D
3
/BUZZ
D
2
/EVNB
D
1
/INT
1
D
0
/INT
0
44
43
42
41
40
39
38
37
36
35
34
NC
R0
3
/TOC
R0
2
/SO
R0
1
/SI
R0
0
/SCK
RA
1
R2
3
R2
2
R2
1
R2
0
R1
3
TEST
RESET
OSC
1
OSC
2
GND
AV
SS
R3
0
/AN
0
R3
1
/AN
1
R3
2
/AN
2
R3
3
/AN
3
R4
0
/AN
4
1
2
3
4
5
6
7
8
9
10
11
FP-44A
33
32
31
30
29
28
27
26
25
24
23
R1
2
R1
1
R1
0
R8
3
R8
2
R8
1
R8
0
D
8
D
7
D
6
D
5
R4
1
/AN
5
R4
2
/AN
6
R4
3
/AN
7
AV
CC
V
CC
D
0
/INT
0
D
1
/INT
1
D
2
/EVNB
D
3
/BUZZ
D
4
/STOPC
NC
12
13
14
15
16
17
18
19
20
21
22
3
HD404358 Series
Pin Description
Pin Number
Item
Power
supply
Symbol
V
CC
GND
Test
Reset
Oscillator
TEST
RESET
OSC
1
DP-42S FP-44A I/O
21
10
6
7
8
16
5
1
2
3
I
I
I
Function
Applies power voltage
Connected to ground
Cannot be used in user applications. Connect this pin
to GND.
Resets the MCU
Input/output pin for the internal oscillator. Connect
these pins to the ceramic oscillator or crystal oscillator,
or OSC
1
to an external oscillator circuit.
OSC
2
Port
D
0
–D
8
RA
1
R0
0
–R1
3
,
R3
0
–R4
3
,
R8
0
–R8
3
R2
0
–R2
3
Interrupt
Stop clear
Serial
Interface
INT
0
,
INT
1
STOPC
SCK
SI
SO
Timer
TOC
EVNB
Alarm
A/D
converter
BUZZ
AV
CC
9
22–30
4
17–21,
23–26
O
I/O
Input/output pins addressed individually by bits; D
0
–D
8
are all standard-voltage I/O pins.
One-bit standard-voltage input port pin
Four-bit input/output pins consisting of standard-voltage
pins
1
2–5,
12–19,
31–38
39–42
22, 23
26
2
3
4
5
24
25
20
39
40–43,
7–14
27–34
35–38
17, 18
21
40
41
42
43
19
20
15
I
I/O
I/O
I
I
I/O
I
O
O
I
O
Four-bit input/output pins consisting of intermediate
voltage pins
Input pins for external interrupts
Input pin for transition from stop mode to active mode
Serial interface clock input/output pin
Serial interface receive data input pin
Serial interface transmit data output pin
Timer output pin
Event count input pin
Square waveform output pin
Power supply for the A/D converter. Connect this pin
as close as possible to the V
CC
pin and at the same
voltage as V
CC
. If the power supply voltage to be used
for the A/D converter is not equal to V
CC
, connect a 0.1-
µF
bypass capacitor between the AV
CC
and AV
SS
pins.
(However, this is not necessary when the AV
CC
pin is
directly connected to the V
CC
pin.)
Ground for the A/D converter. Connect this pin as
close as possible to GND at the same voltage as GND.
AV
SS
AN
0
–AN
7
11
12–19
6
7–14
I
Analog input pins for the A/D converter
4
HD404358 Series
Block Diagram
STOPC
RESET
OSC
1
OSC
2
TEST
INT
0
Interrupt
control
INT
1
System control
RAM
(384
×
4 bits)
(512
×
4 bits)
D port
GND
V
CC
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
D
8
R0
0
R0
1
R0
2
R0
3
Timer A
W
(2 bits)
X
(4 bits)
EVNB
Timer B
SPX
(4 bits)
Y
(4 bits)
Internal address bus
R0 port
R1 port
R1
0
R1
1
R1
2
R1
3
TOC
Timer C
Internal data bus
SPY
(4 bits)
SI
SO
SCK
Serial
interface
Internal data bus
R2 port
R2
0
R2
1
R2
2
R2
3
ALU
AV
SS
R3
0
R3 port
•
•
•
AN
0
•
•
•
A/D
converter
ST
(1 bit)
CA
(1 bit)
R3
1
R3
2
R3
3
AN
7
AV
CC
A
(4 bits)
R4 port
R4
0
R4
1
R4
2
R4
3
B
(4 bits)
BUZZ
Buzzer
SP
(10 bits)
Instruction
decoder
PC
(14 bits)
R8 port
Data bus
R8
0
R8
1
R8
2
R8
3
Intermediate
voltage pin
RA port
ROM
(4,096
×
10 bits) (6,144
×
10 bits)
(16,384
×
10 bits)(8,192
×
10 bits)
Directional
signal line
RA
1
5