JPH0375959B2 - - Google Patents

Info

Publication number
JPH0375959B2
JPH0375959B2 JP27679484A JP27679484A JPH0375959B2 JP H0375959 B2 JPH0375959 B2 JP H0375959B2 JP 27679484 A JP27679484 A JP 27679484A JP 27679484 A JP27679484 A JP 27679484A JP H0375959 B2 JPH0375959 B2 JP H0375959B2
Authority
JP
Japan
Prior art keywords
data
address
stored
contents
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.)
Expired - Lifetime
Application number
JP27679484A
Other languages
Japanese (ja)
Other versions
JPS61158090A (en
Inventor
Shoichi Koibuchi
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.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP59276794A priority Critical patent/JPS61158090A/en
Publication of JPS61158090A publication Critical patent/JPS61158090A/en
Publication of JPH0375959B2 publication Critical patent/JPH0375959B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、EEPROM(Electrically Erasable
and Programmable Read Only Memory)等
の、内容更新が可能であり、かつ、電源が切断さ
れても内容を保持すると共に、内容更新の回数が
制限されているメモリに対し、内容の格納を行な
う方法に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is directed to EEPROM (Electrically Erasable
and Programmable Read Only Memory), which can be updated, retain the contents even when the power is turned off, and limit the number of times the contents can be updated. It is something.

〔従来の技術〕[Conventional technology]

一般に、制御装置、データ処理装置において
は、半固定的なデータ、または、動作上逐次発生
する可変データ中後に参照するものはRAM
(Random Access Memory.)へ格納のうえ、電
源の切断によつても内容が消滅しないものとする
目的上、RAMを電池等のバツクアツプ電源によ
り動作状態を維持するものとしているが、電池の
交換またはバツクアツプ電源への切替回路等を要
するため、近来は、EEPROMを用いるものとな
つている。
In general, in control devices and data processing devices, semi-fixed data or variable data that is generated sequentially during operation is stored in RAM.
(Random Access Memory.) In order to ensure that the contents do not disappear even if the power is cut off, the RAM is maintained in an operating state by a backup power source such as a battery, but if the battery is replaced or Since it requires a switching circuit to a backup power source, EEPROM has recently been used.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、現在のEEPROMは、内容更新の回数
に制限があり、一般のRAMと同じくランダムに
任意な番地へデータを格納し、かつ、これと同一
番地の内容を更新しつつデータを格納すると、短
期間に内容の更新が不可能となる問題を生ずる。
However, current EEPROMs have a limit on the number of times their contents can be updated, and if you store data at a random address like general RAM and update the contents at the same address, it will take a short period of time. This creates a problem in which it is impossible to update the contents in between.

〔問題点を解決するための手段〕[Means for solving problems]

前述の問題を解決するため、本発明はつぎの手
段により構成するものとなつている。
In order to solve the above-mentioned problem, the present invention is constructed by the following means.

すなわち、EEPROM等のメモリに対し内容の
格納を行なう方法において、最初のデータ格納に
際し、メモリの登録エリア中先頭番地へデータを
格納すると共に、次位の番地へエンドマークを格
納し、かつ、登録エリア以外の番地へデータが有
効であることを示す有効マークを格納し、つぎの
データ格納時には、エンドマークの格納された番
地へデータを格納すると共に、これの次位の番地
へエンドマークを格納し、以降同様の格納操作を
登録エリアの最終番地まで必要に応じて反復する
ものとしている。
In other words, in a method of storing contents in a memory such as an EEPROM, when storing data for the first time, the data is stored at the first address in the registration area of the memory, and an end mark is stored at the next address. Stores a valid mark indicating that the data is valid at an address other than the area, and when storing the next data, stores the data at the address where the end mark was stored, and stores the end mark at the next address. Thereafter, similar storage operations are repeated as necessary up to the final address of the registration area.

〔作用〕[Effect]

したがつて、まず、登録エリアの先頭番地へデ
ータが格納され、ついで、エンドマークの格納さ
れた番地へ内容を更新のうえ、つぎのデータが格
納され、以降順次に、登録エリアの最終番地ま
で、必要に応じてデータが格納されるため、各番
地の内容更新回数が均等となる。
Therefore, data is first stored at the first address of the registration area, then the contents are updated to the address where the end mark is stored, and the next data is stored, and then sequentially until the last address of the registration area. , Since data is stored as needed, the number of contents updated at each address is equal.

〔実施例〕〔Example〕

以下、実施例を示す図によつて本発明の詳細を
説明する。
Hereinafter, details of the present invention will be explained with reference to figures showing examples.

第2図は、EEPROMを用いる装置のブロツク
図であり、マイクロプロセツサ等のプロセツサ
(以下、CPU)1を中心とし、固定メモリ(以
下、ROM)2、可変メモリ(以下、RAM)3、
EEPROM4〜6、および、インターフエイス
(以下、I/F)7,8を周辺に配し、これらを
母線により接続しており、I/F・7を介しては
図上省略した上位の主電算機またはキーボード、
ブラウン管表示装置等からなる端末機器が接続さ
れ、I/F・8を介してはプリンタ(以下、
PRT)9が接続されている。
FIG. 2 is a block diagram of a device using EEPROM, which includes a processor such as a microprocessor (hereinafter referred to as CPU) 1, fixed memory (hereinafter referred to as ROM) 2, variable memory (hereinafter referred to as RAM) 3,
EEPROMs 4 to 6 and interfaces (hereinafter referred to as I/Fs) 7 and 8 are arranged around the periphery, and these are connected by a bus bar. machine or keyboard,
A terminal device such as a cathode ray tube display device is connected, and a printer (hereinafter referred to as
PRT) 9 is connected.

こゝにおいて、CPU1はROM2中の命令を実
行し、I/F・7を介する入力データに応じて制
御動作を行ない、必要とするデータをRAM3に
対してアクセスすると共に、EEPROM4〜6に
もアクセスし、EEPROM4〜6中へ格納されて
いる文字、記号等のパターンを用いてプリントア
ウトのデータを編集のうえ、I/F・8を介して
PRT9へ送出し、これによつて所定のデータを
印字させるものとなつている。
Here, CPU 1 executes instructions in ROM 2, performs control operations according to input data via I/F 7, accesses necessary data to RAM 3, and also accesses EEPROMs 4 to 6. Then, edit the printout data using the patterns of characters, symbols, etc. stored in EEPROM 4 to 6, and then send it via I/F 8.
The data is sent to the PRT9, thereby causing predetermined data to be printed.

なお、文字、記号等のパターンは、I/F・7
を介して必要とするものが与えられ、これを
EEPROM4〜6へ格納のうえ使用される。
Please note that the patterns of characters, symbols, etc.
You will be given what you need via
It is used after being stored in EEPROM 4 to 6.

第1図は、EEPROM4〜6に対するデータの
格納状況を示す図であり、この例ではこれらがコ
ードエリアCEとデータエリアDEとに分割されデ
ータエリアDEには文字、記号等のパターンを示
すデータDT0〜DToが順次に格納され、コードエ
リアCEにおける登録エリアREの先頭番地# 0乃
至最終番地# n+1にわたつては、データDT0
DToに対応するデータコードDC0〜DCo、およ
び、エンドマークENが格納されると共に、コー
ドエリアCE中の登録エリアRE以外の番地# rに
は、データコードCD0〜CDoが有効であることを
示す有効マークAMが格納されるものとなつてい
る。
FIG. 1 is a diagram showing the storage status of data in EEPROMs 4 to 6. In this example, these are divided into a code area CE and a data area DE, and the data area DE has data DT indicating patterns of characters, symbols, etc. 0 to DT o are stored sequentially, and data DT 0 to DT o are stored sequentially from the first address #0 to the last address #n+1 of the registration area RE in the code area CE.
Data codes DC 0 to DC o and end mark EN corresponding to DT o are stored, and data codes CD 0 to CD o are valid at address #r other than the registered area RE in code area CE. A valid mark AM indicating that there is a valid mark is stored.

すなわち、最初のデータ格納に際しては、(A)の
とおり、先頭番地# 0へデータコードDC0を格納
すると共に、次位の番地# 1へエンドマークEM
を格納し、かつ、番地# rへ有効マークAMを格
納する一方、データコードDC0と対応するデータ
DT0をデータエリアDEの先頭番地を基準として
複数番地にわたり連続して格納する。
That is, when storing the first data, as shown in (A), the data code DC 0 is stored in the first address #0, and the end mark EM is stored in the next address #1.
and stores valid mark AM at address #r, while storing data corresponding to data code DC 0 .
DT 0 is stored continuously over multiple addresses starting from the first address of data area DE.

なお、*印が新らたに格納されたことを示して
いる。
Note that the * mark indicates that the data has been newly stored.

ついで(B)のとおり、つぎのデータを格納すると
きは、登録エリアREのエンドマークEMが格納
されている番地# 1へ内容を更新のうえデータコ
ードDC1を格納すると共に、これの次位の番地#
2へエンドマークEMを格納し、データエリア
DEにはデータDT0につぐ各番地へデータDT1
格納し、以降、必要に応じて同様の格納操作を反
復する。
Next, as shown in (B), when storing the next data, update the contents to address #1 where end mark EM of registered area RE is stored, store data code DC 1 , and store the next data. Address #
Store the end mark EM to 2 and save it to the data area.
In the DE, data DT 1 is stored at each address following data DT 0 , and thereafter, similar storage operations are repeated as necessary.

すると、最後には(C)のとおり、最終番地# n+
1の直前の番地# nへデータコードDCoが格納さ
れると共に、最終番地# n+1にはエンドマーク
EMが格納され、データエリアDEにおいては最
終番地側へデータDToが格納される。
Then, as shown in (C), the final address #n+
Data code DC o is stored at address #n immediately before 1, and an end mark is stored at the last address #n+1.
EM is stored, and data DT o is stored at the final address in the data area DE.

なお、データコードDC0〜DCoとしては2バイ
トが用いられ、エンドマークEMおよび有効マー
クAMとしては、データコードDC0〜DCoとは別
個のコードを用いるものとなつており、データ
DT0〜DToは各々が72バイトにより構成されるも
のとなつているため、これらのバイト数に応じて
各エリアCE、DEおよびスペースの番地数および
格納容量が定められる。
Note that 2 bytes are used for the data codes DC 0 to DC o , and separate codes from the data codes DC 0 to DC o are used for the end mark EM and valid mark AM.
Since each of DT 0 to DT o is composed of 72 bytes, the number of addresses and storage capacity of each area CE, DE and space are determined according to the number of bytes.

したがつて、コードエリアCEにおいては、番
地# 0および# n+1が各1回、番地# 1〜# n
では各2回の格納がなされると共に、データエリ
アDEにおいては各番地に対し各々1回の格納が
行なわれるものとなり、格納回数の平均化が実現
する。
Therefore, in code area CE, addresses #0 and #n+1 are used once each, and addresses #1 to #n
In this case, each address is stored twice, and in the data area DE, each address is stored once, so that the number of times of storage can be averaged.

また、内容の読み出しに際しては、まずコード
エリアCEの有効マークAMをチエツクし、これ
が正常であれば、番地# 0乃至エンドマークEM
が正常に格納されている番地の直前の番地までの
データコードが有効であり、データコードに応じ
てデータエリアDEのデータを読み出して用いる
ものとすればよい。
Also, when reading the contents, first check the valid mark AM in the code area CE, and if this is normal, read from address #0 to end mark EM.
The data code up to the address immediately before the address where is normally stored is valid, and the data in the data area DE may be read and used according to the data code.

このため、同様の手順により、電源切断後の再
投入時に内容のチエツクを行ない、内容が有効か
否かを判断することができる。
Therefore, by using the same procedure, the contents can be checked when the power is turned off and turned on again, and it can be determined whether the contents are valid or not.

以上に対し、内容をクリアして再度格納を行な
う際は、クリアと共に有効コードAMの各ビツト
を反転してとするか、各ビツトのクリアを行
なうことにより、内容がすべてクリアされている
ことを表示できる。
In contrast to the above, when clearing the contents and storing them again, either invert each bit of the valid code AM at the same time as clearing, or clear each bit to make sure that all the contents have been cleared. Can be displayed.

第3図は、CPU1による格納操作のフローチ
ヤートであり、コードエリアCEの番地“# rに
AMあり?”101をチエツクし、これがNOで
あれば“DC0→# 0”111により番地# 0へデ
ータコードDC0を格納し、“DT0→DE”112に
よりデータDT0をデータエリアDEへ格納のうえ、
“EM→# 1”113によつてエンドマークEMを
番地# 1へ格納し、かつ、有効マーク“AM→#
r”114により番地rへ格納する。
Figure 3 is a flowchart of the storage operation by CPU1.
Is there AM? ”101, and if it is NO, store the data code DC 0 to address #0 with “DC 0 → # 0” 111, and store data DT 0 in the data area DE with “DT 0 → DE” 112. up,
“EM→#1” 113 stores the end mark EM at address #1, and the valid mark “AM→#1”
r''114, it is stored at address r.

また、ステツプ101がNOのときは、“DCi→
EMの格納済番地”121によりi番目のデータ
コードDCiをエンドマークEMの格納されている
番地へ格納し、i番目のデータDTiを“DTi→
DE”122により格納してから、エンドマーク
“EM→EMの格納済番地+1”123によりステ
ツプ121の次位の番地へエンドマークEMを格
納する。
Also, if step 101 is NO, “DCi→
The i-th data code DCi is stored at the address where the end mark EM is stored using the stored address of EM"121, and the i-th data DTi is stored as "DTi→
DE" 122, and then the end mark EM is stored at the next address in step 121 using the end mark "EM→EM stored address + 1" 123.

第4図は、同様の読み出し操作を示すフローチ
ヤートであり、番地“# rにAMあり?”201
がYESであれば、番地“# 0からEMの直前の番
地までの内容有効”211と決定し、データエリ
ア“DEの対応するデータ読み出し”212を行
なう。
FIG. 4 is a flowchart showing a similar read operation.
If YES, it is determined that the contents from the address "#0 to the address immediately before EM are valid" 211, and a data area "reading of corresponding data from DE" 212 is performed.

これに対し、ステツプ201がNOのときは、
“内容無効”221と決定する。
On the other hand, when step 201 is NO,
“Content invalid” 221 is determined.

たゞし、第1図においては、データDT0〜DTo
のバイト数が多いため、コードエリアCEと別途
にデータエリアDEを設けたが、データDT0
DToのバイト数が少なければ、コードエリアCE
のみとし、データコードDC0〜DCoとしてデータ
DT0〜DToを格納してもよく、第1図の構成とす
る場合は、データコードDC0〜DCoへデータDT0
〜DToの格納番地コードを付加し、あるいは、
CPU1がデータコードDC0〜DCoに応じてデータ
DT0〜DToの格納番地を判断し、コードエリア
DEにおいて格納番地を順次に定めるものとして
もよく、第2図の構成も条件に応じた選定が任意
である等、種々の変形が自在である。
However, in Fig. 1, the data DT 0 to DT o
Since the number of bytes is large, a data area DE was provided separately from the code area CE, but data DT 0 to
If the number of bytes in DT o is small, the code area CE
and data code as DC 0 ~ DC o
DT 0 to DT o may be stored, and in the case of the configuration shown in Figure 1, data DT 0 is stored in the data code DC 0 to DC o.
~ Add the storage address code of DT o , or
CPU1 outputs data according to data code DC 0 ~ DC o.
Determine the storage address of DT 0 to DT o and set the code area
The storage addresses may be sequentially determined in the DE, and the configuration shown in FIG. 2 can be arbitrarily selected depending on the conditions, and various other modifications are possible.

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

以上の説明により明らかなとおり本発明によれ
ば、EEPROM等の内容更新回数が制限されたメ
モリにおいて、各番地毎に均等な回数により内容
更新が行なわれ、特定番地へ内容更新の回数が集
中せず、メモリの全般的な寿命が延長されるもの
となり、かゝるメモリの内容格納方法として顕著
な効果が得られる。
As is clear from the above explanation, according to the present invention, in a memory such as an EEPROM where the number of times of content update is limited, the content is updated an equal number of times for each address, and the number of content updates is not concentrated at a specific address. First, the overall lifespan of the memory is extended, and a remarkable effect can be obtained as a method of storing the contents of such a memory.

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

図は本発明の実施例を示し、第1図は
EEPROMに対するデータの格納状況を示す図、
第2図はEEPROMを用いる装置のブロツク図、
第3図はCPUによる格納状況のフローチヤート、
第4図は同様の読み出し状況を示すフローチヤー
トである。 1……CPU(プロセツサ)、4〜6……
EEPROM(メモリ)、CE……コードエリア、DE
……データエリア、RE……登録エリア、DC0
DCo……データコード、EM……エンドマーク、
AM……有効マーク、DT0〜DTo……データ。
The figures show an embodiment of the invention, FIG.
Diagram showing how data is stored in EEPROM,
Figure 2 is a block diagram of a device using EEPROM.
Figure 3 is a flowchart of the storage status by the CPU.
FIG. 4 is a flowchart showing a similar read situation. 1...CPU (processor), 4 to 6...
EEPROM (memory), CE……Code area, DE
...Data area, RE...Registration area, DC 0 ~
DC o ...Data code, EM...End mark,
AM...Valid mark, DT 0 to DT o ...Data.

Claims (1)

【特許請求の範囲】[Claims] 1 内容の更新が可能であり、かつ、電源が切断
されても内容を保持すると共に、内容更新の回数
が制御されているメモリに対し、内容の格納を行
なう方法において、最初のデータ格納に際し前記
メモリの登録エリア中先頭番地へデータを格納す
ると共に次位の番地へエンドマークを格納しかつ
前記登録エリア以外の番地へ前記データが有効で
あることを示す有効マークを格納し、つぎのデー
タ格納時には前記エンドマークの格納された番地
へデータを格納すると共にこれの次位の番地へ前
記エンドマークを格納し、以降同様の格納操作を
前記登録エリアの最終番地まで必要に応じて反復
することを特徴としたメモリの内容格納方法。
1. In a method of storing contents in a memory whose contents can be updated, retains the contents even when the power is turned off, and controls the number of times the contents are updated, Stores data at the first address in the registration area of the memory, stores an end mark at the next address, stores a valid mark indicating that the data is valid at an address other than the registration area, and stores the next data. Sometimes, data is stored at the address where the end mark is stored, and the end mark is stored at the next address, and the same storage operation is repeated as necessary until the final address of the registration area. Featured memory content storage method.
JP59276794A 1984-12-28 1984-12-28 Method for storing content of memory Granted JPS61158090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59276794A JPS61158090A (en) 1984-12-28 1984-12-28 Method for storing content of memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59276794A JPS61158090A (en) 1984-12-28 1984-12-28 Method for storing content of memory

Publications (2)

Publication Number Publication Date
JPS61158090A JPS61158090A (en) 1986-07-17
JPH0375959B2 true JPH0375959B2 (en) 1991-12-03

Family

ID=17574465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59276794A Granted JPS61158090A (en) 1984-12-28 1984-12-28 Method for storing content of memory

Country Status (1)

Country Link
JP (1) JPS61158090A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2661131B2 (en) * 1988-04-28 1997-10-08 ソニー株式会社 Information storage and reading method and apparatus
JP3390482B2 (en) * 1992-06-12 2003-03-24 株式会社リコー Facsimile machine

Also Published As

Publication number Publication date
JPS61158090A (en) 1986-07-17

Similar Documents

Publication Publication Date Title
US20020049871A1 (en) Method and system for virtual memory compression in an embedded system
US4095268A (en) System for stopping and restarting the operation of a data processor
JPH0375959B2 (en)
JPH0311040B2 (en)
JPS62111776A (en) Control method for printer
JPS6234260A (en) Access system for nonvolatile memory
JPH0447349A (en) Data storage device
JPS55162130A (en) Program control system of terminal equipment
JP3190861B2 (en) Pseudo N-key rollover keyboard input device and processing method
JPS61150195A (en) Memory content storing method
JP2001060167A (en) Storage medium access controller using flash memory
US10817288B2 (en) Combined instruction for addition and checking of terminals
JPS6148174B2 (en)
JP2648185B2 (en) External character registration device
JPS61105935A (en) Signal control panel control system
JPH04302316A (en) Memory managing device
KR830000696B1 (en) Data processing systems
JP2959299B2 (en) Status display circuit
JPH0391046A (en) Data processor
JPS6346558A (en) Protecting system for multi-byte data in stand-by ram
JPH1055272A (en) Semiconductor device
JPH052669A (en) Digital counter storage system
JPH0227599A (en) Nonvolatile memory control system
JPH0348954A (en) Key storage control system
JPS61270182A (en) Printer