CN201724980U - Electric energy metering chip with single-wire two-way serial communication interface - Google Patents

Electric energy metering chip with single-wire two-way serial communication interface Download PDF

Info

Publication number
CN201724980U
CN201724980U CN2009201304403U CN200920130440U CN201724980U CN 201724980 U CN201724980 U CN 201724980U CN 2009201304403 U CN2009201304403 U CN 2009201304403U CN 200920130440 U CN200920130440 U CN 200920130440U CN 201724980 U CN201724980 U CN 201724980U
Authority
CN
China
Prior art keywords
electric energy
chip
module
bus
calibration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CN2009201304403U
Other languages
Chinese (zh)
Inventor
赵琮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Renergy Technology Co.,Ltd.
Original Assignee
SHENZHEN RENERGY TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN RENERGY TECHNOLOGY CO LTD filed Critical SHENZHEN RENERGY TECHNOLOGY CO LTD
Priority to CN2009201304403U priority Critical patent/CN201724980U/en
Application granted granted Critical
Publication of CN201724980U publication Critical patent/CN201724980U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The utility model provides an electric energy metering chip with a single-wire two-way serial communication interface. Besides an electric energy metering and electric power parameter measurement and calibration module, an in-chip high-precision reference voltage source module and a system control module, which are all included by a general electric energy metering chip, the electric energy metering chip further comprises a single-wire two-way serial communication interface control module, so that the chip is connected with a main-control singlechip of an electronic ammeter system through only one electric wire to realize two-way serial communication between the chip and the singlechip. Therefore, the utility model can not only simplify design and save the area of a printed circuit board, but also enhance the performance of an ammeter, disclose more electric power parameter results, and support a software ammeter calibration method, thereby making automatic calibration of the ammeter possible, greatly improving the automation degree of ammeter production process, and improving production efficiency and production quality.

Description

A kind of electric energy computation chip with mongline bidirectional serial communication interface
Technical field
The utility model relates to microelectronics technology, especially has the electric energy computation chip of serial communication interface.
Background technology
Electric energy computation chip and single-chip microcomputer are the chief components of modern full electronic electric energy meter; As shown in Figure 1, be that the system of the single-phase active electric energy meter of electronic type of present main flow constitutes, electric energy computation chip 101 is finished active power and is calculated, and average power content is changed into frequency and exports digital pulse signals 104 by the dedicated pin 103 of chip; If electric energy computation chip 101 comprises reactive energy and apparent electric energy function, so also need 2 special pin output output pulses separately; Single-chip microcomputer 102 uses specific pin one 05 to connect the pulse output pin 103 of electric energy computation chip 101, calculates the electric energy metrical results by the pulse signal 104 of counting the expression average power of conducting on the connecting line; The shortcoming of this electric energy computation chip 101 is: and information transmission mode is unidirectional, special use between the single-chip microcomputer, if also will transmit reactive energy and apparent electric energy, also needs consumed power computation chip 101 and single-chip microcomputer 102 each 2 pin resource; Except the electric energy metrical result, can't open more electric parameter measurement result; Can not realize the software auto-adjustment, can only carry out calibration by the mode of regulating the sample resistance network, this hardware calibration mode must realize with the resistor network that the mode of electric soldering iron hand-manipulated is adjusted on the circuit board, make that the production efficiency of electric energy meter is low, quality does not guarantee, is difficult to satisfy electric energy meter production firm requirement of large-scale production;
For solving the shortcoming of this electric energy meter, has SPI (Serial Peripheral Interface, Serial Peripheral Interface) electric energy computation chip 201 of communication interface arises at the historic moment, as shown in Figure 2, be that the system based on the single-phase active electric energy meter of electronic type of the electric energy computation chip 201 with SPI communication interface of present market constitutes; Spi bus 204 is a kind of high speed, duplex, synchronous universal serial bus; Electric energy computation chip 201 is as the slave unit of spi bus 204, single-chip microcomputer 202 is as spi bus 204 main equipments, single-chip microcomputer 202 can be by the comprehensive control of spi bus 204 realizations to electric energy computation chip 201, except output pulses output pin 203, single-chip microcomputer 202 can also directly obtain the electric energy metrical result by the result parameter of spi bus 204 visit electric energy computation chips 201 inside and the result parameter storage unit in the calibration parameter memory module 205, and electric energy computation chip 201 can provide more result parameter, such as the electric current and voltage effective value, electric voltage frequencies etc., single-chip microcomputer 202 also can obtain these result parameters easily by the result parameter storage unit in spi bus 204 visit result parameters and the calibration parameter memory module 205; The effect of output pulses output 203 just simplification outputs to calibration console as calibration pulse or driving LED indication, and no longer obtains electric energy metrical result's unique channel as single-chip microcomputer 202; In addition, single-chip microcomputer 202 can also be realized software calibration function by result parameter and the calibration parameter storage unit in the calibration parameter memory module 205 in the spi bus 204 configuration electric energy computation chips 201, can provide with respect to the more calibration item of hardware calibration, can improve the electric energy meter calibration accuracy, this software calibration mode makes that also calibration is achieved automatically, significantly improve electric energy meter production efficiency, reduce the influence of human factor the quality of production.
" SPI slave unit interface module+electric energy metrical module ", be to have the framework that the bidirectional communication function electric energy computation chip generally adopts at present, this electric energy computation chip has also been introduced new shortcoming: spi bus need take 4 lines, this will take at least 3 pin resources of single-chip microcomputer and finish communication function, increase electric energy meter circuit design difficulty, taken the area of more electric energy watch circuit plate;
The utility model content
Technical problem to be solved in the utility model is, overcome existing deficiency with electric energy computation chip of SPI communication interface, reduce the too much pin resource consumption and the circuit board space consumption that bring because electric energy computation chip increases bidirectional communication function, reduce interconnected cost.
For addressing the above problem, the utility model proposes a kind of electric energy computation chip 301 with mongline bidirectional serial communication interface, as shown in Figure 3, one of 301 needs of described electric energy computation chip connect electric wire 309 just can realize and single-chip microcomputer 311 both-way communications that described electric energy computation chip 301 comprises:
Mongline bidirectional serial communication interface control module 307, described electric energy computation chip 301 links to each other with single-chip microcomputer 311 by mongline bidirectional universal serial bus 309, described electric energy computation chip 301 is slave units of this single bus 309, and single-chip microcomputer is as the main equipment of this single bus 309, mongline bidirectional serial communication interface control module 307 is used to resolve mongline bidirectional universal serial bus 309 slave unit side's agreements, realizes the mongline bidirectional serial communication function between described electric energy computation chip 301 and the single-chip microcomputer 311; Bus master single-chip microcomputer 311 can read the electrical energy parameter result of described electric energy computation chip 301 by this single serial bus 309, also calibration parameter can be write described electric energy computation chip 301, realizes the software calibration function;
Electric energy metrical and electric parameter measurement and calibration module 302 are mainly used in the metering and the calibration of electric flux, also are used for the measurement and the calibration of other parameters of electric power; Described electric flux comprises: active energy, reactive energy, apparent electric energy etc., but be not limited thereto; Described parameters of electric power comprises: active power, reactive power, applied power, active energy, reactive energy, apparent electric energy; Voltage effective value, current effective value, mains frequency, power factor, electric current and voltage phase angle, voltage phase sequence, electric current phase sequence, harmonic power, harmonic energy, fundamental power, first-harmonic energy etc., but be not limited thereto; Electric energy metrical and electric parameter measurement and calibration module 302 comprise: analog to digital converter (ADC) module 303, calculation of parameter and calibration module 304, result parameter and calibration parameter memory module 305, power-frequency inverted and pulse output module 306 etc.; Analog to digital converter (ADC) module 303 is sampled the output simulating signal (322 and 323) of the sample circuit (320 and 321) of the electric current and voltage passage of described electric energy computation chip 301 outsides and is converted to the high-precision digital signal 323 of passage separately respectively, external voltage passage and current channel can be each 1 the tunnel, perhaps multichannel is more decided according to the range of application of described chip; 2 road ADC be can realize in analog to digital converter (ADC) module 303,1 road voltage channel and 1 road current channel are respectively applied for; Also can be multichannel, corresponding and plurality of voltages and multichannel electric current; Also can adopt time-sharing multiplex unit matching 1 road ADC to realize the analog-digital conversion function of multiple signals; But be not limited thereto; Calculation of parameter and calibration module 304 are used for the result with the digital signal 323 usefulness corresponding digital filter circuits of described analog to digital converter (ADC) module 303 outputs and arithmetic circuity calculating electric flux and other parameters of electric power, and, result parameter stored in result parameter and the calibration parameter memory module 305 go according to the calibration parameter Configuration Values calibration result parameter in result parameter and the accurate parameter memory module 305; Result parameter stores result parameter into and accurate parameter memory module 305 is used to preserve the calibration parameter of electric energy metrical result, electric parameter measurement result and single-chip microcomputer configuration, parameter result is calculated and is write by described calculation of parameter and calibration module 304, and single-chip microcomputer 311 can read the parameter result by mongline bidirectional serial communication bus 309; Calibration parameter is write by mongline bidirectional serial communication bus 309 by single-chip microcomputer 311, described calculation of parameter and calibration module 304 read calibration parameter, and go in the calculating according to suitable algorithm adding parameter result, reach the purpose of calibration calculations parameter, the storage medium of this module can be by register (Register), random-access memory (ram), flash memory realizations such as (Flash), but is not limited thereto; Power-frequency inverted and pulse output module 306 convert the average power performance number to periodic digital pulse signal 310 outputs, can be connected to the meter calibration device as the electric flux calibration pulse, perhaps be used for the driving LED pilot lamp, also can be connected to single-chip microcomputer 311, single-chip microcomputer 311 calculates electric flux by count pulse, because the existence of mongline bidirectional universal serial bus 309, can allow single-chip microcomputer 311 obtain the electric energy metrical result equally, so the function that above-mentioned the 3rd function be described to be used to count electric flux has just become non-essential function, this pulsed power signal 310 just there is no need to be connected to the pin resource that single-chip microcomputer 311 gets on to consume single-chip microcomputer 311;
Other modules 308, refer to be used to keep the module of chip operate as normal necessity, as above reply a module, down Monitor Unit, Clock management module etc. by cable, the module of additional function perhaps is provided, as high precision reference voltage source in the sheet, stable reference voltage etc. is provided for described analog to digital converter (ADC) module 303, but is not limited thereto, the utility model is not also done any restriction to these modules.
The technical solution of the utility model comprises: a kind of electric energy computation chip with mongline bidirectional serial communication interface, described chip be a kind of and the electronic electric energy meter system in only need between the main equipment (normally single-chip microcomputer) wire just can realize the chip that is used for electric energy metrical and electric parameter measurement of both sides' bidirectional linked list communication, described chip comprises mongline bidirectional serial communication interface control module, electric energy metrical and electric parameter measurement and calibration module, reaches other modules etc.
Described mongline bidirectional serial communication interface control module, wherein, make described electric energy computation chip only need a wire just can realize and peripheral main control equipment between both-way communication, peripheral main equipment can read the electric energy metrical and the electric parameter measurement result of described electric energy computation chip by this single serial bus, also calibration parameter can be write described electric energy computation chip, realize the calibration function of electric energy and other parameters of electric power with software mode.
Described electric energy metrical and electric parameter measurement and calibration module, wherein: be mainly used in the metering and the calibration of electric flux, also be used for the measurement and the calibration of other parameters of electric power, described electric flux comprises: active energy, reactive energy, apparent electric energy etc.; Described parameters of electric power comprises: active power, reactive power, applied power, voltage effective value, current effective value, mains frequency, power factor, electric current and voltage phase angle, voltage phase sequence, electric current phase sequence, harmonic power, harmonic energy, fundamental power, first-harmonic energy etc., but be not limited thereto; Electric energy metrical and electric parameter measurement and calibration module comprise: analog to digital converter (ADC) module, calculation of parameter and calibration module, result parameter and calibration parameter memory module, power-frequency inverted and pulse output module.
Described other modules, wherein: be used to keep the module of chip operate as normal necessity, as above reply a module, down Monitor Unit, Clock management module etc. by cable, but be not limited thereto; The module of additional function perhaps is provided,, stable reference voltage etc. is provided for described analog to digital converter (ADC), but is not limited thereto as high precision reference voltage source in the sheet.
Described analog to digital converter (ADC) module, wherein: be used for the simulating signal sampling that the sample circuit of external voltage current channel is exported and be converted to high-precision digital signal respectively; 2 road ADC be can realize in analog to digital converter (ADC) module, 1 road voltage channel and 1 road current channel are respectively applied for; Also can be multichannel, corresponding and plurality of voltages and multichannel electric current; Also can adopt time-sharing multiplex unit matching 1 road ADC to realize the analog-digital conversion function of multiple signals; But be not limited thereto.
Described calculation of parameter and calibration module, wherein: be used for the digital signal of described analog to digital converter (ADC) output is calculated the result of electric flux and other parameters of electric power with corresponding digital wave filter and arithmetic operation unit, and according to the Configuration Values calibration result parameter of calibration parameter register; The circuit of this module can cooperate software program or microcode to realize by general or special-purpose digital signal processor (DSP), also can use special-purpose digital operational circuit to realize, perhaps partial function is realized by special digital circuit, partial function is realized by general or special DSP, but is not limited thereto.
Described result parameter and calibration parameter memory module, wherein: the calibration parameter that is used to preserve electric energy metrical result, electric parameter measurement result and single-chip microcomputer configuration; The storage medium of this module can be any storage medium, as register (Register), random-access memory (ram), flash memory (Flash) etc., but is not limited thereto.
Described power-frequency inverted and pulse output module, wherein: convert the average power performance number to periodic pulse signal output, can be connected to the meter calibration device as the electric flux calibration pulse, perhaps be used for the driving LED pilot lamp, also can be connected to single-chip microcomputer, single-chip microcomputer calculates electric flux by count pulse.
Effect of the present utility model is: the electric energy computation chip that the utlity model has the single phase bidirectional serial communication interface, make only to distinguish between single-chip microcomputer and the electric energy computation chip and just realize the bidirectional linked list communication with a connection electric wire, solved the electric energy computation chip function singleness of no communication port, shortcoming that can't the software calibration, make electronic electric energy meter that more electric energy and parameters of electric power can be provided, more calibrating mode is provided, help improving calibration accuracy, help improving electric energy meter production automation degree, reduce the influence of human factor the electric energy meter quality of production; The electric energy computation chip communication interface of simultaneously also having avoided having the SPI communication interface takies too much pin problem of resource, and the Printed Circuit Board Design that can be electronic electric energy meter is saved arrangement space, has reduced design difficulty, brings bigger design flexibility.
Description of drawings
Fig. 1 is a kind of functional-block diagram of the single-phase active electric energy meter of electronic type of the electric energy computation chip based on no communication interface
Fig. 2 is a kind of functional-block diagram of the single-phase active electric energy meter of electronic type based on the electric energy computation chip with SPI interface
Fig. 3 is a kind of functional-block diagram of the electronic electric energy meter based on the electric energy computation chip with single serial bus of the present utility model
Fig. 4 is two kinds of possible topological structures of RSIO bus in this implementing method
Fig. 5 is a RSIO mount structure in this implementing method
Fig. 6 is the Manchester's cde rule that RSIO adopts in this implementing method
Fig. 7 be in this implementing method in the RSIO bus protocol to the definition of bit (Bit)
Fig. 8 is the definition that the RSIO bus master sends data byte (Byte) in this implementing method
Fig. 9 is the definition that the RSIO bus master receives data byte (Byte) in this implementing method,
Figure 10 is total line write transactions frame (Frame) structure of RSIO and sequential definition in this implementing method
Figure 11 is RSIO bus read operation frame (Frame) structure and sequential definition in this implementing method
Embodiment
As shown in Figure 3, if the electric energy computation chip among the figure 301 is used for single-phase active energy metering, and provide parameters of electric power such as voltage effective value, current effective value and electric voltage frequency, the formation of chip can be so: mongline bidirectional serial communication interface control module 307, realize single bus slave unit side protocol analysis; Analog to digital converter (ADC) module 303, contain 2 road ADC, respectively the analog signal conversion behind 1 road electric current and 1 road voltage sample is become digital signal, the parameter of calculation of parameter and calibration module 304 meterings comprises: active power, active energy, voltage effective value, current effective value and electric voltage frequency etc.; Calibration parameter comprises: ammeter constant, gain compensation, phase correction, active power side-play amount, voltage effective value side-play amount, current effective value side-play amount, fast-pulse constant etc.; Only link to each other by mongline bidirectional universal serial bus 309 between this electric energy computation chip 301 and the single-chip microcomputer 311, single-chip microcomputer 311 obtains the electric energy metrical result parameter by single bus 309, and the transmission calibration parameter is to electric energy computation chip; Single-chip microcomputer is kept at nonvolatile memory chip 312 with the measuring parameter result, perhaps obtains calibration parameter from nonvolatile memory chip 312; Single-chip microcomputer 311 control display driver chips 313 are delivered to the measuring parameter result on the display 314; Link to each other with peripheral main equipment by RS485 or other communication interface chips 315, can realize auto-adjustment, software meter-reading function.
The mongline bidirectional serial communication bus that the utility model is mentioned, the pin number that only the realization bus is taken in the utility model design limits, so long as with single-chip microcomputer between only need one and be connected the electric energy computation chip that electric wire just can be realized both sides' bidirectional linked list communication, all belong to protection category of the present utility model;
At this, with regard to the agreement of single bus, a kind of feasible concrete enforcement is proposed, be referred to as RSIO (Renergy Single Wire Input/Output) bus, the signal name of bus is SWI (SingleWire Interface); Transport addresses information, control information and data message on the RSIO bus; The RSIO bus is used master/slave both-way communication, and equipment sending data (TX DATA) is defined as transmitter to bus, and equipment receiving data then is defined as receiver; Main equipment and slave unit can work in and receive and transmit status.The RSIO bus must be initiated operation by main equipment (normally single-chip microcomputer or processor etc.); As shown in Figure 4, be two kinds of possible topological structures of the formation of RSIO bus; First kind be one main one from system, single-chip microcomputer is as the RSIO bus master, electric energy computation chip is as the unique slave unit of RSIO bus; Second kind be one much more main from system, single-chip microcomputer is as the unique main equipment of RSIO bus, and that slave unit has is a plurality of, need carry out device coding this moment to slave unit, so that the addressing of main equipment, when bus is idle, main equipment is initiated operation, elder generation's transmitting apparatus coded message (DeviceID), all slave units all receive and decipher the device coding information (DeviceID) that main equipment sends, and consistent with the coding of oneself if certain slave unit decoding is found, this slave unit continues to receive follow-up information so, the information that other device abandons is follow-up is initiated up to new operation;
RSIO adopts the maltilevel security measure: data bit (bit) adopts Manchester's cde, and data are the unit transmission with the byte, and the transmission byte contains check bit, byte receiving end feedback acknowledgment position, comprise in the frame structure verification and;
RSIO has adopted and has taken into account safety and synchronization mechanism flexibly: adopt dynamic synchronization mechanism, make bus slave possess the adaptive characteristic on the speed, design convenient; By byte-header synchronization mechanism is arranged all, avoid long frame to operate error accumulation constantly; The synchronous head sign is obvious;
The RSIO bus is in the both-way communication process, main equipment and slave unit are wanted the driven bus, avoid alternately producing bus contention because of bus driver, RSIO has designed reliable turnover mechanism: the RSIO mount structure is input buffer, input pull-up resistor and a ternary push-pull type output driver, as shown in Figure 5, this also is a kind of mount structure relatively commonly used, the general input/output port of the single-chip microcomputer structure that comes to this; When this mount structure can guarantee that equipment receives data as bus receiver, it is invalid that the output enable signal is placed, and this equipment can not go to drive bus and cause bus contention so, and equipment is as bus transmitter the time, the output enable signal is placed effectively, just can drive bus; The RSIO bus operation is always initiated by main equipment, when exchange takes place in bus driver, leave enough alternate cycle in the RSIO bus protocol, allow transmitter close output enable, and receiver is not opened output enable yet, though this moment main equipment or slave unit, do not drive bus, bus is because of the effect of pull-up resistor, and is pulled to high level; In the design of RSIO bus protocol, in the time that bus replaces, bus receiver is ignored the bus level state;
The data bit of RSIO bus adopts G.E.Thomas, a kind of Manchester's cde (Manchester Encoding) that people such as Andrew S.Tanenbaum proposed in 1949, coding rule as shown in Figure 6, with respect to common non return-to-zero code (NRZ Encoding), the characteristics of this coding are: a saltus step is arranged in the middle of bit period (TBIT); NRZ sign indicating number 0 is encoded into the saltus step from the low level to the high level, and 1 being encoded into from the high level to the low level of NRZ sign indicating number; So when representing 0 or 1 of a bus data with the level of two inequalities, too much continuous 0 or 1 data appear in passable avoiding on the universal serial bus, strengthen the distinguishability and the antijamming capability of bus data from effect read fortune;
As shown in Figure 7, it is the definition of bit among the RSIO (Bit), jump to low level at a bit period (TBIT) device from high level, the expression 1, from low transition to, the expression 0, when receiving data, the value of the center (1/4 and 3/4 place of bit period) of two code elements behind the difference sample code, if the level of inequality, presentation code is correct; Transmit the synchronous head (SYNC) that the incipient stage sends two continuous current byte transmission of 1 and 0 expression by main equipment in byte (Byte); Keep high level to surpass half bit period (TBIT/2), idle (IDLE) code element of expression if idle code element occurs in during the byte transmission, can be considered to the code element of mistake; During byte (Byte) transmits, when the generation bus driver replaces, bus transmitter discharges bus earlier, time is 1/4th bit periods (TBIT/4), and at this device, next bus transmitter does not drive bus yet, at this moment, bus is because of the effect of pull-up resistor, by on draw and be that high level, this code element are called alternately position (TA) of bus driver;
The information of RSIO bus is that unit partition group bag transmits with byte (Byte) all, a byte (Byte) comprises 8 positions (bit), and when transmitting, need add the control information that some are auxiliary: before in byte (Byte), it is synchronous head (SYNC) sign, being used to stipulate the speed of this byte transmission, also is the opening flag of byte transmission; After byte (Byte) transmission, additional odd parity bit (odd Parity bit) is followed general odd algorithm, byte (Byte) is calculated the odd parity bit that produces response; Afterwards in the response bit (Response bit) of additional receiver feedback, receiver is made the response of response according to the judgement of coding with to the judgement of odd parity bit and to the judgement of byte information, if judge errorlessly, response bit is 1, otherwise, be 0;
Fig. 8 is the definition that main equipment sends data byte (Byte) among the RSIO, owing to be both-way communication, main equipment and slave unit can send data, and for convenience, this figure sends data instance with main equipment; Bus Driver is that M represents by bus master as bus transmitter among the figure, and Bus Driver is that S represents by bus slave as bus transmitter, and main equipment is as receiver, and Bus Driver is that R represents that bus master and slave unit all discharge bus; MP represents it is the odd parity bit (Master odd Parity bit) that is sent by bus master, SR represents the response bit (Slave Response bit) by the bus slave transmission, SR is 1, the correct reception of expression slave unit before the data that send of main equipment, SR is 0, the data that main equipment sent before the expression slave unit was thought are wrong, as code error, check bit mistake or byte content mistake; Numeral transmits position (bit) number of byte (Byte); As shown in the figure, it is to be initiated by bus master that each byte sends, and sends byte of sync head (SYNC) earlier, and synchronous head (SYNC) determines the bit period (TBIT) that this sends oneself for the time in low level stage; Main equipment sends synchronous head (SYNC) afterwards, then according to identical rate sending data byte (BYTE), send odd parity bit (MP) then, after distributing, main equipment discharges bus, makes to produce alternately position (TA) of bus on the bus, and slave unit sends response bit (SR) then, since then, process end that byte sends; Send or Sample Edge among the figure, the expression main equipment is as receiving and send the timer clock that data bit (bit) needs, as shown in the figure, main equipment at the timer clock edge, sends corresponding data bit (bit) as transmitter, main equipment is during as receiver, because bus is the effect of position (TA) alternately, 1/4 and 3/4 place in data with clock information (bit) cycle (TBIT) has been aimed at the clock edge, two code elements of data with clock information (bit) after Manchester's cde of can sampling just;
Fig. 9 is the definition that bus master receives data byte (Byte) among the RSIO, and main equipment and slave unit can receive data, and for convenience, this figure receives data instance with main equipment; Bus Driver is that M represents by bus master as bus transmitter among the figure, and Bus Driver is that S represents by bus slave as bus transmitter, and main equipment is as receiver, and Bus Driver is that R represents that bus master and slave unit all discharge bus; SP represents it is the odd parity bit (Slave odd Parity bit) that is sent by bus slave, MR represents the response bit (MasterResponse bit) by the bus slave transmission, MR is 1, the correct reception of expression main equipment before the data that send of slave unit, MR is 0, the data that slave unit sent before the expression main equipment was thought are wrong, as code error, check bit mistake or byte content mistake; Numeral transmits position (bit) number of byte (Byte); As shown in the figure, it is to be initiated by bus master that each byte receives, and sends byte of sync head (SYNC) earlier, and synchronous head (SYNC) determines the bit period (TBIT) that this sends oneself for the time in low level stage; After main equipment sends synchronous head, discharge bus 1/4th bit periods (TBIT/4) time, make and produce alternately position (TA) of bus on the bus, afterwards, slave unit drives bus, according to and the rate sending data byte (BYTE) of synchronous head (SYNC) agreement, send odd parity bit (SP) then, after distributing, slave unit discharges bus, makes to produce alternately position (TA) of bus on the bus, and main equipment sends response bit (MR) then, since then, process end that byte sends; Sendor Sample Edge among the figure, the expression main equipment receives and sends the timer clock that data bit (bit) needs, as shown in the figure, main equipment at the timer clock edge, sends corresponding data bit (bit) as transmitter, main equipment is during as receiver, because bus is the effect of position (TA) alternately, makes the clock edge aim at 1/4 and 3/4 place in data with clock information (bit) cycle (TBIT), two code elements of data with clock information (bit) after Manchester's cde of can sampling just;
The frame of bus (Frame) operation is initiated by bus master, should comprise address information, control information and data message in the frame of bus (Frame) organization definition, is that unit partition group bag sends with byte (Byte) then; The unit that address information need be visited in order to the decoding address bus, address information can comprise the fast block encoding (Bank ID) of the inside different memory of device coding (DeviceID), slave unit of slave unit, and the geocoding of storer or register etc., for one much more main from system, the third system as shown in Figure 4; Control information is used to show frame operation types (as the length of read operation, write operation, special command, operand etc.) information, also comprises the verification and the information that are sent by data receiver; Concrete condition is decided according to system requirements; Data message comprises write data and read data;
Frame (Frame) structure of RSIO bus regulation from system, comprises order (COMMAND), data (DATA) and verification and (CHKSUM) three parts at one described in Fig. 4 main; Order (COMMAND) comprises control information and address information, such as indicating back data (DATA) length, indicating this operation is read operation or write operation, also can make up definition special command etc. according to the actual needs of system, the figure place of order (COMMAND) can suitably increase according to system requirements; Data (DATA) refer to write data and read data, and during write operation, data (DATA) are sent by main equipment, and during read operation, data (DATA) are sent by slave unit, and data (DATA) length is in order (COMMAND) stage agreement; For write operation, verification and (CHKSUM) sending by the main equipment calculating and sending, computing method are: will order (COMMAND) and all write data (DATA) additions, and abandon carry, addition result step-by-step negate; For read operation, verification and (CHKSUM) sending by the slave unit calculating and sending, computing method are: the order that will receive (COMMAND) and all read data (DATA) additions, abandon carry, addition result step-by-step negate;
Figure 10 is that data (DATA) length is the sequential chart of the write operation of 2 bytes, and Figure 11 is that data (DATA) length is the sequential chart of the read operation of 2 bytes, and these two figure also are the processes of describing operation from the angle of main equipment; The frame operation of bus always sends order (COMMAND) by bus master and initiates, if write operation, main equipment continue to send data (DATA) and verification and (CHKSUM), if read operation, slave unit feedback data (DATA) and verification with (CHKSUM); In the gap of byte (Byte) operation, main equipment and slave unit all discharge bus, and the time of release does not limit;
Above-mentioned RSIO bus specification design has taken into account dirigibility and security, uses single-chip microcomputer commonly used, utilizes 1 timing (Timer) to interrupt and 1 general input/output port (GPIO), just can be easy to realize RSIO bus master side function.
Above content be in conjunction with concrete preferred implementation to further describing that the utility model is done, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace, all should be considered as belonging to protection domain of the present utility model.

Claims (6)

1. electric energy computation chip with mongline bidirectional serial communication interface, it is characterized in that: described chip includes mongline bidirectional serial communication interface control module, described chip connects main equipment in the electronic electric energy meter system by a wire, realize the bidirectional linked list communication of chip and main equipment, described chip also comprises electric energy metrical and electric parameter measurement and the calibration module that is used for electric energy metrical and electric parameter measurement.
2. the electric energy computation chip with mongline bidirectional serial communication interface according to claim 1, it is characterized in that: described electric energy metrical and electric parameter measurement and calibration module comprise: the analog to digital converter module, calculation of parameter and calibration module, result parameter and calibration parameter memory module, and, power-frequency inverted and pulse output module.
3. the electric energy computation chip with mongline bidirectional serial communication interface according to claim 2 is characterized in that: described analog to digital converter module is 1 the tunnel or the multichannel analog to digital converter.
4. the electric energy computation chip with mongline bidirectional serial communication interface according to claim 2 is characterized in that: described calculation of parameter and calibration module connect described analog to digital converter module.
5. the electric energy computation chip with mongline bidirectional serial communication interface according to claim 2, it is characterized in that: described result parameter and calibration parameter memory module include storage medium, and described storage medium is register, random access memory or flash memory.
6. the electric energy computation chip with mongline bidirectional serial communication interface according to claim 2 is characterized in that: described power-frequency inverted and pulse output module connect the meter calibration device, connect LED light, perhaps connect single-chip microcomputer.
CN2009201304403U 2009-04-03 2009-04-03 Electric energy metering chip with single-wire two-way serial communication interface Expired - Lifetime CN201724980U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009201304403U CN201724980U (en) 2009-04-03 2009-04-03 Electric energy metering chip with single-wire two-way serial communication interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009201304403U CN201724980U (en) 2009-04-03 2009-04-03 Electric energy metering chip with single-wire two-way serial communication interface

Publications (1)

Publication Number Publication Date
CN201724980U true CN201724980U (en) 2011-01-26

Family

ID=43493320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009201304403U Expired - Lifetime CN201724980U (en) 2009-04-03 2009-04-03 Electric energy metering chip with single-wire two-way serial communication interface

Country Status (1)

Country Link
CN (1) CN201724980U (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789436A (en) * 2011-05-18 2012-11-21 国基电子(上海)有限公司 Master and slave chips in single-line two-way communication and method thereof
CN103163369A (en) * 2011-12-19 2013-06-19 无锡华润矽科微电子有限公司 Electric energy measuring circuit structure capable of achieving function of pre-calibration of measurement accuracy and method thereof
CN103605627A (en) * 2013-12-04 2014-02-26 福建师范大学 One-wire full-duplex bus
CN103728493A (en) * 2012-10-12 2014-04-16 苏州工业园区新宏博通讯科技有限公司 Multi-path single-phase and three-phase mixed electric energy metering device and method
CN104330621A (en) * 2014-11-11 2015-02-04 苏州工业职业技术学院 Electric appliance energy consumption tester
CN104407211A (en) * 2014-12-06 2015-03-11 宁波迦南电子有限公司 Power consumption metering device
CN105738692A (en) * 2014-12-11 2016-07-06 苏州工业园区新宏博通讯科技有限公司 Electric energy meter and debugging method thereof
CN106227691A (en) * 2016-08-09 2016-12-14 苏交科集团股份有限公司 A kind of based on the reciprocity bi-directional single-wire serial communication protocol between MCU
CN106646331A (en) * 2016-11-30 2017-05-10 芯海科技(深圳)股份有限公司 Electricity meter metering chip, circuit and calibration method used for automatic calibration
CN108228514A (en) * 2016-12-15 2018-06-29 深圳开阳电子股份有限公司 A kind of monobus transmission method and system
CN110456146A (en) * 2019-09-04 2019-11-15 深圳宝龙达信创科技股份有限公司 Power detection device and power detecting method
CN111722010A (en) * 2020-06-29 2020-09-29 杭州万高科技股份有限公司 Metering data acquisition method and metering system
CN113541794A (en) * 2020-04-13 2021-10-22 南京南瑞继保电气有限公司 Networking system and networking method for process level network of intelligent substation

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789436B (en) * 2011-05-18 2014-12-31 国基电子(上海)有限公司 Master and slave chips in single-line two-way communication and method thereof
CN102789436A (en) * 2011-05-18 2012-11-21 国基电子(上海)有限公司 Master and slave chips in single-line two-way communication and method thereof
CN103163369A (en) * 2011-12-19 2013-06-19 无锡华润矽科微电子有限公司 Electric energy measuring circuit structure capable of achieving function of pre-calibration of measurement accuracy and method thereof
CN103163369B (en) * 2011-12-19 2015-10-28 无锡华润矽科微电子有限公司 Realize ic for energy metering structure and the method thereof of measuring accuracy pre-calibration function
CN103728493A (en) * 2012-10-12 2014-04-16 苏州工业园区新宏博通讯科技有限公司 Multi-path single-phase and three-phase mixed electric energy metering device and method
CN103728493B (en) * 2012-10-12 2016-09-14 苏州新宏博智能科技股份有限公司 Multichannel list three-phase uses electric energy gauging method with
CN103605627A (en) * 2013-12-04 2014-02-26 福建师范大学 One-wire full-duplex bus
CN104330621A (en) * 2014-11-11 2015-02-04 苏州工业职业技术学院 Electric appliance energy consumption tester
CN104407211B (en) * 2014-12-06 2017-02-08 宁波迦南智能电气股份有限公司 Power consumption metering device
CN104407211A (en) * 2014-12-06 2015-03-11 宁波迦南电子有限公司 Power consumption metering device
CN105738692A (en) * 2014-12-11 2016-07-06 苏州工业园区新宏博通讯科技有限公司 Electric energy meter and debugging method thereof
CN106227691A (en) * 2016-08-09 2016-12-14 苏交科集团股份有限公司 A kind of based on the reciprocity bi-directional single-wire serial communication protocol between MCU
CN106227691B (en) * 2016-08-09 2019-03-15 苏交科集团股份有限公司 A kind of reciprocity bi-directional single-wire serial communication method based between MCU
CN106646331A (en) * 2016-11-30 2017-05-10 芯海科技(深圳)股份有限公司 Electricity meter metering chip, circuit and calibration method used for automatic calibration
CN108228514A (en) * 2016-12-15 2018-06-29 深圳开阳电子股份有限公司 A kind of monobus transmission method and system
CN110456146A (en) * 2019-09-04 2019-11-15 深圳宝龙达信创科技股份有限公司 Power detection device and power detecting method
CN113541794A (en) * 2020-04-13 2021-10-22 南京南瑞继保电气有限公司 Networking system and networking method for process level network of intelligent substation
CN111722010A (en) * 2020-06-29 2020-09-29 杭州万高科技股份有限公司 Metering data acquisition method and metering system
CN111722010B (en) * 2020-06-29 2022-11-25 杭州万高科技股份有限公司 Metering data acquisition method and metering system

Similar Documents

Publication Publication Date Title
CN201724980U (en) Electric energy metering chip with single-wire two-way serial communication interface
CN201285444Y (en) Electric energy meter calibration apparatus
CN101582823A (en) Communicated method, communication system and communication routing device based on SPI bus
CN102929836A (en) Special ASIC (Application Specific Integrated Circuit) chip system for spaceflight
CN103065449B (en) Gas meter, flow meter remote meter reading method and system
CN103366539A (en) Wireless meter reading system and broadcast-type reading mode
CN106066838B (en) Extension module and extended method based on FPGA multichannel UART
CN108595356B (en) Hard disk backboard compatible with RSSD hard disk and NVMe hard disk and method
WO2013040998A1 (en) System and method for single channel position control source to control time division multiplexing circuit strobe
CN209015137U (en) Bridge communications circuit
CN105141483B (en) Multinode network minimal communications measuring space method based on CAN bus
CN210780847U (en) EtherCAT bus clock distribution system
CN212302262U (en) Multi-channel data remote acquisition controller
CN206097099U (en) UART expands module
CN107516412A (en) A kind of battery powered M BUS multi-channel intelligents data acquisition teletransmission equipment
CN211427481U (en) Function detection device for electricity consumption information acquisition terminal
CN201145944Y (en) Network modularization electric power tolerance monitoring device
CN101368876B (en) Testing bench frame control system for open type internal combustion engine
CN208271171U (en) A kind of server debugging apparatus and server
CN203278857U (en) Dual-path IEC61850 message receiving and transmitting device based on CRIO (Core-Router Integrated Overlay) platform
CN209822106U (en) Configuration device based on FPGA programmable device
CN106843368B (en) A kind of multi-groove communication equipment back plate timing topology and its implementation
CN202455336U (en) Optical serial port self-adaptive decoding circuit
CN115225425B (en) Data acquisition method and system for dynamic pluggable ring network architecture
CN2739197Y (en) Aluminium electrolytic tank control machine

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Miao Shuli

Document name: the First Notification of an Office Action

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN RUINENG MICRO-TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHENZHEN RENERGY TECHNOLOGY CO.,LTD.

CP01 Change in the name or title of a patent holder

Address after: 518054 Guangdong city of Shenzhen province Nanshan District South Road No. 97 Huaying building room A201

Patentee after: Shenzhen ruineg micro Polytron Technologies Inc

Address before: 518054 Guangdong city of Shenzhen province Nanshan District South Road No. 97 Huaying building room A201

Patentee before: Shenzhen Renergy Technology Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Shenzhen, Guangdong, Nanshan District Haitian Road, No. 13 Shenzhen software industry base 5B-401

Patentee after: Shenzhen Renergy Technology Co.,Ltd.

Address before: 518054 Guangdong city of Shenzhen province Nanshan District South Road No. 97 Huaying building room A201

Patentee before: Shenzhen ruineg micro Polytron Technologies Inc

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20110126