CN101430346A - Reverse indication method, apparatus for electric energy measuring chip and its order structure - Google Patents

Reverse indication method, apparatus for electric energy measuring chip and its order structure Download PDF

Info

Publication number
CN101430346A
CN101430346A CNA2008100412379A CN200810041237A CN101430346A CN 101430346 A CN101430346 A CN 101430346A CN A2008100412379 A CNA2008100412379 A CN A2008100412379A CN 200810041237 A CN200810041237 A CN 200810041237A CN 101430346 A CN101430346 A CN 101430346A
Authority
CN
China
Prior art keywords
reverse
source address
real
value
time power
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.)
Pending
Application number
CNA2008100412379A
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.)
Shanghai Beiling Co Ltd
Original Assignee
Shanghai Beiling 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 Shanghai Beiling Co Ltd filed Critical Shanghai Beiling Co Ltd
Priority to CNA2008100412379A priority Critical patent/CN101430346A/en
Publication of CN101430346A publication Critical patent/CN101430346A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing Of Individual Semiconductor Devices (AREA)

Abstract

The invention relates to a reverse indication method of an electrical energy measurement chip, a reverse indication device and an order structure thereof, wherein, the method comprises the following steps: the reverse indication order structure is set; and the storage steps comprises: an instant power value is stored in a first source address of the order, and a preset reverse indication threshold value is stored in a second source address of the order; the order are operated: the instant power value stored in the first source address is called out, the comparison and the control between the absolute value of the instant power value and the reverse indication threshold value preset in the second source address are carried out, if the absolute value of the instant power value is more than the reverse indication threshold value, and the instant power value is negative value, the instant power value is stored in a target address of the order and the reverse order is provided simultaneously. Compared with the prior art, the invention has the advantages that the order structure is simple, extra hardware sources are unnecessary to be spent, and the reverse indication function required by electrical energy measurement design can be realized easily in the electrical energy measurement chip which has the order system structure.

Description

A kind of reverse indication method of electric energy computation chip, device and order structure thereof
Technical field
The present invention relates to the electric energy metrical technology, relate in particular to a kind of reverse indication method, device and order structure thereof of electric energy computation chip.
Technical background
Oppositely indication is meant in the electric energy computation chip technology, electric energy computation chip under the reverse situation of electric current and voltage input, promptly when current/voltage differs by more than 180 degree, the indication that chip should provide.
In existing electric energy computation chip, because the whole table system of chip itself and ammeter all can produce inevitable noise, make ammeter when not electricity consumption or current/voltage when having small differing, owing to the existence of above-mentioned noise, there is reverse electricity consumption in circuit judges, thereby gives the reverse indication that makes mistake.
Therefore, electric energy computation chip is provided with reverse deixis must consider to avoid misjudgment phenomenon, correctly indicates when reverse electricity consumption thereby reach desired electric energy computation chip, to guarantee the correct electricity consumption of user, prevents the customer reverse electricity consumption.
Existing computation chip is realized what reverse deixis was normally reached by extension circuit, but uses circuit to realize reverse indication, and is not only loaded down with trivial details, and circuit footprint is bigger, is not easy to realize the integrated of chip.
Summary of the invention
The object of the present invention is to provide a kind of extra hardware resource that need not to spend, realize that electric energy computation chip gives method, device and the order structure thereof of correct indication when reverse electricity consumption.
One of the present invention, a kind of reverse indication method of electric energy computation chip may further comprise the steps: reverse indicator structure is set: this order structure comprises first source address, second source address and destination address; Deposit step in: in first source address of instruction, deposit the real-time power value in, in second source address of instruction, deposit default reverse indication threshold value in; The operating instruction step, access the real-time power value of depositing in described first source address, reverse indication threshold value default in the absolute value of this real-time power value and second source address is compared:, then this real-time power value is deposited in the destination address of instruction if the absolute value of real-time power value is less than or equal to reverse indication threshold value; If the absolute value of real-time power value then deposits this real-time power value in the destination address of instruction in greater than oppositely indicating threshold value and real-time power value nonnegative value; If the absolute value of real-time power value is a negative value greater than oppositely indication threshold value and real-time power value, then this real-time power value is deposited in the destination address of instruction and provide reverse indication simultaneously.
The present invention's two, a kind of reverse indicating device of electric energy computation chip, it is characterized in that: this reverse indicating device is based on the reverse indicator structure that comprises first source address, second source address and destination address, it comprises instruction memory, register file, arithmetic element, the data-carrier store that connects in turn, and instruction memory connects data-carrier store, wherein: instruction memory is used for depositing in advance reverse indicator; Register file comprises first source address register and second source address register, is used for depositing the real-time power value and deposit default reverse indication threshold value in second source address register at first source address register; Arithmetic element, the real-time power value that leaves in described first source address register that accesses is got its absolute value, compare with reverse indication threshold value default in described second source address register, the output comparative result, and provide reverse indication when oppositely indication threshold value and real-time power value are for negative value at the absolute value of instant performance number; Data-carrier store is used to store the real-time power value in its destination address storage area, and stores reverse designation data.
The present invention's three, a kind of reverse indicator structure of electric energy computation chip is characterized in that, comprises first source address, second source address and destination address with arbitrary mode permutation and combination.
The length of above-mentioned reverse indicator structure is 27, the destination address that is 10 comprising the length of arranging in regular turn is 5 operational code, first source address that length is 6, length is 6 second source address and length.
Owing to adopted above-mentioned technical scheme, make the present invention compared with prior art, have the following advantages and good effect: order structure is simple, need not to spend extra hardware resource, be easy in having the electric energy computation chip of instruction architecture, realize the reverse deixis of electric energy metrical designing requirement.
Description of drawings
To the description of embodiments of the invention, can further understand purpose of the present invention, specific structural features and advantage by following in conjunction with its accompanying drawing, in the accompanying drawing:
Fig. 1 is the structural representation of the reverse indicator of the present invention;
Fig. 2 is the implementation synoptic diagram of the reverse indicator of the present invention;
Fig. 3 is the synoptic diagram of the reverse indicating device of electric energy computation chip of the present invention.
Embodiment
Fig. 1 is the structural representation of reverse indicator.As shown in the figure, in order to realize reverse deixis in having the electric energy computation chip of instruction architecture, the length of reverse indicator is set to 27, and wherein operational code is 5, and 1 address, source is 6, and 2 addresses, source are 6, and destination address is 10.
Fig. 2 is the implementation synoptic diagram of reverse indicator.As shown in the figure, first source address, promptly the data of 1 address, source are the real-time power value of depositing, second source address, promptly the data of 2 addresses, source are the default oppositely indication threshold value of depositing.The result data of instruction manipulation is stored in the destination address of reverse indicator.
Reverse indicator is programmed with the used instruction of other electric energy metricals, set in advance reverse indication threshold value simultaneously, this threshold value leaves in 2 addresses, source of reverse indicator in advance.After the real-time power of depositing in 1 address, source taken absolute value, compare with the default oppositely indication threshold value of depositing in 2 addresses, source.In controlled step, when the real-time power absolute value of depositing in 1 address, source is less than or equal to default oppositely indication threshold value, the numerical value of representing power is stored in the destination address; When default oppositely indication threshold value of depositing in greater than 2 addresses, source when the real-time power absolute value of depositing in 1 address, source and real-time power value nonnegative value, the numerical value of representing power is stored in the destination address; And default oppositely indication threshold value of depositing in greater than 2 addresses, source when the real-time power absolute value of depositing in 1 address, source and real-time power value be when being negative value, the numerical value of represent power is stored in also provides reverse indication in the destination address simultaneously.Thereby in electric energy computation chip, realized the reverse deixis of electric energy metrical designing requirement.
Fig. 3 is the synoptic diagram of reverse indicating device.As shown in Figure 3, oppositely the computing path of indicator comprises instruction memory 1, register file 2, arithmetic element 3 and the data-carrier store 4 that connects in turn, and instruction memory 1 connects data-carrier store 4.
Oppositely indicator leaves in the instruction memory in advance.In the implementation of reverse indicator, at first 1 address, source according to reverse indicator obtains the data of depositing in 1 address, source to register file, real-time power value just, 2 addresses, source according to reverse indicator obtain the data of depositing in 2 addresses, source to register file simultaneously, Yu She reverse indication threshold value just, subsequently the real-time power value of obtaining is sent into arithmetic element simultaneously with reverse indication threshold value and carry out computing, promptly ask absolute value to compare with the reverse threshold value of indicating again to the real-time power value earlier.Then according to result relatively, deposit corresponding data in destination address, promptly, if the real-time power absolute value is less than or equal to reverse indication threshold value, to represent the numerical value of real-time power to deposit destination address in, if the real-time power absolute value is during greater than oppositely indication threshold value and real-time power value nonnegative value, to represent the numerical value of real-time power to deposit destination address in, if the real-time power absolute value is when oppositely indication threshold value and real-time power value are negative value, the numerical value of representing real-time power is deposited in destination address and provides reverse indication simultaneously, at last the numerical value of destination address is stored in the destination address of reverse indicator.
Power absolute value when default reverse indication threshold value is far smaller than the chip operate as normal in the chip.When chip operation, the real-time power absolute value, illustrates to have reverse electricity consumption when negative greater than the reverse indication threshold value that sets and real-time power value, and behind this reverse indicator EO, the numerical value of destination address performance number videlicet the time provides reverse indication simultaneously.When the chip operate as normal, the real-time power absolute value is non-when negative greater than the reverse indication threshold value that sets and real-time power value, illustrate not detect reverse electricity consumption, and behind this reverse indicator EO, the numerical value of destination address performance number videlicet the time.When simultaneously, default reverse indication threshold value is far longer than the chip operate as normal again in the chip because chip itself and the ammeter power absolute value when putting in order the inevitable noise of table system or current/voltage and having small differing.When the chip operate as normal, the real-time power absolute value is less than or equal to the reverse indication threshold value that sets, illustrate that chip operation is at the small-signal place, promptly Ji Liang current/voltage value is very little, because the inevitable noise of the whole table system of chip itself and ammeter, so do not judge reverse electricity consumption, behind this reverse indicator EO, the numerical value of destination address performance number videlicet the time.
As mentioned above, method of the present invention is to add reverse indicator in the command memory of electric energy metrical, and in chip, preset and oppositely indicate threshold value, only use an instruction, that real-time power value and chip is default one oppositely the indication threshold ratio, the performance number that the real-time power absolute value is less than or equal to reverse indication threshold value is left in the basket and does not do to judge; There is not reverse electricity consumption in the real-time power absolute value greater than oppositely indicating threshold value and the non-negative performance number of numerical value, being judged as; There is reverse electricity consumption in the real-time power absolute value greater than oppositely indicating threshold value and numerical value to be negative performance number, being judged as, and provides reverse indication.Thereby on threshold value, guaranteed the function of the reverse indication of electric energy computation chip.Reverse indication method of the present invention is applied in the electric energy computation chip, and principle is simple, and is very practical.
The present invention is not limited to above-mentioned particular implementation example; do not deviating under spirit of the present invention and the real situation thereof; skilled personnel can make various corresponding changes and distortion according to the present invention, and these corresponding changes and distortion all should belong within the claims protection domain of the present invention.

Claims (6)

1. the reverse indication method of an electric energy computation chip may further comprise the steps:
Reverse indicator structure is set: this order structure comprises first source address, second source address and destination address;
Deposit step in: in first source address of instruction, deposit the real-time power value in, in second source address of instruction, deposit default reverse indication threshold value in;
The operating instruction step accesses the real-time power value of depositing in described first source address, and reverse indication threshold value default in the absolute value of this real-time power value and second source address is compared and controls:
If the absolute value of real-time power value is less than or equal to reverse indication threshold value, then this real-time power value is deposited in the destination address of instruction;
If the absolute value of real-time power value then deposits this real-time power value in the destination address of instruction in greater than oppositely indicating threshold value and real-time power value nonnegative value;
If the absolute value of real-time power value is a negative value greater than oppositely indication threshold value and real-time power value, then this real-time power value is deposited in the destination address of instruction and provide reverse indication simultaneously.
2. the reverse indication method of electric energy computation chip according to claim 1, it is characterized in that: the length of described reverse indicator structure is 27, the destination address that is 10 comprising the length of arranging in regular turn is 5 operational code, first source address that length is 6, length is 6 second source address and length.
3. the reverse indicating device of an electric energy computation chip, it is characterized in that: this reverse indicating device is based on the reverse indicator structure that comprises first source address, second source address and destination address, it comprises instruction memory, register file, arithmetic element, the data-carrier store that connects in turn, and instruction memory connects data-carrier store, wherein:
Instruction memory is used for depositing in advance reverse indicator;
Register file comprises first source address register and second source address register, is used for depositing the real-time power value and deposit default reverse indication threshold value in second source address register at first source address register;
Arithmetic element, the real-time power value that leaves in described first source address register that accesses is got its absolute value, compare with reverse indication threshold value default in described second source address register, the output comparative result, and provide reverse indication when oppositely indication threshold value and real-time power value are for negative value at the absolute value of instant performance number;
Data-carrier store is used to store the real-time power value in its destination address storage area, and stores reverse designation data.
4. the reverse indicating device of electric energy computation chip according to claim 3, it is characterized in that: the length of described reverse indicator structure is 27, the destination address that is 10 comprising the length of arranging in regular turn is 5 operational code, first source address that length is 6, length is 6 second source address and length.
5. the reverse indicator structure of an electric energy computation chip is characterized in that, comprises first source address, second source address and destination address with arbitrary mode permutation and combination.
6. reverse indicator structure according to claim 5, it is characterized in that: described reverse indicator structure also comprises operational code, the length of described reverse indicator structure is 27, comprises in regular turn the destination address that the length of arranging is 5 operational code, first source address that length is 6, length is 6 second source address and length are 10.
CNA2008100412379A 2008-07-31 2008-07-31 Reverse indication method, apparatus for electric energy measuring chip and its order structure Pending CN101430346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100412379A CN101430346A (en) 2008-07-31 2008-07-31 Reverse indication method, apparatus for electric energy measuring chip and its order structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100412379A CN101430346A (en) 2008-07-31 2008-07-31 Reverse indication method, apparatus for electric energy measuring chip and its order structure

Publications (1)

Publication Number Publication Date
CN101430346A true CN101430346A (en) 2009-05-13

Family

ID=40645859

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100412379A Pending CN101430346A (en) 2008-07-31 2008-07-31 Reverse indication method, apparatus for electric energy measuring chip and its order structure

Country Status (1)

Country Link
CN (1) CN101430346A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109782059A (en) * 2018-12-24 2019-05-21 浙江恒业电子有限公司 A kind of method of the accurate reversed active energy of metering
CN116027102A (en) * 2023-03-29 2023-04-28 深圳龙电华鑫控股集团股份有限公司 Power calculation method and device of electric power instrument and electric power instrument

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109782059A (en) * 2018-12-24 2019-05-21 浙江恒业电子有限公司 A kind of method of the accurate reversed active energy of metering
CN109782059B (en) * 2018-12-24 2020-11-10 浙江恒业电子有限公司 Method for accurately measuring reverse active electric energy
CN116027102A (en) * 2023-03-29 2023-04-28 深圳龙电华鑫控股集团股份有限公司 Power calculation method and device of electric power instrument and electric power instrument

Similar Documents

Publication Publication Date Title
CN103425219B (en) Power control system and method
JP5178960B2 (en) Correlation between power distribution devices and devices
CN104777383A (en) Non-invasive electrical load monitoring and load decomposing device
CN110031705A (en) Electrochemical capacitor life monitoring method, device, electronic equipment and storage medium
CN103617061A (en) Method for multi-node on-line software updating on basis of ARM
CN114264941B (en) Reclosing lead time determining method and device and relay protection equipment
CN101430346A (en) Reverse indication method, apparatus for electric energy measuring chip and its order structure
US11853247B2 (en) Interface switching apparatus, communication device, and interface switching method
CN202886575U (en) Device for rapidly detecting performance of power module
CN110427622A (en) Appraisal procedure, device and the storage medium of corpus labeling
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN201259512Y (en) Reverse indication device for electric energy metering chip
CN105573870B (en) A kind of multi-path redundancy power module opens the control method and device of load equipment
US9612638B1 (en) Systems and methods for automatic detection and configuration of voltage regulator phases in a multi-rail voltage regulator
CN101191802B (en) Electric energy metering chip creeping prevention method
CN105634057A (en) Battery, mobile terminal and battery control method
CN103207834B (en) A kind of electric energy data storage method
CN110650546A (en) File transmission method, device, storage medium and terminal
CN103869856B (en) A kind of multivoltage sequential control circuit
CN109669905A (en) A kind of hot removing method, system and the relevant apparatus of PCIE device
TW201110443A (en) Method of managing rechargeable battery for an electric device
CN109145338A (en) A kind of method and device for repairing voltage drop
CN106462214B (en) Low-power distributed memory network
US11003231B2 (en) Selective power distribution to individual outlets
CN109792151B (en) Controlling an energy storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090513