JPS6227617A - Odometer for automobile - Google Patents

Odometer for automobile

Info

Publication number
JPS6227617A
JPS6227617A JP16716385A JP16716385A JPS6227617A JP S6227617 A JPS6227617 A JP S6227617A JP 16716385 A JP16716385 A JP 16716385A JP 16716385 A JP16716385 A JP 16716385A JP S6227617 A JPS6227617 A JP S6227617A
Authority
JP
Japan
Prior art keywords
data
written
running distance
memories
distance 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
JP16716385A
Other languages
Japanese (ja)
Inventor
Ryuichi Ando
隆一 安藤
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 JP16716385A priority Critical patent/JPS6227617A/en
Publication of JPS6227617A publication Critical patent/JPS6227617A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make the service life long and to improve reliability, by providing three or more of non-volatile memories, in which counted values that are updated at every specified counted value are sequentially written, and comparing a plurality of the written counted values. CONSTITUTION:The speed of a vehicle detected by a distance sensor 1 is added in a counter 4 and the running distance data is obtained. The running distance data is integrated as specified in an operating circuit 5. The integrated running distance is displayed on a display 7 through a driver 6. At every time a flag in a the counter 4 is outputted, the running data up to that time are sequentially written in non-volatile memories 8-10. Then, the running distance data, which are updated from time to time, are written in the memories 8-10 sequentially and maintained. When a key to an automobile is pulled out and a power source is once cut OFF and thereafter the power source is turned ON, the running distance data stored in the memories 8-10 are read out and inputted to the circuit 5. After the continuity is judged, the maximum value is used as the latest running distance data, and the specified operation is performed. The result is displayed on the display 7.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は走行距離を積算する計数回路と、この計数値を
電源遮断後も保持できる不揮発性メモリとを有する電子
式の自動車用走行距離計に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides an electronic automobile odometer that has a counting circuit that totals the distance traveled and a nonvolatile memory that can retain this counted value even after the power is turned off. Regarding.

〔関連技術及びその問題点〕[Related technology and its problems]

近年、自動車用計器類としてマイコン(マイクロコンピ
ュータ)を使用することにより情報処理機能を向上させ
た電子式表示装置が搭載されるようになり、なかでも従
来の機械的なカウンタ式の走行距離計に代えてマイコン
を利用した走行距離計の開発が進められている。しかる
に、走行距離は順次積算されるものであり、例えば自動
車のキーを抜いて電源を遮断した場合、従来のマイコン
内のRAMに記憶されている走行距離データも消去され
、走行距離計としての役目を果たさない。
In recent years, electronic display devices with improved information processing functions using microcomputers have been installed in automobile instruments, and in particular, conventional mechanical counter-type odometers have Instead, the development of an odometer using a microcomputer is underway. However, the mileage is accumulated sequentially, and for example, if the car key is removed and the power is cut off, the mileage data stored in the RAM in the conventional microcontroller will also be erased, and the mileage data will no longer function as an odometer. not fulfill the purpose.

そのため、走行距離データを電源遮断後も保持できる不
揮発性メモリに記憶させる方法が行われている。ところ
が、不揮発性メモリに走行距離データを書き込んでいる
途中で電源が遮断されると、とんでもない値が記憶され
ることになり、電源を再投入した場合その値に新たな走
行距離が積算されることになる。
Therefore, a method is being used in which mileage data is stored in a nonvolatile memory that can be retained even after the power is shut off. However, if the power is cut off while the mileage data is being written to the non-volatile memory, a ridiculous value will be stored, and when the power is turned back on, the new mileage will be added to that value. It turns out.

このようなことを防止するため、特開昭57−9320
9号公報は同一の走行距離データを4個以上の不揮発性
メモリに順次書き込んで、多数決の原理を利用して正確
な走行距離データを得るものを開示している。すなわち
、同一のデータを順次4個以上の不揮発性メモリに書き
込めば、その中の1個にデータを書き込んでいる際に電
源が遮断されてとんでもない値が保持されても、他のメ
モリには正確なデータが保持されているため、それらか
ら正確な走行距離データを得るものである。
In order to prevent this kind of thing,
Publication No. 9 discloses a system in which the same mileage data is sequentially written into four or more nonvolatile memories, and accurate mileage data is obtained using the principle of majority voting. In other words, if you sequentially write the same data to four or more non-volatile memories, even if the power is cut off while data is being written to one of them and a ridiculous value is retained, the other memories will not be affected. Since accurate data is maintained, accurate mileage data can be obtained from them.

しかしながら、一般に汎用されている不揮発性メモリは
書き換え回数に限度があり、書き換えが頻繁に行われる
と素子の劣化により寿命が短くなる。上記従来の方法で
例えば100m毎に走行距離データを不揮発性メモリに
書き換えていくと、10万km走行までに10回の書き
換えが必要となる。しかるに、現在の不揮発性メモリの
書き換え可能サイクルは1♂〜1♂回程度しかなく、こ
のように頻繁に書き換えられると、不揮発性メモリの寿
命が短くなり信頼性が低下すると共に、不揮発性メモリ
を交換する場合も生ずる。
However, generally used non-volatile memories have a limit on the number of times they can be rewritten, and if rewriting is performed frequently, the life span will be shortened due to deterioration of the elements. If the above-mentioned conventional method is used to rewrite the travel distance data in the nonvolatile memory every 100 m, for example, it will be necessary to rewrite the data 10 times until the vehicle has traveled 100,000 km. However, current non-volatile memory can be rewritten only 1♂ to 1♂ cycles, and if it is rewritten so frequently, the lifespan of non-volatile memory will be shortened, reliability will decrease, and non-volatile memory will be damaged. There may also be cases where they are replaced.

〔発明の目的〕 本発明は上記事情に基づいてなされたものであり、不揮
発性メモリの書き換え回数を減少させて寿命を長くし信
頼性を向上させて正確な走行距離を表示することができ
る電子式の自動車用走行距離計を提供することを目的と
するものである。
[Object of the Invention] The present invention has been made based on the above circumstances, and provides an electronic device that can reduce the number of rewrites of nonvolatile memory, extend its life, improve reliability, and display accurate mileage. The object of the present invention is to provide an automobile odometer of the type.

〔発明の構成〕[Structure of the invention]

上記目的を達成するための本発明の構成は走行距離を積
算する計数回路と、この計数値を電源遮断後も保持でき
る不揮発性メモリとを有する自動車用走行距離計におい
て、一定評数毎に更新される計数値を順次書き込む3個
以上の不揮発性メモリと、これらの書き込まれた複数の
計数値を比較して連続性を判定して不連続な計数値が有
れば修正してそれらの最大の計数値を走行距離として出
力する演算回路とを有することにある。
To achieve the above object, the present invention provides an automobile odometer that has a counting circuit that totals the distance traveled and a non-volatile memory that can retain this counted value even after the power is turned off. Compare three or more non-volatile memories into which the counted values are sequentially written, and compare these written multiple counted values to determine continuity, and if there are discontinuous counted values, correct them and write them to the maximum value. and an arithmetic circuit that outputs the counted value as the distance traveled.

〔実施例〕〔Example〕

以下、図面に基づいて本発明の一実施例を詳述する。 Hereinafter, one embodiment of the present invention will be described in detail based on the drawings.

第1図において、走行速度に比例した周波数の反復パル
スを出力する距離センサ1で検出された車速は波形整形
回路2及び分周器3を介してカウンタ4で加算されて走
行距離データとなる。この走行距離データは演算回路5
により所定演算を行い積算された走行距離をドライバー
6を介して液晶表示器等の表示器7で表示させる。
In FIG. 1, the vehicle speed detected by a distance sensor 1 which outputs repetitive pulses with a frequency proportional to the traveling speed is added by a counter 4 via a waveform shaping circuit 2 and a frequency divider 3 to obtain traveling distance data. This mileage data is calculated by the calculation circuit 5.
A predetermined calculation is performed and the accumulated travel distance is displayed on a display 7 such as a liquid crystal display via the driver 6.

カウンタ4は走行距離データが例えばlkmになる毎に
フラグをたてこれを表すパルスを演算回路5へ出力し、
演算回路5はこのフラグが出力される毎にそれまでの走
行距離データを不揮発性メモリ8,9.10に順次書き
込ませる。すなわち最初のフラグが出力されるとその走
行距離データAが第1の不揮発性メモリ8に、次のフラ
グが出力されるとその走行距離データBが第2の不揮発
性メモリ9に、次のフラグが出力されるとその走行距離
データCが第3の不揮発性メモリ10に、また次のフラ
グが出力されると再び第1の不揮発性メモリ8と言うよ
うに、次々更新される走行距離データが順次不揮発性メ
モリ8,9.10に書き込まれ、3個の不揮発性メモリ
8,9.10にはl km毎の連続した走行距離データ
が各々保持されている。そして、自動車のキーが抜かれ
て一旦電源が遮断され、その後電源が投入された時には
、これらの不揮発性メモリ8.9.10に記憶されてい
る走行距離データは演算回路5に読み込まれて、連続性
を判定された上でそれらの最大値がそれまでの最新の走
行距離データとして所定の演算を行い表示器7で表示さ
れる。
The counter 4 sets a flag every time the mileage data reaches, for example, 1km and outputs a pulse representing this to the calculation circuit 5.
Every time this flag is output, the arithmetic circuit 5 sequentially writes the mileage data up to that point into the nonvolatile memories 8, 9, and 10. That is, when the first flag is output, the mileage data A is stored in the first non-volatile memory 8, and when the next flag is output, the mileage data B is stored in the second non-volatile memory 9. When the flag is output, the mileage data C is stored in the third non-volatile memory 10, and when the next flag is output, the mileage data C is stored in the first non-volatile memory 8, and so on. The data is sequentially written into the non-volatile memories 8, 9.10, and each of the three non-volatile memories 8, 9.10 holds continuous mileage data every 1 km. Then, when the car key is removed and the power is turned off, the mileage data stored in the non-volatile memory 8.9.10 is read into the calculation circuit 5 and continuously displayed. After determining the accuracy of the vehicle, the maximum value thereof is subjected to a predetermined calculation and displayed on the display 7 as the latest mileage data up to that point.

この連続性の判定を行う演算回路5を第2図を用いてさ
らに詳述すると、フラグが出力される毎にメモリコント
ロール回路11は順番に不揮発性メモリ8.9.10に
最新の走行距離データを書き込ませる。そして、電源が
再投入された時には、メモリコントロール回路11は3
個の不揮発性メモリ8.9.10から各々異なる3個の
走行距離データを読み込み、これらの中から2個の走行
距離データを各々第lRAM12と第2RAM13に記
憶させる。そして、減算回路14はこのRAM12.1
3の走行距離データを減算してその減算値を判定回路→
へ出力する。尚、異なる3個の走行距離データか連続性
を判定し、連続していればその最大値を、又連続してい
なければ不揮発性メモリにデータを書き込み中に電源が
遮断されたとしてデータを修正して、メモリコントロー
ル回路11へ出力する。
The arithmetic circuit 5 that determines this continuity will be explained in more detail with reference to FIG. to be written. Then, when the power is turned on again, the memory control circuit 11
Three different pieces of mileage data are read from the nonvolatile memories 8.9.10, and two pieces of mileage data from among these are stored in the first RAM 12 and the second RAM 13, respectively. The subtraction circuit 14 uses this RAM 12.1.
A circuit that subtracts the mileage data from step 3 and determines the subtracted value →
Output to. In addition, the continuity of three different mileage data is determined, and if they are continuous, the maximum value is used, and if they are not continuous, the data is corrected based on the assumption that the power was cut off while writing the data to non-volatile memory. Then, it is output to the memory control circuit 11.

このように構成される本発明の動作をより具体的に説明
する。
The operation of the present invention configured as described above will be explained in more detail.

距離センサlで検出された車速はカウンタ4で積算され
て走行距離データとなる。そして、lkm走行毎にメモ
リコントロール回路11にフラグが出力されて、メモリ
コントロール回路11はそれまでの全走行距離データに
この1ka+加算した走行距離データ例えば10kmを
表に示すように第1の不揮発性メモリ8に書き込む。そ
して、次のフラグが出力されると走行距離データ1ll
uaが第2の不揮発性メモリ9に書き込まれる。さらに
、次のフラグにより同様に第3の不揮発性メモリ10に
12が書き込まれる。このようにして順次新しい走行距
離データが不揮発性メモリ8.9.10に書き込まれる
The vehicle speed detected by the distance sensor l is integrated by a counter 4 to provide travel distance data. Then, a flag is output to the memory control circuit 11 every time 1km is traveled, and the memory control circuit 11 adds this 1ka+ to the total travel distance data up to that point, for example, 10km, to the first non-volatile memory as shown in the table. Write to memory 8. Then, when the next flag is output, the mileage data is 1ll.
ua is written to the second non-volatile memory 9. Furthermore, 12 is written in the third nonvolatile memory 10 in the same way according to the next flag. In this way, new mileage data is sequentially written into the non-volatile memory 8.9.10.

そして、例えば走行距離データ14kmが第2の不運発
性メモリ9に書き込まれた後で、電源が遮断され、その
後再投入された時、先ずメモリコントロール回路11は
それまで不揮発性メモリ8,9゜lOに保持されていた
データを読み込み、その中の2個を取り出して減算回路
14で減算させる。この場合、2個のデータは3通りあ
るため、減算回路14は(C−B)、  (B−A)、
  (A−C)の3回減算を行う。もし、3個の走行距
離データが連続しておれば、各減算値は必ず−2,+1
.+1の3値になる。判定回路15は減算値が(−2,
+1゜+1)であるかを判定し、そうであればデータが
連続しているとし、その中の最大の走行距離データを最
新として選択し、以後カウンタ4から入力される新たな
走行距離データをこれに積算される。
For example, after the mileage data of 14 km has been written to the second non-volatile memory 9, when the power is turned off and then turned on again, the memory control circuit 11 first controls the non-volatile memories 8 and 9. The data held in lO is read, two of them are taken out and subtracted by the subtraction circuit 14. In this case, since there are three types of two pieces of data, the subtraction circuit 14 is (C-B), (B-A),
Perform subtraction three times (A-C). If three pieces of mileage data are consecutive, each subtraction value will always be -2, +1
.. It becomes 3 values of +1. The determination circuit 15 determines that the subtraction value is (-2,
+1°+1), and if so, it is assumed that the data is continuous, and the maximum mileage data among them is selected as the latest, and from then on, new mileage data input from the counter 4 is This will be added up.

一方、走行距離データ20kmを第2の不揮発性メモリ
9に書き込んでいる途中で電源が遮断されると、とんで
もない値例えば27が保持されることになる。そして、
電源再投入時には、前記同様の操作で判定回路15は3
個の減算値を判定し、(−2゜+1.+1)以外の減算
値この場合8及び−9があるため、3個の走行距離デー
タが不連続であり、すなわち書き込み途中で電源が遮断
されたと判定し、その走行距離データを無視する。そし
て、他の連続している2個の走行距離データの中、大き
い値に1を加算し、その加算された値を間違った走行距
離データを保持している不揮発性メモリに書き込んで修
正すると共に、その加算された値を最新の走行距離デー
タとする。この場合、1つのデータが間違ったデータで
あっても他の2個のデータは連続している。
On the other hand, if the power is cut off while the mileage data of 20 km is being written into the second non-volatile memory 9, an unreasonable value, for example 27, will be retained. and,
When the power is turned on again, the determination circuit 15 is set to 3 by the same operation as described above.
Since there are subtraction values other than (-2°+1.+1), in this case 8 and -9, the three mileage data are discontinuous, that is, the power was cut off in the middle of writing. , and ignores the mileage data. Then, 1 is added to the larger value among the other two continuous mileage data, and the added value is written to the non-volatile memory that holds the incorrect mileage data to correct it. , the added value is the latest mileage data. In this case, even if one piece of data is incorrect, the other two pieces of data are continuous.

このようにして、3個の不揮発性メモリ8,9゜10に
記憶された異なる走行距離データの連続性を判定し、3
個のデータが連続している場合にはその最大値を最新の
走行距離データとして、その後積算される走行距離デー
タをこれに加算し、また、3個のデータが連続していな
い場合には書き込み中に電源が遮断されてそのメモリに
最新のデータが書き込まれるはずであったとして、他の
連続しているデータの中、大きいデータにフラグが出力
される走行距離1kmを加算したデータを最新の走行距
離データとする。このようにすれば、従来はフラグが出
力される毎にすべてのメモリに同一のデータが書き込ま
れていたが、本発明によれば書き込まれる回数が1/3
になるため、書き込み回数に制限のある不揮発性メモリ
の長寿命化を図れ信顧性の向上した走行距離計となる。
In this way, the continuity of the different mileage data stored in the three non-volatile memories 8, 9 and 10 is determined, and the
If 3 pieces of data are consecutive, the maximum value is taken as the latest mileage data, and the mileage data accumulated thereafter is added to this, and if 3 pieces of data are not consecutive, it is written. Assuming that the latest data was supposed to be written to the memory when the power was cut off during the middle of the day, the latest data was added by adding the mileage of 1km for which a flag is output to the larger data among other continuous data. Mileage data. In this way, conventionally, the same data was written to all memories every time a flag was output, but according to the present invention, the number of times the data is written is reduced to 1/3.
As a result, the lifespan of nonvolatile memory, which has a limited number of write operations, can be extended, resulting in an odometer with improved reliability.

以上、本発明の一実施例を詳述したが本発明の要旨の範
囲内で適宜変形可能である。例えば、不揮発性メモリの
数は連続性が判定できるように3個以上備えておれば良
く、この場合、書き込み回数は不揮発性メモリの数をn
個とすれば1/Hになる。また、フラグを出力する距離
はlkmに限定されるものではなく、例えば0.11u
o毎とすれば3個の不揮発性メモリを使用した場合、連
続条件の減算値は(−0,2,+0.1. +0.1)
となる。
Although one embodiment of the present invention has been described in detail above, it can be modified as appropriate within the scope of the gist of the present invention. For example, the number of nonvolatile memories should be three or more so that continuity can be determined, and in this case, the number of writes is the number of nonvolatile memories n
If it is 1/H, it becomes 1/H. Furthermore, the distance at which the flag is output is not limited to lkm, for example, 0.11u.
If three non-volatile memories are used, the subtraction value for the continuous condition is (-0, 2, +0.1. +0.1)
becomes.

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

以上詳述したように本発明によれば走行距離を積算する
計数回路と、この計数値を電源遮断後も保持できる不揮
発性メモリとを有する自動車用走行距離計において、−
穿針数毎に更新される計数値を順次書き込む3個以上の
不揮発性メモリと、これらの書き込まれた複数の計数値
を比較して連続性を判定して不連続な計数値が有れば修
正してそれらの最大の計数値を走行距離として出力する
演算回路とを有することにより、不揮発性メモリへの書
き込み回数を減少させて寿命を長くし信頌性を向上させ
ると共に、正確な走行距離を表示する電子式の自動車用
走行距離計を提供できる。
As described in detail above, according to the present invention, in an automobile odometer having a counting circuit for accumulating mileage and a non-volatile memory capable of retaining this counted value even after power is cut off, -
Compare three or more non-volatile memories into which the counted values that are updated for each number of needle punctures are sequentially written, and determine continuity by comparing these written multiple counted values and if there are discontinuous counted values. By having an arithmetic circuit that corrects and outputs the maximum counted value as the distance traveled, it is possible to reduce the number of writes to nonvolatile memory, extend its life, improve reliability, and accurately calculate the distance traveled. It is possible to provide an electronic automobile odometer that displays .

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

第1図は本発明の一実施例を示すブロック図、第2図は
演算回路を示すブロック図である。 4−カウンタ 5・−演算回路 7−・−表示器 8.9.10・−不揮発性メモリ lt−m−メモリコントロール回路 14−減算回路 15・−判定回路
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing an arithmetic circuit. 4-Counter 5--Arithmetic circuit 7--Display device 8.9.10--Non-volatile memory lt-m-Memory control circuit 14-Subtraction circuit 15--Judgment circuit

Claims (1)

【特許請求の範囲】[Claims] 走行距離を積算する計数回路と、この計数値を電源遮断
後も保持できる不揮発性メモリとを有する自動車用走行
距離計において、一定計数毎に更新される計数値を順次
書き込む3個以上の不揮発性メモリと、これらの書き込
まれた複数の計数値を比較して連続性を判定して不連続
な計数値が有れば修正してそれらの最大の計数値を走行
距離として出力する演算回路とを有することを特徴とす
る自動車用走行距離計。
In an automobile odometer that has a counting circuit that totals the distance traveled and a nonvolatile memory that can retain this counted value even after the power is turned off, three or more nonvolatile memory cells that sequentially write the counted value that is updated at a fixed count. A memory and an arithmetic circuit that compares these written multiple counted values to determine continuity, corrects any discontinuous counted values, and outputs the maximum counted value as the distance traveled. An automobile odometer comprising:
JP16716385A 1985-07-29 1985-07-29 Odometer for automobile Pending JPS6227617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16716385A JPS6227617A (en) 1985-07-29 1985-07-29 Odometer for automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16716385A JPS6227617A (en) 1985-07-29 1985-07-29 Odometer for automobile

Publications (1)

Publication Number Publication Date
JPS6227617A true JPS6227617A (en) 1987-02-05

Family

ID=15844584

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16716385A Pending JPS6227617A (en) 1985-07-29 1985-07-29 Odometer for automobile

Country Status (1)

Country Link
JP (1) JPS6227617A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7681253B2 (en) 2005-04-11 2010-03-23 Toyohiro Kobayashi Cooling member for use in hat, sun visor or the like

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6060515A (en) * 1983-09-13 1985-04-08 Koito Mfg Co Ltd Displaying method of run distance

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6060515A (en) * 1983-09-13 1985-04-08 Koito Mfg Co Ltd Displaying method of run distance

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7681253B2 (en) 2005-04-11 2010-03-23 Toyohiro Kobayashi Cooling member for use in hat, sun visor or the like

Similar Documents

Publication Publication Date Title
KR890004949B1 (en) Electronic odo meter
KR930004887B1 (en) Electronic odometer
US4685116A (en) Incremental count display system
JPS6227617A (en) Odometer for automobile
JP2850667B2 (en) Electronic odometer
JP2861676B2 (en) Vehicle instrument
JPH0565010B2 (en)
JPS60114711A (en) Electronic odometer
JPH074503Y2 (en) Vehicle mileage recorder
JPH06241824A (en) Electronic odometer
JP2861675B2 (en) Electronic odometer
JP2533055Y2 (en) Vehicle mileage accumulator
JPS6060515A (en) Displaying method of run distance
JPH0240507A (en) Electronic odometer
JPH06109478A (en) Electronic odometer
JP2904394B2 (en) Vehicle mileage recording device
JPH05280992A (en) Electronic odometer
JPH0529043B2 (en)
JPH05280995A (en) Electronic odometer
JPH07239237A (en) Electronic trip distance recorder
JPS59180326A (en) Cyclometer for automobile
JPH07198410A (en) Electronic cyclometer
JPH08304103A (en) Electronic distance recorder
JPH09178509A (en) Electronic odometer
JPH05240658A (en) Electronic odometer