JP2917794B2 - Electronic odometer - Google Patents

Electronic odometer

Info

Publication number
JP2917794B2
JP2917794B2 JP1239294A JP1239294A JP2917794B2 JP 2917794 B2 JP2917794 B2 JP 2917794B2 JP 1239294 A JP1239294 A JP 1239294A JP 1239294 A JP1239294 A JP 1239294A JP 2917794 B2 JP2917794 B2 JP 2917794B2
Authority
JP
Japan
Prior art keywords
value
zero
return
odd
trip
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.)
Expired - Lifetime
Application number
JP1239294A
Other languages
Japanese (ja)
Other versions
JPH07218283A (en
Inventor
浩 新美
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP1239294A priority Critical patent/JP2917794B2/en
Publication of JPH07218283A publication Critical patent/JPH07218283A/en
Application granted granted Critical
Publication of JP2917794B2 publication Critical patent/JP2917794B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

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 an electronic odometer having both odometer and trip meter functions.

【0002】[0002]

【従来の技術】従来、車両用の電子式走行距離積算計
は、図6に示すように構成される。
2. Description of the Related Art Conventionally, an electronic mileage integrator for a vehicle is configured as shown in FIG.

【0003】図6において、1は、車速に比例した周波
数の車速パルスを発生する車速センサを表わしている。
車速センサ1はインターフェイス2を介してCPU3の
割り込み入力ポートiNTに接続されている。
In FIG. 6, reference numeral 1 denotes a vehicle speed sensor that generates a vehicle speed pulse having a frequency proportional to the vehicle speed.
The vehicle speed sensor 1 is connected to the interrupt input port iNT of the CPU 3 via the interface 2.

【0004】CPU3は、イグニッションスイッチ4が
オン状態のとき+5Vを出力するIG電源5、及び、イ
グニッションスイッチ4のオン、オフに関係無く車載バ
ッテリ6が接続状態にあるとき+5Vを出力する+B電
源7、の両方に接続されている。
The CPU 3 includes an IG power supply 5 that outputs +5 V when the ignition switch 4 is on, and a + B power supply 7 that outputs +5 V when the on-vehicle battery 6 is connected regardless of whether the ignition switch 4 is on or off. , Connected to both.

【0005】CPU3の出力ポートには、表示駆動回路
8が接続され、表示駆動回路8には、表示器9が接続さ
れている。表示器9は、オド値とトリップ値の両方を表
示する表示器である。
A display drive circuit 8 is connected to an output port of the CPU 3, and a display 9 is connected to the display drive circuit 8. The display 9 is a display that displays both the odd value and the trip value.

【0006】CPU3の入力ポートI1 には、インター
フェイス10を介してトリップメータ用のリセットスイ
ッチ11が接続されている。このリセットスイッチ11
は、周知のように、トリップ値をリセットする際に乗員
により操作されるスイッチである。
A reset switch 11 for a trip meter is connected to an input port I 1 of the CPU 3 via an interface 10. This reset switch 11
Is a switch operated by the occupant when resetting the trip value, as is well known.

【0007】さらに、CPU3には、不揮発性メモリ1
2が接続されている。
Further, the CPU 3 has a nonvolatile memory 1
2 are connected.

【0008】図6図示の電子式走行距離積算計のCPU
3は、車速センサ1からの車速パルスを計数してオド値
を算出し、このオド値を不揮発性メモリ12に記憶させ
るとともに、リセットスイッチ11がオンする度に、C
PU3内部のRAM13上のトリップ値をリセットし、
その後の車速パルスを計数してトリップ値を算出し、こ
のトリップ値をRAM13に記憶させる処理を実行す
る。
The CPU of the electronic odometer shown in FIG.
3 calculates the odd value by counting the vehicle speed pulse from the vehicle speed sensor 1, stores the odd value in the nonvolatile memory 12, and sets C every time the reset switch 11 is turned on.
Reset the trip value on the RAM 13 inside the PU3,
Thereafter, a trip value is calculated by counting the vehicle speed pulse, and processing for storing the trip value in the RAM 13 is executed.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記電
子式走行距離積算計は、イグニッションスイッチ4がオ
フしたときには、CPU3が+B電源7に接続されてい
るためRAM13上のトリップ値がクリアされてしまう
という不具合は発生しないが、バッテリ6の交換時に
は、+B電源7が無電源状態となるためRAM13上の
トリップ値がクリアされてしまい、バッテリ6の接続後
に正確なトリップ値を表示できないという問題がある。
However, when the ignition switch 4 is turned off, the trip value on the RAM 13 is cleared because the CPU 3 is connected to the + B power supply 7 when the ignition switch 4 is turned off. Although no trouble occurs, when the battery 6 is replaced, the trip value in the RAM 13 is cleared because the + B power supply 7 is in a non-power supply state, and there is a problem that an accurate trip value cannot be displayed after the battery 6 is connected.

【0010】また、上記電子式走行距離積算計は、CP
U3に+B電源7を接続することが困難な車両、例え
ば、車載バッテリ6として大容量のものを搭載すること
ができない二輪車等の車両や電気自動車等、に適用する
ことができないという問題がある。
[0010] The electronic mileage integrator may be a CP.
There is a problem that it cannot be applied to a vehicle in which it is difficult to connect the + B power supply 7 to the U3, for example, a vehicle such as a motorcycle or an electric vehicle in which a large-capacity battery cannot be mounted as the vehicle-mounted battery 6.

【0011】本発明は、これらの問題点を解決し、バッ
テリ交換後に正確なトリップ値を表示することができる
とともに、CPUに+B電源を接続することができない
車両に対しても容易に適用することができる電子式走行
距離積算計を提供することを主な目的とする。
The present invention solves these problems and can display an accurate trip value after battery replacement, and can be easily applied to a vehicle in which a + B power supply cannot be connected to a CPU. The main object of the present invention is to provide an electronic odometer that can be used.

【0012】ところで、上記問題点を解決するために、
不揮発性メモリ12にオド値の他にトリップ値を逐次記
憶させる方法が考えられる。しかし、このような方法に
よると、図7に示すように、トリップ値データを表わす
最小ビットの書替サイクルがきわめて多くなり、不揮発
性メモリ12の信頼性を確保するためには、その書替回
数を制限しなければならなくなる(書替回数を例えば1
万回に制限する。)という問題が生じる。本発明は、こ
のような問題点をも解決し、不揮発性メモリの書替回数
を減少させることにより、不揮発性メモリの信頼性を向
上させることを他の目的とする。
By the way, in order to solve the above problems,
A method of sequentially storing trip values in addition to odd values in the nonvolatile memory 12 is conceivable. However, according to such a method, as shown in FIG. 7, the number of rewrite cycles of the minimum bit representing the trip value data becomes extremely large, and in order to secure the reliability of the nonvolatile memory 12, the number of rewrite cycles is increased. Must be limited (for example, if the number of rewrites is 1
Limit to 10,000 times. ). Another object of the present invention is to solve such a problem and to improve the reliability of the nonvolatile memory by reducing the number of times of rewriting of the nonvolatile memory.

【0013】[0013]

【課題を解決するための手段】上記課題を解決するため
に、本発明に係る電子式走行距離積算計は、現在オド値
と帰零時オド値とを記憶する不揮発性メモリと、前記不
揮発性メモリの前記現在オド値から前記帰零時オド値を
減算してトリップ値を求めるCPUと、を備え、前記不
揮発性メモリは、前記帰零時オド値として、少なくとも
最新の帰零時オド値とその直前の帰零時オド値とを記憶
し、前記CPUは、前記現在オド値から前記最新の帰零
時オド値を減算してトリップ値を求めることを特徴とす
る。
In order to solve the above-mentioned problems, an electronic odometer according to the present invention comprises: a nonvolatile memory for storing a current odometer value and an odometer value at zero reset; comprising a CPU for determining the trip value from the current odometer value memory by subtracting the odometer value at the zero-reset, and the non
The volatile memory stores at least the zero-time odd value as at least
Stores the most recent zero-zero value and the immediately preceding zero-value.
And the CPU calculates the latest zero return value from the current odd value.
It is characterized in that a trip value is obtained by subtracting a time odd value .

【0014】[0014]

【0015】[0015]

【発明の作用効果】本発明に係る電子式走行距離積算計
によると、不揮発性メモリに、現在オド値の他、帰零時
(リセットスイッチオン時)のオド値を記憶させたた
め、バッテリ交換時に帰零時オド値はクリアされない。
このため、CPUは、バッテリ交換後、現在オド値から
帰零時オド値を減算することにより、正確なトリップ値
を求めることができる。従って、バッテリ交換後に正確
なトリップ値を表示することができる。また、CPUに
+B電源を接続することができない車両に対しても、イ
グニッションスイッチがオフしても帰零時オド値がクリ
アされることが無いため、容易に適用することができ
る。さらに、不揮発性メモリの帰零時オド値は、帰零時
のみに書き替えられるため、不揮発性メモリの書替回数
が減少し、不揮発性メモリの信頼性が向上する。さら
に、本発明に係る電子式走行距離積算計によると、上記
のような効果の他、次のような効果を奏する。すなわ
ち、不揮発性メモリが常に最新の帰零時オド値のみを記
憶する構成とした場合には、リセットスイッチがオンし
て不揮発性メモリのクリア及び書替えが行なわれている
最中にイグニッションスイッチがオフすると、現在オド
値が帰零時オド値として不揮発性メモリにストアされな
くなり、その後のトリップ値が正確な値とはならなくな
る不具合が生じる。しかし、本発明に係る電子式走行距
離積算計のように、不揮発性メモリに少なくとも最新の
帰零時オド値とその直前の帰零時オド値を記憶させるよ
うにした場合には、現在オド値が上記のようなイグニッ
ションスイッチオフにより不揮発性メモリに帰零時オド
値として記憶されなくても最新の帰零時オド値を不揮発
性メモリに記憶されたまま保持することができるため、
この最新の帰零時オド値を用いて正確なトリップ値を算
出し表示することができるようになる。
According to the electronic odometer of the present invention , since the odometer value at the time of return to zero (when the reset switch is turned on) is stored in the non-volatile memory in addition to the current odometer value, it can be used when the battery is replaced. Odd value is not cleared at home.
For this reason, the CPU can obtain an accurate trip value by subtracting the return-time odd value from the current odd value after battery replacement. Therefore, an accurate trip value can be displayed after battery replacement. Further, even for a vehicle in which the + B power supply cannot be connected to the CPU, even when the ignition switch is turned off, the return value at the time of return to zero is not cleared, so that the present invention can be easily applied. Furthermore, since the odd value at the time of return to zero of the nonvolatile memory is rewritten only at the time of return to zero, the number of times of rewriting of the nonvolatile memory is reduced, and the reliability of the nonvolatile memory is improved. Further
, According to the electronic travel distance totalizer according to the present invention, the
In addition to the effects described above , the following effects can be obtained. That is, when the nonvolatile memory is configured to always store only the latest zero-zero value, the reset switch is turned on and the ignition switch is turned off while the nonvolatile memory is being cleared and rewritten. Then, the current odd value is not stored in the non-volatile memory as the zero-time odd value, and the subsequent trip value may not be an accurate value. However, as in the case of the electronic odometer according to the present invention , when the nonvolatile memory stores at least the latest zero return value at the time of zero return and the immediately preceding zero return value at the same time, the current odd value is stored. Since the ignition switch is turned off as described above, even if the latest zero return value is stored in the nonvolatile memory without being stored in the nonvolatile memory as the zero return value,
An accurate trip value can be calculated and displayed by using the latest zero return value at the time of return to zero.

【0016】[0016]

【0017】[0017]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0018】図1は、一実施例に係る電子式走行距離積
算計の構成を示している。
FIG. 1 shows the configuration of an electronic odometer according to one embodiment.

【0019】図1において、1は、車速に比例した周波
数の車速パルスを発生する車速センサ1を表わしてい
る。車速センサ1はインターフェイス2を介してCPU
3の割り込み入力ポートiNTに接続されている。
In FIG. 1, reference numeral 1 denotes a vehicle speed sensor 1 for generating a vehicle speed pulse having a frequency proportional to the vehicle speed. The vehicle speed sensor 1 has a CPU via an interface 2
3 is connected to the interrupt input port iNT.

【0020】CPU3は、イグニッションスイッチ4が
オン状態のとき+5Vを出力するIG電源5のみに接続
されており、図6に図示したような+B電源7には接続
されていない。
The CPU 3 is connected only to the IG power supply 5 that outputs +5 V when the ignition switch 4 is in the ON state, and is not connected to the + B power supply 7 as shown in FIG.

【0021】CPU3の出力ポートには、表示駆動回路
8が接続され、表示駆動回路8には、表示器9が接続さ
れている。表示器9は、オド値とトリップ値の両方を表
示する表示器である。
A display drive circuit 8 is connected to an output port of the CPU 3, and a display 9 is connected to the display drive circuit 8. The display 9 is a display that displays both the odd value and the trip value.

【0022】CPU3の入力ポートI1 には、インター
フェイス10を介してトリップメータ用のリセットスイ
ッチ11が接続されている。このリセットスイッチ11
は、周知のように、トリップ値をリセットする際に乗員
により操作されるスイッチである。
A reset switch 11 for a trip meter is connected to an input port I 1 of the CPU 3 via an interface 10. This reset switch 11
Is a switch operated by the occupant when resetting the trip value, as is well known.

【0023】CPU3の入力ポートI2 には、書き込み
スイッチ14がインターフェイス15を介して接続され
ている。ここで、書き込みスイッチ14は、車速センサ
1同士の間で、単位距離当たりに発生する車速パルス数
が一致しないことから、使用する車速センサ1が発生す
る単位距離当たりの車速パルス数を、インターフェイス
16及び入力ポートIS を介してCPU3内部に入力し
設定する際に操作されるスイッチである。
A write switch 14 is connected to an input port I 2 of the CPU 3 via an interface 15. Here, since the number of vehicle speed pulses generated per unit distance does not match between the vehicle speed sensors 1, the write switch 14 determines the number of vehicle speed pulses generated per unit distance generated by the vehicle speed sensor 1 to be used by the interface 16. and a switch which is operated when entered set inside CPU3 through the input port I S.

【0024】さらに、CPU3には、不揮発性メモリ
(NVM)12が接続されている。
Further, a non-volatile memory (NVM) 12 is connected to the CPU 3.

【0025】次に、CPU3の処理を図2〜図5を参照
して説明する。ここで、図2及び図3は、一連のメイン
ルーチンの処理内容を示し、図2は、その前半部分、図
3は後半部分に対応する。また、図4は、割り込みルー
チンの処理内容を示している。また、図5は、NVM1
2及びRAM13の構成を示している。
Next, the processing of the CPU 3 will be described with reference to FIGS. 2 and 3 show the processing contents of a series of main routines. FIG. 2 corresponds to the first half and FIG. 3 corresponds to the second half. FIG. 4 shows the processing contents of the interrupt routine. FIG. 5 shows the NVM1
2 and the configuration of the RAM 13.

【0026】(1) メインルーチン(図2、図3) メインルーチンは、イグニッションスイッチ4がオンす
ると実行される(ステップ100)。
(1) Main Routine (FIGS. 2 and 3) The main routine is executed when the ignition switch 4 is turned on (step 100).

【0027】まず、CPU3は、RAM13のクリア、
各種フラグ、レジスタの初期化、ポートの初期化を行な
う(ステップ101)。
First, the CPU 3 clears the RAM 13,
Initialize various flags, registers, and ports (step 101).

【0028】次に、表示のクリアを行なう(ステップ1
02)。
Next, the display is cleared (step 1).
02).

【0029】その後、CPU3は、単位距離当たりの
車速パルス数の設定(ステップ103〜111)、最
初に表示すべきトリップ値の算出(ステップ112〜1
17)、50ミリ秒経過毎のトリップ値、オド値の表
示(ステップ118〜119)、リセットスイッチ1
1がオンしたときの帰零時オド値の更新(ステップ12
0〜129)、0.1km走行毎のオド値及びトリッ
プ値の更新(ステップ130〜136)を実行する。以
下、各処理内容を順に説明する。
Thereafter, the CPU 3 sets the number of vehicle speed pulses per unit distance (steps 103 to 111) and calculates a trip value to be displayed first (steps 112 to 1).
17), display of trip value and odd value every elapse of 50 milliseconds (steps 118 to 119), reset switch 1
Updating of the odometer value at the time of return when 1 is turned on (step 12
0 to 129), and update the odd value and trip value for each 0.1 km of travel (steps 130 to 136). Hereinafter, each processing content will be described in order.

【0030】単位距離当たりの車速パルス数の設定
(ステップ103〜111) 書き込みスイッチ14がオンしているかどうか、換言す
ると、入力ポートI2が「0」レベルかどうかを判断す
る(ステップ103)。
The unit distance setting of the vehicle speed pulse number per whether (step 103-111) the write switch 14 is on, in other words, the input port I 2 determines whether "0" level (step 103).

【0031】I2 =0の場合、入力ポートIS に、シリ
アル信号である単位距離当たりの車速パルス数データの
全ビットが入力されてくるのを待ち(ステップ10
4)、このシリアル信号を並列データ(パルス設定値)
に変換してレジスタMR17にセットし(ステップ10
5)、このパルス設定値をRAM13上のパルス設定値
ストア領域RK(図5参照)及びNVM12上のパルス
設定値ストア領域NK(図5参照)にストアする(ステ
ップ106、107)。
If I 2 = 0, wait for all the bits of the vehicle speed pulse number data per unit distance, which is a serial signal, to be input to the input port I S (step 10).
4), this serial signal is converted into parallel data (pulse set value)
And set it in the register MR17 (step 10).
5) The pulse set value is stored in the pulse set value storage area RK (see FIG. 5) on the RAM 13 and the pulse set value storage area NK (see FIG. 5) on the NVM 12 (steps 106 and 107).

【0032】一方、I2 ≠0の場合、NKからパルス設
定値を読み出し(ステップ108)、このパルス設定値
が「0」であるかどうか、換言すると、パルス設定値が
未設定であるかどうかを判断する(ステップ109)。
パルス設定値が「0」の場合、単位距離当たりの車速パ
ルス数として一般的な「100」をパルス設定値として
上記NKにストアし(ステップ110)、一方、パルス
設定値が既に設定されている場合には、当該処理を終了
する。
On the other hand, if I 2 ≠ 0, the pulse set value is read from NK (step 108), and whether this pulse set value is “0”, in other words, whether the pulse set value is not set Is determined (step 109).
When the pulse set value is “0”, the general “100” as the number of vehicle speed pulses per unit distance is stored in the NK as the pulse set value (step 110), while the pulse set value has already been set. In this case, the process ends.

【0033】このように、ステップ103〜111にお
いては、書き込みスイッチ14がオンしている場合に
は、入力ポートIS を介して入力されてくるパルス設定
値をNKにストアし、一方、書き込みスイッチ14がオ
フしている場合には、NKのパルス設定値をそのまま維
持するか、又は、NKに数値「100」をパルス設定値
としてストアする。
[0033] Thus, in step 103-111, when the write switch 14 is turned on, the pulse setting value inputted via the input port I S stores in NK, whereas, write switches When 14 is off, the pulse set value of NK is maintained as it is, or the numerical value “100” is stored in NK as the pulse set value.

【0034】ここで、このような単位距離当たりの車速
パルス数の設定方法によると、従来からの入力ポート切
替による設定方法と比べ、自由度が著しく向上する。す
なわち、通常、単位距離当たりの車速パルス数は、セン
サ、タイヤ径、トランスミッション等の組合せによって
様々であるため、従来の設定方法では、入力ポート数が
足らなくなったり、新規なパルス数の設定にあたってソ
フト変更を生じたり、ROMのマスク変更を生じるなど
の問題があったが、本実施例のような設定方法による
と、2つの入力ポートI2 ,IS で足り、入力ポートI
S を介して様々なパルス設定値を入力できるため、様々
な車速パルス数に対応でき自由度が著しく向上する。
Here, according to the method of setting the number of vehicle speed pulses per unit distance, the degree of freedom is significantly improved as compared with the conventional setting method by switching input ports. That is, since the number of vehicle speed pulses per unit distance usually varies depending on the combination of sensors, tire diameters, transmissions, etc., the conventional setting method makes the number of input ports insufficient or sets a new number of pulses. However, according to the setting method as in this embodiment, two input ports I 2 and I S are sufficient, and the input port I
Since various pulse set values can be input via S , various vehicle speed pulse numbers can be handled and the degree of freedom is significantly improved.

【0035】最初に表示すべきトリップ値の算出(ス
テップ112〜117) NVM12上の現在オド値ストア領域NOD(図5参
照)から現在オド値を読み出しRAM13上の現在オド
値ストア領域ROD(図5参照)にストアし(ステップ
112)、NVM12上の帰零時オド値ストア領域NO
DT1 (図5参照)から帰零時オド値を読み出しRAM
13上の帰零時オド値ストア領域RODT 1 (図5参
照)にストアし(ステップ113)、NVM12上の他
の帰零時オド値ストア領域NODT2 (図5参照)から
他の帰零時オド値を読み出しRAM13上の他の帰零時
オド値ストア領域RODT2 (図5参照)にストアする
(ステップ114)。
Calculation of the Trip Value to be Displayed First
Steps 112 to 117) Current odd value storage area NOD on NVM 12 (see FIG. 5)
Read the current odd value from the current odd
Store in the value store area ROD (see FIG. 5) (step
112), Odd value storage area NO at zero return on NVM 12
DT1 Reads the odd value at the time of return from (see FIG. 5) RAM
13 Odd value store area RODT on zero 1 (See Figure 5
(Step 113), and store on NVM 12
Odd value store area NODT at zeroTwo (See Fig. 5)
Read the odd value at the other return time at another return time on the RAM 13
Odd value store area RODTTwo (See Figure 5)
(Step 114).

【0036】次に、RODT1 の帰零時オド値とROD
2 の他の帰零時オド値を大小比較する(ステップ11
5)。すなわち、RODT1 の帰零時オド値とRODT
2 の他の帰零時オド値のうち、どちかが最新の帰零時オ
ド値であるかを判断する。
Next, the odd value at the time of return of RODT 1 and ROD
Other return midnight odo value of T 2 to magnitude comparison (step 11
5). In other words, the return-time odd value of RODT 1 and RODT 1
It is determined which of the two other return zero od values is the latest return zero od value.

【0037】RODT1 の帰零時オド値がRODT2
他の帰零時オド値以上である場合、換言すると、ROD
1 の帰零時オド値が最新の帰零時オド値である場合、
レジスタRTPに、RODの現在オド値からRODT1
の帰零時オド値を減算した結果であるトリップ値をスト
アする(ステップ116)。
If the return zero od value of RODT 1 is greater than or equal to the other return zero od values of RODT 2 , in other words, ROD 1
If the zero od value of T 1 is the latest zero od value,
The register RTP stores the current odd value of ROD in RODT 1.
Is stored as a result of subtraction of the zero-time odd value at step 116 (step 116).

【0038】一方、RODT2 の他の帰零時オド値がR
ODT1 の帰零時オド値より大きい場合、換言すると、
RODT2 の他の帰零時オド値が最新の帰零時オド値で
ある場合、レジスタRTPに、RODの現在オド値から
RODT2 の他の帰零時オド値を減算した結果であるト
リップ値をストアする(ステップ117)。
On the other hand, the other odd value at the time of RODT 2 is R
If the Odd value of ODT 1 is larger than the zero-time od value, in other words,
If the other return zero od value of RODT 2 is the latest return zero od value, a trip value which is the result of subtracting the other return od value of RODT 2 from the current od value of ROD is stored in the register RTP. Is stored (step 117).

【0039】このように、ステップ112〜117にお
いては、イグニッションスイッチ4がオンした直後に表
示器9に表示すべきトリップ値を、現在オド値から最新
の帰零時オド値を減算することによって算出する。
As described above, in steps 112 to 117, the trip value to be displayed on the display 9 immediately after the ignition switch 4 is turned on is calculated by subtracting the latest odometer value at the time of return from the current odometer value. I do.

【0040】50ミリ秒経過毎のトリップ値、オド値
の表示(ステップ118〜119) イグニッションスイッチ4がオンしてから50ミリ秒が
経過したかどうかを判断し(ステップ118)、50ミ
リ秒が経過したと判断すると、上記ステップ116又は
ステップ117でレジスタRTPにストアされたトリッ
プ値、及び、現在オド値を表示器9に表示させる(ステ
ップ119)。
Display of trip value and odd value every 50 milliseconds have elapsed (steps 118 to 119) It is determined whether 50 milliseconds have elapsed since the ignition switch 4 was turned on (step 118). If it is determined that the elapsed time has elapsed, the trip value and the current odd value stored in the register RTP in step 116 or 117 are displayed on the display 9 (step 119).

【0041】その後は、50ミリ秒が経過する毎に、後
述するステップ132で算出された現在オド値及びステ
ップ135又は136で算出されたトリップ値を表示器
9に表示させる(ステップ119)。
Thereafter, every time 50 milliseconds elapse, the current odd value calculated in step 132 described later and the trip value calculated in step 135 or 136 are displayed on the display 9 (step 119).

【0042】このように、ステップ118〜119にお
いては、イグニッションスイッチ4がオンした直後に、
現在オド値及び上記で算出したトリップ値を表示器9
に表示し、その後は、更新されたオド値及びトリップ値
を表示器9に表示する。
As described above, in steps 118 to 119, immediately after the ignition switch 4 is turned on,
The current odd value and the trip value calculated above are displayed on the display 9.
, And thereafter, the updated odd value and trip value are displayed on the display 9.

【0043】リセットスイッチ11がオンしたときの
帰零時オド値の更新(ステップ120〜129) リセットスイッチ11がオンしたかどうか、換言する
と、入力ポートI1 が「0」レベルであるかどうかを判
断する(ステップ120)。
[0043] whether the update of the null midnight odo value when the reset switch 11 is turned on (step 120 to 129) the reset switch 11 is turned on, in other words, whether the input port I 1 is "0" level A judgment is made (step 120).

【0044】I1 ≠0の場合、チャタリングチェックフ
ラグFI1 をクリアして当該処理を終了する(ステップ
121)。
If I 1 ≠ 0, the chattering check flag FI 1 is cleared and the process is terminated (step 121).

【0045】一方、I1 =0の場合、チャタリングチェ
ックフラグFI1 が「1」かどうかを判断する(ステッ
プ122)。
On the other hand, if I 1 = 0, it is determined whether the chattering check flag FI 1 is “1” (step 122).

【0046】FI1 ≠1の場合、チャタリングフラグF
1 をセットして当該処理を終了する(ステップ12
3)。
If FI 1 ≠ 1, chattering flag F
Set the I 1 ends the process (Step 12
3).

【0047】一方、FI1 =1の場合、RODT1 の帰
零時オド値とRODT2 の他の帰零時オド値の大小比較
をする(ステップ124)。
On the other hand, when FI 1 = 1, the magnitude of the return-time odd value of RODT 1 is compared with the other return-time odd value of RODT 2 (step 124).

【0048】RODT1 の帰零時オド値がRODT2
他の帰零時オド値未満である場合、RODの現在オド値
を、RODT1 及びNODT1 にストアする(ステップ
125、126)。換言すると、RODT2 の他の帰零
時オド値が今回のリセットスイッチ11オン以前におけ
る最新の帰零時オド値である場合、古い帰零時オド値が
ストアされているRODT1 及びNODT1 に今回のリ
セットスイッチ11オン時の現在オド値をストアする。
The odometer value at the zero-reset of RODT 1 may be less than at odo value other zero-reset of RODT 2, the current odometer value ROD, store the RODT 1 and NODT 1 (step 125 and 126). In other words, if the other return zero od value of RODT 2 is the latest return zero od value before the present reset switch 11 is turned on, the old return zero od value is stored in the RODT 1 and NODT 1 stored therein. The current odd value when the reset switch 11 is turned on this time is stored.

【0049】一方、RODT1 の帰零時オド値がROD
2 の他の帰零時オド値以上である場合、RODの現在
オド値がRODT1 の帰零時オド値と等しいかどうかを
判断する(ステップ127)。
On the other hand, when the odd value at the time of return of RODT 1 is ROD
If it is another zero-reset time odo value above T 2, the current odometer value of ROD to determine equality with odo value at the zero-reset of RODT 1 (step 127).

【0050】RODの現在オド値がRODT1 の帰零時
オド値と等しい場合、帰零時オド値を更新する必要が無
いことから、当該処理を終了する。
[0050] Current odo value ROD is equal to the odo value at the zero-reset of RODT 1, since there is no need to update the odometer value at the zero-reset, the process ends.

【0051】一方、RODの現在オド値がRODT1
帰零時オド値と等しくない場合、RODの現在オド値
を、RODT2 及びNODT2 にストアする(ステップ
128、129)。換言すると、RODT1 の帰零時オ
ド値が今回のリセットスイッチ11オン以前における最
新の帰零時オド値である場合、古い帰零時オド値がスト
アされているRODT2 及びNODT2 に今回のリセッ
トスイッチ11オン時の現在オド値をストアする。
Meanwhile, the current odometer value ROD is not equal to the odo value at the zero-reset of RODT 1, the current odometer value ROD, stores the RODT 2 and NODT 2 (step 128, 129). In other words, if the return zero od value of RODT 1 is the latest return zero od value before the present reset switch 11 is turned on, the old return zero od value is stored in RODT 2 and NODT 2 which are stored. The current odd value at the time when the reset switch 11 is turned on is stored.

【0052】このように、ステップ120〜129にお
いては、リセットスイッチ11がオンしたとき、この時
点において古い方の帰零時オド値がストアされているR
AM13上及びNVM12上の帰零時オド値ストア領域
に、現在オド値を最新の帰零時オド値としてストアす
る。
As described above, in steps 120 to 129, when the reset switch 11 is turned on, the oldest zero return value stored at this time is stored in R
The current odds value is stored as the latest zero-return odds value in the return-time odds-value storage areas on the AM 13 and the NVM 12.

【0053】なお、本実施例では、NVM12上の帰零
時オド値ストア領域を2つ設けているが、基本的には、
1つで足りる。しかし、帰零時オド値ストア領域が1つ
の場合には、リセットスイッチ11がオンしてNVM1
2のクリア及び書替えが行なわれている最中にイグニッ
ションスイッチ4がオフすると、現在オド値がNVM1
2上の帰零時オド値ストア領域にストアされなくなるた
め、その後のトリップ値が正確な値とはならなくなる不
具合が生じるが、本実施例のように2つ設けた場合に
は、現在オド値が一方の帰零時オド値ストア領域にスト
アされなくても最新の帰零時オド値が他方の帰零時オド
値ストア領域にストアされているため、この最新の帰零
時オド値を用いて正確なトリップ値を算出することがで
きるようになる。
In the present embodiment, two zero-value odd-value store areas on the NVM 12 are provided.
One is enough. However, if there is only one odd-value storage area at the time of return to zero, the reset switch 11 is turned on and the NVM1
When the ignition switch 4 is turned off during the clearing and rewriting of the data 2, the current odd value becomes NVM1.
2, the trip value is not stored in the return-time odd value storage area, so that the subsequent trip value may not be an accurate value. However, when two trip values are provided as in this embodiment, the current odd value is not stored. Even if is not stored in one of the zero-value-zero storage areas, the latest zero-value is stored in the other zero-value storage area. Thus, an accurate trip value can be calculated.

【0054】0.1km走行毎のオド値及びトリップ
値の更新(ステップ130〜136) フラグF0.1 kが「1」かどうかを判断する(ステップ
130)。ここで、フラグ0.1 kは、図4図示の割り込
みルーチンにおいて後述するように、単位走行距離
(0.1km)を走行したと判断する度にセットされる
フラグである。
Updating of the odd value and trip value for every 0.1 km (steps 130 to 136) It is determined whether or not the flag F0.1k is "1" (step 130). Here, the flag 0.1k is a flag that is set each time it is determined that the vehicle has traveled the unit traveling distance (0.1 km), as described later in the interrupt routine shown in FIG.

【0055】フラグF0.1 k≠1の場合、当該処理を終
了し、ステップ118に移行する。
If the flag F0.1k ≠ 1, the process ends, and the routine goes to step 118.

【0056】一方、フラグF0.1 k=1の場合、フラグ
F0.1 kをリセットし(ステップ131)、RODの現
在オド値に「0.1km」を加算した結果である現在オ
ド値をRODにストアするとともに(ステップ13
2)、NODの現在オド値に「0.1km」を加算した
結果である現在オド値をNODにストアする(ステップ
133)。
On the other hand, when the flag F0.1k = 1, the flag F0.1k is reset (step 131), and the current odd value which is the result of adding "0.1 km" to the current odd value of the ROD is stored in the ROD. (Step 13
2) The current odds value obtained by adding "0.1 km" to the current odds value of the NOD is stored in the NOD (step 133).

【0057】次に、RODT1 の帰零時オド値とROD
2 の他の帰零時オド値を大小比較する(ステップ13
4)。すなわち、RODT1 の帰零時オド値とRODT
2 の他の帰零時オド値のうち、どちかが最新の帰零時オ
ド値であるかを判断する。
Next, the odometer value at the time of return of RODT 1 and ROD
Other return midnight odo value of T 2 to magnitude comparison (step 13
4). In other words, the return-time odd value of RODT 1 and RODT 1
It is determined which of the two other return zero od values is the latest return zero od value.

【0058】RODT1 の帰零時オド値がRODT2
他の帰零時オド値以上である場合、換言すると、ROD
1 の帰零時オド値が最新の帰零時オド値である場合、
レジスタRTPに、RODの現在オド値からRODT1
の帰零時オド値を減算した結果であるトリップ値をスト
アする(ステップ135)。
If the return zero od value of RODT 1 is greater than or equal to the other return zero od values of RODT 2 , in other words, RODT
If the zero od value of T 1 is the latest zero od value,
The register RTP stores the current odd value of ROD in RODT 1.
Is stored (step 135).

【0059】一方、RODT2 の他の帰零時オド値がR
ODT1 の帰零時オド値より大きい場合、換言すると、
RODT2 の他の帰零時オド値が最新の帰零時オド値で
ある場合、レジスタRTPに、RODの現在オド値から
RODT2 の他の帰零時オド値を減算した結果であるト
リップ値をストアする(ステップ136)。
On the other hand, the other odd value at the time of RODT 2 is R
If the Odd value of ODT 1 is larger than the zero-time od value, in other words,
If the other return zero od value of RODT 2 is the latest return zero od value, a trip value which is the result of subtracting the other return od value of RODT 2 from the current od value of ROD is stored in the register RTP. Is stored (step 136).

【0060】このように、ステップ130〜136にお
いては、単位走行距離(0.1km)走行毎に、現在オ
ド値に「0.1km」を加算することにより現在オド値
の更新を行ない、更新された現在オド値をROD及びN
ODにストアするとともに、更新された現在オド値から
最新の帰零時オド値を減算することによりトリップ値を
更新し、更新されたトリップ値をレジスタRTPにスト
アする。なお、レジスタRTPにストアされたトリップ
値は、ステップ119で表示器9に表示される。
As described above, in steps 130 to 136, the current odometer value is updated by adding "0.1 km" to the current odometer value for each unit mileage (0.1 km) travel, thereby updating the current odometer value. ROD and N
The trip value is updated by storing the updated trip value by subtracting the latest zero value at the time of return from the updated current odd value, and storing the updated trip value in the register RTP. The trip value stored in the register RTP is displayed on the display 9 in step 119.

【0061】(2) 割り込みルーチン(図4) 割り込みルーチンは、車速センサ1が発生する車速パル
スの立ち下がりを検出することにより実行される(ステ
ップ200)。
(2) Interrupt Routine (FIG. 4) The interrupt routine is executed by detecting the falling of the vehicle speed pulse generated by the vehicle speed sensor 1 (step 200).

【0062】まず、RAM13上の車速パルス数ストア
領域CN(図5参照)の車速パルス数をインクリメント
し、その結果をCNにストアする(ステップ201)。
First, the number of vehicle speed pulses in the vehicle speed pulse number storage area CN (see FIG. 5) on the RAM 13 is incremented, and the result is stored in CN (step 201).

【0063】次に、RKのパルス設定値からCNの車速
パルス数を減算する(ステップ202)。
Next, the number of CN vehicle speed pulses is subtracted from the RK pulse set value (step 202).

【0064】次に、RKのパルス設定値からCNの車速
パスル数を減算した結果が「0」以上であるかどうかを
判断する(ステップ203)。換言すると、車速パルス
数がパルス設定値に達したかどうかを判断する。
Next, it is determined whether or not the result obtained by subtracting the CN vehicle speed pulse number from the RK pulse set value is "0" or more (step 203). In other words, it is determined whether the vehicle speed pulse number has reached the pulse set value.

【0065】車速パルス数がパルス設定値に達していな
い場合、メインルーチンにリターンする(ステップ20
4)。
If the vehicle speed pulse number has not reached the pulse set value, the routine returns to the main routine (step 20).
4).

【0066】一方、車速パルス数がパルス設定値に達し
た場合、フラグF0.1 kをセットし(ステップ20
5)、CNの車速パルス数を「0」に設定し(ステップ
206)、メインルーチンにリターンする(ステップ2
04)。
On the other hand, if the vehicle speed pulse number has reached the pulse set value, the flag F0.1k is set (step 20).
5), the number of vehicle speed pulses of CN is set to "0" (step 206), and the process returns to the main routine (step 2).
04).

【0067】このように、割り込みルーチンにおいて
は、単位走行距離(0.1km)毎に、フラグF0.1 k
をセットする。
As described above, in the interrupt routine, the flag F0.1k is set for each unit traveling distance (0.1 km).
Is set.

【0068】以上説明したように、本実施例によると、
NVM12に、現在オド値の他、帰零時オド値を記憶さ
せたため、バッテリ6の交換時に帰零時オド値はクリア
されない。このため、CPU3は、バッテリ6の交換
後、現在オド値から帰零時オド値を減算することによ
り、正確なトリップ値を求めることができる。従って、
バッテリ6の交換後に正確なトリップ値を表示器9に表
示することができる。また、CPU3に+B電源を接続
することができない車両に対しても、イグニッションス
イッチ4がオフしても帰零時オド値がクリアされること
が無いため、容易に適用することができる。さらに、N
VM12の帰零時オド値は、帰零時のみに書き替えられ
るため、NVM12の書替回数が減少し、NVM12の
信頼性が向上する。
As described above, according to the present embodiment,
Since the Odd value at the time of return in addition to the current Od value is stored in the NVM 12, the Od value at the time of the return is not cleared when the battery 6 is replaced. For this reason, after replacing the battery 6, the CPU 3 can obtain an accurate trip value by subtracting the return-time odd value from the current odd value. Therefore,
An accurate trip value can be displayed on the display 9 after the replacement of the battery 6. Further, even for a vehicle in which the + B power supply cannot be connected to the CPU 3, even when the ignition switch 4 is turned off, the return value at the time of return to zero is not cleared, so that the present invention can be easily applied. Furthermore, N
Since the odd value at the time of return of the VM 12 is rewritten only at the time of the return to zero, the number of rewrites of the NVM 12 is reduced, and the reliability of the NVM 12 is improved.

【0069】また、本実施例によると、NVM12に最
新の帰零時オド値とその直前の帰零時オド値を記憶させ
るようにしたため、リセットスイッチ11がオンしてN
VM12のクリア及び書替えが行なわれている最中にイ
グニッションスイッチ4がオフすると、現在オド値がN
VM12に帰零時オド値として記憶されなくても最新の
帰零時オド値がNVM12に記憶されているため、この
最新の帰零時オド値を用いて正確なトリップ値を算出し
表示することができるようになる。
Further, according to the present embodiment, since the NVM 12 stores the latest zero return value at the time of zero return and the immediately preceding zero return value at the time of zero return, the reset switch 11 is turned on and the N
If the ignition switch 4 is turned off while the VM 12 is being cleared and rewritten, the current odd value becomes N
Since the latest zero return value is stored in the NVM 12 even if it is not stored in the VM 12 as the zero return value, an accurate trip value is calculated and displayed using the latest zero return value. Will be able to

【0070】また、本実施例によると、2つの入力ポー
トI2 ,IS を用いて様々な単位距離当たりの車速パル
ス数の設定をするようにしたため、従来からの入力ポー
ト切替による設定方法と比べ、入力ポート不足、ソフト
変更、ROMのマスク変更等が生じなくなり、自由度が
著しく向上する。
Further, according to the present embodiment, since the number of vehicle speed pulses per unit distance is set using the two input ports I 2 and I S , the conventional setting method by input port switching and In comparison, shortage of input ports, software change, ROM mask change, and the like do not occur, and the degree of freedom is significantly improved.

【0071】なお、上記実施例では、最新の帰零時オド
値とその直前の帰零時オド値の2つの帰零時オド値をN
VM12に記憶させているが、最新の帰零時オド値のみ
を記憶させるようにしてもよく、また、3つ以上の帰零
時オド値を記憶させるようにしてもよい。
In the above-described embodiment, the two return zero od values, the latest return od value and the immediately preceding return od value, are set to N
Although stored in the VM 12, only the latest zero-return-time odd value may be stored, or three or more zero-return-time odd values may be stored.

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

【図1】一実施例に係る電子式走行距離積算計の構成図FIG. 1 is a configuration diagram of an electronic odometer according to an embodiment;

【図2】CPUが実行するメインルーチンの前半部分の
フローチャート
FIG. 2 is a flowchart of a first half of a main routine executed by a CPU;

【図3】同メインルーチンの後半部分のフローチャートFIG. 3 is a flowchart of the latter half of the main routine.

【図4】割り込みルーチンのフローチャートFIG. 4 is a flowchart of an interrupt routine.

【図5】NVM及びRAMの構成図FIG. 5 is a configuration diagram of an NVM and a RAM.

【図6】従来の電子式走行距離積算計の構成図FIG. 6 is a configuration diagram of a conventional electronic odometer.

【図7】本発明の課題を説明するための説明図FIG. 7 is an explanatory diagram for explaining a problem of the present invention.

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

3 CPU 12 不揮発性メモリ(NVM) 3 CPU 12 Non-volatile memory (NVM)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 現在オド値と帰零時オド値とを記憶する
不揮発性メモリと、 前記不揮発性メモリの前記現在オド値から前記帰零時オ
ド値を減算してトリップ値を求めるCPUと、 を備え 前記不揮発性メモリは、前記帰零時オド値として、少な
くとも最新の帰零時オド値とその直前の帰零時オド値と
を記憶し、 前記CPUは、前記現在オド値から前記最新の帰零時オ
ド値を減算してトリップ値を求める ことを特徴とする電
子式走行距離積算計。
A non-volatile memory for storing a current odd value and a zero reset odd value; a CPU for subtracting the zero reset value from the current odd value of the non-volatile memory to obtain a trip value; wherein the non-volatile memory as odo value at the zero-reset, low
At least the most recent zero-zero value at the time of return
The CPU stores the latest zero return time from the current odd value.
An electronic mileage integrator that calculates a trip value by subtracting a trip value .
JP1239294A 1994-02-04 1994-02-04 Electronic odometer Expired - Lifetime JP2917794B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1239294A JP2917794B2 (en) 1994-02-04 1994-02-04 Electronic odometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1239294A JP2917794B2 (en) 1994-02-04 1994-02-04 Electronic odometer

Publications (2)

Publication Number Publication Date
JPH07218283A JPH07218283A (en) 1995-08-18
JP2917794B2 true JP2917794B2 (en) 1999-07-12

Family

ID=11804005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1239294A Expired - Lifetime JP2917794B2 (en) 1994-02-04 1994-02-04 Electronic odometer

Country Status (1)

Country Link
JP (1) JP2917794B2 (en)

Also Published As

Publication number Publication date
JPH07218283A (en) 1995-08-18

Similar Documents

Publication Publication Date Title
US7212107B2 (en) Odometer system and method for a vehicle
EP0097337A2 (en) Trip computer for vehicles
JP2917794B2 (en) Electronic odometer
US6188972B1 (en) Integrating device and integrating method
JP3867604B2 (en) Vehicle mileage accumulator
KR20210155550A (en) Calculationg method driving distance and the vehicle where the method is applied
JPH0565010B2 (en)
JPH10197282A (en) Data memory for vehicle
JPH06109478A (en) Electronic odometer
JP5933294B2 (en) Cumulative value information management apparatus for vehicle and cumulative value information management method
JP3136543B2 (en) Electronic integrator
JP2003072419A (en) Instrument for automobile
JP2850667B2 (en) Electronic odometer
JPH06241824A (en) Electronic odometer
JP3265932B2 (en) Electronic odometer, mileage writing device, and mileage writing method
JP4304893B2 (en) Electronic odometer for automobile
JPH06241825A (en) Electronic odometer
JP3627943B2 (en) Electronic odometer
JP2917699B2 (en) Drive
JPH0682264A (en) Electronic odometer
JP2879809B2 (en) Electronic trip meter
JPH074503Y2 (en) Vehicle mileage recorder
JPH08304103A (en) Electronic distance recorder
JPH0843121A (en) Electronic type odometer
JP2001158309A (en) Vehicle history information retaining device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080423

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110423

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120423

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120423

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20130423

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20130423

Year of fee payment: 14

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

Year of fee payment: 15

Free format text: PAYMENT UNTIL: 20140423

EXPY Cancellation because of completion of term