JPH05296781A - Electronic travel distance recorder - Google Patents

Electronic travel distance recorder

Info

Publication number
JPH05296781A
JPH05296781A JP12565692A JP12565692A JPH05296781A JP H05296781 A JPH05296781 A JP H05296781A JP 12565692 A JP12565692 A JP 12565692A JP 12565692 A JP12565692 A JP 12565692A JP H05296781 A JPH05296781 A JP H05296781A
Authority
JP
Japan
Prior art keywords
memory
bit
error
xor
data
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
JP12565692A
Other languages
Japanese (ja)
Inventor
Shigeaki Tamura
繁明 田村
Yoichi Shimazu
陽一 島津
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.)
Nippon Seiki Co Ltd
Original Assignee
Nippon Seiki 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 Nippon Seiki Co Ltd filed Critical Nippon Seiki Co Ltd
Priority to JP12565692A priority Critical patent/JPH05296781A/en
Publication of JPH05296781A publication Critical patent/JPH05296781A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Distances Traversed On The Ground (AREA)

Abstract

PURPOSE:To restrain an error from occurring by installing an error correction code means to be operated at the time of detecting a bit error in the storage contents of a main memory. CONSTITUTION:A control means 3, receiving a control signal, outputs a series of data for a renewal (writing/erasing) of storage contents (total distance of run) of a main memory 4 consisting of a nonvolatile memory, and then issues a display signal so as to renew the display contents of a display 6. An error correction code means 7 added for detecting and correcting a bit error in the memory 4 outputs data out of the control means 3 to a first check bit generating means 7 at the time of renewing the storage contents of the memory 4, generating a first check bit, and it is stored in an auxiliary memory 72 with a check domain of 100 words X 5 bits in conformity with the memory 4. At the time of reading from the memory 4, the storage contents are outputted to a second check bit generating means 73, and on the basis of the first check bit corresponding to the storage contents of the second check bit and the memory 72, the bit error of the memory 4 is detected and corrected.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子式走行距離計に関
し、特に誤差の低減に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic odometer, and more particularly to error reduction.

【0002】[0002]

【従来の技術】従来の電子式走行距離計を、例えば車両
のオドメータとして使用する場合、バッテリ異常(電圧
低下や外れ等)になっても過去の総走行距離を保持して
おく必要があることから、不揮発性メモリを用いている
(特開昭57−198810号公報,同59−1964
14号公報参照)。
2. Description of the Related Art When a conventional electronic odometer is used as, for example, an odometer of a vehicle, it is necessary to keep the past total mileage even if a battery abnormality (voltage drop, disconnection, etc.) occurs. Therefore, a non-volatile memory is used (Japanese Patent Laid-Open No. 57-198810 and 59-1964).
14).

【0003】[0003]

【発明が解決しようとする課題】総走行距離のデ−タを
不揮発性メモリに保持しておく場合、不揮発性メモリに
誤デ−タが書き込まれたか否かの判定を確実におこなえ
るか否かという信頼性に問題があった。即ち、前記判別
を行うには、書き込まれているデ−タが多い程誤デ−タ
を発見しやすい(誤デ−タは他の正しいデ−タに対して
懸け離れた値となるため)のであるが、前記従来の技術
では、単位走行距離誤とにデ−タが書き込まれるため、
正しいデ−タの内でもその最小値と最大値(最新値)と
では大きな差を有することとになり、誤デ−タの発見が
むずかしい。
When the data of the total traveling distance is held in the non-volatile memory, whether or not it can be surely judged whether or not the erroneous data has been written in the non-volatile memory. There was a problem with reliability. That is, in order to make the above-mentioned discrimination, it is easier to find erroneous data as the amount of written data is larger (since erroneous data is a value far from other correct data). However, in the above-mentioned conventional technique, since the data is written in the unit mileage error,
Even in correct data, there is a large difference between the minimum value and the maximum value (latest value), and it is difficult to find erroneous data.

【0004】そこで、本出願人は、走行距離の上位桁の
みを不揮発性メモリの各アドレスにデ−タとして書き込
み、下位桁はアドレス自体を利用して表示することによ
り、不揮発性メモリへの書き込み回数を減らすととも
に、各アドレスのデ−タは原則的に2種類しかないこと
から、懸け離れた値の誤デ−タの発見を容易とする信頼
性を高め得る技術を提供した(特開昭62−20131
2号公報参照)。
Therefore, the present applicant writes only the upper digit of the mileage into each address of the non-volatile memory as data, and displays the lower digit by using the address itself, thereby writing into the non-volatile memory. In principle, the number of types of data at each address is reduced and the number of times is reduced. Therefore, a technique has been provided which can improve the reliability of facilitating the detection of erroneous data having a distant value (Japanese Patent Laid-Open No. 62-62160). -20131
No. 2).

【0005】本発明は、本出願人の先の技術に更に新し
い機能を付加することにより、ビット誤りに強い、より
信頼性を高めた電子式走行距離計を提供することを目的
とする。
It is an object of the present invention to provide an electronic odometer that is resistant to bit errors and has higher reliability by adding a new function to the prior art of the present applicant.

【0006】[0006]

【課題を解決するための手段】本発明は、前記課題に着
目し、距離検出手段からの信号をカウントして単位走行
距離後とに走行距離の上位桁を不揮発性メモリから成る
主メモリの各アドレスにデ−タとして書き込み保持し、
前記走行距離の下位桁を前記主メモリの前記アドレス自
体を利用し、前記単位走行距離後とに次の前記アドレス
に移行して前記デ−タを書き込み保持する電子式走行距
離計において、前記主メモリに書き込まれるデ−タに応
じて前記記憶内容のビット誤りを検出するための検査ビ
ットを生成し、前記ビット誤りを検出した場合には訂正
する誤り訂正符号手段を設けたものである。
The present invention focuses on the above-mentioned problems and counts the signals from the distance detecting means to determine the upper digits of the traveling distance after the unit traveling distance and to store the high-order digits of the main memory in a non-volatile memory. Write and hold as data in the address,
In the electronic odometer, which uses the address itself of the main memory for the lower digit of the mileage, shifts to the next address after the unit mileage, and writes and holds the data, There is provided error correction code means for generating a check bit for detecting a bit error of the stored contents according to the data written in the memory and correcting when the bit error is detected.

【0007】[0007]

【作用】主メモリの記憶内容にビット誤りが生じても、
検出及び訂正することができるため、誤差を抑えること
ができる。
[Operation] Even if a bit error occurs in the stored contents of the main memory,
Since it can be detected and corrected, the error can be suppressed.

【0008】[0008]

【実施例】以下、本発明について、添付図面の実施例に
基づいて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the embodiments of the accompanying drawings.

【0009】図1は、本発明に係る電子式走行距離計を
車両のオドメータとして用いたブロック図を示してお
り、距離検出手段1は車両の車輪あるいは車軸に設けら
れ、回転数毎にパルス信号を出力し、距離演算手段2の
距離入力とする。
FIG. 1 shows a block diagram in which the electronic odometer according to the present invention is used as an odometer of a vehicle. The distance detecting means 1 is provided on a wheel or an axle of the vehicle, and a pulse signal is output for each rotation speed. Is output and is used as the distance input of the distance calculation means 2.

【0010】距離演算手段2は距離入力を受けてそのパ
ルス数をカウントし、所定の単位走行距離(1km)毎に
制御手段3へ制御信号を出力する。
The distance calculation means 2 receives the distance input, counts the number of pulses, and outputs a control signal to the control means 3 for each predetermined unit traveling distance (1 km).

【0011】制御手段3は制御信号を受けてEEPRO
M等の不揮発性メモリから成る主メモリ4の記憶内容を
更新(書込/消去)するためのデ−タを出力し、ドライ
バ5を介して表示器6の表示内容を更新するように表示
信号を出力する。
The control means 3 receives the control signal and receives EEPRO.
Data for updating (writing / erasing) the stored contents of the main memory 4 composed of a non-volatile memory such as M is output, and a display signal for updating the displayed contents of the display 6 via the driver 5. Is output.

【0012】主メモリ4への書き込み並びに表示器6へ
の表示信号の出力方法を図2に示す割付表を加えながら
説明する。
A method of writing to the main memory 4 and outputting a display signal to the display 6 will be described with reference to the allocation table shown in FIG.

【0013】主メモリ4は、アドレス00〜99に総走
行距離の上位桁(例えば6桁表示とすると上位4桁、即
ち1桁当り4ビットで全16ビット)を各アドレス00
〜99のデ−タが1種類又は2種類(本実施例では「1
・2・3・3」と「1・2・3・4」の2種類)となる
よう100 km毎に書き込まれ、このデ−タに基づき制御手
段3はドライバ5へ表示信号を出力し、表示器6が最新
値を表示するものであって、ここまでの書き込み並びに
表示信号の出力の方法は、本出願人の前記先の技術と同
一な考え方に基づいている。
The main memory 4 stores the upper digits of the total mileage at addresses 00 to 99 (for example, the upper 4 digits in the case of 6 digits, that is, 4 bits per digit for a total of 16 bits) at each address 00.
.About.99 data of one kind or two kinds (in this embodiment, "1
・ 2,3,3 "and" 1, 2, 3, 4 ") are written every 100 km, and the control means 3 outputs a display signal to the driver 5 based on this data. The display 6 displays the latest value, and the writing and display signal output methods up to this point are based on the same concept as the above-mentioned prior art of the applicant.

【0014】図2において、最新値はアドレス56の記
憶内容であると制御手段3が前記所定の処理により判断
すると、制御手段3は、アドレス56のデ−タ「1・2
・3・4」を読み出し、このデ−タとアドレス56に基
づき総走行居医「123456km」を求める。
In FIG. 2, when the control means 3 determines that the latest value is the stored content of the address 56 by the above-mentioned predetermined processing, the control means 3 determines the data "1.2" of the address 56.
・ 3.4 "is read out and the total running physician" 123456 km "is obtained based on this data and the address 56.

【0015】本発明の特徴は、主メモリ4のビット誤り
の検出及び訂正のため、誤り訂正符号手段7を付加した
ことにある。即ち、主メモリ4の記憶内容を更新する
時、制御手段3からのデ−タを第1検査ビット生成手段
71へ出力して第1検査ビットを生成し、主メモリ4に
対応して100ワ−ド×5ビットの検査ビット領域を有
する補助メモリ72へ記憶させる。主メモリ4の読み出
し時は、主メモリ4の記憶内容を第2検査ビット生成手
段73へ出力して第2検査ビットと補助メモリ72の記
憶内容に対応する第1検査ビットに基づいて主メモリ4
のビット誤りの検出及び訂正を行う。
A feature of the present invention is that an error correction code means 7 is added for detecting and correcting a bit error in the main memory 4. That is, when the stored contents of the main memory 4 are updated, the data from the control means 3 is output to the first check bit generation means 71 to generate the first check bits, and 100 words corresponding to the main memory 4 are generated. -Stored in the auxiliary memory 72 having a check bit area of 5 * 5 bits. When the main memory 4 is read, the stored contents of the main memory 4 are output to the second check bit generation means 73, and the main memory 4 is read based on the second check bits and the first check bits corresponding to the stored contents of the auxiliary memory 72.
Bit error detection and correction are performed.

【0016】次に、図3の検査ビットの生成原理図を用
いて補助メモリ72による主メモリ4のビット誤り訂正
について説明する。
Next, the bit error correction of the main memory 4 by the auxiliary memory 72 will be described using the check bit generation principle diagram of FIG.

【0021】主メモリ4の情報用のビットb16〜b1と
補助メモリ72の検査ビットc4〜c0を加えた21ビ
ットを次のように並べて考える。一般にcxは2↑xの
位置に置く。 位置 21 20 19 18 17 16 15 14 13 ビット b16 b15 b14 b13 b12 c4 b11 b10 b9 位置 12 11 10 9 8 7 6 5 4 ビット b8 b7 b6 b5 c3 b4 b3 b2 c2 位置 3 2 1 ビット b1 c1 c0 検査ビットc4〜c0は、図3に示す原理によって、 c4=b16 XOR b15 XOR b14 XOR b13 XOR b12 c3=b11 XOR b10 XOR b9 XOR b8 XOR b7 XOR
b6 XOR b5 c2=b16 XOR b15 XOR b11 XOR b10 XOR b9 XOR
b8 XOR b4XOR b3 XOR b2 c1=b14 XOR b13 XOR b11 XOR b10 XOR b7 XOR
b6 XOR b4XOR b3 XOR b1 c0=b16 XOR b14 XOR b12 XOR b11 XOR b9 XOR
b7 XOR b5XOR b4 XOR b2 XOR b1 のように生成する。従って、これによればビット誤りが
生じた時その位置を直ちに知ることができる。例えば、
位置11すなわちビットb7に誤りが生じた場合には、当
然それを含む検査ビットc3,c1,c0に誤りが生じ
るので、誤った位置が11すなわちビットb7であること
がわかる。従って、ビットb7を訂正すれば良く、訂正
すなわち元に戻すということは反転することに他ならな
いから、この誤りが生じたという信号とXOR (排他的論
理和)をとれば良く、誤り訂正手段74の前記訂正回路
が排他的論理和をとることはそのためである。ちなみ
に、検査ビットの個数kは、検査対象となる情報用のビ
ットの個数jとの関係において、j=5〜11のときk
=4、j=12〜26のときk=5、j=27〜57の
ときk=6、j=58〜120のときk=7である。
The 21 bits obtained by adding the information bits b16 to b1 of the main memory 4 and the check bits c4 to c0 of the auxiliary memory 72 are arranged and considered as follows. Generally, cx is placed at the position of 2 ↑ x. Position 21 20 19 18 17 16 15 14 13 Bit b16 b15 b14 b13 b12 c4 b11 b10 b9 Position 12 11 10 9 8 7 6 5 4 bits b8 b7 b6 b5 c3 b4 b3 b2 c2 Position 3 2 1 bit c1 b1 b1 c4 to c0 are c4 = b16 XOR b15 XOR b14 XOR b13 XOR b12 c3 = b11 XOR b10 XOR b9 XOR b8 XOR b7 XOR according to the principle shown in FIG.
b6 XOR b5 c2 = b16 XOR b15 XOR b11 XOR b10 XOR b9 XOR
b8 XOR b4 XOR b3 XOR b2 c1 = b14 XOR b13 XOR b11 XOR b10 XOR b7 XOR
b6 XOR b4 XOR b3 XOR b1 c0 = b16 XOR b14 XOR b12 XOR b11 XOR b9 XOR
b7 XOR b5 XOR b4 XOR b2 XOR b1. Therefore, according to this, when a bit error occurs, its position can be immediately known. For example,
When an error occurs at position 11 or bit b7, the check bits c3, c1 and c0 including the error naturally occur, so that it is understood that the incorrect position is 11 or bit b7. Therefore, it is only necessary to correct the bit b7, and correction, that is, restoration to the original is nothing but inversion. Therefore, the signal that this error has occurred and XOR (exclusive OR) may be taken, and the error correction means 74 This is the reason why the correction circuit (1) takes an exclusive OR. By the way, the number k of inspection bits is k when j = 5 to 11 in relation to the number j of information bits to be inspected.
= 4, j = 12 to 26, k = 5, j = 27 to 57, k = 6, and j = 58 to 120, k = 7.

【0018】ここで、例えば、主メモリ4のアドレス5
6のビットb1に1ビット誤りが生じても、補助メモリ
72の検査ビットc4〜c0により検出でき、この誤り
は誤り訂正手段74で訂正し、制御手段3へ渡せる。従
って、制御手段3は主メモリ4の記憶内容を使用する問
題はない。
Here, for example, the address 5 of the main memory 4
Even if a 1-bit error occurs in the bit b1 of 6, it can be detected by the check bits c4 to c0 of the auxiliary memory 72, and this error can be corrected by the error correction means 74 and passed to the control means 3. Therefore, there is no problem that the control means 3 uses the contents stored in the main memory 4.

【0019】なお、補助メモリ72にパリテイビットを
1ビット追加して2ビット誤りが生じたことを検出でき
る。この場合、ビット位置までは特定できないため、制
御手段3へは2ビット誤りの生じたことのみ報告する。
制御手段3はその結果を受け、主メモリ4の記憶内容か
ら誤デ−タを推測して訂正する。但し、2ビット以上の
ビット誤りの生じる可能性は極めて低く、実際の使用に
際しては1ビット誤りの検出と訂正で十分である。
It should be noted that it is possible to detect that a 2-bit error has occurred by adding one parity bit to the auxiliary memory 72. In this case, since the bit position cannot be specified, only the occurrence of a 2-bit error is reported to the control means 3.
The control means 3 receives the result, estimates the erroneous data from the contents stored in the main memory 4, and corrects it. However, the possibility that a bit error of 2 bits or more will occur is extremely low, and in actual use, detection and correction of a 1-bit error are sufficient.

【0020】なお、第1検査ビット生成手段71と第2
検査ビット生成手段73とは、同一回路であり、共用す
ることも可能である。また、ビット誤りの検出及び訂正
に係る処理は、必ずしも論理回路で行う必要はなく、制
御手段3にマイクロコンピユ−タを用いてソフト的に処
理することも可能である。
The first check bit generating means 71 and the second check bit generating means 71
The check bit generating means 73 has the same circuit and can be shared. Further, the processing relating to the detection and correction of the bit error does not necessarily have to be carried out by the logic circuit, and it is also possible to carry out the processing by software using the microcomputer for the control means 3.

【0021】[0021]

【発明の効果】本発明は、距離検出手段からの信号をカ
ウントして単位走行距離後とに走行距離の上位桁を不揮
発性メモリから成る主メモリの各アドレスにデ−タとし
て書き込み保持し、前記走行距離の下位桁を前記主メモ
リの前記アドレス自体を利用し、前記単位走行距離後と
に次の前記アドレスに移行して前記デ−タを書き込み保
持する電子式走行距離計において、前記主メモリに書き
込まれるデ−タに応じて前記記憶内容のビット誤りを検
出するための検査ビットを生成し、前記ビット誤りを検
出した場合には訂正する誤り訂正符号手段を設けたもの
であり、不揮発性メモリのビット誤りの対処が容易とな
る。また、複雑な判定機能を必要とせずにアルゴリズム
の簡素化が図れるので安価で高信頼性の電子式走行距離
計を提供することができる。
According to the present invention, the signal from the distance detecting means is counted, and after the unit traveling distance, the upper digit of the traveling distance is written and held as data in each address of the main memory composed of the non-volatile memory, In the electronic odometer, which uses the address itself of the main memory for the lower digit of the mileage, shifts to the next address after the unit mileage, and writes and holds the data, An error correction code means for generating a check bit for detecting a bit error of the stored contents according to the data written in the memory and correcting when the bit error is detected is provided. It is easy to deal with bit errors in the static memory. Further, since the algorithm can be simplified without requiring a complicated determination function, it is possible to provide an inexpensive and highly reliable electronic odometer.

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

【図1】本発明の実施例を車両のオドメータとして使用
する場合のブロック図。
FIG. 1 is a block diagram when an embodiment of the present invention is used as a vehicle odometer.

【図2】同上実施例の不揮発性メモリの割付図。FIG. 2 is an allocation diagram of the nonvolatile memory according to the embodiment.

【図3】同上実施例の検査ビットの生成の原理図。FIG. 3 is a principle diagram of generation of check bits according to the embodiment.

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

1 距離検出手段 2 距離演算手段 3 制御手段 4 主メモリ 5 ドライバ 6 表示器 7 誤り訂正符号手段 1 distance detection means 2 distance calculation means 3 control means 4 main memory 5 driver 6 indicator 7 error correction coding means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 距離検出手段からの信号をカウントして
単位走行距離後とに走行距離の上位桁を不揮発性メモリ
から成る主メモリの各アドレスにデ−タとして書き込み
保持し、前記走行距離の下位桁を前記主メモリの前記ア
ドレス自体を利用し、前記単位走行距離後とに次の前記
アドレスに移行して前記デ−タを書き込み保持する電子
式走行距離計において、前記主メモリに書き込まれるデ
−タに応じて前記記憶内容のビット誤りを検出するため
の検査ビットを生成し、前記ビット誤りを検出した場合
には訂正する誤り訂正符号手段を設けたことを特徴とす
る電子式走行距離計。
1. A signal from a distance detecting means is counted, and after the unit traveling distance, the upper digit of the traveling distance is written and held as data in each address of a main memory composed of a non-volatile memory, and the traveling distance of the traveling distance is calculated. The lower digit is written in the main memory in the electronic odometer which utilizes the address itself of the main memory and shifts to the next address after the unit travel distance and writes and holds the data. An electronic mileage, characterized in that error correction code means is provided for generating a check bit for detecting a bit error in the stored contents in accordance with data, and correcting when the bit error is detected. Total.
JP12565692A 1992-04-17 1992-04-17 Electronic travel distance recorder Pending JPH05296781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12565692A JPH05296781A (en) 1992-04-17 1992-04-17 Electronic travel distance recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12565692A JPH05296781A (en) 1992-04-17 1992-04-17 Electronic travel distance recorder

Publications (1)

Publication Number Publication Date
JPH05296781A true JPH05296781A (en) 1993-11-09

Family

ID=14915414

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12565692A Pending JPH05296781A (en) 1992-04-17 1992-04-17 Electronic travel distance recorder

Country Status (1)

Country Link
JP (1) JPH05296781A (en)

Similar Documents

Publication Publication Date Title
JP2830308B2 (en) Information processing device
US20080040652A1 (en) Memory Error Detection Device and Method for Detecting a Memory Error
JPH05296781A (en) Electronic travel distance recorder
US7620884B2 (en) Memory checking device and method for checking a memory
JPH05296782A (en) Electronic travel distance recorder
JP2917699B2 (en) Drive
JP3170145B2 (en) Memory control system
JP3116337B2 (en) Electronic odometer
JP2872031B2 (en) Electronic odometer
JP2513615B2 (en) Storage device with ECC circuit
JPH0755496A (en) Electronic traveling distance recorder
JP3003543B2 (en) Electronic odometer
JP2917677B2 (en) Electronic odometer
JP3087269B2 (en) Electronic odometer
JP3280216B2 (en) Electronic integrator
JP2848119B2 (en) Electronic odometer
JP3130796B2 (en) Control storage device
JP2669484B2 (en) Electronic odometer
JP2850667B2 (en) Electronic odometer
SU868844A1 (en) Self-checking storage device
JPS60105915A (en) Electronic odometer
JP3339046B2 (en) Electronic data storage
JPH06288784A (en) Electronic odometer
JPH11325953A (en) Electronic odometer system
JPH05240656A (en) Electronic odometer