CN104635190B - 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 PDFInfo
- Publication number
- CN104635190B CN104635190B CN201410851721.3A CN201410851721A CN104635190B CN 104635190 B CN104635190 B CN 104635190B CN 201410851721 A CN201410851721 A CN 201410851721A CN 104635190 B CN104635190 B CN 104635190B
- Authority
- CN
- China
- Prior art keywords
- value
- depositor
- calibration parameter
- equal
- parameter verification
- 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.)
- Active
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
Technical field
The present invention relates to measuring instrument field, particularly a kind of computation chip is anti-interference to be detected 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 received
To impact, the legal dispute between user and supplier may be directly resulted in.And detect that computation chip mistake and error correction are instrument
Requisite part.Generally, various environmental disturbances are easily subject in the environment with the communication interface of computation chip communication, cause
The value that the calibration parameter verification and depositor returned is read from computation chip is wrong, if going reset initialization this when
Computation chip may cause the computation chip discontinuous of original normal operation, so as to metrology and measurement is just inaccurate.
The content of the invention
Present invention is primarily targeted at overcoming drawbacks described above of the prior art, propose that one kind effectively can be detected reliably
Computation chip mistake and carry out correction process computation chip it is anti-interference detection and error correction method and device.
The present invention is adopted the following technical scheme that:
A kind of anti-interference detection of computation chip and error correction method, be applied in be provided with the meter of calibration parameter verification and depositor
Amount chip, the computation chip is backed up when calibration is completed to the value of the calibration parameter verification and depositor, it is characterised in that:
Comprise the steps:
1) value of calibration parameter verification and depositor is read, and is compared with the value of backup, if equal, do not make to locate
Reason, if unequal, into step 2);
2) value of calibration parameter verification and depositor is again read off, is compared with the value of backup, if equal, do not make to locate
Reason, if unequal, into step 3);
3) by twi-read to calibration parameter verification and the value of depositor be compared, if equal, reset the metering
Chip, if unequal, does not deal with.
Preferably, the computation chip is ATT7053B computation chips.
A kind of anti-interference detection of computation chip and error correction device, it is characterised in that:Including
Reading device, for reading the value of calibration parameter verification and depositor;
Whether comparison means, the value for comparing the calibration parameter verification and depositor for reading is equal with the value of backup,
And control reading device again reads off and compares when not etc.;
Judge processing meanss, for the calibration parameter verification that arrives in twi-read and depositor value with the value of backup not
Deng when, judge whether two sub-values equal, and start resetting means when equal;
Resetting means, resets for controlling computation chip.
From the above-mentioned description of this invention, compared with prior art, the present invention has the advantages that:
Methods and apparatus of the present invention, by the value for reading calibration parameter verification and depositor, and is carried out with the value of backup
Relatively, if twi-read and comparing unequal, and the value of twi-read is equal, illustrate to be disturbed by environmental factorss, then
Initialization computation chip.Methods and apparatus of the present invention can effectively and reliably detect computation chip mistake and carry out correction process,
Ensure computation chip normal work.
Description of the drawings
Fig. 1 is the inventive method flow chart;
Fig. 2 is apparatus of the present invention schematic diagram.
Specific embodiment
Below by way of specific embodiment, the invention will be further described.
With reference to Fig. 1, a kind of anti-interference detection of computation chip and error correction method, be applied in be provided with calibration parameter verification and post
The computation chip of storage, such as ATT7053B computation chips.There are a calibration parameter verification and deposit inside the computation chip
Device, if the computation chip is because certain reason causes calibration parameter to change, this register value also and then changes, that
One piece of instrument facilitates instrument to transport carrying out the value of this calibration parameter verification and depositor will being carried out into backup when calibration is completed
Real-time monitoring comparison is carried out during row.The method of the present invention comprises the steps:
1) value for reading calibration parameter verification and depositor is M1, and is compared with value N of backup, if equal, no
Deal with, if unequal, into step 2);
2) value for again reading off calibration parameter verification and depositor is M2, is compared with value N of backup, if equal,
Do not deal with, if unequal, into step 3);
3) by twi-read to calibration parameter verification and the value of depositor be compared, if equal, illustrate calibration parameter
Change, then the reset initialization computation chip, if unequal, represent that communication port may be interfered (such as electromagnetic interference, height
Low temperature humidity interference etc.), then do not deal with.
Calibration parameter of the present invention based on computation chip is sent when changing, and the value of calibration parameter verification and depositor also can be with
And change.
With reference to Fig. 2, the present invention also proposes a kind of anti-interference detection of computation chip and error correction device, including
Reading device, for reading the value of calibration parameter verification and depositor.
Comparison means, is connected with reading device, for compare the value of the calibration parameter verification and depositor for reading with it is standby
Whether the value of part is equal, and control reading device again reads off and compares when unequal.
Judge processing meanss, be connected with comparison means, for the calibration parameter verification that arrives in twi-read and depositor
When value is not waited with the value of backup, judge whether two sub-values are equal, and start resetting means when equal.
Resetting means, is connected with processing meanss are judged, resets for controlling computation chip.
The specific embodiment of the present invention is above are only, but the design concept of the present invention is not limited thereto, it is all to utilize this
Design carries out the change of unsubstantiality to the present invention, all should belong to the behavior for invading the scope of the present invention.
Claims (3)
1. a kind of anti-interference detection of computation chip and error correction method, are applied to the interior metering for being provided with calibration parameter verification and depositor
Chip, the computation chip is backed up when calibration is completed to the value of the calibration parameter verification and depositor, it is characterised in that:Bag
Include following steps:
1) value of calibration parameter verification and depositor is read, and is compared with the value of backup, if equal, do not dealt with, if
It is unequal, then into step 2);
2) value of calibration parameter verification and depositor is again read off, is compared with the value of backup, if equal, do not dealt with,
If unequal, into step 3);
3) by twi-read to calibration parameter verification and the value of depositor be compared, if equal, reset the computation chip,
If unequal, do not deal with.
2. a kind of anti-interference detection of computation chip as claimed in claim 1 and error correction method, it is characterised in that:The metering core
Piece is ATT7053B computation chips.
3. a kind of anti-interference detection of computation chip and error correction device, are applied to the interior metering for being provided with calibration parameter verification and depositor
Chip, the computation chip is backed up when calibration is completed to the value of the calibration parameter verification and depositor, it is characterised in that:Bag
Include
Reading device, for reading the value of calibration parameter verification and depositor;
Whether comparison means, the value for comparing the calibration parameter verification and depositor for reading is equal with the value of backup, and
Control reading device again reads off and compares when not waiting;
Judge processing meanss, for the calibration parameter verification that arrives in twi-read and depositor value with the value of backup
When, judge whether two sub-values are equal, and start resetting means when equal;
Resetting means, resets for controlling computation chip.
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 CN104635190A (en) | 2015-05-20 |
CN104635190B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN110763890B (en) * | 2019-09-29 | 2022-09-09 | 许昌许继软件技术有限公司 | Metering device |
CN113406483B (en) * | 2021-08-17 | 2021-10-29 | 湖南省计量检测研究院 | Anti-interference detection system of metering chip and computer readable storage medium |
Citations (8)
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 |
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 |
CN104035062A (en) * | 2014-07-03 | 2014-09-10 | 国家电网公司 | High-precision calibration method based on ATT7022E metering chip |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8566669B2 (en) * | 2010-07-07 | 2013-10-22 | Ocz Technology Group Inc. | Memory system and method for generating and transferring parity information |
WO2014080249A1 (en) * | 2012-11-23 | 2014-05-30 | Freescale Semiconductor, Inc. | Digital device |
-
2014
- 2014-12-31 CN CN201410851721.3A patent/CN104635190B/en active Active
Patent Citations (8)
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 |
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104635190A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104635190B (en) | Measuring chip anti-interference detection and error correction method and device | |
EP3396313B1 (en) | Mobile dimensioning method and device with dynamic accuracy compatible with nist standard | |
US9228524B2 (en) | Static and dynamic pressure compensation for intake oxygen sensing | |
WO2020253175A1 (en) | Formaldehyde concentration measurement method and apparatus, and air purifier | |
US9702681B2 (en) | System and method for temperature compensation of measurement machine | |
EP2573531A3 (en) | Threshold-based temperature-dependent power/thermal management with temperature sensor calibration | |
US20190196441A1 (en) | Apparatus, method, and computer readable media for controlling machining parameters | |
US10684321B2 (en) | Printed circuit board inspecting apparatus, method for detecting anomaly in solder paste and computer readable recording medium | |
EP2738518A3 (en) | Inertia sensor and method for reducing operation error of the same | |
CN106662970A (en) | Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device | |
CN206920856U (en) | For correcting the device and process control equipment of sensor | |
JP2014071792A5 (en) | ||
RU2017139547A (en) | ANALYZER OF EXHAUSTED AIR AND METHOD FOR DETERMINING DISTURBANCES IN ITS WORK | |
TW201301292A (en) | System and method for testing memory of server | |
US9435836B2 (en) | Power consumption detector and motherboard as well as fan board using the same | |
US9436188B2 (en) | Systems and methods for detecting compressor surge | |
US9502887B2 (en) | Measuring system having at least one field device with at least one display apparatus as well as method for operating same | |
CN106815564A (en) | A kind of calibration method of fingerprint recognition system, system and a kind of electronic equipment | |
CN103364108A (en) | Welding temperature detection device, welding machine and welding temperature calibration method | |
US10718799B2 (en) | Methods and apparatus to determine an operational status of a device using a magnetic field | |
CN106989704A (en) | Realize the system and method for automatic detection target putting position to be measured | |
JP2014057214A5 (en) | ||
US20110161029A1 (en) | Surface mount technology measurement system and method | |
TWI484142B (en) | A multi-sensing element correction system, a correction method and a recording medium | |
US20110238353A1 (en) | System and method for checking a measuring device |
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 |