CN104635190A - Measuring chip anti-interference detection and error correction method and device - Google Patents

Measuring chip anti-interference detection and error correction method and device Download PDF

Info

Publication number
CN104635190A
CN104635190A CN201410851721.3A CN201410851721A CN104635190A CN 104635190 A CN104635190 A CN 104635190A CN 201410851721 A CN201410851721 A CN 201410851721A CN 104635190 A CN104635190 A CN 104635190A
Authority
CN
China
Prior art keywords
value
register
computation chip
equal
read
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.)
Granted
Application number
CN201410851721.3A
Other languages
Chinese (zh)
Other versions
CN104635190B (en
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.)
ZHANGZHOU CANNET ELECTRICAL APPLIANCE CO Ltd
Original Assignee
ZHANGZHOU CANNET ELECTRICAL APPLIANCE 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 ZHANGZHOU CANNET ELECTRICAL APPLIANCE CO Ltd filed Critical ZHANGZHOU CANNET ELECTRICAL APPLIANCE CO Ltd
Priority to CN201410851721.3A priority Critical patent/CN104635190B/en
Publication of CN104635190A publication Critical patent/CN104635190A/en
Application granted granted Critical
Publication of CN104635190B publication Critical patent/CN104635190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a measuring chip anti-interference detection and error correction method, which is applied to a measuring chip provided with a correction table parameter verifier and a register. The method comprises the following steps: (1) reading a value of the correction table parameter verifier and the register, comparing the value with a backup value, if the read value is equal to the backup value, not processing the value, and entering the step (2) if the read value is equal to the backup value; (2) re-reading the value of the correction table parameter verifier and register, comparing the read value with the backup value, if the read value is equal to the backup value, not processing the read value, and if the read value is not equal to the backup value, entering the step (3); (3) comparing the two read values of the correction table parameter verifier and register, resetting the measuring chip if the two read values are equal to each other, and not processing the value if the two values are not equal. By adopting the method and device, the error of the measuring chip can be effectively and reliably detected, the error can be corrected, and the normal work of the measuring chip can be guaranteed.

Description

A kind of anti-interference detection of computation chip and error correction method and device
Technical field
The present invention relates to measuring instrument field, particularly the anti-interference detection of a kind of computation chip and error correction method and device.
Background technology
Metering is the important component part of a instrument, if computation chip makes a mistake, the function of measuring of instrument is just affected, and directly may cause the legal dispute between user and supplier.And detect computation chip mistake and error correction is the requisite part of instrument.Usually, various environmental interference is easily subject in the environment with the communication interface of computation chip communication, the value reading calibration parameter effect and the register of returning from computation chip is caused to be wrong, if go this time reset initialization computation chip just may cause the original normal computation chip discontinuous run, thus metrology and measurement is just inaccurate.
Summary of the invention
Fundamental purpose of the present invention is to overcome above-mentioned defect of the prior art, proposes a kind ofly can detect computation chip mistake effectively reliably and carry out the anti-interference detection of computation chip of correction process and error correction method and device.
The present invention adopts following technical scheme:
A kind of anti-interference detection of computation chip and error correction method, the computation chip of calibration parameter verification and register is provided with in being applied to, this computation chip backs up the value of this calibration parameter verification and register when calibration completes, and it is characterized in that: comprise the steps:
1) read the value of calibration parameter verification and register, and compare with the value of backup, if equal, then do not deal with, if unequal, then enter step 2);
2) again read the value of calibration parameter verification and register, compare with the value of backup, if equal, then do not deal with, if unequal, then enter step 3);
3) by twi-read to calibration parameter verification and the value of register compare, if equal, then reset this computation chip, if unequal, then do not deal with.
Preferably, described computation chip is ATT7053B computation chip.
A kind of anti-interference detection of computation chip and error correction device, is characterized in that: comprise
Reading device, for reading the value of calibration parameter verification and register;
Comparison means, whether equal with the value of backup for the value comparing calibration parameter verification and the register read, and control reading device again reads and compares when not waiting;
Judge treating apparatus, for the calibration parameter verification that arrives at twi-read and register value all with backup value not etc. time, judge that whether two sub-values equal, and when equal, start resetting means;
Resetting means, resets for controlling computation chip.
From the above-mentioned description of this invention, compared with prior art, the present invention has following beneficial effect:
Method and apparatus of the present invention, by reading the value of calibration parameter verification and register, and compares with backup value, if twi-read and more unequal, and the value of twi-read is equal, illustrates it is not be subject to environmental factor to disturb, then initialization computation chip.Method and apparatus of the present invention can effectively reliably detect computation chip mistake and carry out correction process, ensures that computation chip normally works.
Accompanying drawing explanation
Fig. 1 is the inventive method process flow diagram;
Fig. 2 is apparatus of the present invention schematic diagram.
Embodiment
Below by way of embodiment, the invention will be further described.
With reference to Fig. 1, the anti-interference detection of a kind of computation chip and error correction method, be provided with the computation chip of calibration parameter verification and register in being applied to, such as ATT7053B computation chip.There are a calibration parameter effect and register in this computation chip inside, if this computation chip is because certain reason causes the change of calibration parameter, then this register value also and then change, so the value of this calibration parameter effect and register will carry out carrying out Real-Time Monitoring comparison when backup facilitates instrument to run when carrying out calibration and completing by one piece of instrument.Method of the present invention comprises the steps:
1) value reading calibration parameter verification and register is M1, and compares with the value N of backup, if equal, does not then deal with, if unequal, then enters step 2);
2) value again reading calibration parameter verification and register is M2, compares, if equal, then do not deal with, if unequal, then enter step 3 with the value N of backup);
3) by twi-read to calibration parameter verification and the value of register compare, if equal, the change of calibration parameter is described, then this computation chip of reset initialization, if unequal, represent that communication port may be interfered (as electromagnetic interference (EMI), the interference of high/low temperature humidity etc.), then do not deal with.
When the calibration parameter that the present invention is based on computation chip sends and changes, the value of calibration parameter verification and register also can ensue change.
With reference to Fig. 2, the present invention also proposes the anti-interference detection of a kind of computation chip and error correction device, comprises
Reading device, for reading the value of calibration parameter verification and register.
Whether comparison means, is connected with reading device, equal with the value of backup for the value comparing calibration parameter verification and the register read, and control reading device again reads and compares when unequal.
Judge treating apparatus, be connected with comparison means, for the calibration parameter verification that arrives at twi-read and register value all with backup value not etc. time, judge that whether two sub-values equal, and start resetting means when equal.
Resetting means, and judges that treating apparatus is connected, and resets for controlling computation chip.
Above are only the specific embodiment of the present invention, but design concept of the present invention is not limited thereto, all changes utilizing this design the present invention to be carried out to unsubstantiality, all should belong to the behavior of invading scope.

Claims (3)

1. the anti-interference detection of computation chip and error correction method, the computation chip of calibration parameter verification and register is provided with in being applied to, this computation chip backs up the value of this calibration parameter verification and register when calibration completes, and it is characterized in that: comprise the steps:
1) read the value of calibration parameter verification and register, and compare with the value of backup, if equal, then do not deal with, if unequal, then enter step 2);
2) again read the value of calibration parameter verification and register, compare with the value of backup, if equal, then do not deal with, if unequal, then enter step 3);
3) by twi-read to calibration parameter verification and the value of register compare, if equal, then reset this computation chip, if unequal, then do not deal with.
2. the anti-interference detection of a kind of computation chip as claimed in claim 1 and error correction method, is characterized in that: described computation chip is ATT7053B computation chip.
3. the anti-interference detection of computation chip and an error correction device, is characterized in that: comprise
Reading device, for reading the value of calibration parameter verification and register;
Comparison means, whether equal with the value of backup for the value comparing calibration parameter verification and the register read, and control reading device again reads and compares when not waiting;
Judge treating apparatus, for the calibration parameter verification that arrives at twi-read and register value all with backup value not etc. time, judge that whether two sub-values equal, and when equal, start resetting means;
Resetting means, resets for controlling computation chip.
CN201410851721.3A 2014-12-31 2014-12-31 Measuring chip anti-interference detection and error correction method and device Active CN104635190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410851721.3A CN104635190B (en) 2014-12-31 2014-12-31 Measuring chip anti-interference detection and error correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410851721.3A CN104635190B (en) 2014-12-31 2014-12-31 Measuring chip anti-interference detection and error correction method and device

Publications (2)

Publication Number Publication Date
CN104635190A true CN104635190A (en) 2015-05-20
CN104635190B CN104635190B (en) 2017-05-03

Family

ID=53214149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410851721.3A Active CN104635190B (en) 2014-12-31 2014-12-31 Measuring chip anti-interference detection and error correction method and device

Country Status (1)

Country Link
CN (1) CN104635190B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502811A (en) * 2016-10-12 2017-03-15 北京精密机电控制设备研究所 A kind of 1553B bus communications fault handling method
CN110488118A (en) * 2019-08-06 2019-11-22 上海移为通信技术股份有限公司 The anti-interference test method and its system of power supply chip
CN110763890A (en) * 2019-09-29 2020-02-07 许昌许继软件技术有限公司 Metering device
CN113406483A (en) * 2021-08-17 2021-09-17 湖南省计量检测研究院 Anti-interference detection system of metering chip and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529853A (en) * 2001-10-11 2004-09-15 阿尔特拉公司 Error detection on programmable logic resources
CN201397359Y (en) * 2009-03-20 2010-02-03 长沙威胜信息技术有限公司 Metering and monitoring module for electric power remote terminal unit
CN102117662A (en) * 2009-12-22 2011-07-06 英特尔公司 Error correction mechanisms for 8-bit memory devices
CN102135925A (en) * 2010-12-27 2011-07-27 西安锐信科技有限公司 Method and device for detecting error check and correcting memory
US20120011424A1 (en) * 2010-07-07 2012-01-12 Ocz Technology Group Inc. Memory system and method for generating and transferring parity information
CN102520385A (en) * 2011-12-12 2012-06-27 宁夏隆基宁光仪表有限公司 Automatic error calibration method for single-phase electrical energy meter
CN102545324A (en) * 2010-12-22 2012-07-04 爱特梅尔公司 Verification of configuration parameters
CN102967846A (en) * 2012-12-11 2013-03-13 江苏卡欧万泓电子有限公司 Fault self-checking method for intelligent ammeter
WO2014080249A1 (en) * 2012-11-23 2014-05-30 Freescale Semiconductor, Inc. Digital device
CN104035062A (en) * 2014-07-03 2014-09-10 国家电网公司 High-precision calibration method based on ATT7022E metering chip

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529853A (en) * 2001-10-11 2004-09-15 阿尔特拉公司 Error detection on programmable logic resources
CN201397359Y (en) * 2009-03-20 2010-02-03 长沙威胜信息技术有限公司 Metering and monitoring module for electric power remote terminal unit
CN102117662A (en) * 2009-12-22 2011-07-06 英特尔公司 Error correction mechanisms for 8-bit memory devices
US20120011424A1 (en) * 2010-07-07 2012-01-12 Ocz Technology Group Inc. Memory system and method for generating and transferring parity information
CN102545324A (en) * 2010-12-22 2012-07-04 爱特梅尔公司 Verification of configuration parameters
CN102135925A (en) * 2010-12-27 2011-07-27 西安锐信科技有限公司 Method and device for detecting error check and correcting memory
CN102520385A (en) * 2011-12-12 2012-06-27 宁夏隆基宁光仪表有限公司 Automatic error calibration method for single-phase electrical energy meter
WO2014080249A1 (en) * 2012-11-23 2014-05-30 Freescale Semiconductor, Inc. Digital device
CN102967846A (en) * 2012-12-11 2013-03-13 江苏卡欧万泓电子有限公司 Fault self-checking method for intelligent ammeter
CN104035062A (en) * 2014-07-03 2014-09-10 国家电网公司 High-precision calibration method based on ATT7022E metering chip

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502811A (en) * 2016-10-12 2017-03-15 北京精密机电控制设备研究所 A kind of 1553B bus communications fault handling method
CN106502811B (en) * 2016-10-12 2020-03-24 北京精密机电控制设备研究所 1553B bus communication fault processing method
CN110488118A (en) * 2019-08-06 2019-11-22 上海移为通信技术股份有限公司 The anti-interference test method and its system of power supply chip
CN110763890A (en) * 2019-09-29 2020-02-07 许昌许继软件技术有限公司 Metering device
CN113406483A (en) * 2021-08-17 2021-09-17 湖南省计量检测研究院 Anti-interference detection system of metering chip and computer readable storage medium
CN113406483B (en) * 2021-08-17 2021-10-29 湖南省计量检测研究院 Anti-interference detection system of metering chip and computer readable storage medium

Also Published As

Publication number Publication date
CN104635190B (en) 2017-05-03

Similar Documents

Publication Publication Date Title
RU2640126C2 (en) Methods and instruments of leakage current in resistance thermal detector monitoring
WO2020253175A1 (en) Formaldehyde concentration measurement method and apparatus, and air purifier
US10129132B2 (en) Control system, control method, control program, and recording medium
CN104635190A (en) Measuring chip anti-interference detection and error correction method and device
RU2009108308A (en) DEVICES, SYSTEMS AND METHODS CONCERNING PLC SYSTEM FAILURE
US20070273508A1 (en) Process Measuring Device With Expanded Hardware Error Detection
WO2016045095A1 (en) Method, apparatus and device for correcting detection distance
TW201301292A (en) System and method for testing memory of server
GB2561753A (en) System and method for identifying and recovering from a temporary sensor failure
RU2017139547A (en) ANALYZER OF EXHAUSTED AIR AND METHOD FOR DETERMINING DISTURBANCES IN ITS WORK
US9502887B2 (en) Measuring system having at least one field device with at least one display apparatus as well as method for operating same
CN110646134B (en) Calibration method and calibration device for air pressure sensor
CN106484441B (en) Controller initialization method and electronic device applying same
CN204256086U (en) A kind of open circuit short-circuit test device of wiring board
WO2018227475A1 (en) Fingerprint chip detection method, device and system
TWI484142B (en) A multi-sensing element correction system, a correction method and a recording medium
CN110895166A (en) Automatic noise testing method
CN108615543A (en) Self checking method for discrete magnitude signal processing chip
US9746961B2 (en) Background signal processing system and background signal processing method
US10176043B2 (en) Memory controller
CN105865973A (en) Fluid density measuring apparatus
CN105677520A (en) CPU serial voltage recognition signal test device and method
US20110238353A1 (en) System and method for checking a measuring device
CN112415292A (en) Piezoelectric device on-line detection device and method
CN110199229B (en) Control unit and temperature determination method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A measurement and error correction device and method

Effective date of registration: 20220509

Granted publication date: 20170503

Pledgee: Fujian Zhangzhou Rural Commercial Bank Co.,Ltd. Xikeng sub branch

Pledgor: ZHANGZHOU CANNET ELECTRICAL APPLIANCE Co.,Ltd.

Registration number: Y2022980005244

PE01 Entry into force of the registration of the contract for pledge of patent right