ETC IN9004D

IN9004-1
IN9004D - INTEGRATED MICROCHIP MICRO-CONTROLLER WITH
MCS-51 SYSTEM OF COMMANDS, SUPERVISORS CIRCUIT AND
EMBEDDED LCD DRIVER FOR APPLICATION IN ENERGY METERS
The microchip is essentially the high efficiency micro-controller, made under the high
fidelity CMOS – technology.
The microchip contains the programs ROM with the capacity of 4,096 bytes, the
embedded data RAM with the capacity of 128 bytes, 32 input/output lines, two 16-bit
timers / counters, guard timer, interrupts system with five vectors and two priority levels,
the serial port for expansion of input/output as the universal asynchronous transceiver, the
embedded synchro generator and synchronization system, the embedded driver for the
LC- display control (number of segments -124, duty rate - 1:4, frame frequency - 50-300
Hz, the LCD operational - voltage 3.6 V).
The micro-controller system of commands complies with the system of commands of
the MCS-51 family. The microchip is initialized (reset) automatically when turning power
on, when the guard timer is overflowed or effected by the RST signal (voltage active low
level) if the external synchronization signal is applied or during the quartz connection.
The LCD control micro-controller microchip with the MCS-51 system of commands
can be successfully applied as the processor element in the electronic power counters.
The microchip has two programmable modes for the reduced power consumption,
the idle mode and the micro-consumption mode. The idle run mode locks the central
processor’s operation, stores the condition of the internal ROM data, the timers,
consecutive port, LCD control unit and the discontinuity system keep on functioning. The
micro-consumption mode turns off the specifying generator, operation of all assemblies of
the microchip stops and the ROM data contents is kept in storage.
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
Structural diagram
Arithmetic-logic
device
RST
EA
Control unit
XTAL2
XTAL1
Timers/counters block
Serial interface and
discontinuity block
Da
t
a
m
a
i
n
l
i
n
e
A
d
dr
e
s
s
b
u
s
Port 0
Port 1
8
P0.0-P0.7
8
P1.0/SEG29
- P1.7/SEG36
6
Programmable counter
Port 2
P2.0-P2.5
Data memory (ROM)
Program Memory
(RAM)
Port 3
LCD control unit
COM1-COM4
SEG5-SEG8, SEG10-SEG28
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
8
P3.0-P3.7
GND UCC
IN9004-1
Leads Destination
Lead
number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description
Destination
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG8
SEG7
SEG6
SEG5
RXD
24
TXD
25
PFAIL
26
OPTO_SW
27
PULSE_IN
28
P3.5/T1
29
30
31
32
33
34
35
ZONE1
ZONE2
XTAL2
XTAL1
GND
RST
EA
36
PULSE_OUT
37
MC_LED
Digit output 27 of LCD segment control
Digit output 26 of LCD segment control
Digit output 25 of LCD segment control
Digit output 24 of LCD segment control
Digit output 23 of LCD segment control
Digit output 22 of LCD segment control
Digit output 21 of LCD segment control
Digit output 20 of LCD segment control
Digit output 19 of LCD segment control
Digit output 18 of LCD segment control
Digit output 17 of LCD segment control
Digit output 16 of LCD segment control
Digit output 15 of LCD segment control
Digit output 14 of LCD segment control
Digit output 13 of LCD segment control
Digit output 12 of LCD segment control
Digit output 11 of LCD segment control
Digit output 10 of LCD segment control
Digit output 8 of LCD segment control
Digit output 7 of LCD segment control
Digit output 6 of LCD segment control
Digit output 5 of LCD segment control
Receiver input of the consecutive port. Exchange rate 9600
bauds.
Output of the consecutive port transmitter. Exchange rate
9600 bauds.
Control input of the voltage level of the primary power supply
source. With voltage reduction at the input below the
threshold value (about 1.25V) it retains contents of the
energy counters in the power self-subsistent memory and
turns the circuit into the micro-consumption mode.
Switching input of the display modes. With the signal
alteration from the high to low level it consequently switches
the display modes.
Frequency signal input of the consumed power from the
primary converter.
Low level at the input ensures programming of the external
power self-subsistent memory through the consecutive
interface.
Input1 of the tariffication zone control
Input2 of the tariffication zone control.
Outlet2 for connection of the quartz resonator 3.6864 МHz
Outlet1 for connection of the quartz resonator 3.6864 МHz
Common outlet.
Input/output Reset.
Test input. It should be connected to the power supply
source of 5V.
Output of the pulses, proportionate to the input signal of the
consumed power with the duration of 50 мс. It is intended for
control of the optical pair light diode.
Output of the pulses, proportionate to the input signal of the
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
Lead
number
Description
38
M_COUNT1
39
M_COUNT2
40
M_COUNT3
41
M_COUNT4
42
43
CLC_OUT
SDA
44
SCL
45
46
47
DIV_B
DIV_A
1h_3h
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
U_L3
U_L2
U_L1
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
Ucc
COM4
COM3
COM2
COM1
SEG28
Destination
consumed power. Pulse porosity 50%. It is intended for
control of the display light diode.
Control output for the mechanical counter of the tariffication
zone 1. Low level pulse duration 100 мс.
Control output for the mechanical counter of the tariffication
zone 2. Low level pulse duration 100 мс.
Control output for the mechanical counter of the tariffication
zone 3. Low level pulse duration 100 мс.
Control output for the mechanical counter of the tariffication
zone 4. Low level pulse duration 100 мс.
Generator output 3.6864 МHz.
Data input/output for connection of the power self-subsistent
memory) (for instance, 24С02).
Synchronization output for connection of the power selfsubsistent memory.
Control input B of the preliminary splitter(divider).
Control input A of the preliminary splitter.
Control input of the operational mode (single phase/three
phase) of the power counter.
Analysis input of the phase 3 voltage availability.
Analysis input of the phase 2 voltage availability.
Analysis input of the phase 1 voltage availability.
Digit output 29 of LCD segment control
Digit output 30 of LCD segment control
Digit output 31 of LCD segment control
Digit output 32 of LCD segment control
Digit output 33 of LCD segment control
Digit output 34 of LCD segment control
Digit output 35 of LCD segment control
Digit output 36 of LCD segment control
Voltage supply of 5V.
Digit output 4 of LCD line control
Digit output 3 of LCD line control
Digit output 2 of LCD line control
Digit output 1 of LCD line control
Digit output 28 of LCD segment control
Abbreviations
- LCD – liquid crystal display
Display modes
When turning power on LCD is tested. Meanwhile, all LCD segments are lit. When the test is over, the
display is switched into the power counter display mode of the appropriate tariffication zone (signal
determined at inputs Z1, Z2). Display is switched with the change of status at input OPTO_SW. Display
mode switching takes place consequently in the following order:
1. Display of the power counter of tariffication zone 1;
2. Display of the power counter of tariffication zone 2;
3. Display of the power counter of tariffication zone 3;
4. Display of the power counter of tariffication zone 4;
5. Display of the total power value counter of all tariffication zones;
6. Display of the current consumed power in watts.
7. Display of the power counter of tariffication zone 1;
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
8. Etc..
Power count management
Input power pulses for the signal alteration at output MC_OUT and pulse
formation at output PULSE_OUT.
PULSE_IN
DIV_B
Fmax = 1500Hz.
Fmin = 1 Hz.
DIV_A
0
0
1
1
Preliminary
splitter
0
1
0
1
Коэффициент
деления at
output
PULSE_OUT
(t high = 50 ms)
1200
2400
4800
240
:5
:10
:20
:1
Коэффициент
деления at
output MC_OUT
(duty=50%)
1200
2400
4800
240
Input power pulses per one kW/hour of the tariff electric power counters.
1Ph/3Ph
DIV_B
DIV_A
Preliminary
splitter
0
0
:5
1
0
1
:10
1
0
:20
1
1
:1
0
0
:5
0
0
1
:10
1
0
:20
1
1
:1
SW4 – two junior register bits CONFIG.
SW4 = 01
1800
3600
7200
360
600
1200
2400
120
SW4 = 10
18000
36000
72000
3600
6000
12000
24000
1200
SW4 = 11
180000
360000
720000
36000
60000
120000
240000
12000
Frequency of the input power pulses for acquisition of the appropriate readings
of the consumed power.
1Ph/
3Ph
PULSE_IN,
Hz
1
0
20
1200
20
1200
Power, W
DIV_B= 0
DIV_A=0
40
2400
120
7200
DIV_B= 0
DIV_A=1
20
1200
60
3600
DIV_B= 1
DIV_A=0
10
600
30
1800
Serial interface
Exchange rate 9600 bauds. 1 start bit. 8 data bits. 1 stop bit.
Control amount is calculated in compliance with CCIT8.
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
DIV_B= 1
DIV_A=1
200
12000
600
36000
IN9004-1
List and structure of exchange commands by the serial interface.
№
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
Command description
Total power counter reading
Tariff counter reading 1
Tariff counter reading 2
Tariff counter reading 3
Tariff counter reading 4
Consumed power readings
Reading of registers ST1, ST2,
CFG
ID number reading
Entry in the total power
counter.
Entry in tariff counter 1
Entry in tariff counter 2
Entry in tariff counter 3
Entry in tariff counter 4
Entry in the configuration
register
Identification number entry
Entry of the display registers of
the LCD additional segments
Entry of the display registers of
the LCD additional segments
Microchip response for
command 0xA0
Microchip response for
command 0xA1
Microchip response for
command 0xA2
Microchip response for
command 0xA3
Microchip response for
command 0xA4
Microchip response for
command 0xA5
Microchip response for
command 0xA6
Microchip response for
command 0xA7
Request for reception of
commands 0xB8, 0xB9
Switching for display of tariff
counter 1
Switching for display of tariff
counter 2
Switching for display of tariff
counter 3
Switching for display of tariff
counter 4
1
0xA0
0xA1
0xA2
0xA3
0xA4
0xA5
0xA6
Byte number
4
5
6
2
3
7
8
9
D1
D2
D3
D4
D5
D6
D7
crc
0xB7
D1
D1
D1
D1
CF
G
ID0
D2
D2
D2
D2
0x
00
ID1
D3
D3
D3
D3
0x
00
ID2
D4
D4
D4
D4
0x
00
ID3
D6
D6
D6
D6
0x
00
0x
00
D6
D7
D7
D7
D7
0x
00
0x
00
D7
crc
crc
crc
crc
crc
D4
D5
D5
D5
D5
0x
00
0x
00
D5
0xB8
D1
D2
D3
0xB9
D8
0xC0
D1
se
g1
D2
se
g2
D3
se
g3
D4
se
g4
D5
se
g5
D6
se
g6
D7
crc
0xC1
D1
D2
D3
D4
D5
D6
D7
crc
0xC2
D1
D2
D3
D4
D5
D6
D7
crc
0xC3
D1
D2
D3
D4
D5
D6
D7
crc
0xC4
D1
D2
D3
D4
D5
D6
D7
crc
0xC5
D1
D2
D3
D4
D5
D6
D7
crc
0xC6
ST
1
ID0
ST
2
ID1
CF
G
ID2
0x
00
ID3
0x
00
0x
00
0x
00
0x
00
0x
00
0x
00
crc
0xA7
0xB0
0xB1
0xB2
0xB3
0xB4
0xB6
0xC7
0xC8
0xD0
0xD1
0xD2
0xD3
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
crc
crc
crc
crc
IN9004-1
When turning power on of the microchip, on completion of the internal test the microchip applies the
message with the reading 0xC6 to the serial interface.
Description of the status register bytes ST1
ST1
Bit 0
Bit 1
Bit 2
Bit3
Bit 4
Bit 5
Bit 6
Bit 7
Purpose of bits
Memory test of programs - Ок
Memory test error of programs
Test of the external power self-subsistent memory - Ок
Test error of the external power self-subsistent memory
Tariff 1
0
Tariff 2
1
Tariff 3
1
Tariff 4
1
0
0
1
0
1
0
0
0
Input logic status Т1
Status of register ST2
ST2
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
Purpose of bits
Input status DIV_A
Input status DIV_B
Input status Z1
Input status Z2
Input status 1Ph/3Ph
Input status U_L1
Input status U_L2
Input status U_L3
Compliance of bits by command 0xB9 to the LCD additional segments.
seg1
seg2
bit 7
S7
S8
bit 6
S6
S9
bit 5
S5
S10
bit 4
S4
S11
bit 3
S1
P
bit 2
S2
I
bit 1
S3
Bit 0
S12
∆U
∆f
seg3
seg4
seg5
A
PLN
data
h3
k3
:
h2
k2
clock
h1
k1
max
Hz
kredit
V
L1
time
var
L2
date
W
L3
seg6
W4
W3
W2
T4
T3
T2
T1
tgϕ
W1
Purpose of the CFG register digits
Bit 1
0
0
1
1
Bit 0
0
1
0
1
CFG (bits 7..2 – are not used)
SW4
Power counter format 0000.000 kW
Power counter format 0000.000 kW
Power counter format 00000.00 kW
Power counter farmat 000000.0 kW
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
Table of compliance for the microchip segment outlets to the LCD wiring
PIN
seg5
seg6
seg7
seg8
seg9
seg10
seg11
seg12
seg13
seg14
COM0
S4
S12
S11
∆f
h1
W
k1
8a
8f
L1
COM1
S5
S3
S10
∆U
h2
var
k2
8b
8g
L2
COM2
S6
S2
S9
I
h3
V
k3
8c
8e
L3
COM3
S7
S1
S8
P
PLN
max
8d
PIN
seg15
seg16
seg17
seg18
seg19
seg20
seg21
seg22
seg23
seg24
COM0
7a
7f
6a
6f
Hz
5a
5f
tg0
4a
4f
COM1
7b
7g
6b
6g
5b
5g
clock
4b
4g
COM2
7c
7e
6c
6e
5c
5e
:
4c
4e
COM3
7h
7d
6h
6d
5h
5d
4h
data
4d
PIN
seg25 seg26 seg27 seg28 seg39 seg30 seg31 seg32 seg33 seg34 seg35
COM0
3a
3f
2a
COM1
3b
3g
2b
COM2
3c
3e
2c
COM3
3h
3d
2h
time
A
2f
1a
1h
date
T1
1i
W1
2g
1b
1g
1f
T2
1j
W2
2e
1c
1n
1e
T3
1k
W3
2d
credit
1m
1d
T4
1l
W4
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
Electric parameters
Item, Parameter,
Unit,
Measuring condition
Low output voltage, V
-outlet: Р2.2/M_COUNT1, P2.3/M_COUNT2, P2.4/M_COUNT3,
P2.5/M_COUNT4, Р3.1/TXD, P0.6/SCL, Р0.7/SDA;
-output: ALE/CLC_OUT, RST
UCC= 5.0В±5%
IOL=1.6 mА
Low output voltage,V
-outlet: Р2.0/PULSE_OUT, P2.1/MC_LED
UCC= 5.0В±5%
IOL1=10 mА
High output voltage,V
-outlet: Р2.0/PULSE_OUT, P2.1/MC_LED, Р2.2/M_COUNT1,
P2.3/M_COUNT2, P2.4/M_COUNT3, P2.5/M_COUNT4, Р3.1/TXD,
Р0.6/SCL, Р0.7/SDA;
-output: ALE/CLC_OUT, RST
UCC= 5.0В±5%
IOH= -80 µА
Low input current, µA
– outlet: Р3.0/RXD, Р3.4/PULSE_IN, Р3.5/T1, Р0.3/1h-3h,
P0.4/DIV_A, Р0.5/DIV_B
UCC= 5.0В±5%
UIN =0.45 V
- input: P3.3/OPTO_SW
UCC= 5.0В±5%
UIN =0.45 V
- input: RST
UCC= 5.0В±5%
UIN =0 V
Hight input current, µА
–input RST
UCC= 5.0В±5%
UIN = UCC
Low input current leakage,µA
- outlet Р0.0/U_L1, P0.1/U_L2, Р0.2/U_L3, Р0.6/SCL, Р0.7/SDA,
Р3.2/PFAIL, Р3.6/ZONE1, Р3.7/ZONE2
UCC= 5.0В±5%
UIN = 0 V
Hight input current leakage,µA
-outlet Р0.0/U_L1, P0.1/U_L2, Р0.2/U_L3, Р0.6/SCL, Р0.7/SDA,
Р3.2/PFAIL, Р3.6/ZONE1, Р3.7/ZONE2
UCC= 5.0В±5%
UIN = UCC
Supply current dynamic, mA
UCC= 5.0В±5%
fC = 3.58 Hz
Output voltage, V
- outlet for driving LCD
COM1-COM4, SEG5-SEG8, SEG10-SEG36
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
Symbol
Min
Max
T, °C
UOL
-
0.5
25±10
-25±3
65±3
UOL1
-
0.5
UOH
0.9UCC
-
IIL
-50
-150
IIL1
-15
-50
IIL2
-
-500
IIH
-
500
ILIL
-
-0,1
ILIH
-
-0,1
ICC
-
5
U1
4.450
4.750
U2
3.263
3.863
IN9004-1
Item, Parameter,
Unit,
Measuring condition
UCC=4.75 В
Io = 0 мкА
Voltage off trigger Shmitt, V
- outlet: P0.0/U_L1, P0.1/U_L2, P0.2/U_L3, P3.3/OPTO_SW,
P3.6/ZONE1, P3.7/ZONE2
UCC= 5.0В±5%
Voltage on trigger Shmitt, V
-outlet: P0.0/U_L1, P0.1/U_L2, P0.2/U_L3, P3.3/OPTO_SW,
P3.6/ZONE1, P3.7/ZONE2
UCC= 5.0В±5%
Voltage off trigger Shmitt, V
-outlet: P3.2/PFAIL
UCC= 5.0В±5%
Voltage on triggerShmitt, V
-outlet: P3.2/PFAIL
UCC= 5.0В±5%
Supply voltage, (signal reset),V
RC-generator intrinsic frequency, Hz
-outlet: COM1-COM4, SEG5-SEG8, SEG10-SEG36
UCC=5.0В±5%
Delay time with supply voltage on , ms
-outlat: RST
UCC=5.0В±5% (no load)
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
Symbol
Min
Max
U3
2.075
2.675
U4
0.888
1.488
UТ1-
1.20
1.80
UТ1+
2.20
2.80
UТ2-
1.15
1.35
UТ2+
1.47
1.45
1.75
1.80
UCCTP
4.05
4.00
4.65
4.70
fRC
50
100
tON
150
300
T, °C
25±10
-25±3
65±3
25±10
-25±3
65±3
25±10
-25±3
65±3
IN9004-1
Package dimensions
Package type: 4402.64-1 (QFP-64)
Q - SUFFIX
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
Application Circuit
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
LCD Connection COM
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by
IN9004-1
LCD Connection SEG
Korzhenevskogo 12, Minsk, 220108, Republic of
Belarus
Fax:
+375 (17) 278 28 22,
Phone: +375 (17) 278 07 11, 212 24 70, 212 24 61,
212 69 16
E-mail: [email protected]
URL: www.bms.by