HD404339 Series
Rev. 7.0
Sept. 1999
Description
The HD404339 Series is 4-bit HMCS400-Series microcomputer with large-capacity memory designed to
increase program productivity. Each microcomputer has an A/D converter, input capture timer, and a 32-
kHz oscillator circuit for clock use all built in. They also come with high-voltage I/O pins that can directly
drive a fluorescent display.
The HD404339 Series includes six chips: the HD404339 with 16-kword ROM; the HD4043312 with 12-
kword ROM; the HD404338 with 8-kword ROM; the HD404336 with 6-kword ROM; the HD404334 with
4-kword ROM; the HD4074339 with 16-kword PROM.
The HD4074339 is a PROM version ZTAT™ microcomputer. Programs 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 PROM program specifications are the same as for the 27256.)
ZTAT™: Zero Turn Around Time ZTAT is a trademark of Hitachi Ltd.
Features
•
54 I/O pins
One input-only pin
53 input/output pins: 30 pins are high-voltage pins (40 V, max.)
•
On-chip A/D converter (8-bit
×
12-channel)
•
Three timers
One event counter input
One timer output
One input capture timer
•
8-bit clock-synchronous serial interface (1 channel)
•
Alarm output
•
Built-in oscillators
Ceramic or crystal oscillator
External clock drive is also possible
Subclock: 32.768-kHz crystal oscillator
HD404339 Series
•
Seven interrupt sources
Two by external sources
Three by timers
One each by the A/D converter and serial interface
•
Four low-power dissipation modes
Standby mode
Stop mode
Watch mode
Subactive mode
•
Instruction cycle time: 1
µs
(f
OSC
= 4 MHz, 1/4 division ratio)
1/4, 1/8, 1/16, 1/32 system clock division ratio can be selected
Ordering Information
Type
Mask ROM
Product Name
HD404334
Model Name
HD404334S
HD404334FS
HD404336
HD404336S
HD404336FS
HD404338
HD404338S
HD404338FS
HD4043312
HD4043312S
HD4043312FS
HD404339
HD404339S
HD404339FS
ZTAT™
HD4074339
HD4074339S
HD4074339FS
16,384
16,384
12,288
8,912
6,144
ROM (words)
4,096
RAM (digit)
512
Package
DP-64S
FP-64B
DP-64S
FP-64B
DP-64S
FP-64B
DP-64S
FP-64B
DP-64S
FP-64B
DP64S
FP-64B
Recommended PROM Programmers and Socket Adapters
PROM Programmer
Manufacture
DATA I/O corp
Model Name
121 B
Socket Adapter
Package
DP-64S
FP-64B
AVAL corp
PKW-1000
DP-64S
FP-64B
Hitachi
Manufacture
Hitachi
Model Name
HS4339ESS01H
HS4339ESF01H
HS4339ESS01H
HS4339ESF01H
2
HD404339 Series
Pin Arrangement
R7
1
R7
0
R6
3
R6
2
R6
1
R6
0
RA
1
/V
disp
R2
3
R2
2
R2
1
R2
0
R1
3
R1
2
R6
0
R6
1
R6
2
R6
3
R7
0
R7
1
R7
2
R0
0
/SCK
R0
1
/SI
R0
2
/SO
R0
3
/TOC
TEST
RESET
OSC
1
OSC
2
GND
X1
X2
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
R5
0
/AN
8
R5
1
/AN
9
R5
2
/AN
10
R5
3
/AN
11
AV
CC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
RA
1
/V
disp
R2
3
R2
2
R2
1
R2
0
R1
3
R1
2
R1
1
R1
0
R9
3
R9
2
R9
1
R9
0
R8
3
R8
2
R8
1
R8
0
D
13
D
12
D
11
D
10
D
9
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
V
CC
64
63
62
61
60
59
58
57
56
55
54
53
52
R7
2
R0
0
/SCK
R0
1
/SI
R0
2
/SO
R0
3
/TOC
TEST
RESET
OSC
1
OSC
2
GND
X1
X2
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
FP-64B
R1
1
R1
0
R9
3
R9
2
R9
1
R9
0
R8
3
R8
2
R8
1
R8
0
D
13
D
12
D
11
D
10
D
9
D
8
D
7
D
6
D
5
DP-64S
R4
2
/AN
6
R4
3
/AN
7
R5
0
/AN
8
R5
1
/AN
9
R5
2
/AN
10
R5
3
/AN
11
AV
CC
V
CC
D
0
/INT
0
D
1
/INT
1
D
2
/EVNB
D
3
/BUZZ
D
4
/STOPC
20
21
22
23
24
25
26
27
28
29
30
31
32
3
HD404339 Series
Pin Description
Pin Number
Item
Power supply
Symbol
V
CC
GND
V
disp
(shared
with RA
1
)
Test
Reset
Oscillator
TEST
RESET
OSC
1
12
13
14
6
7
8
I
I
I
DP-64S
33
16
64
FP-64B
27
10
58
I/O
Function
Applies power voltage
Connected to ground
Used as a high-voltage output power supply pin
when selected by the mask option
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 or crystal
oscillator, or OSC
1
to an external oscillator
circuit.
OSC
2
X1
X2
Port
D
0
–D
13
15
17
18
34–47
9
11
12
28–41
O
I
O
I/O
Input/output pins addressed individually by bits;
D
0
–D
13
are all high-voltage I/O pins. Each pin
can be individually configured as selected by
the mask option.
One-bit high-voltage input port pin
Four-bit input/output pins consisting of standard
voltage pins
Used with a 32.768-kHz crystal oscillator for
clock purposes
RA
1
64
58
1–5,
14–25,
59–64
I
I/O
R0
0
–R0
3
, 1–11,
R3 –R7 20–31
0
2
R1
0
–R2
3
, 48–63
R8
0
–R9
3
Interrupt
Stop clear
INT
0
,
INT
1
34, 35
STOPC
38
8
9
10
11
36
37
42–57
I/O
Four-bit input/output pins consisting of high
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
28, 29
32
2
3
4
5
30
31
I
I
I/O
I
O
O
I
O
Serial interface
SCK
SI
SO
Timer
TOC
EVNB
Alarm
BUZZ
4
HD404339 Series
Pin Number
Item
A/D converter
Symbol
AV
CC
DP-64S
32
FP-64B
26
I/O
Function
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.
I
Analog input pins for the A/D converter
AV
SS
19
13
AN
0
–AN
11
20–31
14–25
5