ETC HE847711(S)

King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
- Table of Contents 1.
General Description ___________________________________________________________________1
2.
Features _____________________________________________________________________________2
3.
Functional Block Diagram ______________________________________________________________2
4.
Pin Description _______________________________________________________________________3
5.
LCD RAM Map ______________________________________________________________________5
6.
LCD Power Supply ____________________________________________________________________6
6.1.
LCDC Control register ______________________________________________________________6
7.
Oscillators ___________________________________________________________________________6
8.
General Purpose I/O___________________________________________________________________6
9.
Key Scan Circuit ______________________________________________________________________6
10.
Timer1 ____________________________________________________________________________6
11.
Timer2 ____________________________________________________________________________6
12.
Time Base Interrupt_________________________________________________________________6
13.
Watch Dog Timer ___________________________________________________________________6
14.
Digital-to-Analog Converter __________________________________________________________6
15.
Pulse-Width Modulation _____________________________________________________________6
16.
Low Voltage Detection _______________________________________________________________6
17.
Absolute Maximum Rating ___________________________________________________________6
18.
Recommended Operating Conditions __________________________________________________6
19.
AC/DC Characteristics ______________________________________________________________6
20.
Application Circuit__________________________________________________________________6
21.
Important Note _____________________________________________________________________6
22.
Updated Record ____________________________________________________________________6
1. General Description
HE847711 is a member of 8-bit Micro-controller series developed by King Billion Electronics. Four LCD
driver configurations, 32 COM x 128 SEG, 48 COM x 112 SEG, 64 COM x 96 SEG or 80 COM x 80
SEG are available by mask option. 24 LCD segment driver pins multiplexed with I/O pins to provide
April 28, 2003
Page 1 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
flexibility of wide variety of combinations to suit the needs of applications. The built-in LCD power
supply is equipped with voltage charge-pump circuit to generate the high voltage required by the high
duty LCD driver, bias voltage generating circuit and input voltage regulator circuit to supply stable LCD
display effect over the wide battery life. The built-in OP comparator can be used with (light, voice,
temperature, humility) sensor and used as battery low detection. 7-bit current-type D/A converter and
PWM device provide the complete speech output mechanism. The 1M ROM Size can be used in the
storage of speech, graphic, text, etc. It is ideal for applications such as Translator, Data Bank, Educational
Toy, Digital Voice Recording System, etc.
The instruction set of HE80000 series is easy to learn and simple to use. Only about thirty instructions
with four-type addressing mode are provided. Most of instructions take only 3 oscillator clocks to execute.
The processing power is enough to most of battery operation system.
2. Features
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
Operation Voltage:
System Clock:
2.4V ~ 3.6V
DC ~ 8 MHz @ 3.6V
DC ~ 4 MHz @ 2.4V
Internal ROM:
1M Bytes (256 KB Program ROM + 792 KB Data ROM)
Internal RAM:
16K Bytes
Dual Clock System: Fast clock:
32768 ~ 8M Hz (No Internal Clock)
Slow clock: 32768 Hz
Operation modes:
Fast, Slow, Idle and Sleep modes.
24 ~ 48 bit bi-directional general purpose I/O port with push-pull or Open-Drain output type
selectable for each I/O pin by mask option. 24 of them are multiplexed with LCD segment
pins.
Built-in 4x20 hardware keyboard scan circuit (multiplexed with LCD SEG pin) helps to
reduce the pin counts as well as the firmware effort.
Voltage Detector with two detecting thresholds.
Four LCD configurations: 32 COM x 128 SEG, 48 COM x 112 SEG, 64 COM x 96 SEG or
80 COM x 80 SEG. All of LCD configurations are B TYPE.
Built-in LCD power supply with input voltage regulator, voltage charge pump and bias
voltage generating circuit.
One 7-bit current-type DAC output.
Single-ended Pulse Width Modulation circuit for alternative voice output.
Built-in OP comparator.
Two 16-bit timers and one Time-Base timer.
Watch Dog Timer to prevent deadlock condition.
Two external interrupts and three internal timer interrupts.
Instruction set: 32 instructions with 4 addressing mode.
3. Functional Block Diagram
SEG
April 28, 2003
LCD
8 Bit CPU
Page 2 of 26
Fast Clock
FXI, FXO
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
COM
LFR, LDL
億
電
子
股
份
有
Driver
LCD Extender
Interface
限
公
司
HE847711
HE80000 SERIES
OSC.
1 MB ROM
Slow Clock
OSC
SXI, SXO
16 KB RAM
LVL[1..5], LCDGS,
PRTC, PRTD, PRT10,
PRT14, PRT15, PRT17
LCD Power
Supply
I/O Port
TC1
TC2
PWM
PWM
DAC
VO, DAO
TBI
SGKY[43..24]
Key Scan
WDT
OP Amp
OPO,OPIN, OPIP
SEG48
SEG47
SEG46
SEG45
SEG44
SGKY 43
SGKY 42
SGKY 41
SGKY 40
SGKY 39
SGKY 38
SGKY 37
SGKY 36
SGKY 35
SGKY 34
SGKY 33
SGKY 32
SGKY 31
SGKY 30
SGKY 29
SGKY 28
SGKY 27
SGKY 26
SGKY 25
SGKY 24
PRT147
PRT146
PRT145
PRT144
HE847711
VDD_RAM
PRTC0
PRTC1
PRTC2
PRTC3
PRTC4
PRTC5
PRTC6
PRTC7
PWM
GND_PWM
PRTD0
PRTD1
PRTD2
PRTD3
PRTD4
PRTD5
PRTD6
PRTD7
PRT100
PRT101
PRT102
PRT103
PRT104
PRT105
PRT106
PRT107
VDD
SXI
SXO
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
PRT143
PRT142
PRT141
PRT140
PRT157
PRT156
PRT155
PRT154
PRT153
PRT152
PRT151
PRT150
PRT177
PRT176
PRT175
PRT174
PRT173
PRT172
PRT171
PRT170
COM31
COM30
COM29
COM28
COM27
COM26
COM25
C0M24
C0M23
C0M22
C0M21
C0M20
C0M19
C0M18
C0M17
C0M16
C0M15
C0M14
C0M13
C0M12
C0M11
C0M10
C0M9
C0M8
C0M7
C0M6
C0M5
C0M4
C0M3
COM2
COM1
COM0
LVL1
LVL2
LVL3
LVL4
LVL5
LCAP4A
LCAP4B
LCAP3A
LCAP3B
LCAP2A
LCAP2B
LCAP1A
LCAP1B
LCDGS
LCDVX
LCDVTB
LFR
LDL
GND
VO
DAO
OPIN
OPIP
OPO
RSTP_N
FXO
FXI
TSTP
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
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
SEG58
SEG59
SEG60
SEG61
SEG62
SEG63
SEG64
SEG65
SEG66
SEG67
SEG68
SEG69
SEG70
SEG71
SEG72
SEG73
SEG74
SEG75
SEG76
SEG77
SEG78
SEG79
CMSG79
CMSG78
CMSG77
CMSG76
CMSG75
CMSG74
CMSG73
CMSG72
CMSG71
CMSG70
CMSG69
CMSG68
CMSG67
CMSG66
CMSG65
CMSG64
CMSG63
CMSG62
CMSG61
CMSG60
CMSG59
CMSG58
CMSG57
CMSG56
CMSG55
CMSG54
CMSG53
CMSG52
CMSG51
CMSG50
CMSG49
CMSG48
CMSG47
CMSG46
CMSG45
CMSG44
CMSG43
CMSG42
CMSG41
CMSG40
CMSG39
CMSG38
CMSG37
CMSG36
CMSG35
CMSG34
CMSG33
CMSG32
218
217
216
215
214
213
212
211
210
209
208
207
206
205
204
203
202
201
200
199
198
197
196
195
194
193
192
191
190
189
188
187
186
185
184
183
182
181
180
179
178
177
176
175
174
173
172
171
170
169
168
167
166
165
164
163
162
161
160
159
158
157
156
155
154
153
152
151
150
149
148
147
146
145
144
143
142
141
140
4. Pin Description
Pin Name
Pin # I/O
Description
188~218
O LCD segment SEG[79..44] driver outputs.
SEG[79..44]
,1~5
LCD segments share pads with key scan out SCNO[19..0]. The key scan function of
these pins can be disabled by mask option clearing MO_LCDKEY to ‘0’, then
SGKY[43..24] 6 ~ 25 O
SGKY[43..24] function as LCD segment driver only. Setting MO_LCDKEY to ‘1’
will turn on the key scan function.
8-bit bi-directional I/O port 14 is shared with LCD segment pads SEG[23..16]. The
function of the pad can be selected individually by mask options MO_LIO14[7..0].
B/
(‘1’ for LCD and ‘0’ for I/O).
PRT14[7..0] 26 ~ 33
O
The output type of I/O pad can also be selected by mask option MO_14PP[7..0] (1
for push-pull and ‘0’ for open-drain).
April 28, 2003
Page 3 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
Pin Name
Pin # I/O
PRT15[7..0]
34 ~ 41
B/
O
PRT17[7..0]
42 ~ 49
B/
O
COM[31..0]
LVL1
LVL2
LVL3
LVL4
LVL5
LCAP4A
LCAP4B
LCAP3A
LCAP3B
LCAP2A
LCAP2B
LCAP1A
LCAP1B
LCDGS
LCDVX
LCDVTB
LFR
LDL
GND
50 ~ 81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
O
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
O
O
P
VO
101
O
DAO
102
O
OPIN
103
I
OPIP
OPO
104
105
I
O
RSTP_N
106
I
FXO,
FXI
107, 108
O,
B
TSTP_P
109
I
April 28, 2003
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
Description
As the output structure of I/O pad does not contain tri-state buffer. When using the
I/O as input, “1” must be outputted before reading.
8-bit bi-directional I/O port 15 is shared with LCD segment pads SEG[16..8]. The
function of the pad can be selected individually by mask options MO_LIO15[7..0].
(‘1’ for LCD and ‘0’ for I/O).
The output type of I/O pad can also be selected by mask option MO_15PP[7..0] (1
for push-pull and ‘0’ for open-drain).
As the output structure of I/O pad does not contain tri-state buffer. When using the
I/O as input, “1” must be outputted before reading.
8-bit bi-directional I/O port 17 is shared with LCD segment pads SEG[7..0]. The
function of the pad can be selected individually by mask options MO_LIO17[7..0].
(‘1’ for LCD and ‘0’ for I/O).
The output type of I/O pad can also be selected by mask option MO_17PP[7..0] (1
for push-pull and ‘0’ for open-drain).
As the output structure of I/O pad does not contain tri-state buffer. When using the
I/O as input, “1” must be outputted before reading.
LCD COMMON Driver pads.
LCD Bias Voltage 1
LCD Bias Voltage 2
LCD Bias Voltage 3
LCD Bias Voltage 4
LCD Bias Voltage 5
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin.
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin
LCD Voltage setting. Adjust Resistor between LCDGS and LVL2 to set LVL5.
Charge Pump Capacitor Pin
Charge Pump Capacitor Pin
LCD frame signal for interfacing with LCD segment extender KDS80.
LCD data load pin for interfacing with LCD segment extender KDS80.
Power ground Input.
DAC Voice Output. Set the bit 1 and clear the bit 0 of VOC (DA = ‘1’ and OP = ‘0’)
register to turn on DAC with VO output.
Alternate output of DAC. Set both bit 1 and bit 0 of VOC register (DA = ‘1’ and OP
= ‘1’) to turn on DAC with DAO output as well as OP comparator.
Inverting input of OP Amp. Set the bit 0 of VOC register (OP = ‘1’) to turn on OP
comparator.
Non-inverting input of OP Amp.
Output of OP Amp.
System Reset input pin. Level trigger, active low on this pin will put the chip in reset
state.
External fast clock pin. Two types of oscillator can be selected by MO_FXTAL (‘0’
for RC type and ‘1’ for crystal type). For RC type oscillator, one resistor need to be
connected between FXI and GND. For crystal oscillator, one crystal need to be
placed between FXI and FXO. Please refer to application circuit for details.
Test input pin. Please bond this pad and reserve a test point on PCB for debugging.
But for improving ESD, please connect this point with zero Ohm resistor to GND.
Page 4 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
Pin Name
Pin # I/O
SXO,
SXI
110, 111
O,
I
VDD
112
P
PRT10[7..0]
113~120 B
PRTD[7..0]
121~128 B
GND_PWM
129
O
PWM
130
O
PRTC[7..0]
131 ~
138
B
VDD_RAM
139
P
CMSG[32..79] 140~187 O
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
Description
External slow clock pins. Slow clock is clock source for LCD display, TIMER1,
Time-Base and other internal blocks. Both crystal and RC oscillator are provided.
The slow clock type can be selected by mask option MO_SXTAL. Choose ‘0’ for RC
type and ‘1’ for crystal oscillator.
Positive power Input. 0.1 µF decoupling capacitors should be placed as close to IC
VDD and GND pads as possible for best decoupling effect.
8-bit bi-directional I/O port 10. The output type of I/O pad can be selected by mask
option MO_10PP[7..0] (‘1’ for push-pull and ‘0’ for open-drain).
As the output structure of I/O pad does not contain tri-state buffer. When using the
I/O pad as input pad, “1” must be outputted before reading.
8-bit bi-directional I/O port D. The output type of I/O pad can also be selected by
mask option MO_DPP[7..0] (‘1’ for push-pull and ‘0’ for open-drain).
As the output structure of I/O pad does not contain tri-state buffer. When using the
I/O as input, ‘1’ must be outputted before reading the pin.
PRTD[7..2] can be used as wake-up pins. PRTD[7..6] can be as external interrupt
sources.
Dedicated Ground for PWM output.
The PWM output can drive speaker or buzzer directly. Set the bit2 of VOC register
as one to turn on PWM. Using VDD & PWM to drive output device.
8-bit bi-directional I/O port C. PRTC[7:4] is shared with Key Scan Dedicated Input
SCNI[3:0]. The Key Scan function can be disabled by clearing MO_LCDKEY mask
option to ‘0’.
The output type of I/O pad can also be selected by mask option MO_CPP[7..0] (‘1’
for push-pull and ‘0’ for open-drain).
As the output structure of I/O pad does not contain tri-state buffer. When using the
I/O as input, ‘1’ must be outputted before reading the pin.
Dedicated power input for RAM
COM[32..79] pads are shared with SEG[127..80] outputs. The functions of the pads
to be COM drivers or SEG drivers can be selected by mask option MO_COM[0].
Please refer to LCD driver configuration for details.
I: Input, O: Output, B: Bidirectional, P: Power.
5. LCD RAM Map
There are 4 LCD configurations as determined by mask option MO_COM[1..0]. The functions of
CMSG[79..32] are different in each configuration as listed in the following table.
MO_COM[1..0] Configuration CMSG[79..64] CMSG[63..48] CMSG[47..32]
00
32 x 128 SEG[80..95] SEG[96..111] SEG[112..127]
01
48 x 112 SEG[80..95] SEG[96..111] COM[47..32]
10
64 x 96
SEG[80..95] COM[63..48] COM[47..32]
11
80 x 80
COM[79..64] COM[63..48] COM[47..32]
April 28, 2003
Page 5 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
COMXSEG
CMSG32
CMSG33
CMSG34
CMSG35
CMSG36
CMSG37
CMSG38
CMSG39
CMSG40
CMSG41
CMSG42
CMSG43
CMSG44
CMSG45
CMSG46
CMSG47
CMSG48
CMSG49
CMSG50
CMSG51
CMSG52
CMSG53
CMSG54
CMSG55
CMSG56
CMSG57
CMSG58
CMSG59
CMSG60
CMSG61
CMSG62
CMSG63
CMSG64
CMSG65
CMSG66
CMSG67
CMSG68
CMSG69
CMSG70
CMSG71
CMSG72
CMSG73
CMSG74
CMSG75
CMSG76
CMSG77
CMSG78
CMSG79
電
子
32X128
SEG127
SEG126
SEG125
SEG124
SEG123
SEG122
SEG121
SEG120
SEG119
SEG118
SEG117
SEG116
SEG115
SEG114
SEG113
SEG112
SEG111
SEG110
SEG109
SEG108
SEG107
SEG106
SEG105
SEG104
SEG103
SEG102
SEG101
SEG100
SEG99
SEG98
SEG97
SEG96
SEG95
SEG94
SEG93
SEG92
SEG91
SEG90
SEG89
SEG88
SEG87
SEG86
SEG85
SEG84
SEG83
SEG82
SEG81
SEG80
股
份
有
限
公
司
48X112
64X96
80X80
COM32
COM33
COM34
COM35
COM36
COM37
COM38
COM39
COM40
COM41
COM42
COM43
COM44
COM45
COM46
COM47
SEG111
SEG110
SEG109
SEG108
SEG107
SEG106
SEG105
SEG104
SEG103
SEG102
SEG101
SEG100
SEG99
SEG98
SEG97
SEG96
SEG95
SEG94
SEG93
SEG92
SEG91
SEG90
SEG89
SEG88
SEG87
SEG86
SEG85
SEG84
SEG83
SEG82
SEG81
SEG80
COM32
COM33
COM34
COM35
COM36
COM37
COM38
COM39
COM40
COM41
COM42
COM43
COM44
COM45
COM46
COM47
COM48
COM49
COM50
COM51
COM52
COM53
COM54
COM55
COM56
COM57
COM58
COM59
COM60
COM61
COM62
COM63
SEG95
SEG94
SEG93
SEG92
SEG91
SEG90
SEG89
SEG88
SEG87
SEG86
SEG85
SEG84
SEG83
SEG82
SEG81
SEG80
COM32
COM33
COM34
COM35
COM36
COM37
COM38
COM39
COM40
COM41
COM42
COM43
COM44
COM45
COM46
COM47
COM48
COM49
COM50
COM51
COM52
COM53
COM54
COM55
COM56
COM57
COM58
COM59
COM60
COM61
COM62
COM63
COM64
COM65
COM66
COM67
COM68
COM69
COM70
COM71
COM72
COM73
COM74
COM75
COM76
COM77
COM78
COM79
HE847711
HE80000 SERIES
The RAM Maps of all four different LCD configurations are as the following:
32 COM:
Page
7
COM0
COM1
:
COM15
COM16
:
COM30
COM31
Page
6
COM0
COM1
:
COM15
COM16
April 28, 2003
SEG
[7:0]
7E0H
7E1H
:
7EFH
7F0H
:
7FEH
7FFH
SEG
[71:64]
6E0H
6E1H
:
6EFH
6F0H
SEG
[15:8]
7C0H
7C1H
:
7CFH
7D0H
:
7DEH
7DFH
SEG
[79:72]
6C0H
6C1H
:
6CFH
6D0H
SEG
[23:16]
7A0H
7A1H
:
7AFH
7B0H
:
7BEH
7BFH
SEG
[87:80]
6A0H
6A1H
:
6AFH
6B0H
SEG
[31:24]
780H
781H
:
78FH
790H
:
79EH
79FH
SEG
[95:88]
680H
681H
:
68FH
690H
Page 6 of 26
SEG
SEG
SEG
SEG
[39:32]
[47:40]
[55:48]
[63:56]
760H
740H
720H
700H
761H
741H
721H
701H
:
:
:
:
76FH
74FH
72FH
70FH
770H
750H
730H
710H
:
:
:
:
77EH
75EH
73EH
71EH
77FH
75FH
73FH
71FH
SEG
SEG
SEG
SEG
[103:96] [111:104] [119:112] [127:120]
660H
640H
620H
600H
661H
641H
621H
601H
:
:
:
:
66FH
64FH
62FH
60FH
670H
650H
630H
610H
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
:
COM30
COM31
48 COM:
Page 7,6
COM0
COM1
:
COM15
COM16
:
COM31
COM32
:
COM46
COM47
Page
6, 5, 4
COM0
COM1
:
COM15
COM16
:
COM31
COM32
:
COM46
COM47
64 COM:
Page 7,6
COM0
COM1
:
COM15
COM16
:
COM31
COM32
:
COM47
COM48
:
COM62
COM63
April 28, 2003
億
電
子
股
限
HE847711
司
HE80000 SERIES
SEG[7:0]
7C0H
7C1H
:
7CFH
7D0H
:
7DFH
7E0H
:
7EEH
7EFH
SEG[15:8] SEG[23:16] SEG[31:24] SEG[39:32] SEG[47:40] SEG[55:48]
780H
740H
700H
6C0H
680H
640H
781H
741H
701H
6C1H
681H
641h
:
:
:
:
:
:
78FH
74FH
70FH
6CFH
68FH
64FH
790H
750H
710H
6D0H
690H
650H
:
:
:
:
:
:
79FH
75FH
71FH
6DFH
69FH
65FH
7A0H
760H
720H
6E0H
6A0H
660H
:
:
:
:
:
:
7AEH
76EH
72EH
6EEH
6AEH
66EH
7AFH
76FH
72FH
6EFH
6AFH
66FH
SEG[7:0]
7C0H
7C1H
:
7CFH
7D0H
:
7DFH
7E0H
:
7EFH
7F0H
:
7FEH
7FFH
SEG
[79:72]
580H
581H
:
58FH
590H
:
59FH
5A0H
:
5AEH
5AFH
SEG[15:8]
780H
781H
:
78FH
790H
:
79FH
7A0H
:
7AFH
7B0H
:
7BEH
7BFH
:
67EH
67FH
公
:
6DEH
6DFH
SEG
[71:64]
5C0H
5C1H
:
5CFH
5D0H
:
5DFH
5E0H
:
5EEH
5EFH
:
69EH
69FH
有
:
6FEH
6FFH
SEG
[63:56]
600H
601H
:
60FH
610H
:
61FH
620H
:
62EH
62FH
:
6BEH
6BFH
份
SEG
[87:80]
540H
541h
:
54FH
550H
:
55FH
560H
:
56EH
56FH
SEG[23:16]
740H
741H
:
74FH
750H
:
75FH
760H
:
76FH
770H
:
77EH
77FH
Page 7 of 26
:
65EH
65FH
SEG
[95:88]
500H
501H
:
50FH
510H
:
51FH
520H
:
52EH
52FH
SEG[31:24]
700H
701H
:
70FH
710H
:
71FH
720H
:
72FH
730H
:
73EH
73FH
:
63EH
63FH
SEG
[103:96]
4C0H
4C1H
:
4CFH
4D0H
:
4DFH
4E0H
:
4EEH
4EFH
SEG[39:32]
6C0H
6C1H
:
6CFH
6D0H
:
6DFH
6E0H
:
6EFH
6F0H
:
6FEH
6FFH
:
61EH
61FH
SEG
[111:104]
480H
481H
:
48FH
490H
:
49FH
4A0H
:
4AEH
4AFH
SEG[47:40]
680H
681H
:
68FH
690H
:
69FH
6A0H
:
6AFH
6B0H
:
6BEH
6BFH
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
Page 6, 5
COM0
COM1
:
COM15
COM16
:
COM31
COM32
:
COM47
COM48
:
COM62
COM63
80 COM:
Page
7:3
COM0
COM1
:
COM15
COM16
:
COM31
COM32
:
COM47
COM48
:
COM62
COM63
:
COM78
COM79
SEG[55:48]
640H
641H
:
64FH
650H
:
65FH
660H
:
66FH
670H
:
67EH
67FH
SEG
[7:0]
780H
781H
:
78FH
790H
:
79FH
7A0H
:
7AFH
7B0H
:
7BFH
7C0H
:
7CEH
7CFH
SEG
[15:8]
700H
701H
:
70FH
710H
:
71FH
720H
:
72FH
730H
:
73FH
740H
:
74EH
74FH
億
電
子
SEG[63:56]
600H
601H
:
60FH
610H
:
61FH
620H
:
62FH
630H
:
63EH
63FH
股
份
SEG[71:64]
5C0H
5C1H
:
5CFH
5D0H
:
5DFH
5E0H
:
5EFH
5F0H
:
5FEH
5FFH
有
限
公
SEG[79:72]
580H
581H
:
58FH
590H
:
59FH
5A0H
:
5AFH
5B0H
:
5BEH
5BFH
司
HE847711
HE80000 SERIES
SEG[87:80]
540H
541H
:
54FH
550H
:
55FH
560H
:
56FH
570H
:
57EH
57FH
SEG[95:88]
500H
501H
:
50FH
510H
:
51FH
520H
:
52FH
530H
:
53EH
53FH
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
[23:16] [31:24] [39:32] [47:40] [55:48] [63:56] [71:64] [79:72]
680H
600H
580H
500H
480H
400H
380H
300H
681H
601H
581H
501H
481H
401H
381H
301H
:
:
:
:
:
:
:
:
68FH
60FH
58FH
50FH
48FH
40FH
38FH
30FH
690H
610H
590H
510H
490H
410H
390H
310H
:
:
:
:
:
:
:
:
69FH
61FH
59FH
51FH
49FH
41FH
39FH
31FH
6A0H
620H
5A0H
520H
4A0H
420H
3A0H
320H
:
:
:
:
:
:
:
:
6AFH
62FH
5AFH
52FH
4AFH
42FH
3AFH 32FH
6B0H
630H
5B0H
530H
4B0H
430H
3B0H
330H
:
:
:
:
:
:
:
:
6BFH
63FH
5BFH
53FH
4BFH
43FH
3BFH
33FH
6C0H
640H
5C0H
540H
4C0H
440H
3C0H
340H
:
:
:
:
:
:
:
:
6CEH 64EH 5CEH 54EH 4CEH 44EH 3CEH 34EH
6CFH
64FH
5CFH
54FH
4CFH
44FH
3CFH
34FH
6. LCD Power Supply
The built-in LCD power supply is equipped with input voltage regulator, voltage charge pump and bias
voltage generating circuit with active buffer instead of passive resistor voltage dividing network. The
input voltage is regulated to LVL2 using the internally generated reference voltage. LVL2 can be adjusted
by resistor between LCDGS and LVL2.
LVL2 adjustment guideline: First, the level of VDD must be 0.3 volt higher than LVL2 even at the end of
battery life for the regulator to function properly. For example, if the VDD is expected to drop to 2.2 volts
when battery is low, then the level of LVL2 can only be set at 1.9 volts max.
April 28, 2003
Page 8 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
Voltage charge pump: The LVL2 is then pumped to LVL5 based on the bias setting of MO_LBSR[3..0].
The formula for LVL5 is:
LVL5 = LVL2 / 2 x (1/Bias)
The potential difference between bias voltages LVL1 ~ LVL5 is determined by the bias settings, too.
Voltage
Difference
Ratio
LVL5
1
LVL4
1
LVL3
3 ~ 6.5
1
LVL2
LVL1
1
For example, if the bias setting is 1/7 bias and LVL2 is 2 volts, the LVL5 will be pumped to 7 volts when
the load is light.
Bias
Min. VDD LVL2
2.70
2.40
2.60
2.30
2.50
2.20
2.40
2.10
2.30
2.00
2.20
1.90
2.10
1.80
2.00
1.70
5.0
5.5
6.00
5.75
5.50
5.25
5.00
4.75
4.50
4.25
6.60
6.33
6.05
5.78
5.50
5.23
4.95
4.68
6.0
6.5 7.0 7.5 8.0 8.5 9.0 9.5 10.0
LVL5 = LCD Panel Operating Voltage
7.20 7.80 8.40
6.90 7.48 8.05
6.60 7.15 7.70 8.25
6.30 6.83 7.35 7.88 8.40
6.00 6.50 7.00 7.50 8.00 8.50
5.70 6.18 6.65 7.13 7.60 8.08 8.55
5.40 5.85 6.30 6.75 7.20 7.65 8.10 8.55
5.10 5.53 5.95 6.38 6.80 7.23 7.65 8.08 8.5
Please note that external connections of charge pump capacitors must be made according to the bias
setting, too. Please use the following figure as reference when designing application circuit and LVL5
must be lower than 8.5 volts to prevent chip from breaking down.
April 28, 2003
Page 9 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
For bias: 5, 5.5, 6
億
電
子
股
份
有
限
For bias: 6.5, 7, 7.5, 8
公
HE847711
司
HE80000 SERIES
For bias: 8.5, 9, 9.5, 10
1uF
LVL5
1uF
LVL5
1uF
LVL5
1uF
LVL4
1uF
LVL4
1uF
LVL4
1uF
LVL3
1uF
LVL3
1uF
LVL3
1uF
LCAPVTB
LCAPVTB
LCAPVTB
LCAP4B
LCAP4B
LCAP4B
LCAP4A
1uF
LCAP4A
LCAP3B
1uF
LCAP3A
LCAP3A
1uF
LCAP3B
1uF
LCAP3A
LCAP2B
1uF
LCAP2A
LCAP1B
LCAP1B
LCAP1A
LCAP1A
LCDGS
R
LCAP4A
LCAP3B
1uF
LCAP2B
LCAP2A
1uF
LCAP2B
1uF
LCAP2A
LCAP1B
1uF
LCAP1A
LCDGS
LVL2
1uF
1uF
LVL1
1uF
LCDVX
R
LCDGS
R
LVL2
1uF
1uF
LVL1
1uF
LVL1
1uF
LCDVX
1uF
LCDVX
LVL2
Different duties require different bias settings. There is some theoretical correspondence between the
Duty and Bias Setting. However, it is better to use it as starting point and adjust it with real LCD panel
connected to it to determine the final setting. The theoretic relationship between the duty and bias setting
as following:
Duty Cycle Normal Bias Alternative Bias
32 duty
1/7
1/7.5
48 duty
1/8
1/7.5, 1/8.5
64 duty
1/9
1/8.5, 1/9.5
The bias setting is made by mask option MO_LBSR[3..0].
MO_LBSR[3:0]
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
April 28, 2003
Bias Setting
undefined
1/5
1/5.5
1/6
1/6.5
1/7
1/7.5
1/8
1/8.5
1/9
1/9.5
1/10
1/10.5
1/11
1/11.5
Page 10 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
1111
有
限
公
HE847711
司
HE80000 SERIES
1/12
6.1. LCDC Control register
The gray scale of the LCD driver can be adjusted by GRAY field of LCD. The LCD panel can be blanked
by setting the BLANK field of LCDC register. LCD driver can be totally turned off by clearing LCDE bit
of LCDC.
LCDC
Field
Reset
bit 7
-
Field
GRAY
Value
000
111
BLANK
0
1
LCDE
0
1
bit 6
-
bit 5
-
bit 4
-
bit 3
GRAY
-
bit 2
-
bit 1
BLANK
1
bit 0
LCDE
0
Function
LCD is darkest.
LCD is lightest.
normal display
LCD display blanked. The COM signals of LCD driver output inactive levels
(LVL4 and LVL1) while SEG signals output normal display patterns.
LCD driver disabled, LCD driver has no output signal.
LCD driver Enabled
Please note that LCD driver must be turned off before the MCU goes into sleep mode. In other words,
user must clear the bit 0 (LCDE bit) of LCDC to turn off LCD driving circuit before setting bit6 of OP1
to enter sleep mode. Large current might happen if the procedure is not followed.
Please note that LCD driver uses slow clock as clock source. The LCD display would not display
normally if it worked in Fast clock only mode as the LCD refresh action would be too fast.
7. Oscillators
The MCU is equipped with two clock sources with a variety of selections on the types of oscillators to
choose from. So that system designer can select oscillator types based on the cost target, timing accuracy
requirements etc. Crystal, Resonator or the RC oscillator can be used as fast clock source, components
should be placed as close to the pins as possible. The type of oscillator used is selected by mask option
MO_FXTAL.
MO_FXTAL Fast clock type
0
RC Oscillator.
1
Crystal Oscillator.
April 28, 2003
Page 11 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
FXI
FXI
22p
R
3579545Hz
22p
FXO
Crystal Osc.
RC Osc.
The RC oscillator has a built-in capacitor. An external resistor is needed to connect from FXI to GND to
determine the oscillation frequency. The capacitance of internal RC oscillator is selected by mask option
MO_RCAP[2..0].
MO_RCAP[2..0] Internal RC Cap. OSC. (pF)
000
2
001
4
010
7
011
14
100
20
101
40
110
50
111
60
The following table shows the combinations of R and C, and the resulting frequency. Please note that
oscillation frequency in the table only represents oscillation frequencies of certain samples. The actual
oscillation frequency may vary up to ±15% from lot to lot due to process parameter variations. User must
take this into consideration when using this chip in applications.
Ring Oscillator Frequency Table
R(K ohm )\C (pF)
30.20
19.92
9.98
40
0.8
1.2
2.3
20
1.5
2.2
4.0
14
2.0
2.8
5.1
7
3.0
4.4
7.5
4
4.0
5.6
9.4
2
5.0 MHz
7.0 MHz
11.4 MHz
Two types of oscillator, crystal and RC, can be used as slow clock by mask option MO_SXTAL. If used
for time keeping function or other applications that required the accurate timing, crystal oscillator is
recommended. If the timing accuracy is not important, then RC type oscillator can be used to reduce cost.
MO_SXTAL
0
1
April 28, 2003
Slow clock type
R/C oscillator
Crystal oscillator
Page 12 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
HE847711
司
HE80000 SERIES
SXI
SXI
SXO
SXO
Crystal Osc.
RC Osc.
With two clock sources available, the system can switch among operation modes of Fast, Slow, Idle, and
Sleep modes by the setting of OP1 and OP2 registers as shown in tables below to suit the needs of
application such as power saving, etc.
OP1
Field
Mode
Reset
Bit 7
DRDY
R/W
1
Bit 6
STOP
R/W
0
Bit 5
SLOW
R/W
0
Bit 4
INTE
R/W
0
Bit 3
T2E
R/W
0
Bit 2
T1E
R/W
0
Bit 1
Z
R/W
-
Bit 0
C
R/W
-
OP2
Field
Mode
Reset
Bit 7
IDLE
R/W
0
Bit 6
PNWK
R/W
-
Bit 5
TCWK
R/W
-
Bit 4
TBE
R/W
0
Bit 3
Bit 2
Bit 1
TBS[3..0]
R/W
R/W
-
Bit 0
R/W
-
R/W
-
If the dual clock mode is used, the LCD display, Timer1 and Timer Base will derive its clock source from
slow clock while the other blocks will operate with the fast clock.
8. General Purpose I/O
There are three dedicated general purpose I/O port, PRTC, PRTD and PRT10, while PRT14, PRT15 and
PRT17 are multiplexed with LCD segment driver pins. All the I/O Ports are bi-directional and of nontri-state output structure. The output has weak sourcing (50 µA) and stronger sinking (1 mA) capability
and each can be configured as push-pull or open-drain output structure individually by mask option.
When the I/O port is used as input, the weakly high sourcing can be used as weakly pull-up. Open drain
can be used if the pull-up is not required and let the external driver to drive the pin. Please note that a
floating pad could cause more power consumption since the noise could interfere with the circuit and
cause the input to toggle. A ‘1’ needs to be written to port first before reading the input data from the I/O
pin. If the PMOS is used as pull-up, care should be taken to avoid the constant power drain by DC path
between pull-up and external circuit.
The input port has built-in Schmidt trigger to prevent it from chattering. Hysteresis level of Schmidt
trigger is 1/3*VDD.
April 28, 2003
Page 13 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
VDD
DOUT
公
HE847711
司
HE80000 SERIES
VDD
Q
LATCH
Q'
MO_?PP
PAD
DIN
SCHMIDT Trigger input
As pads of PRT14, PRT15 and PRT17 are shared with LCD segment driver, the function of the pads is
determined by mask options.
PRT170
PRT171
PRT172
PRT173
PRT174
PRT175
PRT176
PRT177
PRT150
PRT151
PRT152
PRT153
PRT154
PRT155
PRT156
PRT157
PRT140
PRT141
PRT142
PRT143
PRT144
PRT145
PRT146
PRT147
LIO17=0
LIO17=1
PRT170
PRT171
PRT172
PRT173
PRT174
PRT175
PRT176
PRT177
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
LIO15=0
LIO15=1
PRT150
PRT151
PRT152
PRT153
PRT154
PRT155
PRT156
PRT157
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
LIO14=0
LIO14=1
PRT140
PRT141
PRT142
PRT143
PRT144
PRT145
PRT146
PRT147
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
Following table is the setting for MO_LIO?[...] and MO_?PP[...] and others related to LCD display
setting and pin assignment features.
MO_LIO?[…] MO_?PP[...]
I/O Port
LCD Pin
0
0
Open-drain output
-0
1
Push-pull output
-1
0
-xx
1
1
-LCD Display
--: Function not available.
xx: Displayable, but may have abnormal leakage current, do not use.
April 28, 2003
Page 14 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
9. Key Scan Circuit
The built-in 4x20 hardware keyboard scan circuit helps to reduce the pin counts where application
requires large key matrix and high LCD pixel count as well as the firmware effort. As key-scan pins are
shared with LCD segment and PRTC4 ~ PRTC7 pins, it is advisable to put resistors between segment pins
and key matrix to avoid shorting the segment pins when two or more keys in the same row are pressed
simultaneously. Two key can be detected simultaneously and the first detected key code is stored in
KEY0 register and the second in KEY1 register respectively. The key code for each key location is listed
in the following table.
Key Loc
SCNO0
SCNO1
SCNO2
SCNO3
SCNO4
SCNO5
SCNO6
SCNO7
SCNO8
SCNO9
SCNO10
SCNO11
SCNO12
SCNO13
SCNO14
SCNO15
SCNO16
SCNO17
SCNO18
SCNO19
SCNI0
0x80
0x81
0x82
0x83
0x84
0x85
0x86
0x87
0x88
0x89
0x8A
0x8B
0x8C
0x8D
0x8E
0x8F
0x90
0x91
0x92
0x93
SCNI1
0xA0
0xA1
0xA2
0xA3
0xA4
0xA5
0xA6
0xA7
0xA8
0xA9
0xAA
0xAB
0xAC
0xAD
0xAE
0xAF
0xB0
0xB1
0xB2
0xB3
SCNI2
0xC0
0xC1
0xC2
0xC3
0xC4
0xC5
0xC6
0xC7
0xC8
0xC9
0xCA
0xCB
0xCC
0xCD
0xCE
0xCF
0xD0
0xD1
0xD2
0xD3
SCNI3
0xE0
0xE1
0xE2
0xE3
0xE4
0xE5
0xE6
0xE7
0xE8
0xE9
0xEA
0xEB
0xEC
0xED
0xEE
0xEF
0xF0
0xF1
0xF2
0xF3
KEY0
0x22
BIT7
R
BIT6
BIT5
Row Index
BIT4
BIT3
BIT2
BIT1
Column Index
BIT0
KEY1
0x23
BIT7
R
BIT6
BIT5
Row Index
BIT4
BIT3
BIT2
BIT1
Column Index
BIT0
The bit 7 of KEY0 and KEY1 is repeat indicator when the same key is scanned for the second time, the R
bit will be cleared to indicate the key is not released yet.
The key-scan function can be turned on/off by mask option MO_LCDKEY.
MO_LCDKEY
0
April 28, 2003
SGKY[43..24] Function
as SEG only
Page 15 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
1
億
電
子
股
份
有
限
公
HE847711
司
HE80000 SERIES
as SEG as well as KEY_SCAN
The pulse width of key-scan signal can be selected by mask options MO_SNCK[1..0].
MO_SNCK[1..0]
00
01
10
11
Key Scan Pulse Width
0.5 sck
1 sck
1.5 sck
2 sck
The strength of key-scan signal can also be selected by mask options MO_SNCK[1..0].
MO_SCDRV[1..0]
00
01
10
11
SCNO0
SCNO1
SCNO2
SCNO3
Key Scan Signal Strength
weakest
strongest
SCNO17
SCNO18
SCNO19
SGKY 24
SGKY 25
SGKY 26
SGKY 27
:
SGKY 41
SGKY 42
SGKY 43
SCNI0
PRTC4
SCNI1
PRTC5
SCNI2
PRTC6
SCNI3
PRTC7
47K
47K
47K
47K
47K
47K
47K
....
10. Timer1
The Timer1 consists of two 8-bit write-only preload registers T1H and T1L and 16-bit down counter. If
Timer1 is enabled, the counter will decrement by one with each incoming clock pulse. Timer1 interrupt
will be generated when the counter underflows - counts down to FFFFH. And the counter will be
automatically reloaded with the value of T1H and T1L.
The clock source of Timer1 is derived from slow clock “SCK” at dual clock or slow clock only mode.
And it comes from the fast clock “FCK” at fast clock only mode.
Please note that the interrupt is generated when counter counts from 0000H to FFFFH. If the value of
T1H and T1L is N, and count down to FFFFH, the total count is N+1. The content of counter is zero
when system resets. Once it is enabled to count at this moment, interrupt will be generated immediately
and value of T1H and T1L will be loaded since it counts to FFFFH. So the T1H and T1L value should be
set before enabling Timer1.
April 28, 2003
Page 16 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
The contents of T1H and
T1L almost loaded into
Timer1 immediately
when Timer1 is turned on
after reset.
子
股
T1H
份
有
限
T1L
公
司
HE847711
HE80000 SERIES
Auto reload when
Timer1 underflow
"Timer1 Counter"
decreases 1
No
Count TO
0xFFFFh
Start Timer1
Interrupt Request.
Yes
T1_INT
The Timer1 related control registers are list as below:
Register Address
Field
Bit position Mode
Description
0x02
TC1_IER
2
R/W 0: TC1 interrupt is disabled. (default)
IER
1: TC1 interrupt is enabled.
0x03
T1L[7:0]
7~0
W Low byte of TC1 pre-load value
T1L
0x04
T1H[7:0]
7~0
W High byte of TC1 pre-load value
T1H
0x09
TC1E
2
R/W 0: TC1 is disabled. (default)
OP1
1: TC1 is enabled.
11. Timer2
Timer2 is similar in structure to Timer1 except that clock source of Timer2 comes from the system clock
“Fsys”/1.5. The system clock “Fsys” varies depending on the operation modes of the MCU.
The Timer2 consists of two 8-bit write-only preload registers T2H and T2L and 16-bit down counter. If
Timer2 is enabled, counter will decrement by one with each incoming clock pulse. Timer2 interrupt will
be generated when the counter underflows - counts down to FFFFH. And it will be automatically reloaded
April 28, 2003
Page 17 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
with the value of T2H and T2L.
Please note that the interrupt signal is generated when counter counts from 0000H to FFFFH. If the value
of counter is N, and count down to FFFFH, the total count is N+1. The content of counter is zero when
system resets. Once it is enabled to count at this time, the interrupt will be generated immediately and
value of T2H and T2L will be loaded since the counter counts to FFFFH. So the T2H and T2L value
should be set before enabling Timer2.
The contents of T2H and
T2L almost loaded into
Timer2 immediately
when Timer2 is turned on
after reset.
T2H
T2L
Auto reload when
Timer2 underflow
"Timer2 Counter"
decreases 1
No
Count TO
0xFFFFh
Yes
Start Timer2
Interrupt Request.
T2_INT
The Timer2 related control registers are list as below:
Register Address
Field
Bit position Mode
Description
0x02
TC2_IER
1
R/W 0: TC2 interrupt is disabled. (default)
IER
1: TC2 interrupt is enabled.
0x05
T2L[7:0]
7~0
W
Low byte of TC2 pre-load value
T2L
0x06
T2H[7:0]
7~0
W High byte of TC2 pre-load value
T2H
0x09
TC2E
3
R/W 0: TC2 is disabled. (default)
OP1
1: TC2 is enabled.
April 28, 2003
Page 18 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
12. Time Base Interrupt
The TB timer is used to generate time-out interrupt at fixed period. The time-out frequency of TB is
determined by dividing slow clock with a factor selected in OP2[3..0]. TBE (Time Base Enable) bit
controls enable or disable of the circuit.
OP2
Field
Mode
Reset
Bit 7
IDLE
R/W
0
Bit 6
PNWK
R/W
-
Bit 5
TCWK
R/W
-
Bit 4
TBE
R/W
0
Bit 3
R/W
-
Bit 2
Bit 1
TBS[3..0]
R/W
R/W
-
Bit 0
R/W
-
TBE Function
0
Disable Time Base
1
Enable Time Base
For example, if the slow clock is 32768 Hz, then the interrupt frequency is as shown in following table.
TBS[3..0] Interrupt Frequency
0000
16.384 KHz
0001
8.192 KHz
0010
4.096 KHz
0011
2.048 KHz
0100
1.024 KHz
0101
512 Hz
0110
256 Hz
0111
128 Hz
1000
64 Hz
1001
32 Hz
1010
16 Hz
1011
8 Hz
1100
4 Hz
1101
2 Hz
1110
1 Hz
1111
0.5 Hz
13. Watch Dog Timer
Watch Dog Timer (WDT) is designed to reset system automatically prevent system dead lock caused by
abnormal hardware activities or program execution. WDT needs to be enabled in Mask Option.
MO_WDTE Function
0
WDT disable
1
WDT enable
To use WDT function, “CLRWDT” instruction needs to be executed in every possible program path
when the program runs normally in order to clears the WDT counter before it overflows, so that the
April 28, 2003
Page 19 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
program can operate normally. When abnormal conditions happen to cause the MCU to divert from
normal path, the WDT counter will not be cleared and reset signal will be generated.
WDT is the enabling signal generated by calculating 32768-clock overflow. Reset Register content is
same as TC1 (Timer1 clock), which uses the same clock count source. WDT function can be generated in
Normal, Slow and Idle Mode. However, WDT will not function during Sleep Mode (as the TC1 clock has
stopped.)
14. Digital-to-Analog Converter
The Digital-to-Analog converter (DAC) converts the 7-bit unsigned speech data written to PWMC to
proportional current output.
PWMC register
DA & PWM Data
Control
Bit 7
0
1
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
DA and PWM output value
PWM O/P driver
-
Bit 1
Bit 0
-
PWME
There are two output paths for the DAC. Either VO or DAO can be selected as output port of DAC by
VOC register when it is enabled. The VO output is primarily intended for speech generation, although it
is not necessary so, while the DAO output path can be used in conjunction with built-in OP comparator to
function as an Analog-to-Digital Converter as required in applications such as speech recording, speech
recognition or sensor interfaces.
OPO
OP
+
-
PWMC[DATA]
DAC
OPIP
OPIN
1
DAO
0
VO
R
VOC[DAC]
VOC[OP]
The DAC is enabled by DAC bit of VOC register. Please note that the DAC bit of VOC register will be
automatically cleared when the system enter Idle or Sleep mode. So it needs to be set again when
returning to Normal mode.
VOC
VOC register
Initial
Bit 7
-
Bit 6
-
Bit 5
-
Bit Name Value
1
DAC 1
April 28, 2003
Bit 4
-
Bit 3
-
Bit 2
0
PWM
Bit 1
0
DAC
Bit 0
0
OP
Function description
DA Enable
Page 20 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
0
股
份
有
限
公
司
HE847711
HE80000 SERIES
DA Disable
15. Pulse-Width Modulation
The pulse-width modulator (PWM) converts 7-bit unsigned speech data written to PWMC data register to
proportional duty cycle of PWM output. PWM module shares the PWMC data register with
Digit-to-Analog Converter. So PWM and DA output can exist at the same time. When PWM circuit is
enabled, it generates signal with duty ratio in proportion to the DA value.
DA = 0x20
DA = 0x80
DA = 0xE0
1 subframe
The PWM bit of VOC register controls register to enable the circuit and output driver. When PWM bit of
VOC is ‘0’, PWME bit and output drivers settings are both cleared. To use PWM for voice output, PWM
bit has to be set to ‘1’ first, then set PWME bit and enable output driver by setting the driver number. If
PWM bit is disabled and enabled again, the setting for driver and PWME bit will be clear.
The Fast Clock is gated through PWME bit of PWMC command register to provide the clock source of
PWM circuit when it is enabled. As PWM needs higher frequency to operate, it cannot generate correct
PWM signal in Slow clock only mode.
When the program enters into Sleep mode or Idle mode, it will automatically turn off all voice outputs by
clearing VOC[2..1] to ”00”. To activate voice output again when returning to Normal Mode, the VOC
register needs to be set again.
The PWM output volume can be adjusted by command register PWMC[6..4]. The bit 6 and 5 control 2
time driver, while bit 4 controls 1 time driver, thus it has 5 levels of driver output. By turning on/off the
internal drivers, the sound level of PWM output can be turned up and down. Please note that this
adjustment apply only to PWM, but not DA output.
PWM output driver selection
PWMC[6..4] Number of Driver
000
off
001
1
010
2
011
3
100
2
101
3
110
4
April 28, 2003
Page 21 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
111
有
限
公
司
HE847711
HE80000 SERIES
5
16. Low Voltage Detection
The low voltage detection is used to detect low battery or low power condition. There are 2 options on the
detection level selectable by DLVL[1..0] of PRT11. The low voltage detection circuit can be turned off by
setting both DLVL1 and DLVL0 bits, and the status of supply power can be read out at bit LVDO of
PRT11.
PRT11
Field
Mode
Reset
Bit 7
-
Bit 6
-
Bit 5
-
DLVL[1..]
00
01
10
11
LVDO
0
1
Bit 4
-
Bit 3
-
Bit 2
Bit 1
Bit 0
LVDO DLVL1 DLVL0
R
W
W
1
1
Function
reserved
Detection level 2.2 volts
Detection level 2.4 volts
Voltage detector off
Function
Battery level low
Battery level high
17. Absolute Maximum Rating
Item
Supply Voltage
Input Voltage
Output Voltage
Operating Temperature
Storage Temperature
Sym.
Rating
Vdd
-0.5V ~ 4.0V
Vin -0.5V ~ Vdd+0.5V
Vo
-0.5V ~ Vdd+0.5V
Top
00C ~ 700C
Tst
-500C ~ 1000C
Condition
18. Recommended Operating Conditions
Item
Supply Voltage
Input Voltage
Operating Frequency
Operating Temperature
Storage Temperature
19.
Sym.
Vdd
Vih
Vil
Rating
2.4V ~ 3.6V
0.9 Vdd ~ Vdd
0.0V ~ 0.1Vdd
8MHz
Fmax
6MHz
0
Top
0 C ~ 700C
Tst -500C ~ 1000C
Condition
Vdd =3.0V
Vdd =2.4V
AC/DC Characteristics
Testing Condition : TEMP=25℃, VDD=3V±10%
April 28, 2003
Page 22 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
Parameters
Symbol
Power consumption
Normal mode current
電
股
份
有
限
公
HE847711
司
HE80000 SERIES
Typ.
Max.
Unit
Condition
IFAST
1
1.5
mA
Slow mode Current
ISLOW
15
25
µA
Idle mode Current
IIDLE
10
20
µA
2M external R/C fast clock
32768 Hz slow clock with LCD
disabled
32768 Hz slow clock with LCD
disabled
Sleep mode Current
ISLEEP
1
µA
220
µA
1/7 bias, no load on SEG and COM pins
0.2
VDD
VDD
Input Pins
Input Pins
I/O, RSTP_N Threshold = 2/3xVDD
(Input from low to high), Threshold =
1/3xVDD (Input from high to low)
Output drive high*1, VOL=2.0V
Output drive low, VOL=0.4V
RSTP_N, VIL = GND, Pull high
Internally
I/O, VIL=GND, if pull high Internally by
user
Additional Current if LCD
ON
I/O specification
Input High Voltage
Input Low Voltage
Min.
子
150
ILCD
VIH
VIL
0.8
Input Hysteresis Width
VHYS
1/3
VDD
Output Source Current
Output Sink Current
IOH
IOL1
Input Low Current
IIL1
20
µA
Input Low Current
IIL2
100
µA
14
8
5
mA
mA
mA
3
mA
50
1.0
µA
mA
PWM and DAC
PWM Output Current
IPWM
10
6
4
DAC Output Current
IoVO
2.5
PWM *2 With 32Ω Loading
With 64Ω Loading
With 100Ω Loading
VO, DAO@ VDD=3V,VO=0~2V, Data
= 7F
Notes:
1.
The “Output Source Current” specification is applicable only to the Push-Pull I/O type.
2.
This specification indicates only one PWM driving capability, and there are totally five built-in drivers, user
can multiply the actual number of driver to get the actual current. (IPWM x N; where N = 0, 1, 2, 3, 4, 5)
April 28, 2003
Page 23 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
HE847711
司
HE80000 SERIES
20. Application Circuit
BUZZER
2
+
FXO
47K
47K
0.1uF
0.1uF
47K
47K
0.1uF
PRTC7
SCNI3
PRTC6
SCNI2
0.1uF
PRTC4
4.7uF
SCNI0
10uF
SCNO17
SCNO18
SCNO19
4.7uF
560K
0.1uF
4.7uF
SEG62
SEG63
SEG64
SEG65
SEG66
SEG67
SEG68
SEG69
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
SEG61
SEG60
SEG59
SEG58
SEG57
SEG56
SEG55
SEG54
SEG53
SEG52
SEG51
SEG50
SEG49
SEG48
SEG47
SEG46
SEG45
SEG44
SEG43
SEG42
SEG41
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
KDS80
SEG70
SEG71
SEG72
SEG73
SEG74
SEG75
SEG76
SEG77
SEG78
SEG79
VDD
RES_N
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
GND
STBN
D_CN
R_WN
REN
LDL
LFR
LVL2
LVL3
LVL5
LVP
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
SEG150
SEG151
SEG152
SEG153
SEG154
SEG155
SEG156
SEG157
SEG158
SEG159
RES
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
STBN
DCN
RWN
REN
LDL
LFR
LVL2
LVL3
LVL5
LVP
SEG80
SEG81
SEG82
SEG83
SEG84
SEG85
SEG86
SEG87
SEG88
SEG89
SEG90
VDD
This application assumes 80 COMX80 SEG configuration,
and 80 SEG Extender KDS80.
SEG141
SEG140
SEG139
SEG138
SEG137
SEG136
SEG135
SEG134
SEG133
SEG132
SEG131
SEG130
SEG129
SEG128
SEG127
SEG126
SEG125
SEG124
SEG123
SEG122
SEG121
SEG120
SEG119
SEG118
SEG117
SEG116
SEG115
SEG114
SEG113
SEG112
SEG111
SEG110
SEG109
SEG108
SEG107
SEG106
SEG105
SEG104
SEG103
SEG102
SEG101
SEG100
SEG99
SEG98
SEG97
SEG96
SEG95
SEG94
SEG93
SEG92
SEG91
1
2
3
4
5
6
7
8
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG48
SEG47
SEG46
SEG45
SEG44
SEG43
SEG42
SEG41
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
PRT147
PRT146
PRT145
PRT144
0.1uF
260K1uF
SGKY24
SGKY25
SGKY26
SGKY27
:
SGKY41
SGKY42
SGKY43
LDL
LFR
LVAG
LGS1
LVREG
LCAP3A
LCAP1B
LCAP1A
LCAP2A
LCAP2B
LCAP4A
LVP
LGS2
LVL5
LVL4
LVL3
LVL2
LVL1
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
COM16
COM17
COM18
COM19
COM20
COM21
COM22
COM23
COM24
COM25
COM26
COM27
COM28
COM29
COM30
COM31
PRT170
PRT171
PRT172
PRT173
PRT174
PRT175
PRT176
PRT177
PRT150
PRT151
PRT152
PRT153
PRT154
PRT155
PRT156
PRT157
PRT140
PRT141
PRT142
PRT143
47K
....
0
SCNO0
SCNO1
SCNO2
SCNO3
FXI
FXO
RST
OPO
OPIP
OPIN
DAO
VO
22p
4MHz
SEG142
SEG143
SEG144
SEG145
SEG146
SEG147
SEG148
SEG149
109
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
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
32
31
30
22p
FXI
33p
32768Hz
58
57
56
55
54
53
52
51
TSTP
FXI
FXO
RSTP_N
OPO
OPIP
OPIN
DAO
VO
GND
LDL
LFR
LCDVTB
LCDVX
LCDGS
LCAP1B
LCAP1A
LCAP2B
LCAP2A
LCAP3B
LCAP3A
LCAP4B
LCAP4A
LVL5
LVL4
LVL3
LVL2
LVL1
COM0
COM1
COM2
C0M3
C0M4
C0M5
C0M6
C0M7
C0M8
C0M9
C0M10
C0M11
C0M12
C0M13
C0M14
C0M15
C0M16
C0M17
C0M18
C0M19
C0M20
C0M21
C0M22
C0M23
C0M24
COM25
COM26
COM27
COM28
COM29
COM30
COM31
PRT170
PRT171
PRT172
PRT173
PRT174
PRT175
PRT176
PRT177
PRT150
PRT151
PRT152
PRT153
PRT154
PRT155
PRT156
PRT157
PRT140
PRT141
PRT142
PRT143
Y2
SXO
SXI
SXO
33p
SXI
PRTD0
PRTD1
PRTD2
PRTD3
PRTD4
PRTD5
PRTD6
PRTD7
PRT100
PRT101
PRT102
PRT103
PRT104
PRT105
PRT106
PRT107
VDD_RAM
PRTC0
PRTC1
PRTC2
PRTC3
PRTC4
PRTC5
PRTC6
PRTC7
PWM
GND_PWM
PRTD0
PRTD1
PRTD2
PRTD3
PRTD4
PRTD5
PRTD6
PRTD7
PRT100
PRT101
PRT102
PRT103
PRT104
PRT105
PRT106
PRT107
VDD
SXI
SXO
HE847711
SEG48
SEG47
SEG46
SEG45
SEG44
SGKY43
SGKY42
SGKY41
SGKY40
SGKY39
SGKY38
SGKY37
SGKY36
SGKY35
SGKY34
SGKY33
SGKY32
SGKY31
SGKY30
SGKY29
SGKY28
SGKY27
SGKY26
SGKY25
SGKY24
PRT147
PRT146
PRT145
PRT144
CMSG32
CMSG33
CMSG34
CMSG35
CMSG36
CMSG37
CMSG38
CMSG39
CMSG40
CMSG41
CMSG42
CMSG43
CMSG44
CMSG45
CMSG46
CMSG47
CMSG48
CMSG49
CMSG50
CMSG51
CMSG52
CMSG53
CMSG54
CMSG55
CMSG56
CMSG57
CMSG58
CMSG59
CMSG60
CMSG61
CMSG62
CMSG63
CMSG64
CMSG65
CMSG66
CMSG67
CMSG68
CMSG69
CMSG70
CMSG71
CMSG72
CMSG73
CMSG74
CMSG75
CMSG76
CMSG77
CMSG78
CMSG79
SEG79
SEG78
SEG77
SEG76
SEG75
SEG74
SEG73
SEG72
SEG71
SEG70
SEG69
SEG68
SEG67
SEG66
SEG65
SEG64
SEG63
SEG62
SEG61
SEG60
SEG59
SEG58
SEG57
SEG56
SEG55
SEG54
SEG53
SEG52
SEG51
SEG50
SEG49
47K
Y1
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
0.1uF
0.1uF
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
PRTC0
PRTC1
PRTC2
PRTC3
PRTC4
PRTC5
PRTC6
PRTC7
PWM
0.1uF
CMSG32
CMSG33
CMSG34
CMSG35
CMSG36
CMSG37
CMSG38
CMSG39
CMSG40
CMSG41
CMSG42
CMSG43
CMSG44
CMSG45
CMSG46
CMSG47
CMSG48
CMSG49
CMSG50
CMSG51
CMSG52
CMSG53
CMSG54
CMSG55
CMSG56
CMSG57
CMSG58
CMSG59
CMSG60
CMSG61
CMSG62
CMSG63
CMSG64
CMSG65
CMSG66
CMSG67
CMSG68
CMSG69
CMSG70
CMSG71
CMSG72
CMSG73
CMSG74
CMSG75
CMSG76
CMSG77
CMSG78
CMSG79
SEG79
SEG78
SEG77
SEG76
SEG75
SEG74
SEG73
SEG72
SEG71
SEG70
SEG69
SEG68
SEG67
SEG66
SEG65
SEG64
SEG63
SEG62
SEG61
SEG60
SEG59
SEG58
SEG57
SEG56
SEG55
SEG54
SEG53
SEG52
SEG51
SEG50
SEG49
R
47uF
PRTC5
VDD
47K
VDD
3.0V
SCNI1
1
VDD
April 28, 2003
Page 24 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
億
電
子
股
份
有
限
公
司
HE847711
HE80000 SERIES
21. Important Note
1.
2.
3.
4.
5.
For accessing any address large than 64KB, users must update TPP first, TPH then TPL. Only by this
order, the pre-charge circuit of ROM will work correctly. 5us waiting is necessary before LDV
instruction is executed since Data ROM is a low speed ROM. Users can not emulate accessing delay
with ICE. So 5us delay should be added by firmware.
LCD driving circuit must be turned off before MCU goes into sleep mode.
Please bond the TSTP_P, RSTP_N and PRTD[7:0] with test points on PCB, which can be soldered
and probed. Connect TSTP_P pin with zero ohm resistor to GND (or copper wire which can be cut
easily on PCB) for good ESD protection. So that IC testing can be done on PCB, if necessary, by
removing the 0-ohm resistor and driving TSTP_P pin to high.
LVP must small than 8.5 Volt. Otherwise IC may breakdown.
Users must call the library “swap_page” in the file swappage.asm of AN029. The real IC register is
different from ICE4.x or ICE5.x. This subroutine make sure that users can run on both real IC and
ICE for page swapping. The program of swappage.asm as following:
.area
swapping_variable(data)
_mapreg1::
.ds
1 ;store page register(R1Bh)
_mapreg2::
.ds
1 ;store page register(R1Ch)
.area
swapping_page(code,pag0)
;======================================================
;swap page function
;======================================================
swap_page::
lda #10h
sta _mapreg1
lda #00h
; P1E_O[2] <--0
to enable Port R1Fh
sta r_iceco
; R_ICECO is write only
lda _mapreg2
sta r_iced
lda _mapreg2
anda #0fh
ora #20h
;Mapping _mapreg2 low nibble to Logical segment2
;
sta r1Ch
sta r_ps1
lda _mapreg2
April 28, 2003
Page 25 of 26
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.
King Billion Electronics Co., Ltd
駿
rorc
rorc
rorc
rorc
anda #0fh
億
電
子
股
份
有
限
公
HE847711
司
HE80000 SERIES
;Mapping _mapreg2 high nibble to Logical segment3
ora #30h
sta r_ps1
sta r1Ch
ret
;
22. Updated Record
Version
Date
April 28, 2003
Section
Original Content
Page 26 of 26
New Content
V1.0
This specification is subject to change without notice. Please contact sales person for the latest version before use.