JPH03285112A - Electronic odometer - Google Patents

Electronic odometer

Info

Publication number
JPH03285112A
JPH03285112A JP8482990A JP8482990A JPH03285112A JP H03285112 A JPH03285112 A JP H03285112A JP 8482990 A JP8482990 A JP 8482990A JP 8482990 A JP8482990 A JP 8482990A JP H03285112 A JPH03285112 A JP H03285112A
Authority
JP
Japan
Prior art keywords
signal
counter
data
error
address
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
JP8482990A
Other languages
Japanese (ja)
Other versions
JP2971503B2 (en
Inventor
Hiroaki Morooka
諸岡 宏昭
Arata Kodama
小玉 新
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.)
Nissan Motor Co Ltd
Marelli Corp
Original Assignee
Kansei Corp
Nissan Motor 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 Kansei Corp, Nissan Motor Co Ltd filed Critical Kansei Corp
Priority to JP8482990A priority Critical patent/JP2971503B2/en
Publication of JPH03285112A publication Critical patent/JPH03285112A/en
Application granted granted Critical
Publication of JP2971503B2 publication Critical patent/JP2971503B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of Distances Traversed On The Ground (AREA)

Abstract

PURPOSE:To prevent the integral running distance data and a storing address which stores the running distance data from being broken when electricity is supplied by writing and correcting the integral running distance data at a shorter running distance than usual when an error is brought about. CONSTITUTION:A counter 8 counts pulses of a running distance sensor which are output every time a vehicle runs a predetermined distance, with generating a first signal S1 every time the running distance becomes a first predetermined value. Moreover, the counter 8 generates a second signal S2 every time the running distance reaches a second predetermined value shorter than the first predetermined value. When an error checking circuit 7 detects an error, a latch circuit 9 temporarily stores the content, namely, the changing address and correcting data of the integral running distance. Every time the first signal S1 is input, normally, the integral running distance data of a presettable counter 2 is stored in an involatile memory 6. Meanwhile, at the occurrence of an error, the address of the involatile memory 6 is updated in accordance with the content of the latch circuit 9 when the second signal S2 is input, and the correcting data of the integral running distance is written into the updated address.

Description

【発明の詳細な説明】 〔発明の利用分野〕 この発明は、不揮発性メモリを用いた車載用電子式オド
メータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a vehicle-mounted electronic odometer using a nonvolatile memory.

〔従来技術〕[Prior art]

従来の電子式オドメータとしては1例えば第3図に示す
ようなものがある(例えば、特開昭56−89009号
公報に記載)。
As a conventional electronic odometer, there is one as shown in FIG. 3 (for example, as described in Japanese Patent Laid-Open No. 56-89009).

第3図において、信号S0は図示しない走行距離センサ
からの信号であり、例えば車両が1m程度走行する毎に
出力されるパルス信号である。
In FIG. 3, a signal S0 is a signal from a travel distance sensor (not shown), and is, for example, a pulse signal output every time the vehicle travels about 1 m.

また、カウンタ1は上記の信号S。を計数し、例えば1
000パルスを計数(車両が11a1走行)する毎に信
号S工を出力する。
Further, counter 1 receives the above signal S. For example, 1
Every time 000 pulses are counted (the vehicle runs 11a1), the signal S signal is output.

また、プリセッタブルカウンタ2は、プリセットされた
以前の積算走行距離に加算して上記の信号S□を計数す
る。そして、その計数結果の値、すなわち車両の積算走
行距離をデコーダドライバ回路3を介して表示器4で表
示する。
Further, the presettable counter 2 counts the signal S□ by adding it to the preset previous cumulative travel distance. Then, the value of the counting result, that is, the cumulative travel distance of the vehicle is displayed on the display 4 via the decoder driver circuit 3.

また、不揮発性メモリ(例えばEEFROM等)6は、
上記の信号S工が与えられる毎に、その時のプリセッタ
ブルカウンタ2の計数値、すなわち積算走行距離を記憶
する。
In addition, the nonvolatile memory (for example, EEFROM, etc.) 6 is
Every time the above-mentioned signal S is given, the count value of the presettable counter 2 at that time, that is, the cumulative travel distance is stored.

また、電圧モニタ5は、電源電圧vaの値が所定値以上
に立ち上がったことから電源投入を検出する。電源投入
が検出されると、不揮発性メモリ6は積算走行距離デー
タが記憶されているアドレスを参照し、積算走行距離デ
ータの読み出しを行い、その積算走行距離データをプリ
セッタブルカウンタ2にセントする。プリセッタブルカ
ウンタ2は、そのセットされた積算走行距離を初期値と
して扱い、その値に順次信号Sユを加算して計数する。
Further, the voltage monitor 5 detects power-on since the value of the power supply voltage va rises to a predetermined value or more. When power-on is detected, the nonvolatile memory 6 refers to the address where the accumulated mileage data is stored, reads the accumulated mileage data, and stores the accumulated mileage data in the presettable counter 2. The presettable counter 2 treats the set cumulative travel distance as an initial value, and sequentially adds the signal S to that value for counting.

したがってエンジン停止時に電源が切られても、積算走
行距離データが消滅することがない。そして次ぎのエン
ジン始動時に電源電圧が立ち上がると、不揮発性メモリ
に記憶されていた積算走行距離が読み出されてプリセッ
タブルカウンタ2にプリセットされる。
Therefore, even if the power is turned off when the engine is stopped, the cumulative mileage data will not be lost. When the power supply voltage rises at the next engine start, the cumulative travel distance stored in the nonvolatile memory is read out and preset in the presettable counter 2.

しかし、上記の構成のみでは、エラー発生時に問題が生
じるので、エラーチェック回路7を設けているものがあ
る(例えば、特開昭60−105915号公報に記載)
However, with only the above configuration, a problem occurs when an error occurs, so some devices are provided with an error check circuit 7 (for example, as described in Japanese Patent Application Laid-open No. 105915/1982).
.

すなわち、エラーチェック回路7は、不揮発性メモリ6
からの積算走行距離の記憶データの読み出しの際にエラ
ーチェックを行ない、エラー発生時には直ちに不揮発性
メモリ6の記憶エリアを更新し、その更新アドレスへ積
算走行距離の訂正データを書き込む。
That is, the error check circuit 7 uses the nonvolatile memory 6
An error check is carried out when reading the storage data of the cumulative travel distance from the system, and when an error occurs, the storage area of the non-volatile memory 6 is immediately updated, and the correction data of the cumulative travel distance is written to the updated address.

なお、上記のエラーチェック回路7におけるエラーチェ
ックの方法としては、不揮発性メモリへのさき込み後の
書き込みデータの信頼性等を考慮して、同じ走行距離デ
ータを3個所に書き込み、不揮発性メモリからの読み出
しの際に、3個所に記憶している走行距離データを読み
出して相互に比較し、多数決等を用いてエラーを検出す
る方法がある(例えば、特開昭59−107207号に
記載)。
Note that the error checking method in the error check circuit 7 described above is to write the same mileage data in three locations, taking into account the reliability of the written data after being written into the nonvolatile memory, and When reading out the data, there is a method of reading out the mileage data stored in three locations and comparing them with each other to detect an error using majority vote (for example, as described in Japanese Patent Laid-Open No. 107207/1982).

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

しかし7ながら、上記のごとき従来の電子式オドメータ
においては、読み出しデータにエラーが発生した場合、
走行距離データの訂正値及び更新アドレスを不揮発性メ
モリに記憶する際に問題が生じるおそれがある。
However, in the conventional electronic odometer as described above, if an error occurs in the read data,
Problems may arise when storing corrected values and update addresses for mileage data in non-volatile memory.

前記のごとき電子式オドメータの動作において、まず、
一定距離走行毎に発生する信号S8のタイミングでプリ
セッタブルカウンタ2の積算走行距離データを不揮発性
メモリ6に書き込み、書き込み終了後に読み出してエラ
ーチェック回路7でエラーチェックを行ない、エラー発
生時にはアドレスを更新し、更新アドレスに積算走行距
離の訂正データを書き込むという順序の動作においては
、信号Slが発生しているのは通常車両が走行している
ときであり、エンジンは通常に作動していて電源電圧は
正常であると考えられるから1問題は生じない。
In the operation of the electronic odometer as described above, first,
The accumulated mileage data of the presettable counter 2 is written into the non-volatile memory 6 at the timing of the signal S8 generated every time a certain distance is traveled, and after the writing is completed, it is read out and an error check is performed by the error check circuit 7, and the address is updated when an error occurs. However, in the sequence of writing correction data for cumulative mileage to the update address, signal Sl is generated when the vehicle is normally running, the engine is operating normally, and the power supply voltage is low. Since it is considered normal, no problem arises.

しかし、電源投入時、すなわちエンジン始動時において
は、エンジンのクランキングによってバッテリーの電圧
が大幅に低下するので、電源投入時のデータ読み出しの
際に於けるエラーチェックの場合には、エラーチェック
回路7でエラーが検出された後、更新アドレス及び積算
走行距離の訂正データを不揮発性メモリ6に書き込む際
に、第4図に示すように、クランキングによって電源電
圧が大幅に低下している可能性があり、そのような場合
には変更アドレス及び積算走行距離の訂正データを正し
く記憶することが出来なくなり、以後オドメータとして
の機能が停止してしまうという問題が発生する。
However, when the power is turned on, that is, when the engine is started, the battery voltage drops significantly due to engine cranking. After an error is detected, when writing the updated address and correction data for the cumulative mileage into the non-volatile memory 6, as shown in Figure 4, there is a possibility that the power supply voltage has dropped significantly due to cranking. In such a case, the corrected data of the changed address and cumulative mileage cannot be stored correctly, causing a problem that the odometer function will stop after that.

また、上記の問題に対処するため、電源電圧が所定値以
上になった場合にクリアを行なうパワーオンクリア法を
適用しても、パワーオンクリアは電圧が一瞬立ち上がっ
て直ぐ低下する場合でも作動するが、不揮発性メモリ6
の書き込み時間は10sec程度必要なため、対応する
ことが出来ない場合がある。そのためバックアップ電源
などを用いる必要が生じるので1回路構成が大型化して
コストアップにつながるという問題が発生する。
In addition, in order to deal with the above problem, even if we apply the power-on clear method that clears when the power supply voltage exceeds a predetermined value, power-on clear operates even if the voltage rises momentarily and immediately drops. However, non-volatile memory 6
Since the writing time of 10 seconds is required, it may not be possible to handle this. As a result, it is necessary to use a backup power source and the like, which causes a problem in that the size of one circuit configuration increases, leading to an increase in cost.

また、前記の間層を解決するために、電源投入時のエラ
ーチェックの際に発生したエラーについては、訂正デー
タをプリセッタブルカウンタ2にセットして表示は行な
うが、エラー訂正値は記憶せず1次の一定走行距離信号
S1の発生時に訂正する方法も考えられる。しかしなが
ら、この方法を用いた場合には1次に示す問題が発生す
る。
In addition, in order to solve the above-mentioned problem, for errors that occur during error checking when the power is turned on, correction data is set in the presettable counter 2 and displayed, but the error correction value is not stored. A method of correcting when the primary constant travel distance signal S1 is generated is also conceivable. However, when this method is used, the first problem occurs.

すなわち、多数決によるエラーチェックの手法を考える
と、走行距離データ記憶個所A、B、Cの3個所のデー
タでデータの訂正を行なう場合に、電源投入時に例えば
Aの記憶個所がエラーであったと仮定すると、この時点
では修正をしないため。
In other words, considering the error checking method based on majority voting, when data is corrected using data from three locations A, B, and C for mileage data, it is assumed that there is an error in memory location A when the power is turned on. Then, there will be no modification at this point.

次の一定走行距離信号S1が発生した時に、再度エラー
発生個所AとB、Cの記憶エリアに一定距離値を加算し
た走行距離データをアクセスし、エラーチェックを実行
した後、エラー発生記憶個所Aをここで切り替える操作
が入ることになる。この時、Aの記憶エリアが必ずしも
エラーになることは無いため、何回かのアクセスを実行
することになる。この間、他の記憶エリアB、Cにエラ
ーが発生しないとは断定出来ない。もし記憶エリアBに
エラーが発生したと考えると、前記Aの記憶エリアのエ
ラーが検出不可能となり、以後、エラー発生記憶個所A
とBのエリアが正しいと判断され、正しい記憶エリアC
がエラーと判断されるため、常に記憶エリアCが切り替
えられることになり、正しいエラーチェックが出来なく
なってしまう。また、記憶エリアの切り替えが常時行な
わ九るため、記憶エリアが減少し、最終的には短い時間
でシステムダウンにつながると言う問題が発生する。
When the next fixed mileage signal S1 occurs, the mileage data obtained by adding a fixed distance value to the memory areas of the error occurrence locations A, B, and C is accessed again, and after executing an error check, the error occurrence memory location A is accessed again. The operation to switch is entered here. At this time, since an error does not necessarily occur in the storage area of A, accesses will be executed several times. During this time, it cannot be determined that errors will not occur in other storage areas B and C. If it is assumed that an error has occurred in storage area B, the error in storage area A will become undetectable, and from now on, the error will occur at the storage area A.
Area B is determined to be correct, and the correct storage area C
is determined to be an error, so the storage area C is constantly switched, making it impossible to perform correct error checking. Furthermore, since the storage area is constantly switched, the storage area is reduced, which ultimately leads to a system failure in a short period of time.

本発明は上記のごとき従来技術の問題を解決するために
なされたものであり、電源投入時における積算走行距離
データ及び走行距離データ格納アドレスの記憶破壊を生
じるおそれのない電子式オドメータを提供することを目
的とする。
The present invention has been made in order to solve the problems of the prior art as described above, and it is an object of the present invention to provide an electronic odometer that is free from memory corruption of cumulative mileage data and mileage data storage address when the power is turned on. With the goal.

〔課題を解決するための手段〕 上記の問題を解決するため、本発明においては、特許請
求の範囲に記載するように構成している。
[Means for Solving the Problems] In order to solve the above problems, the present invention is configured as described in the claims.

すなわち、本発明においては、車両が一定距離(例えば
1m程度)を走行する毎にパルスを発生する走行距離セ
ンサのパルスを計数し、走行距離が第1の所定値(例え
ばlkm)に達する毎に第1の信号を送出し、上記第1
の所定値より短い第2の所定1(例えばloom)に達
する毎に第2の信号を送出するカウンタと、エラーチェ
ック回路がエラーを検出したときに、その内容、すなわ
ち変更アドレスと積算走行距離の訂正データとを一時記
憶するラッチ回路とを設け1通常時は上記第1の信号が
与えられる毎にプリセッタブルカウンタの積算走行距離
データを不揮発性メモリに記憶し、エラー発生時には、
上記第2の信号が与えられた時点で、ラッチ回路の内容
にしたがって、不揮発性メモリのアドレスを更新し、そ
の更新したアドレスに積算走行距離の訂正データを書き
込むように構成したものである。
That is, in the present invention, the pulses of a travel distance sensor that generates a pulse every time the vehicle travels a certain distance (for example, about 1 m) are counted, and each time the travel distance reaches a first predetermined value (for example, 1 km), the pulses are counted. transmitting a first signal;
A counter that sends out a second signal every time it reaches a second predetermined value (for example, room) that is shorter than a predetermined value of A latch circuit for temporarily storing correction data is provided. 1 During normal times, the accumulated mileage data of the presettable counter is stored in a nonvolatile memory every time the first signal is applied, and when an error occurs,
When the second signal is applied, the address of the nonvolatile memory is updated according to the contents of the latch circuit, and the correction data of the cumulative mileage is written to the updated address.

上記のように構成したことにより、本発明においては、
車両の走行開始後、すなわちエンジンが完全に始動して
電源電圧が正常になった後に、エラー発生時の変更アド
レス及び積算走行距離データの訂正が行なわれるので、
クランキングによる電源電圧低下の影響を受けるおそれ
がなくなる。
With the above configuration, in the present invention,
After the vehicle starts running, that is, after the engine has completely started and the power supply voltage has become normal, the change address and cumulative mileage data at the time of error are corrected.
There is no possibility of being affected by power supply voltage drop due to cranking.

また、通常の書き込みを行なう第1の所定距離より短い
第2の所定距離を走行した時に訂正を行なうので、通常
の書き込み時には訂正後の値が書き込まれることになる
Further, since the correction is performed when the vehicle has traveled a second predetermined distance shorter than the first predetermined distance for normal writing, the corrected value is written during normal writing.

〔発明の実施例〕[Embodiments of the invention]

第1図は本発明の一実施例のブロック図である。 FIG. 1 is a block diagram of one embodiment of the present invention.

第1図において、信号S0は図示しない走行距離センサ
からの信号であり1例えば車両が1m走行する毎に出力
されるパルス信号である。
In FIG. 1, a signal S0 is a signal from a travel distance sensor (not shown), and is a pulse signal that is output, for example, every time the vehicle travels 1 meter.

また、カウンタ8は、上記の信号Saを計数し、走行距
離が第1の所定値(例えば1)as)に達する毎に信号
Sユを送品し、上記第1の所定値より短い第2の所定値
(例えばLoom)に達する毎に信号S2を送出する。
Further, the counter 8 counts the above-mentioned signal Sa, and sends a signal S every time the travel distance reaches a first predetermined value (for example, 1), and a second A signal S2 is sent each time the signal reaches a predetermined value (for example, Loom).

また、プリセッタブルカウンタ2は、プリセットされた
以前の積算走行距離に加算して上記の信号S□を計数す
る。そして、その計数結果の値。
Further, the presettable counter 2 counts the signal S□ by adding it to the preset previous cumulative travel distance. And the value of the counting result.

すなわち車両の積算走行距離をデコーダドライバ回路3
を介して表示器4で表示する。
In other words, the cumulative mileage of the vehicle is determined by the decoder driver circuit 3.
It is displayed on the display 4 via the.

また、不揮発性メモリ6は、上記の信号Siが与えられ
る毎に、その時のプリセッタブルカウンタ2の計数値、
すなわち積算走行距離を記憶する。
Furthermore, each time the above signal Si is applied, the nonvolatile memory 6 stores the count value of the presettable counter 2 at that time,
That is, the cumulative travel distance is stored.

また、電圧モニタ5は、電源電圧v0の値が所定値以上
に立ち上がったことから電源投入を検出する。
Further, the voltage monitor 5 detects power-on since the value of the power supply voltage v0 rises to a predetermined value or more.

電源投入が検出されると、不揮発性メモリ6は積算走行
距離データが記憶されているアドレスを参照し、積算走
行距離データの読み出しを行い。
When power-on is detected, the nonvolatile memory 6 refers to the address where the cumulative mileage data is stored and reads the cumulative mileage data.

その積算走行距離データをエラーチェック回路7を介し
てプリセッタブルカウンタ2にセットする。
The cumulative mileage data is set in the presettable counter 2 via the error check circuit 7.

エラーチェック回路7は、不揮発性メモリ6からの積算
走行距離の記憶データの読み出しの際にエラーチェック
を行なう。
The error check circuit 7 performs an error check when reading the stored data of the cumulative travel distance from the nonvolatile memory 6.

また、ラッチ回路9は、エラーチェック回路7がエラー
を検出したときに、その内容、すなわち変更アドレスと
積算走行距離の訂正データとを一時記憶する。
Further, when the error check circuit 7 detects an error, the latch circuit 9 temporarily stores the contents of the error, that is, the changed address and the correction data of the cumulative mileage.

次に作用を説明する。Next, the action will be explained.

まず、電源投入時には、電圧モニタ5が電源の投入を検
出し、不揮発性メモリ6から積算走行距離データを読み
出し、エラーチェック回路7を介して正常時には積算走
行距離がプリセッタブルカウンタ2にセットされる。な
お、エラー発生時の処理は後述する。
First, when the power is turned on, the voltage monitor 5 detects that the power is turned on, reads cumulative mileage data from the non-volatile memory 6, and sets the cumulative mileage data in the presettable counter 2 via the error check circuit 7 when normal. . Note that processing when an error occurs will be described later.

そして通常の走行時においては、一定距離(例えば1−
)走行毎に、カウンタ8が信号S1を送出し、プリセッ
タブルカウンタ2は予めセットされた以前の積算走行距
離に加算してその信号S工を順次カウントする。そして
その計数値、すなわち積算走行距離がデコーダドライバ
回路3を介して表示器4に表示される。
During normal driving, a certain distance (for example, 1-
) Every time the vehicle travels, the counter 8 sends out a signal S1, and the presettable counter 2 sequentially counts the signal S by adding it to the previously set cumulative travel distance. Then, the counted value, that is, the cumulative travel distance, is displayed on the display 4 via the decoder driver circuit 3.

また、上記プリセッタブルカウンタ2の計数値は、上記
の信号S工が与えられる毎に不揮発性メモリ6に書き込
まれる。
Further, the count value of the presettable counter 2 is written into the nonvolatile memory 6 every time the signal S is applied.

一方、エラーチェック回路7は、上記の書き込みが行わ
れると、不揮発性メモリ6から走行距離記憶データを読
み出し、正しく記憶されたか否かをチエツクする。その
結果、正しく記憶された場合には、上記の正常時の動作
が継続されるが、誤りが検出された場合は、不揮発性メ
モリ6の記憶エリアを更新し、更新アドレス及び積算走
行距離の訂正データをラッチ回路9にセットする。そし
てカウンタ8から信号S2(例えば100m走行毎に出
力)が与えられると、不揮発性メモリ6の更新アドレス
に積算走行距離の訂正データを記憶する。
On the other hand, when the above writing is performed, the error check circuit 7 reads the mileage storage data from the nonvolatile memory 6 and checks whether it has been correctly stored. As a result, if the memory is correctly stored, the normal operation described above continues; however, if an error is detected, the storage area of the non-volatile memory 6 is updated, and the updated address and cumulative mileage are corrected. Set the data in the latch circuit 9. When a signal S2 (for example, output every 100 m) is applied from the counter 8, the correction data of the cumulative travel distance is stored in the update address of the nonvolatile memory 6.

また、前記の電源投入時における不揮発性メモリ6から
の積算走行距離データの読み出しの際に。
Also, when reading the cumulative mileage data from the nonvolatile memory 6 when the power is turned on.

エラーチェック回路7でエラーが検出された場合は、積
算走行距離データの訂正値及び更新アドレスをラッチ回
路9にラッチする。そして前記と同様に信号S2が与え
られると、上記の更新アドレスに積算走行距離の訂正デ
ータを記憶する。
If the error check circuit 7 detects an error, the correction value and update address of the cumulative mileage data are latched into the latch circuit 9. Then, when the signal S2 is applied in the same manner as described above, the correction data of the cumulative mileage is stored in the above update address.

上記のように、第1図の回路においては、電源投入時に
、不揮発性メモリ6に記憶していた積算走行距離を直ち
にプリセッタブルカウンタ2にセットして表示は行うが
、エラー発生時のメモリ内容の更新時期は、車両が所定
距離走行した後に出力される信号S2が与えられた時点
で行うように構成している。そして車両が走行している
状態では、エンジンが完全に始動して電源電圧は正常に
なっていると予想されるので、このときにメモリ内容の
更新を行えば不都合が生じるおそれがない。
As mentioned above, in the circuit shown in Fig. 1, when the power is turned on, the cumulative mileage stored in the non-volatile memory 6 is immediately set to the presettable counter 2 and displayed, but the memory contents when an error occurs The update timing is configured to be performed at the time when the signal S2 outputted after the vehicle has traveled a predetermined distance is given. When the vehicle is running, the engine is expected to have started completely and the power supply voltage is expected to be normal, so if the memory contents are updated at this time, there is no risk of any inconvenience occurring.

第2図は、上記のごとき動作における電源電圧波形と書
き込みタイミングを示す図である。第2図に示すように
、信号S2が与えられるのは車両が走行を開始した後で
あり、この時点では電源電圧は正常値で安定している。
FIG. 2 is a diagram showing the power supply voltage waveform and write timing in the above operation. As shown in FIG. 2, the signal S2 is applied after the vehicle starts running, and at this point the power supply voltage is stable at a normal value.

また、第1図の実施例においては、エラーが発生したと
きには、更新アドレスと積算走行距離の訂正値とを一時
的にラッチ回路9に記憶するように構成しているので、
エラー発生時の訂正を誤るおそれがない。
Further, in the embodiment shown in FIG. 1, when an error occurs, the update address and the corrected value of the cumulative mileage are temporarily stored in the latch circuit 9.
There is no risk of making a mistake in correction when an error occurs.

なお、電圧モニタ5は、電源電圧v0が所定値以上に立
ち上がる毎に電源投入と判定するから、第2図に示すよ
うに、電源電圧が一旦立ち上がった後にクランキングに
よって低下した場合は、次ぎに再び立ち上がったときに
も電源投入と判断し、再び不揮発性メモリ6からの読み
出しとエラーチェック回路7によるエラー検出が行われ
る。したがって、最初のエラー検出後にクランキングに
よって電源電圧が急激に低下し、そのためラッチ回路9
が訂正内容を記憶することが出来ないような場合があっ
たとしても、次ぎに電源電圧が立ち上がった時点で、確
実にエラーチェックと訂正内容の記憶が行われる。
Note that the voltage monitor 5 determines that the power is turned on every time the power supply voltage v0 rises above a predetermined value, so as shown in FIG. When the device starts up again, it is determined that the power has been turned on, and reading from the nonvolatile memory 6 and error detection by the error check circuit 7 are performed again. Therefore, after the first error detection, the power supply voltage decreases rapidly due to cranking, which causes the latch circuit 9
Even if there is a case where the corrected information cannot be stored, the error check and corrected information will be reliably performed the next time the power supply voltage is turned on.

また、通常の書き込みを行なう第1の所定距離より短い
第2の所定距離を走行した時に訂正を行なうので、通常
の書き込み時には訂正後の値が書き込まれることになる
Further, since the correction is performed when the vehicle has traveled a second predetermined distance shorter than the first predetermined distance for normal writing, the corrected value is written during normal writing.

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

以上説明してきたように、この発明によれば、エラーが
発生した場合の積算走行距離データの訂正書き込みを、
通常の書き込みを行う走行距離よりも短い所定距離だけ
車両が走行した時点で行うように構成したことにより、
エンジン始動時のクランキング等によって生じる電源投
入時の電圧低下のために積算走行距離データ及び走行距
離データ格納アドレスの記憶が破壊されるおそれがなく
なり、オドメータとしての信頼性を向上させることが出
来る。またバックアップ電源等を設けるのに比べて、構
成が簡略であり、かつ確実な制御を実行することが出来
る、等の効果が得られる。
As explained above, according to the present invention, when an error occurs, correction writing of cumulative mileage data is performed.
By configuring it to be performed when the vehicle has traveled a predetermined distance that is shorter than the distance traveled for normal writing,
There is no risk that the storage of cumulative mileage data and mileage data storage address will be destroyed due to a voltage drop at power-on caused by cranking when starting the engine, etc., and the reliability of the odometer can be improved. Moreover, compared to providing a backup power source, the configuration is simpler and more reliable control can be performed.

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

第1図は本発明の一実施例のブロック図、第2図は本発
明における書き込みタイミングを示す図、第3図は従来
装置の一例のブロック図、第4図は従来装置における書
き込みタイミングを示す図である。 〈符号の説明〉 1・・カウンタ 2・・・プリセッタブルカウンタ 3・・・デコーダドライバ回路 4・・・表示器 5・・・電圧モニタ 6・・・不揮発性メモリ 7・・・エラーチェック回路 8・・・カウンタ 9・・・ラッチ回路
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a diagram showing write timing in the present invention, Fig. 3 is a block diagram of an example of a conventional device, and Fig. 4 is a diagram showing write timing in the conventional device. It is a diagram. <Explanation of symbols> 1... Counter 2... Presettable counter 3... Decoder driver circuit 4... Display 5... Voltage monitor 6... Non-volatile memory 7... Error check circuit 8 ...Counter 9...Latch circuit

Claims (1)

【特許請求の範囲】 車両が一定距離を走行する毎にパルスを発生する走行距
離センサと、 上記パルスを計数し、走行距離が第1の所定値に達する
毎に第1の信号を送出し、上記第1の所定値より短い第
2の所定値に達する毎に第2の信号を送出するカウンタ
と、 電源投入時に下記不揮発性メモリから読み出された以前
の積算走行距離をプリセットし、その値に加算して上記
カウンタの第1の信号を計数するプリセッタブルカウン
タと、 該プリセッタブルカウンタの計数結果に応じて走行距離
を表示する表示器と、 データ記憶エリアのアドレスを記憶し、データ書き込み
時に上記アドレスを参照してそのアドレスに上記プリセ
ッタブルカウンタの計数結果を記憶する不揮発性メモリ
と、 上記不揮発性メモリの記憶データを読み出す時に、記憶
データのエラーチェックを行なうエラーチェック回路と
、 上記エラーチェック回路がエラーを検出したときに、更
新アドレスと積算走行距離の訂正データとを一時記憶す
るラッチ回路とを備え、 かつ、上記不揮発性メモリは、上記カウンタの第1の信
号が与えられる毎に上記プリセッタブルカウンタの計数
値を記憶し、また、エラーが発生した場合は上記カウン
タの第2の信号が与えられた時点で上記ラッチ回路の記
憶内容に基づいて更新アドレスに訂正データを記憶する
ものである、ことを特徴とする電子式オドメータ。
[Scope of Claims] A mileage sensor that generates a pulse every time the vehicle travels a certain distance; and a mileage sensor that counts the pulses and sends out a first signal every time the mileage reaches a first predetermined value; A counter that sends a second signal every time it reaches a second predetermined value that is shorter than the first predetermined value, and a preset value of the previous cumulative mileage read from the non-volatile memory below when the power is turned on. a presettable counter that counts the first signal of the counter by adding to the first signal of the counter; a display that displays the distance traveled according to the counting result of the presettable counter; and a display that stores the address of the data storage area and when writing data. a non-volatile memory that refers to the address and stores the counting result of the presettable counter at that address; an error check circuit that performs an error check on the stored data when reading data stored in the non-volatile memory; a latch circuit that temporarily stores an updated address and cumulative mileage correction data when the circuit detects an error; It stores the count value of the presettable counter, and if an error occurs, stores correction data at the update address based on the stored contents of the latch circuit at the time when the second signal of the counter is applied. An electronic odometer characterized by:
JP8482990A 1990-04-02 1990-04-02 Electronic odometer Expired - Fee Related JP2971503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8482990A JP2971503B2 (en) 1990-04-02 1990-04-02 Electronic odometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8482990A JP2971503B2 (en) 1990-04-02 1990-04-02 Electronic odometer

Publications (2)

Publication Number Publication Date
JPH03285112A true JPH03285112A (en) 1991-12-16
JP2971503B2 JP2971503B2 (en) 1999-11-08

Family

ID=13841660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8482990A Expired - Fee Related JP2971503B2 (en) 1990-04-02 1990-04-02 Electronic odometer

Country Status (1)

Country Link
JP (1) JP2971503B2 (en)

Also Published As

Publication number Publication date
JP2971503B2 (en) 1999-11-08

Similar Documents

Publication Publication Date Title
US7210055B2 (en) Electronic control apparatus
EP0398545A1 (en) Method and apparatus for storing data in a non-volatile memory
US7003382B2 (en) Electronic control unit for a vehicle
US6768966B2 (en) Method for storing odometer data
KR20000069978A (en) Ic card
JP3491358B2 (en) Power cut-off detection device
JP3379260B2 (en) Diagnosis device for vehicles
JPH03285112A (en) Electronic odometer
JP2003196165A (en) Nonvolatile memory and data updating method therefor
JP2002024101A (en) Nonvolatile memory writer
JP2001222731A (en) Drive recorder
JPS6237425B2 (en)
JPH08153397A (en) Eeprom data rewrite controller
JPH09161493A (en) Management method for rewritable nonvolatile memory
JP2000146765A (en) Electronic controller for vehicle
JPH05265881A (en) Write protecting circuit of and write protecting method for non-volatile memory
JP2005226494A (en) Electronic control unit
JPH09213088A (en) Engine controller
JPS6059597A (en) Circuit for preventing writing of error data in eeprom
JP3003543B2 (en) Electronic odometer
JP2554117B2 (en) Vehicle data processor
JPS623312A (en) Electronic controller for vehicle
JP2872031B2 (en) Electronic odometer
JP3591668B2 (en) Traveling vehicle information display method and vehicle display device using the same
JP4107046B2 (en) Mileage accumulator

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070827

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees