JP2006039969A - Method for retaining data in memory - Google Patents

Method for retaining data in memory Download PDF

Info

Publication number
JP2006039969A
JP2006039969A JP2004219255A JP2004219255A JP2006039969A JP 2006039969 A JP2006039969 A JP 2006039969A JP 2004219255 A JP2004219255 A JP 2004219255A JP 2004219255 A JP2004219255 A JP 2004219255A JP 2006039969 A JP2006039969 A JP 2006039969A
Authority
JP
Japan
Prior art keywords
value
written
memory
arbitrary
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.)
Granted
Application number
JP2004219255A
Other languages
Japanese (ja)
Other versions
JP4788117B2 (en
Inventor
Katsuto Oki
克仁 大木
Kazuyuki Kashiwabara
和幸 柏原
Hideaki Tamura
秀明 田村
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.)
Aisin Corp
Original Assignee
Aisin 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 Aisin Seiki Co Ltd filed Critical Aisin Seiki Co Ltd
Priority to JP2004219255A priority Critical patent/JP4788117B2/en
Publication of JP2006039969A publication Critical patent/JP2006039969A/en
Application granted granted Critical
Publication of JP4788117B2 publication Critical patent/JP4788117B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To lower required capacity of memory while securing reliability of memory. <P>SOLUTION: In writing data to memory, an arbitrary value is written in the most significant position, required information is written in mid-positions, and a value created on an arbitrary condition based on the arbitrary value is written in the least significant position. Further, the arbitrary condition is made the mirror value of the arbitrary value written in the most significant position. In addition, a plurality of pieces of information are made to be written repeatedly, and the arbitrary value is made to be obtained by counting up or counting down using a value which is larger than the number of repeating by 1 at most. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、マイクロコンピュータのメモリへデータを書き込む際のデータ保存方法に関する。   The present invention relates to a data storage method for writing data to a memory of a microcomputer.

マイクロコンピュータのRAMやEEPROM用の、任意に書き込みを行うメモリは、供給される電源電圧の変動、ノイズなどの影響によりデータが壊れる可能性がある。それに対応し、RAM、EEPROPM等に大切なデータを保存する場合、RAMに書き込む値に対し、ミラー値(逆数)をセットして書き込みを行う。RAM読み込みを行う場合、データ地と逆数の関係が合っているか同かを確認し、RAMが壊れていないことを確認しながら値を使用する方法が一般的に知られている。
特開2003−343342号公報([0023]参照) 特開2002−317687号公報([0054],[0055]参照)
In a memory for arbitrary writing for a RAM or EEPROM of a microcomputer, there is a possibility that data may be damaged due to fluctuations in the power supply voltage supplied, influence of noise, and the like. Correspondingly, when preserving important data in RAM, EEPROM, etc., writing is performed by setting a mirror value (reciprocal number) to the value to be written in RAM. When performing RAM reading, a method is generally known in which a value is used while confirming whether or not the relationship between the data location and the reciprocal number matches and confirming that the RAM is not broken.
JP 2003-343342 A (see [0023]) JP 2002-317687 A (see [0054], [0055])

書き込みたいデータ容量に対しミラー値を持つため、本来の2倍のメモリを必要とする。例えば、図6に示すように、16ビットのデータ「1234」を保存する場合、「1234」のミラー値「EDCB」を追加して書き込む。このとき、書き込むデータは「1234EDCB」となり、32ビットが必要となる。書き込むデータの総量が大きいと必要なメモリも増え、マイクロコンピュータ、メモリのコストアップにつながる。   Since it has a mirror value for the data capacity to be written, twice as much memory is required. For example, as shown in FIG. 6, when 16-bit data “1234” is stored, a mirror value “EDCB” of “1234” is additionally written. At this time, the data to be written is “1234EDCB”, and 32 bits are required. If the total amount of data to be written is large, more memory is required, leading to increased costs for the microcomputer and memory.

本発明は、メモリの信頼性を確保しながら、必要なメモリの容量を下げることを課題とする。   An object of the present invention is to reduce the necessary memory capacity while ensuring the reliability of the memory.

上記した課題を解決するために講じた技術的手段は、メモリへのデータを書き込むにあたって、最上位に任意の値を書き込み、中間位置に必要な情報を書き込み、最下位に、最上位に書き込んだ任意の値を基にして任意の条件で作成した値を書き込むようにした。これによれば、必要な情報に加え、最上位4ビット、最下位4ビットの8ビットの追加で済む。   The technical measures taken in order to solve the above-mentioned problems are as follows: when writing data to the memory, arbitrary values are written at the highest level, necessary information is written at the intermediate position, and the lowest level is written at the highest level. A value created under an arbitrary condition based on an arbitrary value was written. According to this, in addition to the necessary information, it is sufficient to add 8 bits of the most significant 4 bits and the least significant 4 bits.

更に、任意の条件は、最上位に書き込んだ任意の値のミラー値とするようにした。これによれば、簡単に最下位のデータを作成できる。   Furthermore, the arbitrary condition is set to an arbitrary mirror value written at the top. According to this, the lowest data can be easily created.

更に、繰り返し複数の情報を書き込むようにし、繰り返しの回数より1多い値までを使って任意の値をカウントアップ又はカウントダウンして得るようにした。これによれば、最上位もしくは最下位に書き込んだデータのつながりを見ることでどこが最新のデータかがわかるようになる。   Furthermore, a plurality of pieces of information are repeatedly written, and an arbitrary value is obtained by counting up or down using a value up to one more than the number of repetitions. According to this, it becomes possible to know where the latest data is by looking at the connection of the data written at the top or bottom.

本発明によれば、メモリの信頼性を確保しながら、必要なメモリの容量を下げることができる。   According to the present invention, it is possible to reduce the necessary memory capacity while ensuring the reliability of the memory.

本発明に従った実施の形態を図面に基づいて説明する。   Embodiments according to the present invention will be described with reference to the drawings.

図1においては、連続する6つの4ビットデータ=24ビットを書き込む場合の例である。マイクロコンピュータのメモリとしては、RAM又はEEPROMを想定している。ここでは、最上位の任意の値(ここでは「1」)を書き込む。次に、記憶したいデータ(ここでは「FFFFFF」)を書き込む。最後に、最下位に、最上位に書き込んだ任意の値のミラー値(ここでは「E」)を書き込む。この一連の書き込みによって、32ビットの情報が保持されるが、本来、必要なデータは24ビットである。書き込んで保持されらメモリ値の信頼性を確認するには、最上位の値(ここでは「1」)と最下位の値(ここでは「E」)がミラー値の関係になっているかどうかを確認すればよい。   FIG. 1 shows an example in which six consecutive 4-bit data = 24 bits are written. As a memory of the microcomputer, a RAM or an EEPROM is assumed. Here, the highest arbitrary value (here, “1”) is written. Next, data to be stored (here, “FFFFFF”) is written. Finally, an arbitrary mirror value (here, “E”) written at the top is written at the bottom. By this series of writing, 32-bit information is retained, but originally the necessary data is 24 bits. In order to confirm the reliability of the memory value written and held, it is determined whether the highest value (here “1”) and the lowest value (here “E”) have a mirror value relationship. Check it.

この方法によれば、図6の従来の技術と同じ32ビットのメモリによって、保管できる必要な情報が、従来技術では16ビットであったのに対し、24ビットまで格納できるようになる。   According to this method, necessary information that can be stored can be stored up to 24 bits by the same 32-bit memory as in the conventional technique of FIG.

次に、複数の情報を格納する実施態様を図2〜5に沿って説明する。   Next, an embodiment for storing a plurality of information will be described with reference to FIGS.

マイクロコンピュータのRAMとして、32ビット×6テーブル(=192ビット)の領域を用意する(図2参照)。最初の情報を書き込むとき、第1テーブルの最上位に値「1」を書き込み、次に、24ビットの情報を書き込み、最後に最下位に値「1」のミラー値である「E」を書き込む(図3参照)。次の情報を書き込むときは、第2テーブルの最上位に値「2」を書き込み、次に、24ビットの情報を書き込み、最後に最下位に値「2」のミラー値である「D」を書き込む。このように最上位の値を1づつカウントアップし次のテーブルにデータを書き込んでいく。最後の第6テーブルでは、最上位に値「6」を書き込み、次に、24ビットの情報を書き込み、最後に最下位に値「6」のミラー値である「9」を書き込むようになる(図4参照)。   An area of 32 bits × 6 tables (= 192 bits) is prepared as the RAM of the microcomputer (see FIG. 2). When the first information is written, the value “1” is written at the top of the first table, then the 24-bit information is written, and finally the mirror value “E” of the value “1” is written at the bottom. (See FIG. 3). When the next information is written, the value “2” is written at the top of the second table, then the 24-bit information is written, and finally the mirror value “D” of the value “2” is written at the bottom. Write. In this way, the highest value is counted up one by one and data is written to the next table. In the last sixth table, the value “6” is written at the top, then the 24-bit information is written, and finally the mirror value “9” of the value “6” is written at the bottom ( (See FIG. 4).

最後のテーブルを書き込んだ後は、最初に第1テーブルに戻り、新たな情報を上書きする。ここで、最上位に書き込む値の最大値はテーブル数より1多い値に設定する。したがって、ここでは6テーブルあるので、最大値は7となる。最大値の次は1に戻し、続けてカウントアップする。   After writing the last table, the process returns to the first table first, and new information is overwritten. Here, the maximum value to be written at the top is set to a value one more than the number of tables. Therefore, since there are 6 tables here, the maximum value is 7. Next to the maximum value, the value is returned to 1 and then counted up.

この条件に従うと、7回目の書き込みは第1テーブルとなり、最上位に値「7」を書き込み、次に、24ビットの情報を書き込み、最後に最下位に値「2」のミラー値である「8」を書き込む。8回目の書き込みは第2テーブルとなり、最上位に値「1」を書き込み、次に、24ビットの情報を書き込み、最後に最下位に値「1」のミラー値である「E」を書き込む(図5参照)。以後、この条件で続けてデータを格納していく。   According to this condition, the seventh write is the first table, the value “7” is written at the top, then the 24-bit information is written, and finally the mirror value of the value “2” is written at the bottom. 8 ”is written. The eighth write is the second table, the value “1” is written at the top, then the 24-bit information is written, and finally the mirror value “E” of the value “1” is written at the bottom ( (See FIG. 5). Thereafter, data is continuously stored under this condition.

図5のように、8回目の書き込みを行った段階で、最上位の値は第1テーブルから順に「7」→「1」→「3」→「4」→「5」→「6」となっている。最上位の値が、1〜7までカウントアップされると言う条件の下で、第2テーブルと第3テーブルの間のみ規則性がないため、第2テーブルに格納されたデータが最新のデータであることがすぐにわかる。   As shown in FIG. 5, at the stage of writing for the eighth time, the highest value is “7” → “1” → “3” → “4” → “5” → “6” in order from the first table. It has become. Since there is no regularity only between the second table and the third table under the condition that the highest value is counted up from 1 to 7, the data stored in the second table is the latest data. You can see that there is.

上記実施態様において、記憶したいデータの長さは適宜変更してもかまわない。   In the above embodiment, the length of data to be stored may be changed as appropriate.

上記実施態様においては、16進数のデータ(0〜F)を使用し、最上位の値のミラー値を最下位に書き込んだが、他の計数法を使用してもかまわない。   In the above embodiment, hexadecimal data (0 to F) is used and the mirror value of the highest value is written at the lowest value, but other counting methods may be used.

また、最下位に書き込む値は、ミラー値以外に、特定の数だけインクリメントした数にするなど、他の方法をとってもよい。   In addition to the mirror value, the value to be written at the bottom may be a number incremented by a specific number.

上記実施態様において、複数の情報を格納する場合に、最上位の値を1づつカウントアップするようにしたが、逆に1づつカウントダウンするように変更してもよい。この場合、最上位の値は順に「7」→「6」→「5」→「4」→「3」→「2」→「1」→「7」のように切り替えていく。また、一番最初に書き込む値は「1」や「7」ではなく任意の値としてもよい。   In the above embodiment, when a plurality of pieces of information are stored, the highest value is counted up one by one. However, it may be changed to count down one by one. In this case, the highest value is switched in the order of “7” → “6” → “5” → “4” → “3” → “2” → “1” → “7”. Also, the value to be written first may be an arbitrary value instead of “1” or “7”.

本発明の実施態様のメモリ構成を示す構成図である。It is a block diagram which shows the memory structure of the embodiment of this invention. 本発明の別の実施態様のメモリ構成を示す構成図である。It is a block diagram which shows the memory structure of another embodiment of this invention. 図2において、1回目の書き込みを行った後のメモリ構成を示す構成図である。In FIG. 2, it is a block diagram which shows the memory structure after performing the 1st write. 図2において、6回目の書き込みを行った後のメモリ構成を示す構成図である。In FIG. 2, it is a block diagram which shows the memory structure after performing the 6th write. 図2において、8回目の書き込みを行った後のメモリ構成を示す構成図である。In FIG. 2, it is a block diagram which shows the memory structure after performing the 8th write. 従来技術におけるメモリ構成を示す構成図である。It is a block diagram which shows the memory structure in a prior art.

符号の説明Explanation of symbols

1 第1テーブル
2 第2テーブル
3 第3テーブル
4 第4テーブル
5 第5テーブル
6 第6テーブル
1 1st table 2 2nd table 3 3rd table 4 4th table 5 5th table 6 6th table

Claims (3)

最上位に任意の値を書き込み、
中間位置に必要な情報を書き込み、
最下位に、最上位に書き込んだ任意の値を基にして任意の条件で作成した値を書き込むことを特徴とするメモリへのデータの保持方法。
Write any value at the top,
Write the necessary information in the middle position,
A method of retaining data in a memory, wherein a value created under an arbitrary condition based on an arbitrary value written at the highest level is written at the lowest level.
請求項1において、任意の条件は、最上位に書き込んだ任意の値のミラー値とすることを特徴とする、メモリへのデータの保持方法。 2. The method for retaining data in a memory according to claim 1, wherein the arbitrary condition is an arbitrary mirror value written at the highest level. 請求項1において、繰り返し複数の情報を書き込むようにし、繰り返しの回数より1多い値までを使って任意の値をカウントアップ又はカウントダウンして得ることを特徴とする、メモリへのデータの保持方法。 2. The method for retaining data in a memory according to claim 1, wherein a plurality of information is repeatedly written, and an arbitrary value is counted up or down using a value up to one more than the number of repetitions.
JP2004219255A 2004-07-27 2004-07-27 Data retention method in memory Expired - Fee Related JP4788117B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004219255A JP4788117B2 (en) 2004-07-27 2004-07-27 Data retention method in memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004219255A JP4788117B2 (en) 2004-07-27 2004-07-27 Data retention method in memory

Publications (2)

Publication Number Publication Date
JP2006039969A true JP2006039969A (en) 2006-02-09
JP4788117B2 JP4788117B2 (en) 2011-10-05

Family

ID=35904899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004219255A Expired - Fee Related JP4788117B2 (en) 2004-07-27 2004-07-27 Data retention method in memory

Country Status (1)

Country Link
JP (1) JP4788117B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62182954A (en) * 1986-01-30 1987-08-11 ディジタル イクイップメント コーポレーション Data processing apparatus and method containing memory with coincidence circuit
JPH0635776A (en) * 1992-07-16 1994-02-10 Dainippon Printing Co Ltd Data writing and reading method and data recording and reproducing device for them

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62182954A (en) * 1986-01-30 1987-08-11 ディジタル イクイップメント コーポレーション Data processing apparatus and method containing memory with coincidence circuit
JPH0635776A (en) * 1992-07-16 1994-02-10 Dainippon Printing Co Ltd Data writing and reading method and data recording and reproducing device for them

Also Published As

Publication number Publication date
JP4788117B2 (en) 2011-10-05

Similar Documents

Publication Publication Date Title
JP5328020B2 (en) Memory device and memory access method
CN100543876C (en) The method of access memory
EP2051260A1 (en) Method for writing data in a non volatile memory unit
WO2006048874A3 (en) Method of managing a multi-bit-cell flash memory
WO2004095461A3 (en) Redundant memory structure using bad bit pointers
RU2003136830A (en) INTERMEDIATOR AND METHOD OF MOVING IN THE COMMUNICATION SYSTEM
WO1998041933A8 (en) Method for implementing an associative memory based on a digital trie structure
JP4859402B2 (en) Test apparatus and manufacturing method
EP1679598A3 (en) Memory addressing error protection systems and methods
EP2317780A3 (en) A hearing aid with error protected data storage
US11625196B2 (en) Semiconductor memory device and operating method thereof
KR100816154B1 (en) Method of scheduling for address of flash memory device
EP0890955A3 (en) Storage apparatus, data write-in method, and data read-out method
JP4788117B2 (en) Data retention method in memory
JP2009146062A5 (en)
CN1987824A (en) Memory control circuit and memory control method
CN101853212A (en) Data write-in method, data read method and data storage
WO2005043589A3 (en) Method and system for enhancing the endurance of memory cells
US20100131698A1 (en) Memory sharing method for flash driver
GB2300500B (en) Data check method and system
US20030031050A1 (en) Multilevel cell memory architecture
US20090240905A1 (en) Real-time backup method for single storage medium
JP2007257628A (en) Method for error correction and error detection for reading out stored information data and storage control unit therefor
TWI446348B (en) Apparatus for accessing flash memory and method therefor
DE602007008546D1 (en) SAFETY STORAGE ELECTRONIC KEY INSIDE VOLATILE STORAGE

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101026

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101224

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110621

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110704

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

Free format text: PAYMENT UNTIL: 20140729

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4788117

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees