HT16C22 Electric Meter Application
Figure 8 illustrates an electric meter interface, which shows indications such as the
amount, voltage, current, consumption and remote copy etc.
Application Circuit
R2
VDD
R1
100k
C1
104
C2
104
VDD
SDA
SCL
GND
COM 0
COM 1
COM 2
COM 3
SEG0
SEG1
SEG2
Description: The figure above is an electric meter LCD diagram. The hardware
connection is as follows. Set PA7 to SCL, PA6 to SDA and PA0 as the key.
Electric Meter Applications Using the HT16C22
Figure 8 Electric Meter LCD
S1
IC1
HT68F30
1
PA0/C0X/TP0_0
GND
2
VSS
3
1k
PB4/XT2
4
PB3/XT1
5
PB2/OSC2
6
PB1/OSC1
VDD
7
VDD
8
RES
PB0/RES
IC2
1
VDD
2
SDA
3
SCL
4
VSS
5
COM 0
6
COM 1
7
COM 2
8
COM 3
9
SEG0
10
SEG1
11
SEG2
16
PA1/TP1A
15
PA2/TCK0/C0+
14
PA3/INT0/C0-
13
PA4/INT1/TCK1
12
PA5/C1X/SDO
11
SDA
PA6/SDI/SDA
10
SCL
PA7/SCK/SCL
9
PB5/RSCS
HT16C22
COM 0
COM 1
33
SEG24
COM 2
SEG24
32
SEG23
COM 3
SEG23
31
SEG22
SEG0
SEG22
30
SEG21
SEG1
SEG21
29
SEG20
SEG2
SEG20
28
SEG19
SEG3
SEG19
27
SEG18
SEG4
SEG18
26
SEG17
SEG5
SEG17
25
SEG16
SEG6
SEG16
24
SEG15
SEG7
SEG14
23
SEG14
SEG8
SEG14
SEG9
SEG10
SEG11
SEG12
SEG13
6
1
36
SEG31
COM 0
SEG31
2
35
SEG30
COM 1
SEG30
3
34
SEG29
COM 2
SEG29
4
33
SEG28
COM 3
SEG28
5
32
SEG27
SEG0
SEG27
6
31
SEG26
SEG1
SEG26
7
30
SEG25
SEG2
SEG25
8
29
SEG24
SEG3
SEG24
9
28
SEG23
SEG4
SEG23
10
27
SEG22
SEG5
SEG22
11
26
SEG21
SEG6
SEG21
12
25
SEG20
SEG7
SEG20
13
24
SEG19
SEG8
SEG19
14
23
SEG18
SEG9
SEG18
15
22
SEG17
SEG10
SEG17
16
21
SEG16
SEG11
SEG16
17
20
SEG15
SEG12
SEG15
18
19
SEG14
SEG13
SEG14
LCD1
Need help?
Do you have a question about the HT16C22 and is the answer not in the manual?