HD404054 Series/HD404094 Series
Rev. 6.0
Sept. 1998
Description
The HD404054 Series and HD404094 Series are HMCS400-series microcomputers designed to increase
program productivity with large-capacity memory. Each microcomputer has three timers, one serial
interface, comparator, input capture circuit.
The HD404054 Series includes three chips: the HD404052 with 2-kword ROM; the HD404054 with 4-
kword ROM; and the HD4074054 with 4-kword PROM (ZTAT™ version). Also, the HD404094 Series
includes three chips: the HD404092 with 2-kword ROM; the HD404094 with 4-kword ROM; and the
HD4074094 with 4-kword PROM (ZTAT™ version).
The HD4074054 and HD4074094 are PROM version (ZTAT™ microcomputers). 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.)
Features
•
The differences between HD404054 Series and HD404094 Series
HD404054 Series
I/O pins
10 large-current output pins: Six 15-mA sinks
and four 10-mA sources
HD404094 Series
•
•
6 largecurrent output pins: Two 15-mA
sinks and four 10-mA sources
4 intermediate voltage output pins
•
•
•
•
•
•
•
•
27 I/O pins and 8 dedicated input pins
Three timer/counters
Eight-bit input capture circuit
Two timer outputs (including two PWM outputs)
One event counter inputs (including one double-edge function)
One clock-synchronous 8-bit serial interface
Comparator (2 channels)
Built-in oscillators
Main clock: Ceramic or crystal oscillator (an external clock is also possible)
HD404054 Series/HD404094 Series
•
Six interrupt sources
Two by external sources
Four by internal sources
•
Subroutine stack up to 16 levels, including interrupts
•
Two low-power dissipation modes
Standby mode
Stop mode
•
One external input for transition from stop mode to active mode
•
Instruction cycle time: 1
µs
(f
OSC
= 4 MHz at 1/4 division ratio)
1/4, or 1/32 division ratio can be selected by hardware
•
Two operating modes
MCU mode
MCU/PROM mode (HD4074054, HD4074094)
Ordering Information
Product Name
Type
Mask ROM
HD404054 Series
HD404052H
HD404052S
HD40A4052H
HD40A4052S
HD404054H
HD404054S
HD40A4054H
HD40A4054S
ZTAT™
HD4074054H
HD4074054S
ZTAT™: Zero Turn Around Time
HD4074094H
HD4074094S
ZTAT is a trademark of Hitachi, Ltd.
4,096
HD404094H
HD404094S
4,096
HD404094 Series
HD404092H
HD404092S
ROM (words)
2,048
RAM (digit)
512
Package
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
FP-44A
DP-42S
2
HD404054 Series/HD404094 Series
Pin Arrangement
RD
0
/COMP
0
RD
1
/COMP
1
RD
2
RD
3
RC
0
RE
0
/VC
ref
TEST
OSC
1
OSC
2
RESET
GND
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
D
8
D
9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
V
CC
SEL
R4
3
/SO
1
R4
2
/SI
1
R4
1
/SCK
1
R4
0
/EVND
R3
3
R3
2
/TOD
R3
1
/TOC
R3
0
R2
3
R2
2
R2
1
R2
0
R1
3
R1
2
R1
1
R1
0
R0
0
/INT
1
D
13
/INT
0
D
12
/STOPC
DP-42S
D
5
D
6
D
7
D
8
D
9
D
12
/STOPC
D
13
/INT
0
R0
0
/INT
1
R1
0
R1
1
NC
12
13
14
15
16
17
18
19
20
21
22
RE
0
/VC
ref
TEST
OSC
1
OSC
2
RESET
GND
D
0
D
1
D
2
D
3
D
4
44
43
42
41
40
39
38
37
36
35
34
1
2
3
4
5
6
7
8
9
10
11
NC
RC
0
RD
3
RD
2
RD
1
/COMP
1
RD
0
/COMP
0
V
CC
SEL
R4
3
/SO
1
R4
2
/SI
1
R4
1
/SCK
1
FP-44A
33
32
31
30
29
28
27
26
25
24
23
R4
0
/EVND
R3
3
R3
2
/TOD
R3
1
/TOC
R3
0
R2
3
R2
2
R2
1
R2
0
R1
3
R1
2
Top view
3
HD404054 Series/HD404094 Series
Pin Description
Pin Number
Item
Symbol
DP-42S
42
11
7
10
8
9
12–21
FP-44A
38
6
2
5
3
4
7–16
I
I
I
O
I/O*
Input/output pins addressed by individual bits; pins
D
0
–D
3
are high-current source pins that can each
supply up to 10 mA.
The HD404054 Series: pins D
4
–D
9
are high-current
sink pins that can each supply up to 15mA.
The HD404094 Series: D
4
–D
7
are intermediate
voltage (12 V) NMOS open-drain pins, and D
8
, D
9
are
high-current sink pins that can each supply up to 15
mA.
D
12
,D
13
R0
0
–R4
3
RD
0
–RD
3
,
RC
0
, RE
0
Interrupt
Stop clear
Serial
INT
0
,
INT
1
STOPC
SCK
1
SI
1
SO
1
Timer
23, 24
22
38
39
40
18, 19
17
34
35
36
30, 31
33
39, 40
I
I
I/O
I
O
O
I
I
Input pins for external interrupts
Input pin for transition from stop mode to active mode
Serial clock input/output pin
Serial receive data input pin
Serial transmit data output pin
Timer output pins
Event count input pins
Analog input pins for voltage comparator
22, 23
24–40
1–6
17, 18
19–36
I
I/O
Input pins addressable by individual bits
Input/output pins addressable in 4-bit units
Input pins addressable in 4-bit units
I/O
Function
Applies power voltage
Connected to ground
Used for factory testing only: Connect this pin to V
CC
Resets the MCU
Power supply V
CC
GND
Test
Reset
Oscillator
TEST
RESET
OSC
1
OSC
2
Port
D
0
–D
9
39–43,1 I
TOC, TOD 34, 35
EVND
37
1, 2
Comparator
COMP
0
,
COMP
1
VC
ref
6
41
1
37
I
Reference voltage pin for inputting the threshold
voltage of the analog input pin.
Input pin for selecting system clock division rate after
RESET
input or after stop mode cancellation.
1/4 division rate: Connect it to V
CC
1/32 division rate: Connect it to GND
Division rate SEL
Note:
*
D
4
–D
7
of the HD404094 Series are output pins.
4
HD404054 Series/HD404094 Series
Block Diagram
STOPC
RESET
OSC
1
OSC
2
TEST
System control
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
D
8
D
9
High
current
source
pins
High
current
sink pins
Intermediate
voltage NMOS
open-drain
output pins*
INT
0
INT
1
External
interrupt
Timer
A
W (2bit)
X (4bit)
D
12
D
13
TOC
Timer
C
RE port RC port RD port R4 port R3 port R2 port R1 port R0 port
D port
RAM
(512
×
4bit)
GND
SEL
V
CC
SPX (4bit)
R0
0
R1
0
R1
1
R1
2
R1
3
R2
0
R2
1
R2
2
R2
3
R3
0
R3
1
R3
2
R3
3
R4
0
R4
1
R4
2
R4
3
RD
0
RD
1
RD
2
RD
3
RC
0
EVND
TOD
SI
1
SO
1
SCK
1
VC
ref
COMP
0
COMP
1
Timer
D
Y (4bit)
Internal address bus
Serial
1
SPY (4bit)
Compa-
rator
Internal data bus
ALU
CPU
ST
CA
(1bit) (1bit)
Internal data bus
A (4bit)
RE
0
B (4bit)
SP (10bit)
Instruction
decoder
PC (14bit)
ROM
(4,096
×
10bit)
(2,048
×
10bit)
Note:
*
Only HD404094 Series
: Data bus
: Signal line
5