Summary of the invention
The objective of the invention is provides a kind of circuit that is used for intelligent electric meter in order to overcome the deficiency of prior art, and it can overcome the influence of electromagnetic interference (EMI), realizes the accurate metering for the user power utilization amount.
A kind of technical scheme that realizes above-mentioned purpose is: comprise single-chip microcomputer, clock chip, computation chip, power supply, RS485 communication interface, spacer assembly, infrared communication interface and high-frequency impulse output module; Said single-chip microcomputer connects said computation chip, said infrared communication interface and high-frequency impulse output module respectively; Said spacer assembly connects said single-chip microcomputer and said RS485 communication interface respectively, and said single-chip microcomputer, said RS485 communication interface are connected said power supply simultaneously with said computation chip.
Further, also be provided with battery on the said circuit, said battery is connected with said single-chip microcomputer with said clock chip respectively.
Further, said circuit is provided with liquid crystal display, and said liquid crystal display is connected with single-chip microcomputer.
Further again, said liquid crystal display is the LCD screen, perhaps the LED screen.。
Further, also be provided with erasable formula ROM (read-only memory) on the said circuit, said erasable formula ROM (read-only memory) links to each other with said single-chip microcomputer.
Further, also be provided with backlight on the said circuit, said backlight links to each other with said single-chip microcomputer.
Adopted a kind of technical scheme that is used for the circuit of intelligent electric meter of the present invention; A kind of technical scheme that is used for the circuit of intelligent electric meter that promptly comprises single-chip microcomputer, clock chip, computation chip, RS485 communication interface, spacer assembly, infrared communication interface and high-frequency impulse output module; Its technique effect is: can when reducing said intelligent electric meter size, realize the accurate metering for the user power utilization amount.
Embodiment
See also Fig. 1,, pass through embodiment particularly below, and combine accompanying drawing at length to explain in order to understand technical scheme of the present invention better:
See also Fig. 1; A kind of circuit that is used for intelligent electric meter of the present invention comprises single-chip microcomputer 1, spacer assembly 2, clock chip 3, battery 4, computation chip 5, power supply 6, RS485 communication interface 7, infrared communication interface 8, backlight 9, liquid crystal display 10, erasable formula storer 11 and high-frequency impulse output module 12.Said single-chip microcomputer 1 connects said clock chip 3, said computation chip 5, said infrared communication interface 8, said backlight 9, said liquid crystal display 10, said erasable formula storer 11 and said high-frequency impulse output module 12 respectively.Said battery 4 connects said single-chip microcomputer 1 and said clock chip 3.Said power supply 6 connects said single-chip microcomputer 1, said computation chip 5 and said RS485 communication interface.
In the present embodiment, said liquid crystal display 10 is LCD screen or LED screen.
In the present embodiment, on the said power supply 6 power transformer is set, the effect of said power transformer is with the 220V alternating current in the busbar bus, is transformed into the required low-voltage DC of said intelligent electric meter work.Control end and metering end are set on the said power transformer; Said control end connects said single-chip microcomputer 1, and said metering end connects said computation chip 5, does not do isolation between said control end and the said metering end; To adapt to the space requirement of intelligent electric meter miniaturization, reduce system cost simultaneously.
The PIC16F946 type single-chip microcomputer that can adopt MICROCHIP of single-chip microcomputer described in the present embodiment 1; The packing forms that this single-chip microcomputer is taked is the TQFP64 encapsulation; This single-chip microcomputer adopts Flash technology; Can carry out repeatedly programming, but this single-chip microcomputer fill order byte instruction, and have excellent anti-electromagnetic interference capability.This single-chip microcomputer is provided with the program area of 14K * 14bit, is used to deposit the checking routine instruction that software is checked meter, and the SRAM of 336 * 8bit (SRAM) is in order to deposit the intermediate result in the program operation process.Also built-in watchdog circuit of this single-chip microcomputer and low-voltage observation circuit are in order to ensure the safe operation of single-chip microcomputer.4 timer/counters are set on the said single-chip microcomputer, and 4 * 42 sections liquid crystal display driver modules, 2 road parallel communication interfaces (CCP), 2 tunnel serial hardware interfaces (UART), this single-chip microcomputer also have the nanowatt technology can work system under very low power consumption.
The form that said single-chip microcomputer 1 also can adopt the HL6024 chip of 78F0511 chip and the Hua Long of NEC to combine.Said 78F0511 chip adopts Flash technology, repeatedly programming, and have excellent anti-electromagnetic interference capability.The packing forms that this chip adopts is the QFP44 encapsulation, and the 16KB program area is used to deposit the checking routine instruction that software is checked meter, and the SRAM of 768Byte (SRAM), in order to deposit the intermediate result in the program operation process.Also built-in watchdog circuit of this chip and low-voltage observation circuit, in order to ensure the safe operation of single-chip microcomputer, this chip is also built-in 5 timer/counters and 2 tunnel serial hardware interfaces (UART).And be provided with 4 * 42 sections liquid crystal display driver modules, 2 road parallel communication interfaces (CCP) on the HL6024 chip of Hua Long.The combination of 78F0511 chip through said NEC and the HL6024 chip of Hua Long also can be formed for the single-chip microcomputer of intelligent electric meter.
Now, the scheme of newly releasing complete single-chip microcomputer does, the RS485 communication interface that 9234 cake cores of NEC add ANSYS adds the BU9792FUV type liquid crystal driver module of Omron (ROMH).
The erasable formula ROM (read-only memory) (EPPROM) of the 24L16 type that said erasable formula ROM (read-only memory) 11 is Omron (ROMH).
What said clock chip 3 adopted is the RX8025 type clock chip for EPSON, and this is the most ripe at present clock chip.
Said infrared communication interface 8 adopts be the TSAL6200 diode with the TSOP34138 diode form to managing, the TSAL6200 diode is the infrared signal power valve, said TSOP34138 diode is the infrared signal receiving tube.At present, ripe also have that AT205B diode and HM138R diode form to managing, the AT205B diode is the infrared signal power valve, said HM138R diode is the infrared signal receiving tube.Said infrared communication interface 8 is in order to communicate with infrared copy meter palm machine.
The SN65HVD3082E chip of the TI company of Texas Instrument that said RS485 communication interface 7 adopts also can adopt the ISL3152EIBZ cake core of INTERSIL company.Said RS485 communication interface 7 is in order to communicate through RS485 bus and remote control terminal.
What said computation chip 5 adopted is the BL6511 cake core of Shanghai Belling.Said high-frequency impulse output module 12 is used for the verification of ammeter and the collection of electric weight.
The principle of work of said circuit is: after said high-frequency impulse output module 12 sends the high-frequency pulse signal of active energy; And measure by the high-frequency pulse signal of 5 pairs of said active energies of said computation chip; The checking routine instruction of being checked meter by the software that is built in said single-chip microcomputer 1 is again proofreaied and correct the metering of said high-frequency pulse signal, obtains accurate electricity consumption information about power.Be presented on the said liquid crystal display 10.
The waveform of the high-frequency pulse signal of the active energy that said high-frequency impulse output module 12 sends is actual square wave; Pulsewidth is 80ms; Said pulsewidth institute permissible error is ± 20%; 10% of overrate is not answered in the pulse amplitude voltage drop of the high-frequency pulse signal of the active energy that said high-frequency impulse output module 12 sends, and in the present embodiment, the low level of the output of the high-frequency pulse signal of the active energy that said high-frequency impulse output module 12 sends should be not more than 0.9V.Under specified maximum load, said high-frequency impulse output module 12 can be exported corresponding umber of pulse immediately.When said intelligent electric meter was non-loaded, the high-frequency pulse signal of the active energy that sends of the pulse of said high-frequency impulse output module 12 output was in low level state.
Said high-frequency impulse output module 12 also has the function of pps pulse per second signal output simultaneously; What said high-frequency impulse output module 12 was exported in the ordinary course of things all is the active energy pulse signal; When said intelligent electric meter is carried out verification; Said infrared communication interface 8 receives infrared programming and checks meter behind the pulse per second (PPS) output command that palm machine sends, and this order is passed to said single-chip microcomputer 1, after said single-chip microcomputer 1 receives this order; Said high-frequency impulse output module 12 is converted to the output state of pps pulse per second signal; Said intelligent electric meter is carried out verification, postpone after 20 minutes, the said single-chip microcomputer 1 said high-frequency impulse output module 12 of control is automatically got back to the state that the active energy pulse signal is exported automatically.
It is to consider from environmental protection that backlight 9 is set on the said circuit; When said intelligent electric meter is switched on; Can pass through said infrared communication interface, accept the check meter meter reading instruction of palm machine of infrared programming, the said spacer assembly 2 of affiliated Single-chip Controlling is opened; Cut off the communication of said RS485 communication interface 7, prevent assault from said infrared communication interface 8.Trigger said backlight 9 simultaneously and show, check meter.Said backlight 9 extinguishes automatically after 1 minute, and said RS485 communication interface 7 recloses.Said intelligent electric meter does not allow to trigger said backlight 9 and shows during through said RS485 communication interface 7 communications.Just need not light said liquid crystal display 10 in the process of checking meter like this, thereby practice thrift electricity consumption.
Said liquid crystal display 10 places said pcb board towards said loam cake 3 one sides; Said liquid crystal display 31 shows 5 integers of electric weight, 1 decimal; Conceal the 2nd decimal liquid crystal display visible area of the electric weight size 41 * 21mm in the power information of storing in the said erasable formula ROM (read-only memory) 11 simultaneously; The font size that shows is Chinese character 4 * 6mm, numeral and 5 * 8mm, alphabetical 4x4mm.Said liquid crystal display 10 is liquid crystal of high-contrast, fast, the wide visual angle of response, low-power consumption, and the life-span is more than 10 years.Under-25 ℃ to 70 ℃ conditions, its show state correctly and not influences data to be read, and the visual angle was 6 o'clock, and blank screen when high temperature not occurring, low temperature show slow or do not show phenomenon.
The erasable formula ROM (read-only memory) 11 of said point also has the function of logout except the power consumption information of recording user, these incidents all write through said single-chip microcomputer 1, comprises the record of nearest three P1P2 short circuits, disconnection; Nearest 12 date clocks are revised the forward and backward data with power consumption; The electric weight record that electric weight is revised or resetted forward and backward; Nearest 12 period rates are revised preceding, amended data with power consumption; Electric weight was copied and was seen logarithmic data nearly 3 months 1 day zero point; And the record of the incident that incident zero clearing, table number are revised, the secondary password is revised; The beginning and ending time of nearest three reverse incidents of power, information such as total degree, total reverse accumulative total electric weight.Also have nearest intelligent electric meter failure message, such as: the fault of storer, clock chip dead electricity, crystal oscillator failure of oscillation, communication abnormality information, battery low-voltage etc.
It is for normal demonstration, said computation chip 5, said clock chip 3 that guarantees liquid crystal display 10 and the operate as normal of putting erasable formula ROM (read-only memory) 11 that battery 4 also is set on the said circuit.Said battery electric quantity is lower than 30%, and said single-chip microcomputer 1 triggers reports to the police.
Those of ordinary skill in the art will be appreciated that; Above embodiment is used for explaining the present invention; And be not to be used as qualification of the present invention; As long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of the above embodiment.