JPH04114637U - Measuring device with data duplication mechanism - Google Patents

Measuring device with data duplication mechanism

Info

Publication number
JPH04114637U
JPH04114637U JP1863291U JP1863291U JPH04114637U JP H04114637 U JPH04114637 U JP H04114637U JP 1863291 U JP1863291 U JP 1863291U JP 1863291 U JP1863291 U JP 1863291U JP H04114637 U JPH04114637 U JP H04114637U
Authority
JP
Japan
Prior art keywords
data
area
volatile memory
detected
error
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
JP1863291U
Other languages
Japanese (ja)
Inventor
勇二 佐藤
Original Assignee
横河電機株式会社
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 横河電機株式会社 filed Critical 横河電機株式会社
Priority to JP1863291U priority Critical patent/JPH04114637U/en
Publication of JPH04114637U publication Critical patent/JPH04114637U/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 ビット反転などによるデータの欠落が発生し
ても安全に正しいデータを確保することが可能なデータ
二重化機構を備えた測定装置を提供する。 【構成】 測定に必要なデータを不揮発性メモリに格納
した測定装置において、データ格納領域が二重化された
不揮発性メモリと、不揮発性メモリの各領域のデータを
比較してエラーを検出し、エラーが検出された領域のデ
ータをエラーが未検出の領域のデータで置き換える制御
手段とを備えたことを特徴とするデータ二重化機構を備
えた測定装置。
(57) [Summary] [Purpose] To provide a measuring device equipped with a data duplication mechanism that can safely ensure correct data even if data is lost due to bit inversion or the like. [Structure] In a measurement device that stores the data necessary for measurement in a non-volatile memory, the data storage area is duplicated in the non-volatile memory, and the data in each area of the non-volatile memory is compared to detect errors. A measuring device equipped with a data duplication mechanism, characterized in that it is equipped with a control means for replacing data in a detected area with data in an area in which no errors are detected.

Description

【考案の詳細な説明】[Detailed explanation of the idea]

【0001】0001

【産業上の利用分野】[Industrial application field]

本考案は測定装置に関し、特に不揮発性メモリ内のデータ保存中に発生するビ ット反転等によるデータ変化を安全に修復することができるデータ構造を備えた 測定装置に関する。 The present invention relates to measurement equipment, and in particular to measuring data that occurs during data storage in non-volatile memory. Equipped with a data structure that can safely repair data changes due to cut reversal, etc. Concerning a measuring device.

【0002】0002

【従来の技術】[Conventional technology]

測定装置において、パネル設定や補正値の保存のために、バックアップ電源が 不用な不揮発性メモリが広く使用されている。しかし、不揮発性メモリはデータ 保存中に電荷のリーク等によりデータ変化(ビット反転)を生じる場合がある。 In measurement equipment, backup power is required to save panel settings and correction values. Unnecessary non-volatile memory is widely used. However, non-volatile memory During storage, data changes (bit inversion) may occur due to charge leakage, etc.

【0003】 このため、重要なデータを不揮発性メモリに格納する場合には、データ変化が 生じても、検出,修復できるデータ保護が必要になる。0003 For this reason, when storing important data in non-volatile memory, data changes may occur. You need data protection that can detect and repair any occurrences.

【0004】0004

【考案が解決しようとする課題】[Problem that the idea aims to solve]

従来、広く行われてきたサム値によるチェックでは、データ変化が発生したこ とは検出できるが、誤りの位置を検出することができない。従って、データの修 復をすることはできない。 Conventionally, checks using sum values, which have been widely used, do not detect changes in data. can be detected, but the location of the error cannot be detected. Therefore, data repair You cannot take revenge.

【0005】 また、パリティによるチェックでは、誤り位置をも検出することができる。し かし、不揮発性メモリは、データの書き直し中にはワード単位でデータを消去し た後に書き込みを行う。このため、データの修復中に機器の電源が切断された場 合には、データ破壊の被害が大きくなるといった問題がある。[0005] Additionally, parity checking can also detect error positions. death However, non-volatile memory erases data in units of words during data rewriting. Write after. Therefore, if the device is powered off during data recovery, In such cases, there is a problem in that the damage caused by data destruction becomes greater.

【0006】 本考案はこのような点に着目してなされたものであり、その目的は、ビット反 転などによるデータの欠落が発生しても安全に正しいデータを確保することが可 能なデータ二重化機構を備えた測定装置を提供することにある。[0006] The present invention was made with attention to these points, and its purpose is to Even if data is lost due to data transfer, the correct data can be safely secured. The object of the present invention is to provide a measuring device equipped with a data duplication mechanism capable of performing data duplication.

【0007】[0007]

【課題を解決するための手段】[Means to solve the problem]

上記課題を解決する本考案は、測定に必要なデータを不揮発性メモリに格納し た測定装置において、 データ格納領域が二重化された不揮発性メモリと、 不揮発性メモリの各領域のデータを比較してエラーを検出し、エラーが検出さ れた領域のデータをエラーが未検出の領域のデータで置き換える制御手段とを備 えたことを特徴とするデータ二重化機構を備えた測定装置。 This invention solves the above problems by storing the data necessary for measurement in non-volatile memory. In the measuring device, Non-volatile memory with dual data storage areas, Errors are detected by comparing the data in each area of non-volatile memory, and the error is detected. control means for replacing the data in the area where the error has been detected with the data in the area where no error has been detected. A measuring device equipped with a data duplication mechanism characterized by:

【0008】[0008]

【作用】[Effect]

本考案において、不揮発性メモリに格納されるデータは二重化されており、ビ ット反転などによりデータ変化(エラー)が生じた場合、いずれの領域のデータ にデータ変化が生じたかがサム値により検出される。そして、エラーが検出され た領域のデータは、エラーが未検出の領域のデータで置き換えられる。この結果 、正しいデータが確保される。 In this invention, the data stored in non-volatile memory is duplicated and If a data change (error) occurs due to write reversal, etc., the data in any area Whether a data change has occurred is detected based on the sum value. and the error is detected The data in the area where the error was detected is replaced with the data in the area where no error has been detected. As a result , ensuring correct data.

【0009】[0009]

【実施例】【Example】

以下、図面を参照して本考案の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0010】 図1は本考案の一実施例を示す構成図であり、図2は図1に示した構成の装置 の動作の流れを示すPAD(問題解析図)であり、図3は不揮発性メモリのデー タ構成の一例を示す説明図である。0010 FIG. 1 is a configuration diagram showing an embodiment of the present invention, and FIG. 2 is a diagram showing an apparatus having the configuration shown in FIG. 1. Figure 3 is a PAD (Problem Analysis Diagram) showing the flow of operation. FIG. 2 is an explanatory diagram showing an example of a data structure.

【0011】 図1に示すように、CRTやキーボード等のマン・マシン部1はCPUボード 2に接続されており、このCPUボード2にはバスを介してクロック発生ボード 3及び不揮発性メモリを備えた波形出力ボード4が接続されている。尚、この図 では波形出力ボードは4チャンネルのものを使用している。[0011] As shown in Figure 1, the man-machine section 1, such as the CRT and keyboard, is the CPU board. 2, and this CPU board 2 is connected to the clock generation board via the bus. 3 and a waveform output board 4 equipped with non-volatile memory are connected. Furthermore, this figure In this case, a 4-channel waveform output board is used.

【0012】 また、波形出力ボード4内の不揮発性メモリは、図3に示すように二重化され たデータ領域(領域A/領域B)を有している。この図では、波形発生について のアッテネータ補正値のデータの場合について示している。また、それ以外に、 ボードID,ソフトバージョン,ハードバージョン等も両方の領域に格納されて いる。0012 In addition, the nonvolatile memory in the waveform output board 4 is duplicated as shown in FIG. It has two data areas (area A/area B). In this figure, the waveform generation The case of attenuator correction value data is shown. Also, other than that, Board ID, software version, hard version, etc. are also stored in both areas. There is.

【0013】 ここで、図2の問題解析図を参照して、不揮発性メモリ内のデータの誤り検出 ,修復(データ修復処理ルーチン)について説明する。尚、以下の説明では、不 揮発性メモリとしてEEPROMを使用した場合を考える。[0013] Here, with reference to the problem analysis diagram in Figure 2, we will explain how to detect errors in data in non-volatile memory. , restoration (data restoration processing routine) will be explained. In addition, in the following explanation, Consider the case where EEPROM is used as volatile memory.

【0014】 <エラーフラグの初期化> まず、CPU内のデータ修復処理ルーチンにおけるエラーフラグを初期化し、0 に設定する。[0014] <Initialization of error flag> First, the error flag in the data recovery processing routine in the CPU is initialized to 0. Set to .

【0015】 <領域Aのエラー検出> 次に、不揮発性メモリの領域Aについてチェックサムを検査する。そして、エラ ーが検出されれば、エラーフラグを1に設定する。[0015] <Error detection in area A> Next, check the checksum for area A of the non-volatile memory. And Ella - is detected, the error flag is set to 1.

【0016】 <領域Bのエラー検出> 次に、不揮発性メモリの領域Bについてチェックサムを検査する。そして、エラ ーが検出されれば、エラーフラグに2を加算する。[0016] <Error detection in area B> Next, check the checksum for area B of the non-volatile memory. And Ella - is detected, add 2 to the error flag.

【0017】 <マスタ/スレーブ設定> ここで、エラー検出結果(エラーフラグの値)に基づいて、二重化されたデータ のマスタ/スレーブ設定処理を行う。[0017] <Master/slave settings> Here, based on the error detection result (error flag value), the duplicated data is Performs master/slave setting processing.

【0018】 エラーフラグが0であれば、不揮発性メモリ内の領域A,B共に正常であるの で、正常処理ルーチンに進む。[0018] If the error flag is 0, both areas A and B in nonvolatile memory are normal. Then, proceed to the normal processing routine.

【0019】 エラーフラグが1であれば、領域Aにデータ誤りが発生しており、領域Bが正 常であることを示している。従って、領域Aをスレーブ側に設定し、領域Bをマ スタ側に設定する。[0019] If the error flag is 1, a data error has occurred in area A, and area B is correct. It shows that it is normal. Therefore, set area A to the slave side and set area B to the slave side. Set on the star side.

【0020】 エラーフラグが2であれば、領域Bにデータ誤りが発生しており、領域Aが正 常であることを示している。従って、領域Bをスレーブ側に設定し、領域Aをマ スタ側に設定する。[0020] If the error flag is 2, a data error has occurred in area B, and area A is correct. It shows that it is normal. Therefore, set area B on the slave side and area A on the slave side. Set on the star side.

【0021】 エラーフラグが3であれば、不揮発性メモリ内の領域A,B共にデータ誤りが 発生しているので、エラー処理ルーチンを実行する。[0021] If the error flag is 3, there is a data error in both areas A and B in the nonvolatile memory. Since this has occurred, execute the error handling routine.

【0022】 <データ修復> いずれか一方の領域が正常(エラーフラグの値=1,2)であるときは、以上の マスタ/スレーブ処理でマスタと設定された側のデータでスレーブ側を書き換え る。すなわち、最初から修復履歴の前までのアドレスを順次発生させ、マスタ及 びスレーブの両方から各1ワードずつデータを読み出す。そして、両データを比 較し、相違が検出された部分では、スレーブデータをマスタデータに置き換える 。そして、両データに相違が検出されなかった場合、及び相違が検出されてデー タの書き換えが完了した場合、サム値を計算する。[0022] <Data recovery> If either area is normal (error flag value = 1, 2), the above Rewrite the slave side with the data set as master in master/slave processing Ru. In other words, the addresses from the beginning to the beginning of the repair history are generated sequentially, and the master and One word of data is read from both the slave and the slave. Then, compare both data. and replace slave data with master data where differences are detected. . Then, if no difference is detected between both data, or if a difference is detected and the data is When data rewriting is completed, calculate the sum value.

【0023】 <修復履歴の更新> そして、マスタ側に設定された領域の修復履歴を1つ増加させ、領域A,B両方 に格納する。これにより、データの修復が実行されたことを記録する。[0023] <Repair history update> Then, increase the repair history of the area set on the master side by one, and Store in. This records that the data has been repaired.

【0024】 <サム値の更新> ここで、修復履歴のデータによりサム値を計算し、領域A,Bのサム値格納場所 に格納する。[0024] <Updating the sum value> Here, the sum value is calculated based on the repair history data, and the sum value storage location of areas A and B is calculated. Store in.

【0025】 <正常処理ルーチン> 以上のデータ修正処理が完了したら、正常処理ルーチンに戻り、通常の処理を続 行する。[0025] <Normal processing routine> After completing the above data correction processing, return to the normal processing routine and continue normal processing. go

【0026】 以上のように、本実施例によれば、データ保存中のビット反転等によるデータ 変化を検出できるようになる。また、修正途中に機器の電源が切断されたような 場合でも、常に一方に正しいデータが確保されているため、安全に処理を行うこ とができる。従って、不揮発性メモリを使用した測定機器の信頼性を向上させる 効果がある。[0026] As described above, according to this embodiment, data is generated by bit inversion during data storage. Changes can be detected. Also, if the power of the device was cut off during the repair process, Even if the I can do that. Therefore, improving the reliability of measurement equipment using non-volatile memory effective.

【0027】[0027]

【考案の効果】[Effect of the idea]

以上詳細に説明したように、本考案によれば、ビット反転などによるデータの 欠落が発生しても安全に正しいデータを確保することが可能なデータ二重化機構 を備えた測定装置を実現できる。 As explained in detail above, according to the present invention, data can be changed by bit reversal, etc. Data duplication mechanism that can safely ensure correct data even if data is missing It is possible to realize a measuring device equipped with

【図面の簡単な説明】[Brief explanation of drawings]

【図1】本考案の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】本考案の一実施例の処理の流れの一例を示す説
明図である。
FIG. 2 is an explanatory diagram showing an example of a processing flow in an embodiment of the present invention.

【図3】本考案の一実施例にかかる装置のデータ配置例
を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of data arrangement of a device according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 マン・マシン部 2 CPUボード 3 クロック発生ボード 4 波形出力ボード 1 Man-Machine Department 2 CPU board 3 Clock generation board 4 Waveform output board

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 測定に必要なデータを不揮発性メモリに
格納した測定装置において、データ格納領域が二重化さ
れた不揮発性メモリと、不揮発性メモリの各領域のデー
タを比較してエラーを検出し、エラーが検出された領域
のデータをエラーが未検出の領域のデータで置き換える
制御手段とを備えたことを特徴とするデータ二重化機構
を備えた測定装置。
1. In a measuring device that stores data necessary for measurement in a non-volatile memory, an error is detected by comparing data in each area of the non-volatile memory with a non-volatile memory having a dual data storage area, A measuring device equipped with a data duplication mechanism, characterized in that it is equipped with a control means for replacing data in an area where an error has been detected with data in an area where no error has been detected.
JP1863291U 1991-03-26 1991-03-26 Measuring device with data duplication mechanism Pending JPH04114637U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1863291U JPH04114637U (en) 1991-03-26 1991-03-26 Measuring device with data duplication mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1863291U JPH04114637U (en) 1991-03-26 1991-03-26 Measuring device with data duplication mechanism

Publications (1)

Publication Number Publication Date
JPH04114637U true JPH04114637U (en) 1992-10-09

Family

ID=31905096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1863291U Pending JPH04114637U (en) 1991-03-26 1991-03-26 Measuring device with data duplication mechanism

Country Status (1)

Country Link
JP (1) JPH04114637U (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56169298A (en) * 1980-05-31 1981-12-25 Matsushita Electric Works Ltd Memory backup system
JPS6288044A (en) * 1985-10-14 1987-04-22 Fujitsu Ltd Memory control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56169298A (en) * 1980-05-31 1981-12-25 Matsushita Electric Works Ltd Memory backup system
JPS6288044A (en) * 1985-10-14 1987-04-22 Fujitsu Ltd Memory control system

Similar Documents

Publication Publication Date Title
US5502732A (en) Method for testing ECC logic
US6219656B1 (en) Memory integrity for meters
TWI490876B (en) Method and apparatus of system boot and pilot process
JPH05197499A (en) Disk array controller
JP2606862B2 (en) Single error detection and correction method
CN111428280A (en) SoC (System on chip) security chip key information integrity storage and error self-repairing method
JPH04114637U (en) Measuring device with data duplication mechanism
JP2001290710A (en) Device for detecting data error
JPS61151758A (en) Memory back-up system
JPH0784894A (en) Method for writing nonvolatile memory
JPS6146864B2 (en)
JPH0728707A (en) Data protecting method for nonvolatile memory
JP3680821B2 (en) Data transfer system
JP3314719B2 (en) Flash EEPROM and its test method
JP2998282B2 (en) Memory device
JPH06274421A (en) Data securing system
JP3071846B2 (en) Parity error detection method and parity error detection circuit
JPH04367047A (en) Memory check method after recovery of power supply
JPH03127241A (en) Memory control method for paging virtual storage system
US20070271485A1 (en) Method and Device for Error Detection for a Cache Memory and Corresponding Cache Memory
CN113626246A (en) Single-bit overturning fast repairing method and device, computer equipment and storage medium
CN115562591A (en) Reliable EEPROM data storage system, method and device
JPS63170756A (en) Main storage initializing system
JPH04364551A (en) Memory duplicating device
JPH01241652A (en) Device for checking memory