HD404849 Series
4-Bit Single-Chip Microcomputer
Rev. 6.0
Sept. 1998
Description
The HD404849 series of HMCS400-series microcomputers is designed to increase program productivity
and also incorporate large-capacity memory. Each microcomputer has an LCD controller/driver, A/D
converter, input capture circuit, 32-kHz oscillator for clock use, and four low-power dissipation modes.
The HD404849 series includes the HD404848 with an 8-kword on-chip ROM, the HD4048412 with a 12-
kword on-chip ROM, the HD404849 with a 16-kword on-chip ROM, and the HD4074849 with a 16-kword
on-chip PROM.
On-chip ROM is available in a PROM (ZTAT™ microcomputer) version and a mask ROM version. 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. PROM programming
specifications are the same as for the 27256.
ZTAT™: Zero Turn Around Time ZTAT is a trademark of Hitachi Ltd.
Features
•
35 I/O pins, including nine high-current pins (15 mA, max.), eight pins multiplexed with LCD segment
pins, and four pins multiplexed with analog input pins
•
Four timer/counters
•
Eight-bit input capture circuit
•
Three timer outputs (including two PWM outputs)
•
Two event counter inputs (including one in which the detection edge is programmable)
•
Clock-synchronous 8-bit serial interface
•
A/D converter (8 channels
×
8 bits)
Operation voltage 2.7 V to 6.0 V
•
LCD driver (32 segments
×
4 commons)
•
Built-in oscillators
Main clock: Can be driven by ceramic oscillator, crystal oscillator, or external clock.
Subclock: 32.768-kHz crystal
•
Ten interrupt sources
Four by external sources, including two in which the detection edge is programmable
HD404849 Series
Six by internal sources
•
Subroutine stack up to 16 levels, including interrupts
•
Four low-power dissipation modes
Standby mode
Stop mode
Watch mode
Subactive mode
•
One external input for transition from stop mode to active mode
•
Instruction cycle time: 0.89
µs
(f
OSC
= 4.5 MHz)
•
Operation voltage
V
CC
= 2.7 V to 6.0 V (subactive mode: 2.2 V to 6.0 V) (HD404848, HD404849)
V
CC
= 2.7 V to 5.5 V (HD4074849)
•
Two operating modes
MCU mode (HD404848, HD4048412, HD404849)
MCU/PROM mode (HD4074849 only)
Ordering Information
Type
Mask ROM
Product Name
HD404848
Model Name
HD404848H
HD404848FS
HD404848TF
HD4048412
HD4048412H
HD4048412FS
HD4048412TF
HD404849
HD404849H
HD404849FS
HD404849TF
ZTAT™
HD4074849
HD4074849H
HD4074849FS
HD4074849TF
16,384
1,184
16,384
1,184
12,288
1,184
ROM (words)
8,192
RAM (digits)
512
Package
80-pin plastic QFP
(FP-80A)
80-pin plastic QFP
(FP-80B)
80-pin plastic
TQFP (TFP-80C)
80-pin plastic QFP
(FP-80A)
80-pin plastic QFP
(FP-80B)
80-pin plastic
TQFP (TFP-80C)
80-pin plastic QFP
(FP-80A)
80-pin plastic QFP
(FP-80B)
80-pin plastic
TQFP (TFP-80C)
80-pin plastic QFP
(FP-80A)
80-pin plastic QFP
(FP-80B)
80-pin plastic
TQFP (TFP-80C)
2
HD404849 Series
Pin Arrangement
R3
1
/AN
5
R3
0
/AN
4
AN
3
AN
2
AN
1
AN
0
AV
CC
V
CC
V
3
V
2
V
1
COM4
COM3
COM2
COM1
SEG44
SEG43
SEG42
SEG41
SEG40
R3
2
/AN
6
R3
3
/AN
7
AV
SS
TEST
OSC
1
OSC
2
RESET
X1
X2
GND
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
D
8
D
10
/STOPC
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FP-80A
TFP-80C
(top view)
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
R7
3
/SEG20
R3
0
/AN
4
R3
1
/AN
5
R3
2
/AN
6
R3
3
/AN
7
AV
SS
TEST
OSC
1
OSC
2
RESET
X1
X2
GND
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
D
8
D
10
/STOPC
D
11
/INT
0
R0
0
/INT
1
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
AN
3
AN
2
AN
1
AN
0
AV
CC
V
CC
V
3
V
2
V
1
COM4
COM3
COM2
COM1
SEG44
SEG43
SEG42
D
11
/INT
0
R0
0
/INT
1
R0
1
/INT
2
R0
2
/INT
3
R0
3
R1
0
/TOB
R1
1
/TOC
R1
2
/TOD
R1
3
/EVNB
R2
0
/EVND
R2
1
/SCK
R2
2
/SI
R2
3
/SO
R6
0
/SEG13
R6
1
/SEG14
R6
2
/SEG15
R6
3
/SEG16
R7
0
/SEG17
R7
1
/SEG18
R7
2
/SEG19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FP-80B
(top view)
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
SEG41
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
R7
3
/SEG20
R7
2
/SEG19
R7
1
/SEG18
R0
1
/INT
2
R0
2
/INT
3
R0
3
R1
0
/TOB
R1
1
/TOC
R1
2
/TOD
R1
3
/EVNB
R2
0
/EVND
R2
1
/SCK
R2
2
/SI
R2
3
/SO
R6
0
/SEG13
R6
1
/SEG14
R6
2
/SEG15
R6
3
/SEG16
R7
0
/SEG17
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
3
HD404849 Series
Pin Description
Pin Number
Item
Power supply
Symbol
V
CC
GND
Test
Reset
Oscillator
TEST
RESET
OSC
1
FP-80A ,TFP-80C FP-80B
73
10
4
7
5
75
12
6
9
7
I
I
I
I/O Function
Applies power voltage
Connected to ground
Used for factory testing only: Connect
this pin to GND
Resets the MCU
Input/output pins for the internal
oscillator circuit:
Connect them to a ceramic oscillator
or connect OSC1 to an external
oscillator circuit.
OSC
2
X1
6
8
8
10
O
I
Used for a 32.768-kHz crystal for
clock purposes. If not to be used, fix
the X1 pin to VCC and leave the X2
pin open.
X2
Port
D
0
–D
8
9
11–19
11
13–21
O
I/O Input/output pins addressed by
individual bits; pins D
0
–D
8
are high-
current pins that can each supply up
to 15 mA
I
Input pins addressable by individual
bits
D
10
, D
11
20, 21
22, 23
24–35, 1–4,
36–43
23–26
22
33
34
35
28–30
31, 32
R0–R3, R6, 22–33, 79, 80,
R7
1, 2, 34–41
Interrupt
Stop clear
Serial
INT
0
,
INT
1
,
INT
2
, INT
3
STOPC
SCK
SI
SO
Timer
TOB, TOC,
TOD
EVNB,
EVND
21–24
20
31
32
33
26–28
29, 30
I/O Input/output pins addressable in 4-bit
units
I
I
Input pins for external interrupts
Input pin for transition from stop mode
to active mode
I/O Serial clock input/output pin
I
O
O
I
Serial receive data input pin
Serial transmit data output pin
Timer output pins
Event count input pins
4
HD404849 Series
Pin Number
Item
LCD
Symbol
V
1
, V
2
, V
3
FP-80A, TFP-80C FP-80B
70–72
72–74
I/O Function
Power pins for LCD driver. The LCD
power supply division resistors can be
connected and disconnected as
controlled by software.
Voltage conditions are:
V
CC
≥
V
1
≥
V
2
≥
V
3
≥
GND
O
O
Common signal pins for LCD
Segment signal pins for LCD
Power pin for A/D converter: Connect
it to the same potential as V
CC
, as
physically close to the V
CC
pin as
possible
Ground for AV
CC
: Connect it to the
same potential as GND, as physically
close to the GND pin as possible
I
Analog input pins for A/D converter
COM1–
COM4
SEG13–
SEG44
A/D converter
AV
CC
66–69
34–65
74
68–71
36–67
76
AV
SS
3
5
AN
0
–AN
7
75–80, 1, 2
77–80, 1–4
5