JP2713583B2 - Electronics - Google Patents

Electronics

Info

Publication number
JP2713583B2
JP2713583B2 JP20579788A JP20579788A JP2713583B2 JP 2713583 B2 JP2713583 B2 JP 2713583B2 JP 20579788 A JP20579788 A JP 20579788A JP 20579788 A JP20579788 A JP 20579788A JP 2713583 B2 JP2713583 B2 JP 2713583B2
Authority
JP
Japan
Prior art keywords
data
memory element
writing
memory
version number
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
JP20579788A
Other languages
Japanese (ja)
Other versions
JPH0254499A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP20579788A priority Critical patent/JP2713583B2/en
Publication of JPH0254499A publication Critical patent/JPH0254499A/en
Application granted granted Critical
Publication of JP2713583B2 publication Critical patent/JP2713583B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、交換可能となる電気消去可能なメモリ素子
と、初期データから更新されていくデータを格納する基
準メモリとを備える電子機器に関し、特に、そのメモリ
素子に対して、更新されていく基準メモリのデータを自
動的に書き込めるようにするとともに、そのメモリ素子
の交換を自動的に指示できるようにする電子機器に関す
る。
The present invention relates to an electronic device including a replaceable electrically erasable memory element and a reference memory for storing data that is updated from initial data. In particular, the present invention relates to an electronic device that can automatically write data in a reference memory that is updated in the memory element and can automatically instruct replacement of the memory element.

例えばプリンタを備える証書発行機のように、メカニ
カルな機構を制御する機能を具備する電子機器にあって
は、機構部分のバラツキや経年変化等の影響を考慮し
て、機構部分の制御のための制御情報を後からでも変更
できるようにするために、EEPROMのような電気的に消去
可能なメモリ素子に格納していくことになる。このよう
なメモリ素子へのデータの書込処理は、オペレータへの
負担が軽くなるように構成していく必要があるととも
に、正確に実行されるように構成していく必要がある。
For example, in an electronic device having a function of controlling a mechanical mechanism, such as a certificate issuing machine equipped with a printer, a mechanism for controlling the mechanical part is considered in consideration of the influence of variation and aging of the mechanical part. In order to be able to change the control information later, the control information is stored in an electrically erasable memory element such as an EEPROM. The process of writing data to such a memory element needs to be configured so as to reduce the burden on the operator, and it is necessary to configure it so that it is executed accurately.

〔従来の技術〕[Conventional technology]

従来、EEPROMへの初期データの書込処理や、初期デー
タから更新されていくことになる更新データの更新処理
は、RAS機能として設けられているEEPROMへのデータ書
込機能に従い、オペレータがキーボードを介して、EEPR
OMのアドレスと書込データとを入力していくことで実現
されていた。すなわち、第5図の処理手順に示すよう
に、オペレータは、最初にRAS機能を起動し、続いて、
書き込み先のEEPROMのアドレスをキーボードよりセット
し、次に、EEPROMに書き込む書込データをキーボードよ
りセットし、最後に、キーボードより書込処理依頼を行
うことで書込処理を実行し、そして、この処理手順を書
込データがなくなるまで繰り返すことで、EEPROMへの書
込データの書込処理を実現していたのである。
Conventionally, the process of writing initial data to the EEPROM and the process of updating updated data, which is to be updated from the initial data, are performed according to the data writing function to the EEPROM provided as a RAS function. Through the EEPR
This was realized by inputting the address of the OM and the write data. That is, as shown in the processing procedure of FIG. 5, the operator first activates the RAS function, and then,
The write destination EEPROM address is set from the keyboard, then the write data to be written to the EEPROM is set from the keyboard, and finally, a write process request is made from the keyboard to execute the write process. By repeating the processing procedure until there is no more write data, the process of writing the write data to the EEPROM was realized.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら、このような従来技術では、キーボード
からの操作により初期データや更新データの入力を実行
していくことから、書込データ量の増加に伴って入力に
要する時間が多くなり、オペレータの作業負荷が大きく
増大するという問題点があった。しかも、キーボードか
らの操作により書込データの入力を実行していくことか
ら、入力ミスをなくすことができなかったのである。
However, in such a conventional technique, since input of initial data and update data is performed by operation from a keyboard, the time required for input increases with an increase in the amount of write data, and the workload of the operator increases. Is greatly increased. In addition, since the input of the write data is performed by the operation from the keyboard, the input error cannot be eliminated.

更に、EEPROMには書込回数に制限がある。しかるに、
EEPROMを実装する従来の電子機器では、書込回数が制限
値に到達したEEPROMの交換を指示する機構を有していな
いという問題点もあった。
Further, the EEPROM has a limit on the number of times of writing. However,
A conventional electronic device equipped with an EEPROM has a problem in that it does not have a mechanism for instructing replacement of the EEPROM whose writing count has reached a limit value.

本発明はかかる事情に鑑みてなされたものであって、
交換可能となる電気消去可能なメモリ素子と、初期デー
タから更新されていくデータを格納する基準メモリとを
備えるときにあって、そのメモリ素子に対して、更新さ
れていく基準メモリのデータを自動的に書き込めるよう
にするとともに、そのメモリ素子の交換を自動的に指示
できるようにする新たな電子機器の提供を目的とする。
The present invention has been made in view of such circumstances,
When there is provided an electrically erasable memory element that can be replaced and a reference memory that stores data that is updated from the initial data, the data of the updated reference memory is automatically stored in the memory element. It is an object of the present invention to provide a new electronic device that can write data in a memory and can automatically instruct the replacement of the memory device.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理構成図である。 FIG. 1 is a diagram illustrating the principle of the present invention.

図中、10はメモリ素子であって、電気的に消去可能な
メモリであるもの、11はデータ格納域であって、更新さ
れていくことになる更新データ及びその更新データの始
点となる初期データを格納する領域であるもの、12は識
別子情報域であって、初期データ若しくは更新データの
書込済を表す識別子情報を格納する領域であるもの、13
は版数情報域であって、データ格納域11に書き込まれた
更新データの版数情報を格納する領域であるもの、14は
書込回数域であって、メモリ素子10に対する書込回数を
格納する領域であるものである。
In the drawing, reference numeral 10 denotes a memory element, which is an electrically erasable memory; and 11, a data storage area, update data to be updated and initial data serving as a starting point of the update data. 12 is an identifier information area, which is an area for storing identifier information indicating that the initial data or update data has been written, and 13
Is a version number information area, which is an area for storing version number information of update data written in the data storage area 11, and 14 is a write count area, which stores the number of times of writing to the memory element 10. Area.

20は基準メモリであって、メモリ素子10に書き込むべ
き書込データ21と、この書込データ21が初期データ若し
くは更新データであることを表す識別子情報22と、この
書込データ21の版数情報23とを保持するもの、30は書込
制御部であって、基準メモリ20からの読出処理とメモリ
素子10への書込処理を実行するもの、31はデータ書込手
段であって、書込データ21をデータ格納域11に書き込む
とともに、書込回数域14の書込回数を更新するもの、32
は識別子情報書込手段であって、基準メモリ20の識別子
情報22を識別子情報域12に書き込むもの、33は版数情報
書込手段であって、基準メモリ20の版数情報23を版数情
報域13に書き込むもの、34は素子状態判断手段であっ
て、識別子情報域12の識別子情報と基準メモリ20の識別
子情報22とを比較することで、メモリ素子10が未書込の
新しいものであるのか否かを判断するもの、35は版数状
態判断手段であって、版数情報域13の版数情報と基準メ
モリ20の版数情報23とを比較することで、メモリ素子10
に格納されている更新データが古い版数のものであるの
か否かを判断するもの、40は交換指示出力手段であっ
て、メモリ素子10の交換指示を出力するものである。
Reference numeral 20 denotes a reference memory, write data 21 to be written to the memory element 10, identifier information 22 indicating that the write data 21 is initial data or update data, and version number information of the write data 21. 23, a write control unit for executing a read process from the reference memory 20 and a write process to the memory element 10, and 31 a data writing unit, 32 that writes data 21 to the data storage area 11 and updates the number of writes in the number-of-writes area 14
Is identifier information writing means for writing the identifier information 22 of the reference memory 20 to the identifier information area 12, and 33 is version number information writing means for writing the version number information 23 of the reference memory 20 to the version number information. What is written in the area 13 is an element state judging means, which compares the identifier information of the identifier information area 12 with the identifier information 22 of the reference memory 20 so that the memory element 10 is an unwritten new one. 35 is version number determining means for comparing the version number information of the version number information area 13 with the version number information 23 of the reference memory 20 to determine whether the memory element 10
Is a unit for judging whether or not the update data stored in the memory device is of an older version number. Reference numeral 40 denotes an exchange instruction output unit, which outputs an exchange instruction for the memory element 10.

ここで、メモリ素子10、基準メモリ20、書込制御部30
及び交換指示出力手段40は、基準メモリ20に格納される
データをメモリ素子10に写し、それを必要に応じて書き
換えて処理を行う電子機器に実装されるものであり、書
込制御部30の素子状態判断手段34及び版数状態判断手段
35は、この電子機器の電源投入時に起動されて、割り付
けられる判断処理を実行することになる。
Here, the memory element 10, the reference memory 20, the write control unit 30
The exchange instruction output means 40 is mounted on an electronic device that copies data stored in the reference memory 20 to the memory element 10 and rewrites the data as necessary to perform processing. Element state determining means 34 and version number determining means
Reference numeral 35 is activated when the power of the electronic device is turned on, and executes an assigned process.

〔作用〕[Action]

本発明では、データ書込手段31は、電源投入時に、素
子状態判断手段34がメモリ素子10が未書込の新しいもの
であると判断するときと、版数状態判断手段35がメモリ
素子10の更新データが古い版数のものであると判断する
ときに、基準メモリ20の書込データ21をメモリ素子10の
データ格納域11に書き込む。更に、素子状態判断手段34
がメモリ素子10が未書込の新しいものであると判断する
ときには、メモリ素子10の書込回数域14に書込回数の初
期値を書き込み、版数状態判断手段35がメモリ素子10の
更新データが古い版数のものであると判断するときに
は、メモリ素子10の書込回数域14に格納される書込回数
を1つインクリメントする。
According to the present invention, the data writing unit 31 determines when the element state determination unit 34 determines that the memory element 10 is a new one that has not been written when the power is turned on, and when the version number determination unit 35 determines that the memory element 10 When it is determined that the update data has the old version, the write data 21 of the reference memory 20 is written to the data storage area 11 of the memory element 10. Further, the element state determining means 34
When it is determined that the memory element 10 is a new one that has not been written, the initial value of the number of writes is written in the number-of-writes area 14 of the memory element 10, and the version number state determination means 35 Is determined to be of an old version, the number of times of writing stored in the number of writing times area 14 of the memory element 10 is incremented by one.

これにより、メモリ素子10のデータ格納域11には、最
新の書込データが自動的に書き込まれることになるとと
もに、メモリ素子10の書込回数域14には、このデータ格
納域11に対する書込回数が自動的に書き込まれることに
なる。
As a result, the latest write data is automatically written in the data storage area 11 of the memory element 10, and the write count area 14 of the memory element 10 is written in the data storage area 11. The count will be written automatically.

そして、メモリ素子10が新しいことによる書込データ
の書込処理の際には、識別子情報書込手段32は、識別子
情報域12に基準メモリ20の識別子情報22を格納するよう
処理するとともに、版数情報書込手段33は、版数情報域
13に基準メモリ20の版数情報23を格納するよう処理す
る。一方、メモリ素子10の更新データが古いことによる
書込データの書込処理の際には、版数情報書込手段33
は、版数情報域13に基準メモリ20の版数情報23を格納す
るよう処理する。これらの処理により、メモリ素子10の
更新データの版数が管理されることになるとともに、メ
モリ素子10への書込データの書込回数が正確に管理でき
ることになる。
Then, at the time of the write processing of the write data due to the new memory element 10, the identifier information writing means 32 performs processing to store the identifier information 22 of the reference memory 20 in the identifier information area 12, and The number information writing unit 33 includes a version number information area.
A process is performed to store the version number information 23 of the reference memory 20 in 13. On the other hand, when the write data is written due to the old update data of the memory element 10, the version number information
Performs processing to store the version number information 23 of the reference memory 20 in the version number information area 13. Through these processes, the version number of the update data of the memory element 10 is managed, and the number of times of writing the write data to the memory element 10 can be managed accurately.

そして、交換指示出力手段40は、データ書込手段31に
より更新されるメモリ素子10の書込回数域14の書込回数
が規定値に到達することを検出すると、メモリ素子10の
交換指示を出力する。これにより、メモリ素子10の寿命
による誤処理を確実に防止できるようになる。
The exchange instruction output means 40 outputs an exchange instruction for the memory element 10 when detecting that the number of writes in the number-of-writes area 14 of the memory element 10 to be updated by the data writing means 31 reaches the specified value. I do. As a result, erroneous processing due to the life of the memory element 10 can be reliably prevented.

〔実施例〕〔Example〕

以下、実施例に従って本発明を詳細に説明する。 Hereinafter, the present invention will be described in detail with reference to examples.

第2図に、本発明を具備する電子機器のシステム構成
図を示す。
FIG. 2 shows a system configuration diagram of an electronic device equipped with the present invention.

この本発明の電子機器は、ROMとEEPROMとを備えて、R
OMに格納されるデータをEEPROMに写し、それを必要に応
じて書き換えて処理を行うものである。
The electronic device of the present invention includes a ROM and an EEPROM, and
The data stored in the OM is copied to the EEPROM, and the data is rewritten and processed as needed.

この図に示すように、本発明を具備する電子機器のシ
ステム構成は、従来技術と変わることなく、データ処理
を実行するMPU1と、マンマシン・インターフェースをな
すディスプレイ2及びキーボード3と、更新されていく
データを格納するEEPROM4と、EEPROM4に格納すべき書込
データと、この書込データの版数情報と、この書込デー
タが初期データ若しくは更新データであることを表す識
別子情報とを保持するROM5と、演算データを格納するRA
M6とから構成されることになる。
As shown in this figure, the system configuration of an electronic device equipped with the present invention is the same as the conventional technology, and is updated with an MPU 1 for executing data processing, a display 2 and a keyboard 3 which form a man-machine interface. ROM4 for storing data to be stored, ROM5 for storing write data to be stored in the EEPROM4, version information of the write data, and identifier information indicating that the write data is initial data or update data. And RA that stores the operation data
And M6.

第3図に、本発明のEEPROM4のメモリマップを示す。
図中、第1図で説明したものと同じものについては、同
一の記号で示してある。14は更新回数格納域であって、
EEPROM4への書込データの書込回数を格納する領域であ
るもの、15はチエックコード格納域であって、データ格
納域11に格納されている更新データ(初期データ)のサ
ムチエックデータ等のチエックコードを格納する領域で
あるものである。このメモリマップに示すように、本発
明のEEPROM4は、従来技術と異なり、新たに、第1図で
説明した識別子情報域12及び版数情報域13を具備するこ
とになる。
FIG. 3 shows a memory map of the EEPROM 4 of the present invention.
In the figure, the same components as those described in FIG. 1 are indicated by the same symbols. 14 is an update count storage area,
An area for storing the number of times of writing data to the EEPROM 4 is a check code storage area 15, which is a check code for updating data (initial data) stored in the data storage area 11. This is an area for storing codes. As shown in this memory map, the EEPROM 4 of the present invention is different from the prior art, and newly includes the identifier information area 12 and the version number information area 13 described in FIG.

次に、MPU1が実行する第4図に示すフローチャートに
従って、本発明のメモリデータの書込処理方式の処理内
容について説明する。
Next, the processing contents of the memory data write processing method of the present invention will be described with reference to the flowchart shown in FIG. 4 executed by the MPU 1.

MPU1は、電源投入時に、ステップ1に示すように、EE
PROM4に格納されているデータ情報を読み出す。この読
出処理により、データ格納域11に格納されている格納デ
ータと、識別子情報域12に格納されている識別子情報
と、版数情報域13に格納されている版数情報と、更新回
数格納域14に格納されている更新回数と、チエックコー
ド格納域15に格納されているチエックコードとが読み出
されることになる。MPU1は、続くステップ2で、ROM5が
保持する識別子情報を読み出すとともに、この読み出し
た識別子情報とステップ1で読み出したEEPROM4の識別
子情報とを比較し、この2つの識別子情報が一致しなけ
れば、未書込の新品のEEPROM4が装着されてきたものと
判断して、以下に説明するステップ3以降の処理に入る
ことになる。
When the power is turned on, the MPU 1
Reads data information stored in PROM4. By this reading process, the storage data stored in the data storage area 11, the identifier information stored in the identifier information area 12, the version number information stored in the version information area 13, the update number storage area The update count stored in 14 and the check code stored in the check code storage area 15 are read. In step 2, the MPU 1 reads the identifier information held in the ROM 5 and compares the read identifier information with the identifier information of the EEPROM 4 read in step 1. It is determined that the new EEPROM 4 to be written has been mounted, and the process from step 3 described below is started.

すなわち、未書込の新品のEEPROM4が装着されたもの
と判断するときには、MPU1は、ステップ3で、ROM5が保
持する書込データを読み出すとともに、その読み出した
書込データをEEPROM4のデータ格納域11に書き込む処理
を行う。ROM5が保持する書込データが初期データから更
新されていないものであるならば、この書込処理によ
り、EEPROM4には初期データが書き込まれ、更新されて
いるものであるならば、この書込処理により、EEPROM4
には最新の更新データが書き込まれることになる。MPU1
は、このステップ3で、更に、ROM5が保持する識別子情
報と版数情報を読み出すとともに、その読み出した識別
子情報と版数情報を、それぞれEEPROM4の識別子情報域1
2と版数情報域13に書き込む処理を実行する。この処理
により、EEPROM4が新品でなくなったことが識別される
ようになるとともに、データ格納域11に書き込まれた更
新データ(初期データ)の版数情報が登録されることに
なるのである。
That is, when judging that a new unwritten EEPROM 4 is mounted, the MPU 1 reads out the write data stored in the ROM 5 and stores the read write data in the data storage area 11 of the EEPROM 4 in step 3. Perform the process of writing to. If the write data held by the ROM 5 is not updated from the initial data, the initial data is written into the EEPROM 4 by this write process, and if the write data is updated, the write process is executed. By EEPROM4
Will be written with the latest update data. MPU1
In step 3, the identifier information and the version number information stored in the ROM 5 are further read, and the read identifier information and the version number information are respectively stored in the identifier information area 1 of the EEPROM 4.
2 and the process of writing to the version information area 13 are executed. By this processing, it is determined that the EEPROM 4 is no longer new, and the version number information of the update data (initial data) written in the data storage area 11 is registered.

MPU1は続くステップ4で、EEPROM4の書込回数をチエ
ックできるようにするために、更新回数格納域14にイニ
シャル値“0"を書き込む。そして、次のステップ5で、
EEPROM4のデータ格納域11に書き込んだデータのチエッ
クコードを算出するとともに、この算出したチエックコ
ードをEEPROM4のチエックコード格納域15に書き込む処
理を行う。この後、ステップ6で、EEPROM4に格納され
ているデータ情報を読み出し、続くステップ7で、読み
出したチエックコードを調べることで、EEPROM4が不良
か否かを判断し、不良と判断されればステップ8でエラ
ーメッセージを表示する。
In the subsequent step 4, the MPU 1 writes an initial value “0” in the update count storage area 14 so that the write count of the EEPROM 4 can be checked. And in the next step 5,
A check code of the data written in the data storage area 11 of the EEPROM 4 is calculated, and a process of writing the calculated check code to the check code storage area 15 of the EEPROM 4 is performed. Thereafter, in step 6, the data information stored in the EEPROM 4 is read, and in the following step 7, the read check code is examined to determine whether or not the EEPROM 4 is defective. To display the error message.

一方、ステップ2の判断で、それまで使用されていた
EEPROM4が装着されているものと判断するときには、ス
テップ9に進み、ROM5が保持する版数情報を読み出すと
ともに、この読み出した版数情報とステップ1で読み出
したEEPROM4の版数情報とを比較する。そして、この2
つの版数情報が一致しなければ、ROM5のプログラムが変
更されることで、EEPROM4のデータ格納域11に格納され
ている更新データ(初期データ)が古くなってしまった
と判断して、以下に説明するステップ10以降の処理に入
ることになる。
On the other hand, in the judgment of step 2,
When it is determined that the EEPROM 4 is mounted, the process proceeds to step 9 where the version number information stored in the ROM 5 is read, and the read version number information is compared with the version number information of the EEPROM 4 read in step 1. And this 2
If the two pieces of version information do not match, it is determined that the update data (initial data) stored in the data storage area 11 of the EEPROM 4 has become outdated due to a change in the program of the ROM 5 and will be described below. Step 10 and subsequent steps are performed.

すなわち、EEPROM4の格納する更新データが古い版数
のものであると判断するときには、MPU1は、ステップ10
で、ROM5が保持する書込データを読み出すとともに、そ
の読み出した書込データをEEPROM4のデータ格納域11に
書き込む処理を行う。この書込処理により、EEPROM4に
は最新の更新データが書き込まれることになる。MPU1
は、このステップ10で、更に、ROM5が保持する版数情報
を読み出すとともに、その読み出した版数情報を、EEPR
OM4の版数情報域13に書き込む処理を実行する。この処
理により、データ格納域11に書き込まれた更新データの
版数情報が登録されることになるのである。
That is, when judging that the update data stored in the EEPROM 4 is of an old version, the MPU 1
Then, a process of reading the write data held by the ROM 5 and writing the read write data to the data storage area 11 of the EEPROM 4 is performed. By this writing process, the latest update data is written to the EEPROM 4. MPU1
In step 10, the version number information held in the ROM 5 is further read, and the read version number information is
A process for writing to the version number information area 13 of the OM 4 is executed. By this processing, the version number information of the update data written in the data storage area 11 is registered.

MPU1は、続くステップ11で、ステップ1で読み出した
EEPROM4の更新回数に“1"を加算し、次のステップ12
で、この加算された更新回数が、EEPROM4の許容書込回
数の範囲に入っているか否かを調べる。このステップ12
の判断で、許容書込回数の範囲を越えていると判断する
ときには、ステップ13に進んで、EEPROM4の交換を要求
するメッセージをディスプレイ2上に表示する。逆に、
ステップ12の判断で、許容書込回数の範囲にあると判断
するときには、ステップ14に進み、EEPROM4の寿命では
ないので、加算された更新回数をEEPROM4の更新回数格
納域14に書き込む処理を実行する。そして、ステップ15
ないしステップ18で、前述したステップ5ないしステッ
プ8の処理と同じ処理を実行することで、EEPROM4が不
良か否かを判断するのである。
MPU1 reads out in step 1 in the following step 11.
"1" is added to the update count of EEPROM4, and the next step 12
Then, it is checked whether or not the added update count falls within the range of the allowable write count of the EEPROM 4. This step 12
If it is determined that the number of times of writing exceeds the range of the allowable number of times of writing, the process proceeds to step 13, and a message requesting replacement of the EEPROM 4 is displayed on the display 2. vice versa,
If it is determined in step 12 that the number of times of writing is within the range of the allowable number of times of writing, the process proceeds to step 14, where the life of the EEPROM 4 is not reached. . And step 15
In steps 18 to 18, the same processing as steps 5 to 8 described above is executed to determine whether or not the EEPROM 4 is defective.

一方、ステップ9の判断で、EEPROM4のデータ格納域1
1に格納されている更新データ(初期データ)が最新の
ものであると判断するときには、ステップ19に進み、ス
テップ1で読み出した更新データ(初期データ)のチエ
ックコードを算出するとともに、この算出したチエック
コードを調べることでEEPROM4が不良か否かを判断し、
不良と判断されればステップ20でエラーメッセージを表
示して処理を終了する。
On the other hand, in the judgment of step 9, the data storage area 1 of the EEPROM 4
When it is determined that the update data (initial data) stored in 1 is the latest, the process proceeds to step 19, where the check code of the update data (initial data) read out in step 1 is calculated, and the calculated code is calculated. By checking the check code, it is determined whether the EEPROM4 is defective,
If it is determined to be defective, an error message is displayed in step 20 and the process ends.

以上の処理により、メモリ素子10のデータ格納域11
に、最新の更新データ(初期データ)が、自動的に書き
込まれるようになるのである。
By the above processing, the data storage area 11 of the memory element 10
Then, the latest update data (initial data) is automatically written.

図示実施例に従って本発明を説明したが、本発明はこ
れに限定されるものではない。例えば、本発明が適用可
能な電気的に消去可能なメモリ素子は、EEPROMと呼ばれ
るものに限られるものではないのである。
Although the present invention has been described with reference to the illustrated embodiments, the present invention is not limited thereto. For example, the electrically erasable memory element to which the present invention can be applied is not limited to what is called an EEPROM.

〔発明の効果〕〔The invention's effect〕

このように、本発明によれば、許容書込回数をオーバ
ーしたこと等によりEEPROMのチップを交換した場合で
も、自動的に初期データをEEPROMに書き込むことができ
るようになる。また、ROMの版数アップが行われるとき
にあっても、自動的に版数アップした更新データをEEPR
OMに書き込むことができるようになる。従って、初期デ
ータの書込処理や更新データの更新処理が短時間で実現
できるとともに、入力ミスをなくすことができるように
なる。しかも、識別子情報を使ってEEPROMが未書込の新
品のものであるか否かを調べ、新品のときには、更新回
数の計数をリセットするよう処理することから、必ず許
容書込回数の範囲内でEEPROMを使用できることになる。
As described above, according to the present invention, initial data can be automatically written into the EEPROM even when the chip of the EEPROM is replaced due to, for example, exceeding the allowable number of times of writing. Even when the ROM version is upgraded, the updated data automatically upgraded
Be able to write to OM. Therefore, the initial data write process and the update data update process can be realized in a short time, and input errors can be eliminated. In addition, the identifier information is used to check whether the EEPROM is new and unwritten. If the EEPROM is new, processing is performed to reset the count of the number of updates. EEPROM can be used.

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

第1図は本発明の原理構成図、 第2図は本発明のシステム構成図、 第3図はEEPROMのメモリマップの説明図、 第4図は本発明の実行するフローチャート、 第5図は従来技術の処理手順の説明図である。 図中、1はMPU、2はディスプレイ、3はキーボード、
4はEEPROM、5はROM、6はRAM、10はメモリ素子、11は
データ格納域、12は識別子情報域、13は版数情報域、14
は更新回数格納域、15はチエックコード格納域、20は基
準メモリ、21は書込データ、22は識別子情報、23は版数
情報、30は書込制御部、31はデータ書込手段、32は識別
子情報書込手段、33は版数情報書込手段、34は素子状態
判断手段、35は版数状態判断手段である。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a diagram of a system of the present invention, FIG. 3 is an explanatory diagram of a memory map of an EEPROM, FIG. 4 is a flowchart executed by the present invention, and FIG. It is explanatory drawing of the processing procedure of a technique. In the figure, 1 is an MPU, 2 is a display, 3 is a keyboard,
4 is an EEPROM, 5 is a ROM, 6 is a RAM, 10 is a memory element, 11 is a data storage area, 12 is an identifier information area, 13 is a version number information area, 14
Is an update count storage area, 15 is a check code storage area, 20 is a reference memory, 21 is write data, 22 is identifier information, 23 is version number information, 30 is a write control unit, 31 is a data writing unit, 32 Is identifier information writing means, 33 is version number information writing means, 34 is element state determination means, and 35 is version number state determination means.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】交換可能となる電気消去可能なメモリ素子
と、初期データから更新されていくデータを格納する基
準メモリとを備えて、該基準メモリに格納されるデータ
を該メモリ素子に写し、それを必要に応じて書き換えて
処理を行う電子機器において、 電源投入時に起動され、基準メモリに記録されるデータ
格納を示す識別子情報と、メモリ素子に記録されるデー
タ書込の有無を示す識別子情報とを比較することで、メ
モリ素子が新しいものであるか否かを判断する素子状態
判断手段(34)と、 電源投入時に起動され、基準メモリに記録されるデータ
の版数情報と、メモリ素子に記録されるデータの版数情
報とを比較することで、メモリ素子に格納されるデータ
が古い版数のものであるか否かを判断する版数状態判断
手段(35)と、 メモリ素子が新しいものであると判断されるときに、基
準メモリのデータをメモリ素子に書き込むとともに、メ
モリ素子に記録される書込回数を初期値にセットし、メ
モリ素子のデータが古い版数のものであると判断される
ときに、基準メモリのデータをメモリ素子に書き込むと
ともに、該書込回数を1つインクリメントするデータ書
込手段(31)と、 メモリ素子が新しいものであると判断されるときに、上
記データ書込手段(31)の書子処理に合わせて、基準メ
モリに記録される識別子情報をメモリ素子に書き込む識
別込情報書込手段(32)と、 メモリ素子が新しいものであると判断されるときと、メ
モリ素子のデータが古い版数のものであると判断される
ときに、上記データ書込手段(31)の書込処理に合わせ
て、基準メモリに記録される版数情報をメモリ素子に書
き込む版数情報書込手段(33)と、 メモリ素子に記録される上記書込回数が規定値に到達す
るときに、メモリ素子の交換指示を出力する交換指示出
力手段(40)とを備えることを、 特徴とする電子機器。
An exchangeable electrically erasable memory element, and a reference memory for storing data to be updated from initial data, wherein the data stored in the reference memory is copied to the memory element; In an electronic device that performs processing by rewriting the data as necessary, identifier information that is started when power is turned on and indicates data storage recorded in a reference memory, and identifier information that indicates the presence or absence of data writing recorded in a memory element Element state determination means (34) for determining whether or not the memory element is new by comparing the memory element with a new version of the memory element. A version number determining means (35) for determining whether the data stored in the memory element is of an older version number by comparing the version number information of the data recorded in the memory device with the version number information; When it is determined that the element is new, the data of the reference memory is written to the memory element, and the number of times of writing recorded in the memory element is set to an initial value. Data writing means (31) for writing data of the reference memory to the memory element and incrementing the number of times of writing by one, and determining that the memory element is new. In addition, the identification information writing means (32) for writing the identifier information recorded in the reference memory into the memory element in accordance with the writing processing of the data writing means (31), and that the memory element is new. When the determination is made and when it is determined that the data of the memory element is of the old version number, the version number information recorded in the reference memory is synchronized with the writing process of the data writing means (31). Version information writing means (33) for writing information to the memory element, and exchange instruction output means (40) for outputting an instruction to replace the memory element when the number of times of writing recorded in the memory element reaches a prescribed value. An electronic device characterized by comprising:
JP20579788A 1988-08-19 1988-08-19 Electronics Expired - Lifetime JP2713583B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20579788A JP2713583B2 (en) 1988-08-19 1988-08-19 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20579788A JP2713583B2 (en) 1988-08-19 1988-08-19 Electronics

Publications (2)

Publication Number Publication Date
JPH0254499A JPH0254499A (en) 1990-02-23
JP2713583B2 true JP2713583B2 (en) 1998-02-16

Family

ID=16512845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20579788A Expired - Lifetime JP2713583B2 (en) 1988-08-19 1988-08-19 Electronics

Country Status (1)

Country Link
JP (1) JP2713583B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752919A (en) * 2020-06-16 2020-10-09 北京字节跳动网络技术有限公司 Data writing method, data reading method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6140835Y2 (en) * 1980-09-24 1986-11-20
JPS58166593A (en) * 1982-03-26 1983-10-01 Fujitsu Ltd Method for confirming number of rom plates
JPS59114635A (en) * 1982-12-21 1984-07-02 Fujitsu Ltd Program managing system
JPS61267832A (en) * 1985-05-22 1986-11-27 Panafacom Ltd Recognizing system for number of function plates of read-only memory

Also Published As

Publication number Publication date
JPH0254499A (en) 1990-02-23

Similar Documents

Publication Publication Date Title
JP2990181B1 (en) Flash memory, microcomputer having flash memory, and method of storing program in flash memory
JPH08202626A (en) Memory controller
JP3268130B2 (en) Data processing device using flash EEPROM
JP2017097576A (en) Rewrite system
JP3093541B2 (en) Terminal device and online system for managing version numbers of programs and data
JP2713583B2 (en) Electronics
JP2002175193A (en) Device and method for rewriting program
CN114035813A (en) Upgrading method, device, equipment and storage medium
JPH0784894A (en) Method for writing nonvolatile memory
JP3358214B2 (en) Electronic equipment
JP2000243093A (en) Data storing method for flash memory and data reading out method from flash memory
JPH1011277A (en) Computer device with electrically rewritable nonvolatile memory and nonvolatile semiconductor memory
JP2001344156A (en) Device with flash memory and data rewriting method
JPH06131886A (en) Semiconductor filing device
JP4450161B2 (en) Unit and programmable controller
JP3480957B2 (en) Memory programming equipment
JPS62168229A (en) Automatic recognizing system for system constitution
JP2853593B2 (en) Download device
JP3019346B2 (en) Data processing device
JPH10289077A (en) Printer
JP2738611B2 (en) Electronic equipment
CN117894362A (en) One-time programmable memory modification method and device and electronic equipment
JP2927249B2 (en) Air conditioner
JPH0397034A (en) Program correcting device for terminal machine
JPH09258968A (en) Controller