IN9004-1
IN9004D - I
NTEGRATED
M
ICROCHIP
M
ICRO
-C
ONTROLLER WITH
MCS-51 S
YSTEM OF
C
OMMANDS
,
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: office@bma.by
URL: www.bms.by
IN9004-1
Structural diagram
Arithmetic-logic
device
RST
A
d
dr
e
s
s
b
u
s
Port 0
8
P0.0-P0.7
EA
XTAL2
XTAL1
Control unit
Da
t
a
m
a
i
n
l
i
n
e
Timers/counters block
Port 1
8
P1.0/SEG29
- P1.7/SEG36
Serial interface and
discontinuity block
6
Programmable counter
Port 2
P2.0-P2.5
Data memory (ROM)
Program Memory
(RAM)
Port 3
LCD control unit
8
P3.0-P3.7
COM1-COM4
SEG5-SEG8, SEG10-SEG28
GND U
CC
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: office@bms.by
URL: www.bms.by
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
24
25
Description
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG8
SEG7
SEG6
SEG5
RXD
TXD
PFAIL
Destination
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
26
27
28
29
30
31
32
33
34
35
36
37
OPTO_SW
PULSE_IN
P3.5/T1
ZONE1
ZONE2
XTAL2
XTAL1
GND
RST
EA
PULSE_OUT
MC_LED
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: office@bma.by
URL: www.bms.by
IN9004-1
Lead
number
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
Description
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 self-
subsistent 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
M_COUNT1
M_COUNT2
M_COUNT3
M_COUNT4
CLC_OUT
SDA
SCL
DIV_B
DIV_A
1h_3h
U_L3
U_L2
U_L1
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
Ucc
COM4
COM3
COM2
COM1
SEG28
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: office@bms.by
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
DIV_A
Preliminary
splitter
Коэффицие½т
деле½ия
at
output
PULSE_OUT
(t
high
= 50 ms)
1200
2400
4800
240
Коэффицие½т
деле½ия
at
output MC_OUT
(duty=50%)
1200
2400
4800
240
Fmax = 1500Hz.
Fmin = 1 Hz.
0
0
1
1
0
1
0
1
:5
:10
:20
:1
Input power pulses per one kW/hour of the tariff electric power counters.
1Ph/3Ph
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.
DIV_B
DIV_A
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
DIV_B= 0
DIV_A=0
40
2400
120
7200
DIV_B= 0
DIV_A=1
20
1200
60
3600
Power, W
DIV_B= 1
DIV_A=0
10
600
30
1800
DIV_B= 1
DIV_A=1
200
12000
600
36000
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: office@bma.by
URL: www.bms.by