Han 2009
Han 2009
This work was sponsor by the New Century Education and Teaching Reform
Project of Heilongjiang Province (project code: 09A004).
*Contact Authors: email˖chiucj@163.com
.. .. ..
ADE7758 .. .. ..
3
3
24
DOUT
23
3
SCLK
22
3
DIN
The circuit of voltage 21
3
.. .. ..
.. .. .
3
18
IRQ
3
ADE7758
3
.
.
SPI interface
The communication of
9
RS485 interface subordinate computer Fig.5 The interface circuit between ADE7758 and C8051
Store module communication module
C8051 C. Host computer system design
Display module Keyboard module Host computer also uses the high performance C8051 as
the master chip, and it communicate with the under machine
through the RS485 interface to implement the two-way digital
Fig.2 The block diagram of hardware communications, and complete data reception and control the
functions of subordinate computer.[5,6] The host databases
Start
communicate with computer through the RS485 interface in
database. It is easy that host computer also is equipped with a System Initialization
128 × 64 dot matrix LCD and 6 keys keyboard for the operator. Power-time record
The interface circuit between C8051, LCD and keyboard is
Unit works NO
shown in Figure 6[7].
/
&
'
B
[
/
&
'
B
G
D
W
D
3
The state of unit
3
3
3
'
%
: ,B
'
%
C8051 Processing YES
3
(
1
Whether link
3
(5
¡¤¡¤¡¤ instructions
3
&
6:
3
&
3
5
9 YES
'
Stop Record time
6&
3
&
6 (
'1
6'
3
YES
'
*
'
:
Record time Faulting
3
/
',
3
/
(
Stop state
3 3
YES
YES Whether link orders
33
Record state
Fault protection
Being fault YES Record time
3
Relay work
currently
' Record state currently
'
'1
33339*
'3333333
Record time YES Whether unit NO
of halting start
. 9
.
.
.
. Fig.7 The main flow chart of subordinate computer
.
Software use modular design, and it can execute signal
sampling and processing for the voltage and current sensor,
5,*7
/()7
':21
2.
83
(6&
Start
System initialization