HD404318 Series
Rev. 6.0
Sept. 1998
Description
The HD404318 Series is 4-bit HMCS400-series microcomputer with large-capacity memory designed to
increase program productivity. Each microcomputer has an A/D converter and input capture timer built in.
They also come with high-voltage I/O pins that can directly drive a fluorescent display.
The HD404318 Series includes four chips: the HD404318 with 8-kword ROM; the HD404316 with 6-
kword ROM; the HD404314 with 4-kword ROM; the HD4074318 with 8-kword PROM.
The HD4074318 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
•
34 I/O pins
One input-only pin
33 input/output pins: 21 pins are high-voltage pins (40 V, max.)
•
On-chip A/D converter (8-bit
×
8-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
HD404318 Series
PinDescription
Pin Number
Item
Symbol
DP-42S FP-44A I/O Function
21
10
16
5
39
1
2
3
I
I
I
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.
Power supply V
CC
GND
V
disp
(shared 1
with RA
1
)
Test
Reset
Oscillator
TEST
RESET
OSC
1
6
7
8
OSC
2
Port
D
0
–D
8
9
22–30
4
O
17–21, I/O Input/output pins addressed individually by bits; D
0
–D
8
are all high-voltage I/O pins. Each pin can be
23–26
individually configured as selected by the mask option.
39
I
One-bit high-voltage input port pin
RA
1
R0
0
–R0
3
,
R3
0
–R4
3
R1
0
–R2
3
,
R8
0
–R8
3
Interrupt
Stop clear
Serial
interface
INT
0
,
INT
1
STOPC
SCK
SI
SO
Timer
TOC
EVNB
Alarm
A/D
converter
BUZZ
AV
CC
1
2–5,
12–19
31–42
40–43, I/O Four-bit input/output pins consisting of standard voltage
pins
7–14
27–38
I/O Four-bit input/output pins consisting of high voltage pins
22, 23
26
2
3
4
5
24
25
20
17, 18
21
40
41
42
43
19
20
15
I
I
Input pins for external interrupts
Input pin for transition from stop mode to active mode
I/O Serial interface clock input/output pin
I
O
O
I
O
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.
I
Analog input pins for the A/D converter
AV
SS
AN
0
–AN
7
11
12–19
6
7–14
4