JPH09179789A - Electronic data storage device - Google Patents

Electronic data storage device

Info

Publication number
JPH09179789A
JPH09179789A JP7350181A JP35018195A JPH09179789A JP H09179789 A JPH09179789 A JP H09179789A JP 7350181 A JP7350181 A JP 7350181A JP 35018195 A JP35018195 A JP 35018195A JP H09179789 A JPH09179789 A JP H09179789A
Authority
JP
Japan
Prior art keywords
data
addresses
address
converted
storage area
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
JP7350181A
Other languages
Japanese (ja)
Other versions
JP3465254B2 (en
Inventor
Toshio Katsunuma
俊夫 勝沼
Yoichi Shibaki
洋一 柴木
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 JP35018195A priority Critical patent/JP3465254B2/en
Publication of JPH09179789A publication Critical patent/JPH09179789A/en
Application granted granted Critical
Publication of JP3465254B2 publication Critical patent/JP3465254B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic data storage device capable of resisting an accident and improved in its reliability. SOLUTION: The upper four digits of a converted hexadecimal value to be data uniquely determined from a traveling distance are stored in a storage area 5a consisting of addresses 00 to OF, a storage area 5b consisting of addresses 10 to 1F and a storage area 5c consisting of addresses 20 to 2F in an EEPROM (non-volatile memory) consisting of 16 addresses × 16 bits and the least significant digit value of the converted hexadecimal data is stored so as to coincide with the lower addresses 0 to F in the addresses 20 to 2F. The storage areas 5a, 5b consisting of the addresses 00 to 0F, 20 to 2F in which the upper digit of each address is even store the upper four digits of data in a state converted by the previously determined combination of low and high potential levels of bits and the storage area 5b consisting of the addresses 10 to 1F in which the upper digit of each address is odd stores the upper four digits of data in the inverted state of conversion based upon the combination as mentioned above.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のアドレスに
て割り付けられた複数のビットを有する不揮発性メモリ
にアドレス単位でデータを記憶する電子式データ記憶装
置、例えば走行距離を計測して表示することのできる電
子式データ記憶装置に関し、特に信頼性を高めたものに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic data storage device for storing data in address units in a non-volatile memory having a plurality of bits allocated at a plurality of addresses. The present invention relates to an electronic data storage device that can be used, and more particularly, to an electronic data storage device with improved reliability.

【0002】[0002]

【従来の技術】従来、この種の電子式データ記憶装置
を、例えば車両のオドメータとして使用する場合、バッ
テリ異常(電圧低下やバッテリ外れ等)になっても、過
去の走行データを保持しておく必要があることから、不
揮発性メモリを用いている(特開昭59−196414
号公報参照)。
2. Description of the Related Art Conventionally, when an electronic data storage device of this kind is used as an odometer of a vehicle, for example, even if a battery abnormality (voltage drop, battery removal, etc.) occurs, past travel data is retained. A non-volatile memory is used because it is necessary (Japanese Patent Laid-Open No. 59-196414).
Reference).

【0003】[0003]

【発明が解決しようとする課題】斯る装置において、不
揮発性メモリへのデータの書き込みや読み出しにおい
て、信号線の断線,ショート,ノイズ混入等の事故によ
り、正常なデータの出し入れが損なわれ、結果としてデ
ータに基づく表示を行うに際して正確な値が表示されな
いという問題がある。
In such a device, when data is written in or read out from the non-volatile memory, an accident such as a disconnection of a signal line, a short circuit, or noise mixing impairs normal data transfer, resulting in a result. As a result, there is a problem that an accurate value is not displayed when displaying based on data.

【0004】このような問題に対応するため、各種方策
が検討されているが、例えば特公平1−46005号公
報では、不揮発性メモリに第1〜第3のメモリエリアを
用意し、1つのデータを同時に3つのメモリエリアに書
き込むことで、何れか1つのメモリエリアに事故が発生
しても多数決を採ることにより、他の2つのメモリエリ
アからのデータを読み出すことができ、事故による悪影
響を防ぐことが開示されている。しかし、3つのメモリ
エリア全てに事故が発生した場合には、対処出来ないと
いう不備がある。本発明は、新規な構成により、事故に
強い、信頼性を高めた電子式データ記憶装置を提供する
ことを目的とする。
Various measures have been studied to deal with such a problem. For example, in Japanese Examined Patent Publication (Kokoku) No. 1-46005, first to third memory areas are prepared in a non-volatile memory, and one data is stored. By simultaneously writing in three memory areas, even if an accident occurs in any one of the memory areas, the majority decision can be taken to read the data from the other two memory areas and prevent the adverse effects of the accident. It is disclosed. However, when an accident occurs in all three memory areas, there is a defect that it cannot be dealt with. It is an object of the present invention to provide an electronic data storage device having a new structure, which is resistant to accidents and has high reliability.

【0005】[0005]

【課題を解決するための手段】前記課題を解決するため
の本発明は、複数個のアドレスにて割り付けられた複数
のビットを有する不揮発性メモリに前記アドレス単位で
データを記憶する電子式データ記憶装置において、偶数
の前記アドレスと奇数の前記アドレスとで前記データの
記憶方法を異ならせるものである。
SUMMARY OF THE INVENTION The present invention for solving the above problems is an electronic data storage for storing data in the address unit in a non-volatile memory having a plurality of bits allocated by a plurality of addresses. In the device, a method of storing the data is different between the even numbered address and the odd numbered address.

【0006】2×n+1(nは1以上の整数)個の記憶
エリアを有する不揮発性メモリのアドレスにて割り付け
られた複数のビットを有する前記各記憶エリアにデータ
を少なくとも3個の前記記憶エリアに同時に記憶する電
子式データ記憶装置において、前記アドレスにより前記
記憶エリアを偶数の記憶エリアと奇数の記憶エリアとに
分け、これらの記憶エリアに前記データを前記ビットの
電位のロウとハイとの予め決められた組み合わせにより
変換して記憶する際、一方は前記組み合わせで変換した
状態でデータを記憶し、他方は前記組み合わせで変換し
その反転の状態でデータを記憶するものである。
Data is stored in at least three of the storage areas having a plurality of bits allocated by addresses of a nonvolatile memory having 2 × n + 1 (n is an integer of 1 or more) storage areas. In an electronic data storage device that stores at the same time, the storage area is divided into an even storage area and an odd storage area by the address, and the data is previously determined in these storage areas as low and high of the potential of the bit. When the data is converted and stored by the combination, one stores the data in the state converted by the combination, and the other stores the data in the state converted by the combination and in the inverted state.

【0007】また、前記課題を解決するための本発明
は、m(mは2以上の整数)個のアドレスにて割り付け
られた複数のビットを有する不揮発性メモリに前記アド
レス単位でデータを記憶する電子式データ記憶装置にお
いて、偶数の前記アドレス及び奇数の前記アドレスに前
記データを前記ビットの電位のロウとハイとの予め決め
られた組み合わせにより変換して記憶する際、一方は前
記組み合わせで変換した状態で前記データを記憶し、他
方は前記組み合わせで変換しその反転の状態で前記デー
タを記憶するものである。
Further, according to the present invention for solving the above problem, data is stored in the nonvolatile memory having a plurality of bits allocated by m (m is an integer of 2 or more) addresses. In the electronic data storage device, when the data is converted and stored in the even-numbered address and the odd-numbered address by a predetermined combination of low and high of the potential of the bit, one is converted by the combination. In the state, the data is stored, and in the other, the combination is converted and the data is stored in the inverted state.

【0008】[0008]

【発明の実施の形態】16アドレス×16ビットからなるE
EPROM5のアドレス00〜0Fの記憶エリア5a,
アドレス10〜1Fの記憶エリア5b及びアドレス20
〜2Fの記憶エリア5cに、走行距離から一義的に定ま
るデータである16進数に変換された値の上位4桁を、同
じく16進数に変換されたデータの最下位桁の値がアドレ
ス00〜2Fの下位アドレス0〜Fと一致するように、
各記憶エリア5a〜5cに前記上位4桁を前記ビットの
電位のロウとハイとの予め決められた組み合わせにより
変換して同時に書き込むもので、アドレスの上位が偶数
のアドレスであるアドレス00〜0F,20〜2Fの記
憶エリア5a,5cは、前記組み合わせで変換した状態
でデータの上位4桁を記憶し、アドレスの上位が奇数の
アドレスであるアドレス10〜1Fの記憶エリア5b
は、前記組み合わせで変換しその反転の状態でデータの
上位4桁を記憶することにより、従来の技術では判定で
きなかった事故を確実に認識して使用者へ表示すること
ができる。
BEST MODE FOR CARRYING OUT THE INVENTION E consisting of 16 addresses × 16 bits
A storage area 5a of addresses 00 to 0F of the EPROM 5,
Storage area 5b of address 10 to 1F and address 20
In the storage area 5c of ~ 2F, the upper 4 digits of the value converted to hexadecimal, which is the data uniquely determined from the traveled distance, and the value of the lowest digit of the data converted to hexadecimal, are addresses 00 to 2F. To match lower addresses 0 to F of
The upper 4 digits are converted into the respective storage areas 5a to 5c by a predetermined combination of low and high potentials of the bits and are simultaneously written, and the upper addresses are addresses 00 to 0F, which are even addresses. The storage areas 5a and 5c of 20 to 2F store the upper 4 digits of the data in the state converted by the combination, and the storage area 5b of the addresses 10 to 1F in which the upper address is an odd address.
By converting the above combination and storing the upper 4 digits of the data in the inverted state, it is possible to surely recognize and display to the user an accident that could not be determined by the conventional technique.

【0009】また、16アドレス×16ビットからなるEE
PROM5のアドレス0〜Fの記憶エリア5dに、走行
距離から一義的に定まるデータである16進数に変換され
た値の上位4桁を、同じく16進数に変換されたデータの
最下位桁の値がアドレス0〜Fと一致するように、前記
上位4桁を前記ビットの電位のロウとハイとの予め決め
られた組み合せにより変換して同時に書き込むもので、
偶数アドレス0,2,4,6,8,A,C,Eは、前記
組み合せで変換した状態でデータの上位4桁を記憶し、
奇数アドレス1,3,5,7,9,B,D,Fは、前記
組み合せで変換しその反転の状態でデータの上位4桁を
記憶する
EE consisting of 16 addresses × 16 bits
In the storage area 5d of the addresses 0 to F of the PROM 5, the upper 4 digits of the value converted to hexadecimal, which is the data uniquely determined from the traveled distance, and the value of the lowest digit of the data converted to hexadecimal, In order to match the addresses 0 to F, the upper 4 digits are converted by a predetermined combination of low and high potentials of the bits and written simultaneously.
Even addresses 0, 2, 4, 6, 8, A, C and E store the upper 4 digits of the data in the state converted by the combination,
Odd addresses 1, 3, 5, 7, 9, B, D and F are converted by the combination and the upper 4 digits of the data are stored in the inverted state.

【0010】[0010]

【実施例】以下、本発明について、図1〜図8に記載の
実施例に基づき説明する。なお、図1〜図4は第1実施
例、図5〜図8は第2実施例に関する。
EXAMPLES The present invention will be described below with reference to the examples shown in FIGS. 1 to 4 relate to the first embodiment, and FIGS. 5 to 8 relate to the second embodiment.

【0011】図1は、本発明の電子式データ記憶装置を
車両のオドメータとして用いた場合のブロック図を示し
ており、距離検出手段であって波形整形回路等の付属回
路を含む距離センサ1は、車両の車輪或は車軸に設置さ
れており、走行に応じてパルス信号を出力し、制御手段
であるマイコン2の距離入力としている。マイコン2
は、距離入力を受けそのパルス数をカウントし、所定の
単位走行距離(例えば1km)毎に入出力手段であるデコ
ーダ3,4を介して記憶手段であるEEPROM5の記
憶内容(走行距離のデータに基づく内容)の書き込みと
読み出しを行い、後者においては駆動手段であるドライ
バ6を介して6桁(例えば、000000〜99999
9)のデジタル式の表示手段であって蛍光表示管等の表
示素子を含む表示器7への表示出力を所定の方法で行
う。8は車載バッテリである。
FIG. 1 is a block diagram when the electronic data storage device of the present invention is used as an odometer of a vehicle. The distance sensor 1 which is a distance detecting means and includes an auxiliary circuit such as a waveform shaping circuit is shown in FIG. It is installed on the wheel or axle of the vehicle and outputs a pulse signal in response to running, which is used as a distance input of the microcomputer 2 as a control means. Microcomputer 2
Receives a distance input, counts the number of pulses thereof, and stores the contents stored in the EEPROM 5 serving as a storage unit (traveling distance data into the unit) via decoders 3 and 4 serving as input / output units for each predetermined unit traveling distance (for example, 1 km). The contents are written and read based on 6 digits (for example, 000000 to 999999) via the driver 6 which is a driving means.
Display output to the display unit 7 which is a digital display means of 9) and includes a display element such as a fluorescent display tube is performed by a predetermined method. 8 is a vehicle-mounted battery.

【0012】EEPROM5への書き込み並びに読み出
して表示器7への表示出力について、図2の割付図及び
図3の変換方法の説明図を用いながら説明する。EEP
ROM5は、複数個のアドレスにて割り付けられた複数
のビット、例えば16アドレス×16ビットからなる、アド
レス00〜0Fの記憶エリア5a,アドレス10〜1F
の記憶エリア5b及びアドレス20〜2Fの記憶エリア
5cの3組から構成されている。
Writing to and reading from the EEPROM 5 and display output to the display 7 will be described with reference to the layout diagram of FIG. 2 and the conversion method diagram of FIG. EEP
The ROM 5 includes a plurality of bits allocated by a plurality of addresses, for example, 16 addresses × 16 bits, a storage area 5a of addresses 00 to 0F, and addresses 10 to 1F.
Storage area 5b and storage areas 5c of addresses 20 to 2F.

【0013】マイコン2は、単位走行距離の走行毎に最
新の走行距離を16進数に変換し、EEPROM5は、デ
コーダ3,4によりアドレス00〜2Fヘ走行距離から
一義的に定まるデータである16進数に変換された値の上
位4桁を、同じく16進数に変換されたデータの最下位桁
の値がアドレス00〜2Fの下位アドレス0〜Fと一致
するように、各記憶エリア5a〜5cに前記上位4桁を
前記ビットの電位のロウとハイとの予め決められた組み
合わせにより変換して同時に書き込むもので、例えば図
3で示す変換方法によりデータの各桁をb4〜b1の4ビッ
トに割当てて記憶される。ただし、アドレスの上位が偶
数のアドレスと奇数のアドレスとでデータの記憶方法を
異ならせており、例えばアドレス00〜2Fの内、アド
レスの上位が偶数のアドレスであるアドレス00〜0
F,20〜2Fの記憶エリア5a,5cは、前記組み合
わせで変換した状態でデータの上位4桁を記憶し、アド
レスの上位が奇数のアドレスであるアドレス10〜1F
の記憶エリア5bは、前記組み合わせで変換しその反転
の状態でデータの上位4桁を記憶する。
The microcomputer 2 converts the latest mileage into a hexadecimal number for each unit mileage, and the EEPROM 5 is a hexadecimal number which is data uniquely determined from the mileage to the addresses 00 to 2F by the decoders 3 and 4. The upper 4 digits of the value converted into the above are stored in the respective storage areas 5a to 5c so that the value of the lowermost digit of the data converted into the hexadecimal number matches the lower addresses 0 to F of the addresses 00 to 2F. The upper 4 digits are converted by a predetermined combination of low and high potentials of the bits and simultaneously written, and each digit of the data is assigned to 4 bits b4 to b1 by the conversion method shown in FIG. 3, for example. Remembered. However, the data storage method is different between an even-numbered address and an odd-numbered address, and for example, among addresses 00 to 2F, addresses 00 to 0, which are even-numbered addresses, are higher.
The storage areas 5a and 5c of F and 20 to 2F store the upper 4 digits of the data in the state of being converted by the combination, and the addresses 10 to 1F in which the upper addresses are odd addresses
The storage area 5b of 4 stores the upper 4 digits of the data in the inverted state after conversion by the combination.

【0014】具体的には、走行距離が「123447k
m」の場合、この走行距離を16進数に変換した「1E2
37」をデータとして、このデータの上位4桁の「1E
23」を図3で示す変換方法によりデータの各桁をb4〜
b1の4ビットに割当てて夫々記憶エリア5a,5cのア
ドレス07,27に書き込む。一方、「1E23」の反
転の状態である「E1DC」を図3で示す変換方法によ
り各桁4ビットずつ記憶エリア5bのアドレス17に書
き込む。従って、記憶エリア5a,5cには、アドレス
00〜07,20〜27に「1E23」が記憶され、ア
ドレス08〜0F,28〜2Fに「1E22」が記憶さ
れている(図4(a)参照)。また、記憶エリア5bに
は、アドレス10〜17に「E1DC」が記憶され、ア
ドレス18〜1Fに「E1DD」が記憶されている(図
4(b)参照)。
Specifically, the mileage is "123447k
In the case of "m", this traveled distance is converted to hexadecimal "1E2"
37 "as data, and the upper 4 digits of this data," 1E "
23 "by the conversion method shown in FIG.
Allocate to 4 bits of b1 and write to addresses 07 and 27 of storage areas 5a and 5c, respectively. On the other hand, "E1DC", which is the inverted state of "1E23", is written to the address 17 of the storage area 5b in units of 4 bits by the conversion method shown in FIG. Therefore, in the storage areas 5a and 5c, "1E23" is stored at addresses 00-07 and 20-27, and "1E22" is stored at addresses 08-0F and 28-2F (see FIG. 4 (a)). ). In the storage area 5b, "E1DC" is stored at addresses 10 to 17 and "E1DD" is stored at addresses 18 to 1F (see FIG. 4B).

【0015】EEPROM5の内容を読み出す時は、記
憶エリア5a,5cでは、最新値はアドレス07,27
の「1E23」とアドレスの下位1桁の「7」から16進
数のデータである「1E237」を得て、これを10進数
に変換することにより「123447」を求める。一
方、記憶エリア5bでは、最新値はアドレス17の「E
1DC」を反転した「1E23」とアドレスの下位1桁
の「7」から16進数のデータである「1E237」を得
て、これを10進数に変換することにより「12344
7」を求める。このように、通常は、EEPROM5か
ら得られる最新値は同一となる。しかし、何らかの原因
により記憶エリア5a〜5cから読み出したデータが一
致せずに不一致のビット数が一定個数(例えば、1アド
レス当たりの1ビット誤りは許容することにすると、一
定個数=4個)以上ある場合には、事故があったと認識
して、マイコン2は、表示器7で何らかのエラー表示
(例えば、ブランク表示や通常は表れない特別表示)を
行わせる。また、最新値の不一致のビット数が前記一定
個数未満の場合には、事故はないと認識して、多数決に
よる多数派の値をEEPROM5の最新値として認識し
て走行距離「123447km」を表示器7で表示する。
When reading the contents of the EEPROM 5, the latest values in the storage areas 5a and 5c are addresses 07 and 27.
"1E23" and the lower one digit "7" of the address are obtained as hexadecimal data "1E237", and this is converted into a decimal number to obtain "123447". On the other hand, in the storage area 5b, the latest value is "E" at address 17.
"1E23" which is the inverse of "1DC" and "7" in the lower one digit of the address are obtained as hexadecimal data "1E237", and this is converted into a decimal number to obtain "12344".
7 ”. Thus, normally, the latest values obtained from the EEPROM 5 are the same. However, for some reason, the data read from the storage areas 5a to 5c do not match and the number of mismatched bits is a certain number (for example, if one bit error per address is allowed, a certain number = 4). In some cases, recognizing that an accident has occurred, the microcomputer 2 causes the display 7 to display some kind of error (for example, a blank display or a special display that does not normally appear). If the number of mismatched bits of the latest value is less than the predetermined number, it is recognized that there is no accident, the majority value by majority decision is recognized as the latest value of the EEPROM 5, and the mileage "123447 km" is displayed. Display at 7.

【0016】EEPROM5への書き込みや読み出しに
おいて事故、例えば読み出しにおいて端子がショートす
ると、従来の技術では、記憶エリア5a〜5cの全ての
アドレスから得られる16進数が「0000」となって不
一致のビット数が0個と判定され、事故は認識されず、
アドレスの下位1桁の「F」から16進数のデータとし
て「0000F」を得て、これを10進数に変換した「1
5」から本当の最新値とは関係ない走行距離「0000
15km」が表示器7で表示されていた。しかし、本実施
例によれば、同様の事故において、記憶エリア5a〜5
cの最新値が全て「0000」となるが、記憶エリア5
bの値は逆数の「FFFF」であることから、不一致の
ビット数が16個(図3の変換方法では、16進数の「0」
は、これを記憶する4ビットの電位が「0000」であ
るのに対し、同じく「F」は、「1111」であること
から、各桁で4ビットの差を有し、上位4桁の全体で16
ビットの差を有する)と判定され、この場合には多数決
を行わずに事故があったと認識して、マイコン2は、表
示器7で何らかのエラー表示を行わせる。不一致のビッ
ト数が3個以下の場合には、多数決による多数派の値を
EEPROM5の最新値として認識してこれを表示器7
で表示する。
In the case of writing or reading data to or from the EEPROM 5, for example, when the terminals are short-circuited during reading, in the conventional technique, the hexadecimal number obtained from all the addresses in the storage areas 5a to 5c becomes "0000" and the number of mismatched bits. Was judged to be 0, the accident was not recognized,
"0000F" was obtained as hexadecimal data from the lower 1 digit "F" of the address and converted to decimal "1".
Mileage "0000" that has nothing to do with the actual latest value
15 km "was displayed on the display 7. However, according to the present embodiment, in the same accident, the storage areas 5a-5
The latest values of c are all "0000", but storage area 5
Since the value of b is the reciprocal “FFFF”, the number of mismatched bits is 16 (in the conversion method of FIG. 3, the hexadecimal number “0”).
Has a 4-bit potential that is "0000", while "F" is "1111", there is a 4-bit difference in each digit. At 16
It is determined that there is a bit difference), and in this case, the microcomputer 2 recognizes that there is an accident without making a majority decision and causes the display unit 7 to display some kind of error. If the number of bits of disagreement is 3 or less, the majority value determined by the majority decision is recognized as the latest value of the EEPROM 5, and this is displayed.
To display.

【0017】このように、従来の技術では判定できなか
った事故を確実に認識して使用者へ表示することがで
き、これを受けて使用者はタイムリーに必要な処理、例
えばサービス工場での点検整備を受けること等を行うこ
とができる。
As described above, it is possible to surely recognize and display to the user an accident that could not be determined by the conventional technique, and accordingly, the user can perform necessary processing in a timely manner, for example, at a service factory. You can receive inspection and maintenance.

【0018】なお、本実施例では、EEPROM5が3
個以上、すなわり2×n+1(nは1以上の整数)個の
記憶エリアを有してアドレスにて割り付けられた複数の
ビットを有し、前記各記憶エリアにデータを少なくとも
3個の記憶エリアに同時に記憶する構成であれば良い。
In this embodiment, the EEPROM 5 has three
Or more, that is, 2 × n + 1 (n is an integer of 1 or more) storage areas, and a plurality of bits allocated by an address, and each storage area stores at least three data. Any structure may be used as long as it is stored in the area at the same time.

【0019】図5は、本発明の電子式データ記憶装置を
車両のオドメータとして用いた場合の第2実施例におけ
るEEPROM5の割付状態を説明するもので、m(m
は2以上の整数)個のアドレスにて割り付けられた複数
のビット、例えば16アドレス×16ビットからなる、アド
レス0〜Fの記憶エリア5d(前記実施例のEEPRO
M5の記憶エリア5a〜5cの1組と同じ)で構成され
ており、アドレス0〜Fに走行距離を16進数に変換され
た値、すなわち走行距離から一義的に定まるデータであ
る16進数に変換された値の上位4桁を、同じく16進数に
変換されたデータの最下位桁の値がアドレス0〜Fと一
致するように、前記上位4桁を前記ビットの電位のロウ
とハイとの予め決められた組み合せにより変換して同時
に書き込むもので、例えば前記実施例と同様に図3で示
す変換方法により記憶される。ただし、偶数のアドレス
と奇数のアドレスとでデータの記憶方法を異ならせてお
り、例えば偶数アドレス0,2,4,6,8,A,C,
Eは、前記組み合せで変換した状態でデータの上位4桁
を記憶し、奇数アドレス1,3,5,7,9,B,D,
Fは、前記組み合せで変換しその反転の状態でデータの
上位4桁を記憶する。
FIG. 5 illustrates the allocation state of the EEPROM 5 in the second embodiment when the electronic data storage device of the present invention is used as a vehicle odometer.
Is an integer of 2 or more), a storage area 5d of addresses 0 to F (EEPRO of the above-described embodiment), which is composed of a plurality of bits allocated by addresses, for example, 16 addresses × 16 bits.
It is composed of the same set of storage areas 5a to 5c of M5) and is converted into a hexadecimal number which is data uniquely determined from the traveling distance, that is, a value obtained by converting the traveling distance into hexadecimal at addresses 0 to F The upper 4 digits of the converted value are converted into hexadecimal numbers so that the lower 4 digits of the data match the addresses 0 to F. The data is converted by a predetermined combination and simultaneously written, and is stored by, for example, the conversion method shown in FIG. However, the data storage method is different between the even addresses and the odd addresses. For example, even addresses 0, 2, 4, 6, 8, A, C,
E stores the upper 4 digits of the data in the state converted by the above combination, and stores the odd addresses 1, 3, 5, 7, 9, B, D,
F stores the upper 4 digits of data in the inverted state after conversion by the combination.

【0020】具体的には、走行距離が「123447k
m」の場合、この走行距離を16進数に変換した「1E2
37」をデータとして、このデータの上位4桁の「1E
23」を各桁4ビットずつ図3で示す変換方法により記
憶エリア5dに書き込むが、この書き込みに際して本実
施例では、奇数のアドレスに書き込む場合には、反転し
た状態で書き込むようにマイコン2が制御するようにな
っており、従って、アドレス7には「1E23」の反転
の状態である「E1DC」が書き込まれる。従って、ア
ドレス0,2,4,6には「1E23」、アドレス1,
3,5,7には反転した「E1DC」、アドレス8,
A,C,Eには「1E22」、アドレス9,B,D,F
には反転した「E1DD」が記憶されている(図6参
照)。すなわち、各アドレス0〜Fの記憶内容が2種類
又は4種類(本実施例では、「1E23」と「E1D
C」、「1E22」と「E1DD」の4種類の場合であ
る)となるように書き込まれ、この記憶内容に基づきマ
イコン2(図1参照、以下同じ)はドライバ6(図1参
照、以下同じ)へ表示出力を送り、表示器7(図1参
照、以下同じ)が最新値を表示するものである。
Specifically, the mileage is "123447k
In the case of "m", this traveled distance is converted to hexadecimal "1E2"
37 "as data, and the upper 4 digits of this data," 1E "
23 "is written in the storage area 5d by the conversion method shown in FIG. 3 for each digit of 4 bits. In this embodiment, when writing to an odd address, the microcomputer 2 controls to write in an inverted state. Therefore, "E1DC" which is the inverted state of "1E23" is written in the address 7. Therefore, "0E23" is assigned to addresses 0, 2, 4, and 6, and
“E1DC”, address 8,
"1E22" for A, C, E, address 9, B, D, F
Inverted "E1DD" is stored in (see FIG. 6). That is, the storage contents of each address 0 to F are two types or four types (in the present embodiment, “1E23” and “E1D”).
C ”,“ 1E22 ”, and“ E1DD ”). Based on the stored contents, the microcomputer 2 (see FIG. 1, hereinafter the same) has the driver 6 (see FIG. 1, same below). ), And the display 7 (see FIG. 1, the same applies hereinafter) displays the latest value.

【0021】読み出し方法としては、まず、奇数アドレ
ス1,3,5,7,9,B,D,Fの記憶内容を反転さ
せた「1E23」(アドレス1,3,5,7)と「1E
22」(アドレス9,B,D,F)を求める。次に、ア
ドレス0〜Fの記憶内容の変化点アドレス(アドレス0
〜7は「1E23」、アドレス8〜Fは「1E22」で
あり、記憶内容の大きい最大アドレスであるアドレス7
を変化点アドレスとする)を探す。そして、その変化点
アドレスの記憶内容(奇数アドレスの場合は反転)とそ
のアドレスから16進数のデータとして「1E237」を
得て、これを10進数に変換した「123447」から走
行距離「123447km」を表示するものである(図7
参照)。
As a reading method, first, "1E23" (addresses 1, 3, 5, 7) and "1E23" in which the stored contents of odd addresses 1, 3, 5, 7, 9, B, D, and F are inverted.
22 ”(address 9, B, D, F). Next, the change point address (address 0
7 to "1E23", addresses 8 to F are "1E22", which is the maximum address with a large stored content, that is, address 7
As the change point address). Then, "1E237" is obtained as hexadecimal data from the stored contents of the change point address (reversed in the case of an odd number address) and the hexadecimal data from the address, and the travel distance "123447km" is converted from "123447" converted to decimal. It is displayed (Fig. 7
reference).

【0022】読み出す他の方法としては、アドレスの小
さい方から2つずつ比較して互いの記憶内容が反転関係
にあるか否かを判定し、反転関係にないアドレスを変化
点アドレスとし、この記憶内容(変化点アドレスが奇数
アドレスの場合は反転)と変化点アドレスのアドレスと
から16進数を得て、これを10進数に変換することにより
走行距離を求めることもできる(図8参照)。
As another method of reading, two addresses are compared from the smallest address to determine whether the stored contents are in the inversion relation, and an address not in the inversion relation is set as a change point address, and this storage is performed. It is also possible to obtain the running distance by obtaining a hexadecimal number from the contents (inversion if the changing point address is an odd number address) and the address of the changing point address and converting this into a decimal number (see FIG. 8).

【0023】斯る構成では、EEPROM5に何らかの
事故が発生して、記憶エリア5dの全てのアドレスから
得られる16進数が「0000」となると、従来の技術で
は、「0000」とアドレスFとから16進数のデータと
して「0000F」を得て、これを10進数に変換した
「15」から本当の最新値とは関係ない走行距離「00
0015km」が表示器7で表示されていた。しかし、本
実施例によれば、変化点アドレスが発見されず、この場
合には事故があったと認識して表示器7で何らかのエラ
ー表示を行わせる。全てのアドレスから得られる16進数
が「FFFF」の場合も同様に事故の発生を認識でき
る。
In such a configuration, if some trouble occurs in the EEPROM 5 and the hexadecimal number obtained from all the addresses in the storage area 5d becomes "0000", in the conventional technique, 16 from the "0000" and the address F. Obtained "0000F" as the data of the decimal number and converted it to decimal number from "15" to the actual mileage "00"
"0015 km" was displayed on the display 7. However, according to the present embodiment, the change point address is not found, and in this case, it is recognized that an accident has occurred and the display 7 displays some error. If the hexadecimal number obtained from all addresses is "FFFF", the occurrence of the accident can be recognized in the same manner.

【0024】このように、従来の技術では判定できなか
った事故を確実に認識して使用者へ表示することがで
き、これを受けて使用者はタイムリーに必要な処理、例
えばサービス工場での点検整備を受けること等を行うこ
とができる。
As described above, it is possible to surely recognize and display to the user an accident that could not be determined by the conventional technique, and accordingly, the user can perform necessary processing in a timely manner, for example, at a service factory. You can receive inspection and maintenance.

【0025】なお、本実施例では、EEPROM5がm
(mは2以上の整数)個のアドレスにて割り付けられた
複数のビットを有する構成であれば良い。
In this embodiment, the EEPROM 5 is
Any configuration may be used as long as it has a plurality of bits allocated by (m is an integer of 2 or more) addresses.

【0026】以上述べた本発明は、前記各実施例で説明
した車両のオドメータに限定されるものではなく、例え
ば機械等の使用時間を記録する積算時間計や継続して数
値を記録するためのデータ記憶装置等に適用することが
できる。
The present invention described above is not limited to the odometer of the vehicle described in each of the above-described embodiments, but may be, for example, an integrated time meter for recording the operating time of a machine or the like, or a continuous numerical value recording. It can be applied to a data storage device or the like.

【0027】また、前記各実施例では、データの一部で
ある下位1桁をアドレスに対応させることにより、デー
タの一部である上位4桁をEEPROM5のビットのロ
ウとハイとの決められた組み合せにより変換して記憶す
る(書き込む)構成としたが、データの全部を前記組み
合せにより変換して記憶しても構わない。
In each of the above embodiments, the lower 1 digit which is a part of the data is associated with the address, and the upper 4 digits which are a part of the data are determined to be low and high of the bits of the EEPROM 5. Although the configuration is such that the data is converted and stored (written) by the combination, all the data may be converted and stored by the combination.

【0028】また、前記各実施例では、データをEEP
ROM5へ記憶する(書き込む)際に図3の変換方法を
用いたが、EEPROM5のビットのロウとハイとの決
められた組み合せにより変換する方法は、前記各実施例
に限定されず、任意に定めることができることは言うま
でもない。
In each of the above embodiments, the data is EEP.
Although the conversion method of FIG. 3 was used when storing (writing) in the ROM 5, the conversion method by a predetermined combination of low and high bits of the EEPROM 5 is not limited to the above-mentioned respective embodiments, and is arbitrarily set. It goes without saying that you can do it.

【0029】また、前記各実施例では、データとしては
16進数に変換したものを用いていたが、10進数であって
も構わず、10進数のデータを所謂BCD(Binary Coded
Decimal)を用いることによりビットのロウとハイとの
決められた組み合せにより変換してEEPROM5へ記
憶する構成でも前記各実施例と同様に実施することがで
きる。
In each of the above embodiments, the data is
Although the data converted into hexadecimal number was used, the data in decimal number may be so-called BCD (Binary Coded).
Decimal) can be used in the same manner as in each of the above-described embodiments even in a configuration in which conversion is performed by a predetermined combination of bit low and high and the data is stored in the EEPROM 5.

【0030】[0030]

【発明の効果】本発明は、複数個のアドレスにて割り付
けられた複数のビットを有する不揮発性メモリに前記ア
ドレス単位でデータを記憶する電子式データ記憶装置に
おいて、偶数の前記アドレスと奇数の前記アドレスとで
前記データの記憶方法を異ならせるものであり、従来の
技術では判定できなかった事故を確実に認識して使用者
へ表示することができる効果を有するもので、事故に強
い、信頼性を高めた電子式データ記憶装置を提供するこ
とができる。
According to the present invention, in an electronic data storage device for storing data in the nonvolatile memory having a plurality of bits allocated by a plurality of addresses in units of the addresses, the even addresses and the odd addresses are stored. The method of storing the above data differs depending on the address, and it has the effect of reliably recognizing an accident that could not be determined by conventional technology and displaying it to the user. It is possible to provide an electronic data storage device having improved performance.

【0031】2×n+1(nは1以上の整数)個の記憶
エリアを有する不揮発性メモリのアドレスにて割り付け
られた複数のビットを有する前記各記憶エリアにデータ
を少なくとも3個の前記記憶エリアに同時に記憶する電
子式データ記憶装置において、前記アドレスにより前記
記憶エリアを偶数の記憶エリアと奇数の記憶エリアとに
分け、これらの記憶エリアに前記データを前記ビットの
電位のロウとハイとの予め決められた組み合わせにより
変換して記憶する際、一方は前記組み合わせで変換した
状態でデータを記憶し、他方は前記組み合わせで変換し
その反転の状態でデータを記憶するものであり、従来の
技術では判定できなかった事故を確実に認識して使用者
へ表示することができる効果を有するもので、事故に強
い、信頼性を高めた電子式データ記憶装置を提供するこ
とができる。
Data is stored in at least three of the storage areas having a plurality of bits allocated by addresses of a nonvolatile memory having 2 × n + 1 (n is an integer of 1 or more) storage areas. In an electronic data storage device that stores at the same time, the storage area is divided into an even storage area and an odd storage area by the address, and the data is previously determined in these storage areas as low and high of the potential of the bit. When the data is converted and stored by the specified combination, one stores the data in the state converted by the combination, and the other stores the data in the state converted by the combination and the inverted state thereof. It has the effect of reliably recognizing an accident that could not be performed and displaying it to the user. It is possible to provide an electronic data storage device.

【0032】また、本発明は、m(mは2以上の整数)
個のアドレスにて割り付けられた複数のビットを有する
不揮発性メモリに前記アドレス単位でデータを記憶する
電子式データ記憶装置において、偶数の前記アドレス及
び奇数の前記アドレスに前記データを前記ビットの電位
のロウとハイとの予め決められた組み合わせにより変換
して記憶する際、一方は前記組み合わせで変換した状態
で前記データを記憶し、他方は前記組み合わせで変換し
その反転の状態で前記データを記憶するものであり、従
来の技術では判定できなかった事故を確実に認識して使
用者へ表示することができる効果を有するもので、事故
に強い、信頼性を高めた電子式データ記憶装置を提供す
ることができる。
In the present invention, m (m is an integer of 2 or more)
In an electronic data storage device for storing data in the address unit in a non-volatile memory having a plurality of bits allocated by individual addresses, the data of the potential of the bits is stored in the even addresses and the odd addresses. When converting and storing by a predetermined combination of low and high, one stores the data in a state converted by the combination, and the other stores the data in a state converted by the combination and the inverted state thereof. The present invention has the effect of reliably recognizing and displaying to the user an accident that could not be determined by the conventional technology, and provides an electronic data storage device that is resistant to accidents and has improved reliability. be able to.

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

【図1】本発明の第1実施例の構成を説明するブロック
図。
FIG. 1 is a block diagram illustrating a configuration of a first embodiment of the present invention.

【図2】同上実施例におけるEEPROMの構成を説明
する割付図。
FIG. 2 is an allocation diagram illustrating a configuration of an EEPROM according to the embodiment.

【図3】同上実施例におけるデータの変換を説明する説
明図。
FIG. 3 is an explanatory diagram illustrating data conversion in the above embodiment.

【図4】同上実施例における具体的なEEPROMの記
憶状態を説明する割付図。
FIG. 4 is an allocation diagram for explaining a concrete storage state of the EEPROM in the embodiment.

【図5】本発明の第2実施例におけるEEPROMの構
成を説明する割付図。
FIG. 5 is an allocation diagram illustrating a configuration of an EEPROM according to a second embodiment of the present invention.

【図6】同上実施例における具体的なEEPROMの記
憶状態を説明する割付図。
FIG. 6 is an allocation diagram for explaining a concrete storage state of the EEPROM in the embodiment.

【図7】同上実施例における変化点アドレスを説明する
説明図。
FIG. 7 is an explanatory diagram illustrating a change point address in the above embodiment.

【図8】同上実施例における変化点アドレスを説明する
説明図。
FIG. 8 is an explanatory diagram illustrating a change point address in the above embodiment.

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

5 EEPROM(不揮発性メモリ) 5a,5b,5c,5d 記憶エリア 5 EEPROM (nonvolatile memory) 5a, 5b, 5c, 5d storage area

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数個のアドレスにて割り付けられた複
数のビットを有する不揮発性メモリに前記アドレス単位
でデータを記憶する電子式データ記憶装置において、偶
数の前記アドレスと奇数の前記アドレスとで前記データ
の記憶方法を異ならせることを特徴とする電子式データ
記憶装置。
1. An electronic data storage device for storing data in a unit of an address in a non-volatile memory having a plurality of bits allocated by a plurality of addresses, wherein an even number of the addresses and an odd number of the addresses are used. An electronic data storage device characterized by different data storage methods.
【請求項2】 2×n+1(nは1以上の整数)個の記
憶エリアを有する不揮発性メモリのアドレスにて割り付
けられた複数のビットを有する前記各記憶エリアにデー
タを少なくとも3個の前記記憶エリアに同時に記憶する
電子式データ記憶装置において、前記アドレスにより前
記記憶エリアを偶数の記憶エリアと奇数の記憶エリアと
に分け、これらの記憶エリアに前記データを前記ビット
の電位のロウとハイとの予め決められた組み合わせによ
り変換して記憶する際、一方は前記組み合わせで変換し
た状態でデータを記憶し、他方は前記組み合わせで変換
しその反転の状態でデータを記憶することを特徴とする
電子式データ記憶装置。
2. Storage of at least three data in each storage area having a plurality of bits allocated at an address of a non-volatile memory having 2 × n + 1 (n is an integer of 1 or more) storage areas. In an electronic data storage device for simultaneously storing in an area, the storage area is divided into an even storage area and an odd storage area by the address, and the data is stored in these storage areas as low and high potentials of the bit. When converting and storing by a predetermined combination, one stores data in a state converted by the combination, and the other stores data by converting in the combination and stores the data in an inverted state thereof. Data storage device.
【請求項3】 m(mは2以上の整数)個のアドレスに
て割り付けられた複数のビットを有する不揮発性メモリ
に前記アドレス単位でデータを記憶する電子式データ記
憶装置において、偶数の前記アドレス及び奇数の前記ア
ドレスに前記データを前記ビットの電位のロウとハイと
の予め決められた組み合わせにより変換して記憶する
際、一方は前記組み合わせで変換した状態で前記データ
を記憶し、他方は前記組み合わせで変換しその反転の状
態で前記データを記憶することを特徴とする電子式デー
タ記憶装置。
3. An even-numbered address in an electronic data storage device for storing data in said address unit in a nonvolatile memory having a plurality of bits allocated by m (m is an integer of 2 or more) addresses. And when storing the data in the odd-numbered address by converting the data by a predetermined combination of low and high of the potential of the bit, one stores the data in a state converted by the combination, and the other stores the data. An electronic data storage device, characterized in that the data is stored in a state of being converted by a combination and being inverted.
JP35018195A 1995-12-22 1995-12-22 Electronic data storage Expired - Fee Related JP3465254B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35018195A JP3465254B2 (en) 1995-12-22 1995-12-22 Electronic data storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35018195A JP3465254B2 (en) 1995-12-22 1995-12-22 Electronic data storage

Publications (2)

Publication Number Publication Date
JPH09179789A true JPH09179789A (en) 1997-07-11
JP3465254B2 JP3465254B2 (en) 2003-11-10

Family

ID=18408770

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35018195A Expired - Fee Related JP3465254B2 (en) 1995-12-22 1995-12-22 Electronic data storage

Country Status (1)

Country Link
JP (1) JP3465254B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010146053A (en) * 2008-12-16 2010-07-01 Konica Minolta Business Technologies Inc Count data recording device, and method and program for recording count data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010146053A (en) * 2008-12-16 2010-07-01 Konica Minolta Business Technologies Inc Count data recording device, and method and program for recording count data
JP4572981B2 (en) * 2008-12-16 2010-11-04 コニカミノルタビジネステクノロジーズ株式会社 COUNT DATA RECORDING DEVICE, COUNT DATA RECORDING METHOD, AND PROGRAM
US8176369B2 (en) 2008-12-16 2012-05-08 Konica Minolta Business Technologies, Inc. Count data recording device, and method and program for recording count data

Also Published As

Publication number Publication date
JP3465254B2 (en) 2003-11-10

Similar Documents

Publication Publication Date Title
US4860228A (en) Non-volatile memory incremental counting system
US4528683A (en) Circuit for storing a multi-digit decimal numerical value of the distance traversed by a vehicle
KR930004887B1 (en) Electronic odometer
JPH09179789A (en) Electronic data storage device
US4685116A (en) Incremental count display system
JP3339046B2 (en) Electronic data storage
JP3280216B2 (en) Electronic integrator
JP2848102B2 (en) Electronic odometer
JP2669484B2 (en) Electronic odometer
JP3003543B2 (en) Electronic odometer
JP3087269B2 (en) Electronic odometer
JP2619562B2 (en) Electronic odometer
JPH07239237A (en) Electronic trip distance recorder
JPH0565010B2 (en)
JP3116337B2 (en) Electronic odometer
JPH07218282A (en) Electronic odometer
JP3261745B2 (en) Electronic odometer
JPS5827444B2 (en) Kurumano Soukou Annaisouchi
JPS59159013A (en) Running distance meter for automobile
JP2861675B2 (en) Electronic odometer
JPH0445762B2 (en)
JPS6017315A (en) Travelling distance meter for car
JPS6330715A (en) Electronic odometer for vehicle
JPH05215567A (en) Electronic travel distance meter
JPH0236309A (en) Carry inspection device for electronic odometer

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20150829

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees