JPH0240507A - Electronic odometer - Google Patents

Electronic odometer

Info

Publication number
JPH0240507A
JPH0240507A JP19132688A JP19132688A JPH0240507A JP H0240507 A JPH0240507 A JP H0240507A JP 19132688 A JP19132688 A JP 19132688A JP 19132688 A JP19132688 A JP 19132688A JP H0240507 A JPH0240507 A JP H0240507A
Authority
JP
Japan
Prior art keywords
data
storage location
data storage
updated
stored
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
JP19132688A
Other languages
Japanese (ja)
Inventor
Shuji Sato
修治 佐藤
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 JP19132688A priority Critical patent/JPH0240507A/en
Publication of JPH0240507A publication Critical patent/JPH0240507A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Distances Traversed On The Ground (AREA)

Abstract

PURPOSE:To retrieve the stored place of the up-to-date data simply and accurately by storing the data having a bit alignment that is different from a bit alignment of data used for expressing running distance data at a data storing place. CONSTITUTION:Data comprising the same bit alignment are written in the bytes of a specified data storing place. The bit alignment of said data is made to be an alignment that is different from a bit alignment used for expressing running distance data. In reading, a data storing place having bytes wherein said specified bit alignment is stored is retrieved. When the specified number of the bytes agreeing the specified bit alignment are present in the bytes of the stored place, data corresponding to a specified running distance are added to the data which are stored before the stored data. Thus the newest total running distance data are obtained. The data in the data storing place having the specified bit alignment are updated with said up-to-date total running distance data. A data storing place which will be updated at the next time from said updated data storing place is made to be a specified data storing place.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は車両に搭載される、総走行距離を電気的に記憶
する電子式オドメータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic odometer mounted on a vehicle that electrically stores the total distance traveled.

〔従来例〕[Conventional example]

従来、この種の装置として、車両の総走行距離データを
、例えばバッテリーの交換時やバンクアップ電圧の低下
が起きても確実に記憶しておくようにするため、不揮発
的に記憶させるEEROMなど用いたものが数多く提案
されている。しかしこれら不揮発性メモリは書き込み回
数に限度があリ、なるべくこの回数を減らしデータを記
憶することのできる電子式オドメータが望まれており、
例えば特開昭59−196414号に記載されている様
に、総走行距離データを複数のデー、夕記憶個所に順に
書き込んで1つのデータ記憶個所が負担する書き換え回
数を減らそうとするものが公開となっている。
Conventionally, this type of device has been used for devices such as EEROM, which stores the vehicle's total mileage data in a non-volatile manner, in order to reliably store the data even when the battery is replaced or the bank-up voltage drops. Many things have been proposed. However, these non-volatile memories have a limit on the number of times they can be written to, and an electronic odometer that can store data while reducing this number of times is desired.
For example, as described in Japanese Patent Application Laid-Open No. 196414/1984, a method has been published that attempts to reduce the number of rewrites that one data storage area has to bear by sequentially writing total mileage data to multiple data storage areas. It becomes.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

この様に、複数のデータ記憶個所に順にデータを書き換
えていく方式をとっている不揮発性メモリでは、最新に
書き換えられたデータがどのデータ記憶個所に記憶され
ているかはそれぞれのデータ記憶個所に記憶されている
データを読み込んで判断するようにしているため、例え
ば前記公報のように最大値が記憶されているデータ記憶
個所を所望のそれとしたり、特開昭62−202312
号のように隣り合ったデータ記憶個所が記憶するデータ
に差が生じた個所のデータ記憶個所を所望のそれとした
りしている。
In this way, in a nonvolatile memory that uses a method to sequentially rewrite data to multiple data storage locations, the data storage location in which the most recently rewritten data is stored is stored in each data storage location. For example, as in the above-mentioned publication, the data storage location where the maximum value is stored may be used as the desired data storage location, or
For example, a data storage location where there is a difference in the data stored in adjacent data storage locations is selected as the desired data storage location.

この所望のデータ記憶個所を正確に検索するには、各デ
ータ記憶個所に記憶されているデータが信転性のあるも
のでなくてはならないが、データ書き込み時に発生する
ノイズやデータ記憶個所の故障などで正確にデータを記
憶できない場合がまれに生じるため、プログラムにその
対策のためのプログラムを加えるようにしているが、プ
ログラムが複雑化することにともなって処理時間も長く
なる傾向にある。
In order to accurately search for this desired data storage location, the data stored in each data storage location must be reliable, but noise that occurs during data writing and failure of the data storage location are important. In rare cases where data cannot be stored accurately, programs are added to the program to deal with this problem, but as the programs become more complex, the processing time tends to increase as well.

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

本発明は上記問題点を解決するために、所望のデータ記
憶個所を正確に検索できるよう前記所望のデータ記憶個
所の各バイトには、走行距離データを表すときに用いら
れるデータの持つビット配列とは異なった特定のビット
配列を持つデータを記憶させたことを特徴とする。
In order to solve the above-mentioned problems, the present invention has provided that each byte of the desired data storage location has a bit array of data used to represent mileage data so that the desired data storage location can be accurately retrieved. is characterized by storing data with different specific bit arrangements.

〔実施例〕〔Example〕

第1図、第2図及び第3図に本発明のブロック図とこの
ブロック図の操作を示す流れ図及び状態図を示し説明す
る。
FIG. 1, FIG. 2, and FIG. 3 are block diagrams of the present invention, and flow charts and state diagrams showing the operation of the block diagrams will be described.

1は車両が一定距離走行する毎にパルス信号を出力する
パルス発生器である。2はパルス発生器1が出力するパ
ルス信号を計数するカウント機能を持った演算回路であ
る。3は車両の走行距離データをBCDコードで記憶す
るための不揮発性メモリで、この不揮発性メモリ3は複
数のデータ記憶個所3aを持ち、さらに各データ記憶個
所は複数のバイト3bから構成されているものである。
1 is a pulse generator that outputs a pulse signal every time the vehicle travels a certain distance. Reference numeral 2 denotes an arithmetic circuit having a counting function for counting pulse signals output from the pulse generator 1. Reference numeral 3 denotes a non-volatile memory for storing vehicle mileage data in BCD code. This non-volatile memory 3 has a plurality of data storage locations 3a, and each data storage location is composed of a plurality of bytes 3b. It is something.

この実施例ではO番地から49番地までの50のデータ
記憶個所を持ち、各々4バイトで構成されている。4は
書込回路で、前記演算回路2の指令より演算回路2で処
理されたデータを不揮発性メモリ3に書き込むためのも
ので、また、5は読出回路で、前記演算回路2の指令よ
りデータを不揮発性メモリ3から読み出すためのもので
ある。6は演算回路2で処理された車両の総走行距離に
対応するデータを表示し一時的に記憶することのできる
表示装置である。
In this embodiment, there are 50 data storage locations from address O to address 49, each consisting of 4 bytes. 4 is a write circuit, which writes the data processed by the arithmetic circuit 2 into the nonvolatile memory 3 according to the command from the arithmetic circuit 2; This is for reading out from the nonvolatile memory 3. A display device 6 is capable of displaying and temporarily storing data corresponding to the total distance traveled by the vehicle processed by the arithmetic circuit 2.

次に作用について第2図、第3図を参考にしながら説明
する。
Next, the operation will be explained with reference to FIGS. 2 and 3.

この実施例で用いられている不揮発性メモリ3の各デー
タ記憶個所3aは第3図aに示すように番地が小さい方
はど小さいデータがl km毎に記憶されているもので
ある。lkm毎にデータが配列しているのは、パルス発
生器1が車両の走行路Al 11に対応するパルス信号
を演算回路2へ出力したとき、不揮発性メモリ3のデー
タ記憶個所3aの番地を変えながら更新しているためで
ある。
In each data storage location 3a of the nonvolatile memory 3 used in this embodiment, as shown in FIG. 3a, the smaller the address, the smaller the data is stored every 1 km. The reason why the data is arranged every 1km is that when the pulse generator 1 outputs a pulse signal corresponding to the vehicle traveling route Al 11 to the arithmetic circuit 2, the address of the data storage location 3a of the non-volatile memory 3 is changed. This is because it is being updated while

第2図aにおいて、演算回路2がl kmに対応するパ
ルス信号を計数すると、演算回路2は読出回路5に、不
揮発性メモリ3のどのデータ記憶個所3aのデータが最
新に更新されたものか検索する操作を行う。
In FIG. 2a, when the arithmetic circuit 2 counts pulse signals corresponding to l km, the arithmetic circuit 2 asks the readout circuit 5 which data storage location 3a of the nonvolatile memory 3 has the most recently updated data. Perform the operation to search.

第2図すではその検索操作を行うが、それは各データ記
憶個所3aを構成するパイ)3bに例えば“F (16
1″(以下Fと記載する)を表すビット配列“1111
”が記憶されているかどうかを検索する操作である(第
3図b)。この例では34番地と37番地のデータ記憶
個所3aが検索された。
The search operation is performed in FIG.
Bit array “1111” representing “1” (hereinafter referred to as F)
This is an operation to search whether or not " is stored (FIG. 3b). In this example, the data storage locations 3a at addresses 34 and 37 are searched.

第2図Cでは、第3図Cに示すように、第2図すで検索
されたデータ記憶個所3aにFを記憶しているバイト3
bがいくつあるかを検索するためのものである。そして
Fを記憶したバイト3bが2個以上のデータ記憶個所3
aを最新のデータ記憶個所3a′とする。この例では3
4番地のデータ記憶個所3aが3個のFを記憶したパイ
)3bであるのに対し、37番地のデータ記憶個所3 
a ?! 1個のみであみので2個以上という条件を満
たす34番地のそれが最新のデータ記憶個所3a′であ
る。
In FIG. 2C, as shown in FIG. 3C, byte 3 stores F in the data storage location 3a that has already been retrieved
This is for searching how many b there are. And data storage location 3 where there are two or more bytes 3b storing F.
Let a be the latest data storage location 3a'. In this example 3
The data storage location 3a at address 4 is a pie) 3b that stores three Fs, while the data storage location 3 at address 37
a? ! Since there is only one, the one at address 34, which satisfies the condition of two or more, is the latest data storage location 3a'.

(37番地はこれよりデータに誤りであることが分かっ
たので所定の操作で修正する。) 場合によってはFのデータを同数個記憶したデータ記憶
個所3aが複数存在することもありうるが、このときは
データを番地の小さい順から更新していく関係から番地
の大きいデータ記憶個所3、aを最新のそれとする。そ
れぞれの場合についてさまざまの処理方法があるが本題
から外れるのでその説明は省く。
(The data at address 37 was found to be incorrect, so it will be corrected using the prescribed operation.) In some cases, there may be multiple data storage locations 3a that store the same number of data from F. Since data is updated in ascending order of address, the data storage location 3, a with the largest address is assumed to be the latest one. There are various processing methods for each case, but their explanation will be omitted as it is off topic.

第2図dでは、第3図dに示すように、読出回路5によ
って読み出された、最新のデータ記憶個所3a′より1
番地前のデータ記憶個所3aのデータ!033に、l 
kmに対応するデータを加算し、このデータ1034’
を書込回路4により34番地のデータ記憶個所3aに更
新させるとともに、35番地のデータ記憶個所3aにF
FFFをもってデータを更新する(第3図d)。
In FIG. 2d, as shown in FIG.
Data in data storage location 3a before the address! 033, l
Add the data corresponding to km, and this data 1034'
is updated in the data storage location 3a at address 34 by the write circuit 4, and F is updated in the data storage location 3a at address 35.
The data is updated using FFF (Fig. 3d).

次に第2図の流れ図の処理す、  cを行う意味につい
て述べる。
Next, we will discuss the meaning of performing step c in the flowchart of Figure 2.

この不揮発性メモリに記憶されるデータは数字の0から
9までを表すBCDコードで“oooo”から 100
1”を用いており、Fを表す“1111″の配列は走行
距離を表すデータには用いられていない。
The data stored in this non-volatile memory is a BCD code representing the numbers 0 to 9, ranging from "oooo" to 100.
1" is used, and the array "1111" representing F is not used for data representing mileage.

このことを利用し、流れ図dでは、最新にデータを更新
したデータ記憶個所3a′にデータFFFFを記憶させ
ている。これは、このデータFFFFを書き込むときに
ノイズが生じ4つのバイトに記憶されるべきFのうちの
1つがF以外のデータ、例えば1ビツトがエラーとなり
Fの“1111″から7の“0111”のデータに変化
したとしても残りのバイトはFを表しており、したがっ
て、Fを記憶しているバイトを多く持っているデータ記
憶個所3aはど最新にデータを更新したデータ記憶個所
であるといえる。
Taking advantage of this fact, in flowchart d, data FFFF is stored in the data storage location 3a' where the data has been updated most recently. This is because noise occurs when writing this data FFFF, and one of the F that should be stored in the four bytes is data other than F, for example, 1 bit becomes an error and changes from "1111" of F to "0111" of 7. Even if it changes to data, the remaining bytes represent F, and therefore, the data storage location 3a that has many bytes storing F can be said to be the data storage location where the data has been updated most recently.

したがって、流れ図すではまずFをデータとして記憶し
ているデータ記憶個所3aを検索し、このあと流れ図C
で検索されたデータ記憶個所3aが誤りのものでないか
調べることで、正確な最新のデータ記憶個所3aを得る
ことができるようにしたものである。
Therefore, in the flowchart, the data storage location 3a that stores F as data is first searched, and then the flowchart C
By checking whether the data storage location 3a searched for is incorrect, it is possible to obtain the most accurate and latest data storage location 3a.

以上のaからdの流れに従い、lkmに対応するパルス
信号が入力される毎に演算回路2は第2図の流れ図を繰
り返すことになるが、電気系の思わぬ事故で表示値W6
のデータを記憶するためのバックアップが切れてしまう
と表示及び記憶がされなくなってしまう。このため、演
算回路2は電気系が正常となるとまず表示装置6に正確
なデータを表示させるため第2図す、cより最新にデー
タが更新されたデータ記憶個所3a′を検索し、第2図
dより決められた最新のデータ記憶個所3a′より1番
地前のデータ記憶個所3aのデータに1km加算したデ
ータを車両の総走行距離データとして表示装置6に表示
、記憶させる。したがって表示装置6には常に正確な車
両の総走行距離データを表示することができる。
According to the flow from a to d above, the arithmetic circuit 2 repeats the flowchart of Fig. 2 every time a pulse signal corresponding to lkm is input, but due to an unexpected accident in the electrical system, the displayed value W6
If the backup for storing the data expires, it will no longer be displayed or stored. Therefore, when the electrical system becomes normal, the arithmetic circuit 2 first searches for the data storage location 3a' whose data has been updated most recently as shown in FIG. The data obtained by adding 1 km to the data of the data storage location 3a one address before the latest data storage location 3a' determined from FIG. d is displayed and stored on the display device 6 as the vehicle's total mileage data. Therefore, the display device 6 can always display accurate vehicle total mileage data.

以上より、本発明の効果は、最新のデータが記憶されて
いるデータ記憶個所3aを簡単な操作で正確に検索する
ことができ、その操作は単にFが記憶されているパイ)
3bを持っているデータ記憶個所3aを検索すればよい
。また、ノイズや不揮発性メモリ3の故障で全てのパイ
)3bにFが更新できなくても前記検索操作にさほど悪
影響を与えるものではなく、ある程度誤りのデータが書
き込まれても検索操作を正確に行うことができる。
From the above, the effect of the present invention is that the data storage location 3a where the latest data is stored can be accurately searched by a simple operation, and the operation is simply performed by simply
It is sufficient to search for the data storage location 3a that has 3b. In addition, even if F cannot be updated to all pies (3b) due to noise or a failure of the non-volatile memory 3, it will not have much of a negative impact on the search operation, and even if some erroneous data is written, the search operation can be performed accurately. It can be carried out.

尚、この実施例ではFというデータを用いたが、これに
限られるものではなく、走行距離を表すデータに用いら
れないビット配列からなるデータを用いれば同様の効果
をあげることができる。
Although data F is used in this embodiment, the present invention is not limited to this, and the same effect can be achieved by using data consisting of a bit array that is not used for data representing travel distance.

〔発明の効果〕〔Effect of the invention〕

本発明は、最新にデータが更新されたデータ記憶個所の
各バイトに、同一のビット配列をなし、かつ走行距離デ
ータを表すときに用いられるビソト配列とは異なった特
定の配列を持つデータを記憶させることにより、最新の
データが記憶しであるデータ記憶個所を簡単かつ正確に
検索することができる。
The present invention stores data that has the same bit array in each byte of the data storage location where the data has been updated, but has a specific array that is different from the bisotho array used to represent mileage data. By doing so, the data storage location where the latest data is stored can be easily and accurately searched.

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

第1図は本発明のブロック図、第2図は第1図の操作順
序を示す流れ図、第3図は第2図の説明の具体的例を示
した状態図である。 2−演算回路     3・−・・不揮発性メモリ3a
−データ記憶個所 3b−バイト 4−書込回路     5−読出回路
FIG. 1 is a block diagram of the present invention, FIG. 2 is a flowchart showing the operation sequence of FIG. 1, and FIG. 3 is a state diagram showing a specific example of the explanation of FIG. 2. 2-Arithmetic circuit 3--Nonvolatile memory 3a
-Data storage location 3b-Byte 4-Write circuit 5-Read circuit

Claims (1)

【特許請求の範囲】[Claims] (1)車両の走行距離に対応するデータを演算処理する
演算回路と、複数のバイトで構成されたデータ記憶個所
を複数有する少なくとも1個の不揮発性メモリと、所定
走行距離毎に前記処理回路から出力されるデータを所定
のデータ記憶個所に書き込ませる書込回路と、処理回路
が指定するデータ記憶個所のデータを処理回路へ読み出
す読出回路とを備えた電子式オドメータにおいて、デー
タを書き込むとき、所定のデータ記憶個所の各バイトに
は同一のビット配列からなるデータが書き込まれ、さら
にこのデータのビット配列は走行距離データを表すとき
に用いられるビット配列とは異なった特定の配列を持っ
たデータとなるようにし、また読み出すとき、この特定
のビット配列を記憶したバイトを有するデータ記憶個所
を検索し、このデータ記憶個所内の各バイトの中で前記
特定のビット配列と一致するバイトが所定数あるとき、
このデータ記憶個所に記憶されているデータより前に記
憶されたデータに前記所定走行距離に対応するデータを
加算して最新の総走行距離データとし、このデータをも
って前記特定のビット配列をもつデータ記憶個所のデー
タを更新し、この更新されたデータ記憶個所の次にデー
タの更新が予定されるデータ記憶個所を前記所定のデー
タ記憶個所にしたことを特徴とする電子式オドメータ。
(1) an arithmetic circuit that processes data corresponding to the mileage of the vehicle; at least one nonvolatile memory having a plurality of data storage locations each consisting of a plurality of bytes; In an electronic odometer equipped with a write circuit that writes output data to a predetermined data storage location and a read circuit that reads data from the data storage location designated by the processing circuit to the processing circuit, when writing data, the predetermined Data consisting of the same bit arrangement is written to each byte of the data storage location, and furthermore, the bit arrangement of this data is data with a specific arrangement different from the bit arrangement used to represent the mileage data. and, when reading, searches for a data storage location that has a byte storing this particular bit arrangement, and among each byte in this data storage location there is a predetermined number of bytes that match said particular bit arrangement. When,
The data corresponding to the predetermined mileage is added to the data stored before the data stored in this data storage location to obtain the latest total mileage data, and this data is used to store data having the specific bit arrangement. 1. An electronic odometer, characterized in that the data at the location is updated, and the data storage location where data is scheduled to be updated next after the updated data storage location is set as the predetermined data storage location.
JP19132688A 1988-07-30 1988-07-30 Electronic odometer Pending JPH0240507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19132688A JPH0240507A (en) 1988-07-30 1988-07-30 Electronic odometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19132688A JPH0240507A (en) 1988-07-30 1988-07-30 Electronic odometer

Publications (1)

Publication Number Publication Date
JPH0240507A true JPH0240507A (en) 1990-02-09

Family

ID=16272693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19132688A Pending JPH0240507A (en) 1988-07-30 1988-07-30 Electronic odometer

Country Status (1)

Country Link
JP (1) JPH0240507A (en)

Similar Documents

Publication Publication Date Title
US4780855A (en) System for controlling a nonvolatile memory having a data portion and a corresponding indicator portion
CN105830039A (en) Write information storage device, method, and recording medium
US4651307A (en) Non-volatile memory storage system
CA2017298C (en) Electronic odometer
JPH039494B2 (en)
JPH0240507A (en) Electronic odometer
JP2848102B2 (en) Electronic odometer
JP2850667B2 (en) Electronic odometer
JPS6060515A (en) Displaying method of run distance
JPH0565010B2 (en)
JP2870679B2 (en) Vehicle mileage recording method
JP2872031B2 (en) Electronic odometer
JP3124112B2 (en) Data storage method
JPS6227617A (en) Odometer for automobile
JP3339046B2 (en) Electronic data storage
JPH11325953A (en) Electronic odometer system
JP3261745B2 (en) Electronic odometer
JPH0529043B2 (en)
JPH0146006B2 (en)
JPS6340811A (en) Odometer
JPH074503Y2 (en) Vehicle mileage recorder
JPH0445762B2 (en)
JPS6059454A (en) Count data storing method to eeprom
JPH04140609A (en) Electronic odometer
JPH05240656A (en) Electronic odometer