JPH07287672A - Equipment controller - Google Patents

Equipment controller

Info

Publication number
JPH07287672A
JPH07287672A JP7872294A JP7872294A JPH07287672A JP H07287672 A JPH07287672 A JP H07287672A JP 7872294 A JP7872294 A JP 7872294A JP 7872294 A JP7872294 A JP 7872294A JP H07287672 A JPH07287672 A JP H07287672A
Authority
JP
Japan
Prior art keywords
control data
data
control
data storage
microcomputer
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.)
Pending
Application number
JP7872294A
Other languages
Japanese (ja)
Inventor
Ryutaro Miwa
竜太郎 三輪
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.)
Rinnai Corp
Original Assignee
Rinnai 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 Rinnai Corp filed Critical Rinnai Corp
Priority to JP7872294A priority Critical patent/JPH07287672A/en
Priority to KR1019950001335A priority patent/KR0154374B1/en
Publication of JPH07287672A publication Critical patent/JPH07287672A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1666Error detection or correction of the data by redundancy in hardware where the redundant component is memory or memory area
    • G06F11/167Error detection by comparing the memory output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2017Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where memory access, memory control or I/O control functionality is redundant

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To provide an equipment controller which can store the normal control data as far as possible in an EEPROM while refreshing the EEPROM holding the control data on an equipment and also can perform the normal control of operations of the equipment by means of a microcomputer. CONSTITUTION:An EEPROM 2 contains the storage parts A1 to A3 which store the same control data and a storage part 3 which stores the numbers of parts A1 to A3 to be refreshed. In a refreshment mode, a microcomputer 1 continuously reads the data in order out of the parts A1 to A3 until the satisfactory control data are obtained. Then the microcomputer 1 writes the obtained satisfactory control data in one of parts A1 to A3 that is pointed by the number of the part 3. This number of the part 3 is changed for each refreshment so that the parts A1 to A3 are refreshed in order.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、燃焼機器等の各種機器
をマイクロコンピュータを用いて制御する機器制御装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device control device for controlling various devices such as combustion devices by using a microcomputer.

【0002】[0002]

【従来の技術】例えば燃焼機器においては、バーナの燃
焼をマイクロコンピュータにより電磁弁や比例弁等を介
して制御するものが知られており、この種のものでは、
マイクロコンピュータはメモリにあらかじめ記憶保持さ
れたプログラムや各種制御用データに従って電磁弁の開
閉や比例弁の開度等を制御してバーナの燃焼を制御す
る。この場合、上記プログラムや各種制御用データは、
所定の制御を行う上で重要なものであるため、停電や外
乱等によって破壊されることがないように、基本的には
マスクROM等の読み出し専用の不揮発性メモリに記憶
保持されるのであるが、制御用データのうちには、使用
する燃料の種類や、製品個々の部品特性のばらつき等に
よって、制御用データを製品毎に設定したり、調整した
りする必要が生じるものもある。
2. Description of the Related Art For example, in combustion equipment, it is known that combustion of a burner is controlled by a microcomputer through a solenoid valve, a proportional valve, etc.
The microcomputer controls the combustion of the burner by controlling the opening / closing of the solenoid valve, the opening of the proportional valve, etc. according to a program stored in advance in memory and various control data. In this case, the program and various control data are
Since it is important for performing predetermined control, it is basically stored and held in a read-only non-volatile memory such as a mask ROM so as not to be destroyed by a power failure or disturbance. Among the control data, it may be necessary to set or adjust the control data for each product depending on the type of fuel to be used, variations in component characteristics of each product, and the like.

【0003】このため、この種の機器においては、例え
ば電気的に書き込み可能な不揮発性メモリ(所謂、EE
PROM)を備え、上記のような制御用データ、あるい
は、基準となる制御用データを調整するための制御用デ
ータを製品の出荷時等にEEPROMに記憶保持させ、
該EEPROMに記憶保持した制御用データを用いてマ
イクロコンピュータによる制御を行うようにしたものが
知られている。
Therefore, in this type of device, for example, an electrically writable nonvolatile memory (so-called EE) is used.
PROM) for storing the control data as described above or the control data for adjusting the reference control data in the EEPROM when the product is shipped,
It is known that control is performed by a microcomputer using control data stored and held in the EEPROM.

【0004】このようにEEPROMに記憶保持した制
御用データは、停電等により給電が停止しても消えてし
まうようなことがなく、また、一般には機器の使用の途
中で内容を変更したりする必要のないものであるため、
通常、製品の出荷時等にEEPROMに記憶保持した後
は、書き直し等は行われない。
The control data stored and stored in the EEPROM is not lost even when the power supply is stopped due to a power failure or the like, and the contents are generally changed during the use of the device. Because it is not necessary,
Normally, rewriting or the like is not performed after the data is stored and held in the EEPROM when the product is shipped.

【0005】しかるに、EEPROMは、一般に、デー
タを記憶保持し得る期間がマスクROM等に較べて短
く、その期間は通常、10年程度である。また、EEP
ROMは、書き込み可能としているために、マスクRO
M等に較べて外乱ノイズ等による影響を受けやすく、記
憶保持したデータが外乱ノイズ等により破壊されてしま
う場合もある。
However, the EEPROM generally has a shorter period in which data can be stored and held than a mask ROM or the like, and the period is usually about 10 years. Also, EEP
Since the ROM is writable, the mask RO
Compared to M and the like, it is more likely to be affected by disturbance noise and the like, and the stored data may be destroyed by the disturbance noise and the like.

【0006】このため、上記のようにEEPROMに記
憶保持した制御用データは、製品が使用者に供された後
も、適宜、更新する(所謂、リフレッシュを行う)こと
が好ましく、このようなリフレッシュを行うようにした
ものとしては、例えば特公平3−3859号公報に開示
されているものが知られている。
Therefore, it is preferable that the control data stored and held in the EEPROM as described above be appropriately updated (so-called refresh) even after the product is provided to the user. For example, the one disclosed in Japanese Examined Patent Publication No. 3859/1993 is known as a method for performing the above.

【0007】この公報に開示されているものにおいて
は、機器の電源がオンされる毎に、EEPROMに記憶
保持したデータを読み出して、一旦RAMに記憶保持
し、それを再びEEPROMに書き込むことによりEE
PROMのデータのリフレッシュを行うようにしてい
る。そして、EEPROMのデータの読み出し時のエラ
ーを防止するため、その読み出しを2回続けて行うと共
に、それらの読み出されたデータ同士を照合し、該デー
タ同士が合致しない場合には、読み出しエラーが生じた
ものとして上記のようなデータの読み出しを繰り返すよ
うにしている。また、EEPROMのデータの書き込み
時のエラーを防止するため、RAMからEEPROMに
データを書き込んだ後、そのデータを再びEEPROM
から読み出してRAMのデータと照合し、それらが合致
しない場合には、書き込みエラーが生じたものとして上
記のようなデータの書き込みを繰り返すようにしてい
る。
In the device disclosed in this publication, every time the power of the device is turned on, the data stored and held in the EEPROM is read out, temporarily stored and held in the RAM, and the data is again written in the EEPROM, whereby the EE
The PROM data is refreshed. Then, in order to prevent an error at the time of reading the data of the EEPROM, the reading is performed twice in succession, and the read data are collated with each other. If the data do not match, a read error is generated. The above-mentioned data reading is repeated as the occurrence. Further, in order to prevent an error at the time of writing the data of the EEPROM, after writing the data from the RAM to the EEPROM, the data is re-written to the EEPROM.
The data is read out from the RAM and collated with the data in the RAM. If they do not coincide with each other, it is considered that a write error has occurred and the above-described data writing is repeated.

【0008】しかしながら、このようなものにおいて
は、EEPROMのデータのリフレッシュや、そのリフ
レッシュの際のデータの読み出し、あるいは書き込み時
のエラー防止を行うことは可能であるものの、EEPR
OMに記憶保持されていたデータが外乱ノイズ等により
異常を来していた場合には、読み出しエラーや書き込み
エラーが発生しなくとも、そのデータを元の正常なデー
タに復帰させることはできず、EEPROMに正常なデ
ータを記憶保持させておくことができなくなってしま
う。そして、このような場合において、前記の公報のも
のでは、EEPROMから読み出したデータの論理照合
を行い、機器の作動に異常を来すような異常なデータを
排除するようにしているものの、元の正常なデータに復
帰させることができるものではないため、本来、行われ
るべき正常な制御を行うことができるものではなかっ
た。
However, in such a case, although it is possible to refresh the data of the EEPROM, read the data at the time of refreshing, or prevent an error at the time of writing, the EEPROM is
If the data stored and held in the OM is abnormal due to disturbance noise or the like, the data cannot be restored to the original normal data even if no read error or write error occurs. It becomes impossible to store and retain normal data in the EEPROM. Then, in such a case, in the case of the above-mentioned publication, although the data read from the EEPROM is logically collated to eliminate the abnormal data that causes an abnormality in the operation of the device, Since it is not possible to restore the normal data, it was not possible to perform the normal control that should be performed originally.

【0009】また、EEPROMは、一般にデータの読
み出しや書き込みを支障なく行うことができる回数に制
限があり、特に、書き込みの限界回数は読み出しの限界
回数に比して少ない。このため、前記公報のものにおい
ては、読み出しや書き込み時のエラーが生じた場合に、
それを繰り返す回数に制限を設け、特に書き込みの繰り
返し回数を比較的少ないものとしている。しかるに、こ
のように、書き込みの繰り返し回数を少ないものに制限
しても、書き込みエラーが続けて生じた場合には、一回
のリフレッシュに際して、数回にわたってEEPROM
への書き込みが行われるため、EEPROMの寿命を早
めてしまうという不都合を生じるものであった。
Further, the EEPROM is generally limited in the number of times data can be read and written without any trouble, and in particular, the limit number of times of writing is smaller than the limit number of times of reading. Therefore, in the case of the above publication, when an error occurs during reading or writing,
The number of times to repeat it is limited, and the number of times to repeat writing is relatively small. However, even if the number of write repetitions is limited to a small number as described above, if a write error occurs continuously, the EEPROM may be refreshed several times during one refresh.
Since the writing to the EEPROM is performed, there is an inconvenience that the life of the EEPROM is shortened.

【0010】[0010]

【発明が解決しようとする課題】本発明は、このような
機器制御装置の改良を目的とし、より詳細には、機器の
制御用データを記憶保持した電気的に書き込み可能な不
揮発性記憶手段のリフレッシュを行いつつ可能な限り正
常な制御用データを不揮発性記憶手段に記憶保持させる
ことができ、マイクロコンピュータによる機器の作動制
御を正常に行うことができる機器制御装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention aims at improvement of such a device control device, and more specifically, of an electrically writable non-volatile storage means for storing and holding device control data. An object of the present invention is to provide a device control device capable of storing and holding, as much as possible normal control data in a non-volatile storage means while refreshing, and performing normal operation control of a device by a microcomputer. .

【0011】さらに、不揮発性記憶手段のリフレッシュ
時の制御用データの読み出しや書き込みを少ないものと
して該不揮発性記憶手段の寿命低下を防止することがで
きる機器制御装置を提供することを目的とする。
It is another object of the present invention to provide a device control device capable of preventing the non-volatile storage means from being shortened in life by reducing the reading and writing of control data at the time of refreshing the non-volatile storage means.

【0012】[0012]

【課題を解決するための手段】本発明はかかる目的を達
成するために、あらかじめ制御用データを記憶保持した
電気的に書き込み可能な不揮発性記憶手段と、該制御用
データを用いて機器の作動を制御するマイクロコンピュ
ータとを備えた機器制御装置において、互いに同一の前
記制御用データがあらかじめ書き込まれた複数の制御用
データ記憶部と、該複数の制御用データ記憶部のうち、
制御用データの更新をすべき制御用データ記憶部を示す
指示データがあらかじめ書き込まれた指示データ記憶部
とを前記不揮発生記憶手段に備え、所定のタイミングで
前記複数の制御用データ記憶部から順次前記制御用デー
タを読み出すと共に読み出した制御用データの良否を判
断し、その読み出し及び判断を良好な制御用データが得
られるまで行う読出・判断手段と、良好な制御用データ
が得られたとき、前記指示データ記憶部の指示データに
より示される制御用データ記憶部に該良好な制御用デー
タを書き込んで該制御用データ記憶部のデータを更新す
る制御用データ更新手段と、該制御用データ記憶部のデ
ータを更新したとき、該制御用データ記憶部を示す前記
指示データを他の制御用データ記憶部を示す指示データ
に変更して前記指示データ記憶部に書き込む指示データ
変更手段とを前記マイクロコンピュータに備えたことを
特徴とする。
In order to achieve such an object, the present invention provides an electrically writable non-volatile storage means for storing and holding control data in advance, and an operation of an apparatus using the control data. In a device control device including a microcomputer for controlling, a plurality of control data storage units in which the same control data are written in advance, and among the plurality of control data storage units,
The nonvolatile data storage unit is provided with an instruction data storage unit in which instruction data indicating a control data storage unit to update the control data is written in advance, and sequentially from the plurality of control data storage units at a predetermined timing. When the control data is read, the read / judgment means for judging whether the read control data is good or bad, and performing the reading and judgment until good control data is obtained, and when the good control data is obtained, A control data updating unit for writing the good control data to the control data storage unit indicated by the instruction data of the instruction data storage unit to update the data in the control data storage unit; and the control data storage unit When the data of the control data is updated, the instruction data indicating the control data storage unit is changed to instruction data indicating another control data storage unit and the instruction data is changed. The instruction data changing means for writing in the data storage unit, characterized in that provided in the microcomputer.

【0013】また、前記各制御用データ記憶部には、前
記制御用データと共に所定のチェック用データが書き込
まれ、前記マイクロコンピュータの読出・判断手段は、
該チェック用データの良否を判断することにより前記制
御用データの良否を判断することを特徴とする。
Further, predetermined check data is written together with the control data in each of the control data storage sections, and the reading / judging means of the microcomputer is
The quality of the control data is determined by determining the quality of the check data.

【0014】また、前記マイクロコンピュータは、前記
制御用データ記憶部から読み出された制御用データが良
好であると判断したとき、その良好な制御用データを記
憶保持するRAMを備え、該RAMに記憶保持された制
御用データを用いて前記機器の作動制御を行うことを特
徴とする。
Further, when it is determined that the control data read from the control data storage unit is good, the microcomputer includes a RAM for storing and holding the good control data, and the RAM has the RAM. The operation control of the device is performed using the stored control data.

【0015】また、前記所定のタイミングは、前記マイ
クロコンピュータへの給電開始時としたことを特徴とす
る。
Further, the predetermined timing is at the start of power supply to the microcomputer.

【0016】また、前記マイクロコンピュータは、全て
の前記制御用データ記憶部の制御用データが不良である
と判断したとき、前記機器の作動を禁止せしめることを
特徴とする。
Further, the microcomputer is characterized in that when the control data in all the control data storage sections is judged to be defective, the microcomputer prohibits the operation of the device.

【0017】[0017]

【作用】本発明によれば、前記不揮発性記憶手段に記憶
保持された制御用データの更新(リフレッシュ)に際し
ては、あらかじめ同一の制御用データが書き込まれた前
記複数の制御用データ記憶部から前記マイクロコンピュ
ータの読出・判断手段により、順次制御用データが読み
出されると共にその制御用データの良否が判断され、そ
の読み出し及び判断は、良好な制御用データが得られる
まで行われる。
According to the present invention, when updating (refreshing) the control data stored and held in the non-volatile storage means, the same control data is written in advance from the plurality of control data storage sections. The reading / judging means of the microcomputer sequentially reads the control data and judges the quality of the control data, and the reading and judgment are performed until good control data is obtained.

【0018】この場合、前記複数の制御用データ記憶部
には、当初、同一の良好な制御用データが書き込まれて
いるので、一つの制御用データ記憶部の制御用データが
異常となっており、あるいは該制御用データの読み出し
エラーが生じても、基本的には、他のいずれか一つの制
御用データ記憶部については、良好な制御用データが読
み出され、従って、上記のような読み出し・判断を行う
ことで、良好な制御用データが得られる。
In this case, since the same good control data is initially written in the plurality of control data storage units, the control data in one control data storage unit is abnormal. Or, even if a read error of the control data occurs, basically, good control data is read out from any one of the other control data storage units, and accordingly, the above-described read-out is performed. -By making a judgment, good control data can be obtained.

【0019】そして、このように良好な制御用データが
得られると、マイクロコピュータの前記制御用データ更
新手段は、前記不揮発性記憶手段の指示データ記憶部に
記憶保持されている指示データにより示された一つの制
御用データ記憶部に前記良好な制御用データを書き込
み、これにより、該制御用データ記憶部の制御用データ
が良好な制御用データに更新(リフレッシュ)される。
また、前記指示データ変更手段は、前記指示データを、
更新した制御用データ記憶部と異なる他の制御用データ
記憶部を示す指示データに変更して前記指示データ記憶
部に書き込む。これにより、制御用データの次回の更新
(リフレッシュ)に際しては、今回と異なる制御用デー
タ記憶部の更新が行われることとなる。このような制御
用データの更新を行うに際しては、制御用データの書き
込みの際に、書き込みエラー等により誤った制御用デー
タが書き込まれることも起こり得るが、そのような誤っ
た制御用データの書き込みは、一つの制御用データ記憶
部に対して行われるので、他のいずれか一つの制御用デ
ータ記憶部には、良好な制御用データが記憶保持されて
いると考えられ、従って、上記のような更新を行ってい
くことで、いずれ良好な制御用データが書き込まれる。
このことは、各制御用データ記憶部に記憶保持されてい
る制御用データが外乱ノイズ等により異常となった場合
でも、一つの制御用データ記憶部の制御用データが良好
である限り、同様である。
When good control data is obtained in this way, the control data updating means of the micro-computer is indicated by the instruction data stored and held in the instruction data storage section of the nonvolatile storage means. The good control data is written in the other control data storage unit, whereby the control data in the control data storage unit is updated (refreshed) with the good control data.
Further, the instruction data changing means changes the instruction data to
The instruction data indicating another control data storage section different from the updated control data storage section is changed and written in the instruction data storage section. As a result, when the control data is updated (refreshed) next time, the control data storage unit different from this time is updated. When updating the control data in this way, erroneous control data may be written due to a write error when writing the control data. Is performed for one control data storage unit, it is considered that good control data is stored and held in any one of the other control data storage units. By carrying out various updates, good control data will eventually be written.
This is true even if the control data stored and held in each control data storage unit becomes abnormal due to disturbance noise or the like, as long as the control data in one control data storage unit is good. is there.

【0020】また、一回の更新(リフレッシュ)に際し
て、各制御用データ記憶部の制御用データの読み出しや
書き込みは高々一回だけなので、不揮発性記憶手段の制
御用データの読み出しや書き込み回数が少ないものとな
り、該不揮発性記憶手段の寿命低下を抑えることが可能
となる。
In addition, at the time of one update (refresh), the control data of each control data storage unit is read or written only once, so the number of times of reading or writing the control data of the non-volatile storage means is small. As a result, it is possible to suppress the decrease in the life of the nonvolatile storage means.

【0021】かかる本発明において、前記各制御用デー
タ記憶部に、前記制御用データと共に所定のチェック用
データを書き込むときには、一般に、該制御用データが
良好であれば、チェック用データも良好となり、また、
該制御用データが不良であれば、チェック用データも不
良となると考えられるので、該チェック用データの良否
を判断することで、前記制御用データの良否を容易に判
断することが可能となる。
In the present invention, when the predetermined check data is written together with the control data in each control data storage unit, generally, if the control data is good, the check data is also good, Also,
If the control data is defective, it is considered that the check data is also defective. Therefore, by determining the quality of the check data, it is possible to easily determine the quality of the control data.

【0022】また、前記制御用データ記憶部から読み出
された制御用データが良好であると判断したとき、その
良好な制御用データを記憶保持するRAMを備えたとき
には、RAMに記憶保持した制御用データを用いて前記
機器の制御を行うことで、該機器の正常な制御を行うこ
とが可能となり、また、機器の制御時に、随時、不揮発
性記憶手段から制御用データを読み出す必要がなくなる
ので、該不揮発性記憶手段からの制御用データの読み出
し回数が少ないものとなって、該不揮発性記憶手段の寿
命低下を抑えることが可能となる。
Further, when it is determined that the control data read from the control data storage unit is good, and if a RAM for storing and holding the good control data is provided, the control stored and held in the RAM is provided. By controlling the device using the operation data, it is possible to perform normal control of the device, and at the time of controlling the device, it is not necessary to read the control data from the non-volatile storage means at any time. Therefore, the number of times of reading the control data from the non-volatile storage means is reduced, and it is possible to prevent the life of the non-volatile storage means from being shortened.

【0023】また、前記の更新を行う所定のタイミング
を、前記マイクロコンピュータへの給電開始時とするこ
とで、前記不揮発性記憶手段の制御用データの更新が必
要限に抑えられ、該不揮発性記憶手段の寿命低下を抑え
ることが可能となる。
Further, by setting the predetermined timing for performing the updating as the start of power supply to the microcomputer, the updating of the control data in the non-volatile storage means can be suppressed as much as necessary, and the non-volatile storage can be suppressed. It is possible to suppress the decrease in the life of the means.

【0024】また、前記の更新に際して、全ての前記制
御用データ記憶部の制御用データが不良であると判断し
たとき、前記機器の作動を禁止せしめることで、万一、
全ての制御用データ記憶部の制御用データが不良となっ
た場合には、前記機器の異常な作動が行われる事態が回
避される。
In addition, when it is determined that all the control data in the control data storage unit are defective in the above update, the operation of the device is prohibited, so that
When the control data in all the control data storage units becomes defective, the abnormal operation of the device is avoided.

【0025】[0025]

【実施例】本発明の一実施例を図1乃至図3を参照して
説明する。図1は本実施例の機器制御装置のブロック構
成図、図2は図1の装置に備えたEEPROMに記憶保
持されるデータを説明するための説明図、図3は図1の
装置の作動を説明するためのフローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram of a device control apparatus of this embodiment, FIG. 2 is an explanatory view for explaining data stored and held in an EEPROM provided in the apparatus of FIG. 1, and FIG. 3 is an operation of the apparatus of FIG. It is a flow chart for explaining.

【0026】図1を参照して、本実施例の機器制御装置
は、例えば給湯器やファンヒータ等の燃焼機器を制御す
るための装置であり、1はマイクロコンピュータ、2は
電気的に書き込み可能な不揮発性記憶手段としてのEE
PROMである。
Referring to FIG. 1, a device control device of the present embodiment is a device for controlling a combustion device such as a water heater and a fan heater, and 1 is a microcomputer and 2 is electrically writable. As a non-volatile storage means
It is a PROM.

【0027】EEPROM2は、例えば3つの制御用デ
ータ記憶部A1,A2,A3と、指示データ記憶部3と
を備えている。制御用データ記憶部A1,A2,A3
は、マイクロコンピュータ1が燃焼機器の作動を制御す
るために必要な制御用データを記憶保持する部分であ
り、該燃焼機器の出荷時に互いに同一の制御用データが
記憶保持されている。この場合、図2に示すように、各
制御用データ記憶部A1,A2,A3には制御用データ
と共に、スタートワードデータ、エンドワードデータ及
びそれらのデータのビット値の総和を示すサムデータが
制御用データの良否を判断するためのチェック用データ
として記憶保持されている。ここで、スタートワードデ
ータ及びエンドワードデータは所定の決まったデータと
されている。
The EEPROM 2 includes, for example, three control data storage units A1, A2 and A3 and an instruction data storage unit 3. Control data storage units A1, A2, A3
Is a portion for storing and holding control data necessary for the microcomputer 1 to control the operation of the combustion equipment, and the same control data is stored and held at the time of shipment of the combustion equipment. In this case, as shown in FIG. 2, in each control data storage unit A1, A2, A3, together with control data, start word data, end word data, and sum data indicating the sum of bit values of those data are controlled. It is stored and held as check data for determining the quality of the work data. Here, the start word data and the end word data are predetermined fixed data.

【0028】また、指示データ記憶部3は、制御用デー
タの後述の更新(リフレッシュ)の際に、そのリフレッ
シュを行うべき一つの制御用データ記憶部A1又はA2
又はA3のアドレスを示す指示データを記憶保持する部
分であり、該燃焼機器の出荷時には例えば制御用データ
記憶部A1を示す指示データが記憶保持されている。
尚、以下説明に際して、指示データを符号Nを用いて総
称し、各制御用データ記憶部A1,A2,A3のアドレ
スを示す指示データNの値をそれぞれ“1”、“2”、
“3”として説明する。
Further, the instruction data storage unit 3 has one control data storage unit A1 or A2 to be refreshed when the control data is updated (refreshed) described later.
Alternatively, the instruction data indicating the address of A3 is stored and held, and the instruction data indicating, for example, the control data storage unit A1 is stored and held at the time of shipment of the combustion device.
In the following description, the instruction data will be generically referred to by using the symbol N, and the values of the instruction data N indicating the addresses of the control data storage units A1, A2, A3 will be "1", "2",
This will be described as "3".

【0029】マイクロコンピュータ1は、CPUやRA
M、ROM等を用いて構成されたものであり、その機能
的構成として、後述のリフレッシュに際してEEPRO
M2との間でデータの授受を行うための読出・書込制御
部4と、EEPROM2の制御用データ記憶部A1,A
2,A3から読出・書込制御部4により読み出された制
御用データを記憶保持するRAM5と、読み出された制
御用データの良否を判断するデータチェック部6と、E
EPROM2の指示データ記憶部3の指示データNを読
出・書込制御部4を介して適宜変更せしめる指示データ
変更部7と、マイクロコンピュータ1への給電が行われ
た時、それを検知する給電検知部8と、燃焼機器の作動
制御を行う運転制御部9とを備えている。
The microcomputer 1 includes a CPU and RA.
It is configured by using M, ROM, etc., and its functional configuration is EEPRO at the time of refreshing described later.
Read / write control unit 4 for exchanging data with M2, and control data storage units A1 and A of EEPROM 2
2, a RAM 5 for storing and holding the control data read by the read / write control unit 4 from A3; a data check unit 6 for judging the quality of the read control data;
An instruction data changing unit 7 that appropriately changes the instruction data N of the instruction data storage unit 3 of the EPROM 2 via the read / write control unit 4, and a power supply detection that detects when power is supplied to the microcomputer 1. The unit 8 and the operation control unit 9 that controls the operation of the combustion device are provided.

【0030】ここで、本発明の構成に対応して、読出・
書込制御部4及びデータチェック部6は読出・判断手段
10を構成し、読出・書込制御部4は制御用データ更新
手段11を構成し、読出・書込制御部4及び指示データ
変更部7は指示データ変更手段12を構成するものであ
る。
Here, in accordance with the configuration of the present invention, reading / reading
The write control unit 4 and the data check unit 6 configure the read / determination unit 10, the read / write control unit 4 configures the control data updating unit 11, and the read / write control unit 4 and the instruction data change unit. Reference numeral 7 constitutes the instruction data changing means 12.

【0031】次に、本実施例の機器制御装置の作動を説
明する。
Next, the operation of the device control apparatus of this embodiment will be described.

【0032】本実施例の機器制御装置においては、マイ
クロコンピュータ1への給電が行われる毎に、次のよう
にEEPROM2の各制御用データ記憶部A1〜A3の
制御用データの更新(リフレッシュ)が行われる。
In the device control apparatus of the present embodiment, every time the microcomputer 1 is supplied with power, the control data in the control data storage sections A1 to A3 of the EEPROM 2 is updated (refreshed) as follows. Done.

【0033】すなわち、図3を参照して、本実施例の燃
焼機器の電源が投入され、マイクロコンピュータ1(以
下、単にマイコン1という)やEEPROM2への給電
が開始すると(STEP1においてYES)、これがマ
イコン1の給電検知部8により検知され、この時、ま
ず、マイコン1の初期化が行われる(STEP2)。
That is, referring to FIG. 3, when the power supply of the combustion apparatus of this embodiment is turned on and power supply to the microcomputer 1 (hereinafter, simply referred to as the microcomputer 1) and the EEPROM 2 is started (YES in STEP 1), this is This is detected by the power supply detection unit 8 of the microcomputer 1, and at this time, the microcomputer 1 is first initialized (STEP 2).

【0034】次いで、マイコン1の読出・書込制御部4
は、EEPROM2の三つの制御用データ記憶部A1〜
A3のうち、記憶部A1から、それに記憶保持されてい
る制御用データを前記チェック用データと共に読み出
し、RAM5に格納する(STEP3)。
Next, the read / write controller 4 of the microcomputer 1
Are the three control data storage units A1 to A1 of the EEPROM 2.
Of the A3, the control data stored and held in the storage unit A1 is read out together with the check data and stored in the RAM 5 (STEP3).

【0035】そして、RAM5に格納された記憶部A1
の制御用データは、マイコン1のデータチェック部6に
よりその良否が判断される(STEP4)。この場合、
データチェック部6は、制御用データと共に読み出され
たチェック用データの良否を判断することで制御用デー
タの良否を判断する。すなわち、データチェック部6
は、前記スタートワードデータ及びエンドワードデータ
(図2参照)があらかじめ定められた所定のデータとな
っているか否か、さらにはそれらのワードデータと制御
用データとのビット値の総和である前記サムデータがあ
らかじめ定められた所定の条件を満たしているか否かを
検査し、その検査結果が良好であれば、制御用データは
良好であると判断する。このような判断を行うことで、
比較的簡単に制御用データの良否を判断することができ
る。尚、かかる判断において、記憶部A1の制御用デー
タやチェック用データが外乱ノイズ等により異常となっ
ていた場合や、該制御用データの読み出し時に読み出し
エラー等が生じた場合には、データチェック部6は、制
御用データが不良であると判断する。
The storage unit A1 stored in the RAM 5
The quality of the control data is checked by the data check unit 6 of the microcomputer 1 (STEP 4). in this case,
The data check unit 6 determines the quality of the control data by determining the quality of the check data read together with the control data. That is, the data check unit 6
Indicates whether or not the start word data and the end word data (see FIG. 2) are predetermined data, and further, the sum which is a sum of bit values of the word data and control data. It is inspected whether or not the data satisfies a predetermined condition, and if the inspection result is good, it is determined that the control data is good. By making such a judgment,
The quality of the control data can be determined relatively easily. In this determination, if the control data or check data in the storage unit A1 is abnormal due to disturbance noise or the like, or if a read error occurs when reading the control data, the data check unit 6 determines that the control data is defective.

【0036】ここで、STEP4の判断において、記憶
部A1の制御用データが良好であると判断された場合に
は、後述のリフレッシュ処理等(STEP10以降の処
理)が行われるのであるが、記憶部A1の制御用データ
が不良であると判断された場合には、マイコン1の読出
・書込制御部4は、さらに制御用データ記憶部A2の制
御用データをチェック用データと共に読み出し、それを
RAM5に新たに格納する(STEP5)。そして、R
AM5に新たに格納された制御用データの良否が前記デ
ータチェック部6によりSTEP4の場合と全く同様に
判断される(STEP6)。さらに、該STEP6の判
断において、記憶部A2の制御用データが不良であると
判断された場合には、マイコン1の読出・書込制御部4
は、さらに制御用データ記憶部A3の制御用データをチ
ェック用データと共に読み出してRAM5に新たに格納
し(STEP7)、そのRAM5に新たに格納された制
御用データの良否が前記データチェック部6によりST
EP4の場合と全く同様に判断される(STEP8)。
Here, if it is determined in STEP4 that the control data in the storage unit A1 is good, a refresh process and the like (processes after STEP10), which will be described later, are performed. When it is determined that the control data of A1 is defective, the read / write control unit 4 of the microcomputer 1 further reads the control data of the control data storage unit A2 together with the check data, and reads it out from the RAM 5 It is newly stored in (STEP 5). And R
The quality of the control data newly stored in the AM 5 is judged by the data check unit 6 in exactly the same manner as in STEP 4 (STEP 6). Further, when it is determined in STEP 6 that the control data in the storage unit A2 is defective, the read / write control unit 4 of the microcomputer 1
Further reads the control data from the control data storage unit A3 together with the check data and newly stores it in the RAM 5 (STEP 7), and the data check unit 6 determines whether the control data newly stored in the RAM 5 is good or bad. ST
The determination is made in the same manner as in the case of EP4 (STEP8).

【0037】このようにして、STEP3〜8までの制
御用データの読み出し及び判断は、読み出された制御用
データがデータチェック部6により良好であると判断さ
れるまで、各制御用データ記憶部A1〜A3に対して順
番に行われる。
In this way, the reading and judgment of the control data in STEPs 3 to 8 are carried out until the read data for control is judged by the data check unit 6 to be good. This is sequentially performed for A1 to A3.

【0038】尚、STEP8の判断において、記憶部A
3の制御用データが不良であると判断された場合、すな
わち、全ての記憶部A1〜A3の制御用データが不良で
あると判断された場合には、マイコン1は、本実施例の
燃焼機器の運転を禁止する処置をとり(STEP9)、
以後の処理を中止する。
In the determination of STEP8, the storage unit A
When it is determined that the control data of No. 3 is defective, that is, when the control data of all of the storage units A1 to A3 is determined to be defective, the microcomputer 1 determines that the combustion device of this embodiment is the same. Take measures to prohibit driving (STEP 9),
Subsequent processing is stopped.

【0039】前記STEP4、6、8のいずれかの判断
において、制御用データ記憶部A1,A2,A3のいず
れかから読み出された制御用データが良好であると判断
された場合には、マイコン1の読出・書込制御部4は、
次に、EEPROM2の指示データ記憶部3の指示デー
タNを読み出す(STEP10)。そして、読出・書込
制御部4は、RAM5に格納されている良好な制御用デ
ータを、三つの制御用データ記憶部A1〜A3のうち、
読み出した指示データNの値に対応する制御用データ記
憶部A1又はA2又はA3に前記チェック用データと共
に書き込み、これにより、指示データNの値に対応する
制御用データ記憶部A1又はA2又はA3の制御用デー
タをリフレッシュ(更新)する(STEP11〜1
5)。
If it is determined in any of STEPs 4, 6 and 8 that the control data read from any of the control data storage units A1, A2 and A3 is good, the microcomputer The read / write control unit 4 of
Next, the instruction data N in the instruction data storage unit 3 of the EEPROM 2 is read (STEP 10). Then, the read / write control unit 4 stores the good control data stored in the RAM 5 among the three control data storage units A1 to A3.
The control data storage unit A1 or A2 or A3 corresponding to the read value of the instruction data N is written together with the check data, whereby the control data storage unit A1, A2 or A3 corresponding to the value of the instruction data N is stored. Refresh (update) the control data (STEP 11 to 1)
5).

【0040】さらに詳細には、STEP10において読
み出した指示データNがN=1である場合には(STE
P11においてYES)、制御用データ記憶部A1に良
好な制御用データがRAM5から書き込まれ、該記憶部
A1がリフレッシュされる(STEP12)。また、指
示データNがN=2である場合には(STEP11でN
O、且つSTEP13でYES)、制御用データ記憶部
A2に良好な制御用データがRAM5から書き込まれ、
該記憶部A2がリフレッシュされる(STEP14)。
また、指示データNがN=3である場合には(STEP
13でNO)、制御用データ記憶部A3に良好な制御用
データがRAM5から書き込まれ、該記憶部A3がリフ
レッシュされる(STEP15)。
More specifically, when the instruction data N read in STEP 10 is N = 1 (STE
YES in P11), good control data is written from the RAM 5 to the control data storage unit A1, and the storage unit A1 is refreshed (STEP 12). When the instruction data N is N = 2 (N in STEP 11
O, and YES in STEP 13), good control data is written from the RAM 5 to the control data storage unit A2,
The storage unit A2 is refreshed (STEP 14).
If the instruction data N is N = 3 (STEP
(NO in 13), good control data is written from the RAM 5 to the control data storage unit A3, and the storage unit A3 is refreshed (STEP 15).

【0041】この場合、指示データ記憶部3の指示デー
タNの値は、マイコン1への初回の給電が行われる前に
は、N=1に初期設定されているのであるが、以下に説
明するように、マイコン1への給電が行われる毎に、該
指示データNの値は、N=1→2→3→1→2……とい
うように順番に変更される。
In this case, the value of the instruction data N in the instruction data storage unit 3 is initially set to N = 1 before the first power feeding to the microcomputer 1, but will be described below. As described above, every time the microcomputer 1 is supplied with power, the value of the instruction data N is sequentially changed as N = 1 → 2 → 3 → 1 → 2.

【0042】すなわち、STEP10において読み出し
た指示データNはマイコン1の指示データ変更部7に受
け渡され、この時、該指示データ変更部7は、指示デー
タNの値をN=1であるときには“2”に、N=2であ
るときには“3”に、N=3であるときには“1”に変
更し(STEP16〜18)、その変更した指示データ
Nの値を読出・書込制御部4によりEEPROM2の指
示データ記憶部3に書き込む(STEP19)。これに
より、指示データ記憶部3の指示データNの値は、マイ
コン1への給電が行われる毎に、N=1→2→3→1→
2……というように順番に変更され、従って、各制御用
データ記憶部A1〜A3の制御用データは、マイコン1
への給電が行われる毎に、順番にリフレッシュされる。
That is, the instruction data N read out in STEP 10 is transferred to the instruction data changing unit 7 of the microcomputer 1. At this time, the instruction data changing unit 7 indicates "1" when the value of the instruction data N is N = 1. 2 ", when N = 2, it is changed to" 3 ", and when N = 3, it is changed to" 1 "(STEPs 16 to 18), and the changed value of the instruction data N is set by the read / write control unit 4. The data is written in the instruction data storage unit 3 of the EEPROM 2 (STEP 19). Thus, the value of the instruction data N in the instruction data storage unit 3 is N = 1 → 2 → 3 → 1 → every time the microcomputer 1 is powered.
2 ... In this order, the control data in the control data storage units A1 to A3 are stored in the microcomputer 1
Each time the power is supplied to, refresh is performed in order.

【0043】そして、前述のように指示データ記憶部3
の指示データNの変更が行われた後には、運転制御モー
ドに移行し(STEP20)、この運転制御モードにお
いては、マイコン1の運転制御部9による燃焼機器の運
転制御が行われる。この場合、運転制御部9は、最終的
にRAM5に格納された良好な制御用データを用いて燃
焼機器の運転制御を行う。
Then, as described above, the instruction data storage unit 3
After the instruction data N is changed, the operation control mode is shifted to (STEP 20), and in this operation control mode, the operation control unit 9 of the microcomputer 1 controls the operation of the combustion equipment. In this case, the operation control unit 9 finally controls the operation of the combustion device using the good control data stored in the RAM 5.

【0044】かかる本実施例の機器制御装置において
は、あらかじめ同一の制御用データを記憶保持した複数
の制御用データ記憶部A1〜A3がEEPROM2に設
けられているため、それらの記憶部A1〜A3のうちの
少なくとも一つの記憶部については、外乱ノイズ等の影
響を受けずに良好な状態で正規の制御用データが記憶保
持されており、また、該制御用データが読み出しエラー
等を生じることなく良好な状態でマイコン1の読出・書
込制御部4により読み出されてRAM5に格納されると
考えられる。従って、基本的には、前記STEP3〜8
までの処理を行うことで、良好な制御用データを得るこ
とができる。そして、このように得られた良好な制御用
データを用いて燃焼機器の運転制御が行われるので、該
燃焼機器を確実に正常な状態でもって作動させることが
できる。また、万が一、全ての記憶部A1〜A3の制御
用データが異常を来していた場合には、燃焼機器の運転
が禁止されるので、燃焼機器の予期に反した作動が確実
に回避される。
In the device control apparatus of this embodiment, since the EEPROM 2 is provided with a plurality of control data storage units A1 to A3 in which the same control data is stored in advance, the storage units A1 to A3 are provided. In at least one of the storage units, the normal control data is stored and held in a good state without being affected by disturbance noise and the like, and the control data does not cause a read error or the like. It is considered that the data is read by the read / write control unit 4 of the microcomputer 1 in a good state and stored in the RAM 5. Therefore, basically, the above STEP3 ~ 8
By performing the processing up to, good control data can be obtained. Since the operation control of the combustion equipment is performed using the good control data obtained in this way, the combustion equipment can be reliably operated in a normal state. Further, in the unlikely event that the control data in all the storage units A1 to A3 is abnormal, the operation of the combustion equipment is prohibited, so that unexpected operation of the combustion equipment is surely avoided. .

【0045】また、上記のように得られた良好な制御用
データが、マイコン1への給電が行われる毎に、各制御
用データ記憶部A1〜A3に順番に書き込まれていくの
で、仮にいずれかの制御用データ記憶部の制御用データ
の異常やレベル低下等が生じていても、正常な制御用デ
ータでもってリフレッシュすることができる。この場
合、各制御用データ記憶部A1〜A3への書き込み時に
書き込みエラー等により誤ったデータが書き込まれるこ
とがあり得るが、他の制御用データ記憶部の制御用デー
タが良好である限り、いずれ、正常な制御用データでも
ってリフレッシュされるので支障はない。
Further, since the good control data obtained as described above is sequentially written in the control data storage units A1 to A3 each time the microcomputer 1 is supplied with power, it is assumed that Even if the control data stored in the control data storage unit is abnormal or its level is lowered, it can be refreshed with the normal control data. In this case, erroneous data may be written due to a write error or the like when writing to the control data storage units A1 to A3, but as long as the control data in the other control data storage units is good, Since it is refreshed with normal control data, there is no problem.

【0046】また、マイコン1への給電毎に行われる一
回のリフレッシュ処理に際して、各制御用データ記憶部
A1〜A3からの制御用データの読み出しは、高々一回
であると共に、制御用データの書き込みは制御用データ
記憶部A1〜A3のいずれか一つに対してのみであり、
さらに、燃焼機器の運転時には、EEPROM2からの
データの読み出しを行うことなく、RAM5に格納され
た良好な制御用データを用いて運転制御が行われるの
で、EEPROM2のデータの読み出しや書き込みの回
数は少なく、従って、EEPROM2の寿命低下を防止
することができる。
In addition, in one refresh process performed each time power is supplied to the microcomputer 1, the control data is read from each of the control data storage units A1 to A3 at most once, and the control data is read at most once. Writing is only to any one of the control data storage units A1 to A3,
Furthermore, since the operation control is performed using the good control data stored in the RAM 5 without reading the data from the EEPROM 2 during the operation of the combustion equipment, the number of times of reading and writing the data of the EEPROM 2 is small. Therefore, it is possible to prevent the life of the EEPROM 2 from being shortened.

【0047】尚、本実施例においては、燃焼機器の制御
装置を例にとって説明したが、これに限らず、電気的に
書き込み可能な不揮発性記憶手段に記憶保持した制御用
データを用いて機器の制御を行うような各種の機器にお
いて、本発明を適用することが可能であることはもちろ
んである。
In the present embodiment, the control apparatus for the combustion equipment has been described as an example, but the present invention is not limited to this, and the control data stored and held in the electrically writable non-volatile storage means is used to control the equipment. It is needless to say that the present invention can be applied to various kinds of devices that perform control.

【0048】また、本実施例では、EEPROM2に備
えた制御用データ記憶部A1〜A3の個数を3個とした
が、さらに多くの制御用データ記憶部を備えてもよいこ
とはもちろんである。
Further, in this embodiment, the number of the control data storage units A1 to A3 provided in the EEPROM 2 is three, but it goes without saying that more control data storage units may be provided.

【0049】[0049]

【発明の効果】上記の説明から明らかなように、本発明
によれば、電気的に書き込み可能な不揮発性記憶手段に
複数の制御用データ記憶部と指示データ記憶部とを備
え、制御用データ記憶部のリフレッシュ(更新)に際し
て、マイクロコンピュータにより、良好な制御用データ
が得られるまで前記複数の制御用データ記憶部から順
次、制御用データを読み出すと共に、読み出された良好
な制御用データを指示データ記憶部の指示データにより
示される制御用データ記憶部に書き込んで、該制御用デ
ータ記憶部のリフレッシュを行い、さらに、リフレッシ
ュを行う毎に指示データ記憶部の指示データを変更する
ようにしたことによって、読み出しエラーや書き込みエ
ラー、外乱ノイズ等により制御用データ記憶部の制御用
データに異常が生じても、不揮発性記憶手段の各制御用
データ記憶部のリフレッシュを行いつつ可能な限り良好
な制御用データを不揮発性記憶手段に記憶保持させてお
くことができ、これにより、マイクロコンピュータによ
る機器の作動制御を確実に正常に行うことができる。ま
た、一回のリフレッシュ処理に際して、不揮発性記憶手
段のデータの読み出し回数や書き込み回数は少ないもの
となるので、不揮発性記憶手段の寿命低下を防止するこ
とができる。
As is apparent from the above description, according to the present invention, the electrically writable non-volatile storage means is provided with the plurality of control data storage portions and the instruction data storage portion, and the control data is stored. At the time of refreshing (updating) the storage section, the microcomputer sequentially reads the control data from the plurality of control data storage sections until the good control data is obtained, and the read good control data is read. The control data storage unit indicated by the instruction data in the instruction data storage unit is written, the control data storage unit is refreshed, and the instruction data in the instruction data storage unit is changed every time the refresh is performed. This causes an error in the control data in the control data storage unit due to a read error, write error, disturbance noise, etc. As much as possible control data can be stored and held in the non-volatile storage means while refreshing each control data storage section of the non-volatile storage means, whereby the operation control of the device by the microcomputer can be performed. Can be surely performed normally. In addition, since the number of times of reading and writing the data in the non-volatile storage means is small in one refresh process, it is possible to prevent the life of the non-volatile storage means from being shortened.

【0050】また、前記各制御用データ記憶部に、前記
制御用データと共に所定のチェック用データを書き込ん
でおくことで、各制御用データ記憶部の制御用データの
良否の判断をチェック用データの良否を判断することに
より容易に行うことができる。
Further, by writing predetermined check data together with the control data in each control data storage unit, it is possible to determine whether the control data in each control data storage unit is good or bad. This can be easily performed by judging pass / fail.

【0051】また、リフレッシュに際して得られた良好
な制御用データをRAMに記憶保持し、そのRAMに記
憶保持した制御用データを用いて機器の作動を制御し
て、作動制御の際に制御用データを不揮発性記憶手段が
随時読み出すような作動を不要とし、さらに、前記のリ
フレッシュ処理をマイクロコンピュータへの給電開始時
として、そのリフレッシュ処理を必要限に止めたことに
よって、不揮発性記憶手段に対する読み出し等のアクセ
スを可能な限り少ないものとすることができ、従って、
不揮発性記憶手段の寿命低下を防止することができる。
Further, good control data obtained at the time of refreshing is stored and held in the RAM, and the operation of the device is controlled by using the control data stored and held in the RAM. The non-volatile storage means does not need to be read out at any time, and the refresh processing is stopped as necessary at the time of starting the power supply to the microcomputer. Can be accessed as little as possible, thus
It is possible to prevent the life of the non-volatile storage means from being shortened.

【0052】さらに、前記のリフレッシュに際して、全
ての前記制御用データ記憶部の制御用データが不良であ
ると判断されたときには、機器の作動を禁止せしめるよ
うにしたことによって、機器の異常な作動を確実に回避
することができる。
Further, in the above refresh, when it is determined that the control data in all the control data storage sections are defective, the operation of the device is prohibited so that the abnormal operation of the device is prevented. It can be avoided without fail.

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

【図1】本発明の機器制御装置の一例のブロック構成
図。
FIG. 1 is a block configuration diagram of an example of a device control apparatus of the present invention.

【図2】図1の装置に備えたEEPROMに記憶保持さ
れるデータを説明するための説明図。
2 is an explanatory diagram for explaining data stored and held in an EEPROM provided in the apparatus of FIG.

【図3】図1の装置の作動を説明するためのフローチャ
ート。
3 is a flow chart for explaining the operation of the apparatus of FIG.

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

1…マイクロコンピュータ、2…EEPROM(不揮発
性記憶手段)、3…指示データ記憶部、10…読出・判
断手段、11…制御用データ更新手段、12…指示デー
タ変更手段、A1〜A3…制御用データ記憶部、5…R
AM。
DESCRIPTION OF SYMBOLS 1 ... Microcomputer, 2 ... EEPROM (nonvolatile storage means), 3 ... instruction data storage part, 10 ... reading / judging means, 11 ... control data updating means, 12 ... instruction data changing means, A1 to A3 ... for control Data storage unit, 5 ... R
AM.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】あらかじめ制御用データを記憶保持した電
気的に書き込み可能な不揮発性記憶手段と、該制御用デ
ータを用いて機器の作動を制御するマイクロコンピュー
タとを備えた機器制御装置において、 互いに同一の前記制御用データがあらかじめ書き込まれ
た複数の制御用データ記憶部と、該複数の制御用データ
記憶部のうち、制御用データの更新をすべき制御用デー
タ記憶部を示す指示データがあらかじめ書き込まれた指
示データ記憶部とを前記不揮発生記憶手段に備え、 所定のタイミングで前記複数の制御用データ記憶部から
順次前記制御用データを読み出すと共に読み出した制御
用データの良否を判断し、その読み出し及び判断を良好
な制御用データが得られるまで行う読出・判断手段と、
良好な制御用データが得られたとき、前記指示データ記
憶部の指示データにより示される制御用データ記憶部に
該良好な制御用データを書き込んで該制御用データ記憶
部のデータを更新する制御用データ更新手段と、該制御
用データ記憶部のデータを更新したとき、該制御用デー
タ記憶部を示す前記指示データを他の制御用データ記憶
部を示す指示データに変更して前記指示データ記憶部に
書き込む指示データ変更手段とを前記マイクロコンピュ
ータに備えたことを特徴とする機器制御装置。
1. An equipment control device comprising an electrically writable non-volatile storage means for storing and holding control data in advance, and a microcomputer for controlling the operation of the equipment using the control data. A plurality of control data storage units in which the same control data is written in advance and instruction data indicating a control data storage unit of the plurality of control data storage units that should update the control data are stored in advance. The written instruction data storage unit is provided in the nonvolatile raw storage unit, the control data is sequentially read from the plurality of control data storage units at a predetermined timing, and the quality of the read control data is determined. A reading / determining means for performing reading and determination until good control data is obtained;
When good control data is obtained, the good control data is written in the control data storage section indicated by the instruction data in the instruction data storage section, and the data in the control data storage section is updated. When the data updating means and the data in the control data storage unit are updated, the instruction data indicating the control data storage unit is changed to instruction data indicating another control data storage unit to change the instruction data storage unit. And a command data changing unit for writing to the microcomputer.
【請求項2】前記各制御用データ記憶部には、前記制御
用データと共に所定のチェック用データが書き込まれ、
前記マイクロコンピュータの読出・判断手段は、該チェ
ック用データの良否を判断することにより前記制御用デ
ータの良否を判断することを特徴とする請求項1記載の
機器制御装置。
2. A predetermined check data is written together with the control data in each of the control data storage sections,
2. The device control apparatus according to claim 1, wherein the reading / determination means of the microcomputer determines the quality of the control data by determining the quality of the check data.
【請求項3】前記マイクロコンピュータは、前記制御用
データ記憶部から読み出された制御用データが良好であ
ると判断したとき、その良好な制御用データを記憶保持
するRAMを備え、該RAMに記憶保持された制御用デ
ータを用いて前記機器の作動制御を行うことを特徴とす
る請求項1又は2記載の機器制御装置。
3. When the control data read from the control data storage unit is judged to be good, the microcomputer comprises a RAM for storing and holding the good control data, and the RAM is provided in the RAM. The device control apparatus according to claim 1 or 2, wherein operation control of the device is performed using stored and held control data.
【請求項4】前記所定のタイミングは、前記マイクロコ
ンピュータへの給電開始時としたことを特徴とする請求
項1乃至3のいずれかに記載の機器制御装置。
4. The device control apparatus according to claim 1, wherein the predetermined timing is when power supply to the microcomputer is started.
【請求項5】前記マイクロコンピュータは、全ての前記
制御用データ記憶部の制御用データが不良であると判断
したとき、前記機器の作動を禁止せしめることを特徴と
する請求項1乃至4のいずれかに記載の機器制御装置。
5. The microcomputer according to claim 1, wherein when the control data in all the control data storage units is judged to be defective, the microcomputer prohibits the operation of the device. The device control device according to claim 1.
JP7872294A 1994-04-18 1994-04-18 Equipment controller Pending JPH07287672A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP7872294A JPH07287672A (en) 1994-04-18 1994-04-18 Equipment controller
KR1019950001335A KR0154374B1 (en) 1994-04-18 1995-01-25 Equipment controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7872294A JPH07287672A (en) 1994-04-18 1994-04-18 Equipment controller

Publications (1)

Publication Number Publication Date
JPH07287672A true JPH07287672A (en) 1995-10-31

Family

ID=13669780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7872294A Pending JPH07287672A (en) 1994-04-18 1994-04-18 Equipment controller

Country Status (2)

Country Link
JP (1) JPH07287672A (en)
KR (1) KR0154374B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009217701A (en) * 2008-03-12 2009-09-24 Denso Corp Memory storage device and system
JP2011216082A (en) * 2010-03-18 2011-10-27 Kyocera Mita Corp Storage control device, image forming apparatus, and storage control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS633126A (en) * 1986-06-24 1988-01-08 Toshiba Corp Control of combustion apparatus
JPH033859A (en) * 1989-05-30 1991-01-09 Fuji Photo Film Co Ltd Collected bundle receiving/delivery device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS633126A (en) * 1986-06-24 1988-01-08 Toshiba Corp Control of combustion apparatus
JPH033859A (en) * 1989-05-30 1991-01-09 Fuji Photo Film Co Ltd Collected bundle receiving/delivery device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009217701A (en) * 2008-03-12 2009-09-24 Denso Corp Memory storage device and system
JP2011216082A (en) * 2010-03-18 2011-10-27 Kyocera Mita Corp Storage control device, image forming apparatus, and storage control method

Also Published As

Publication number Publication date
KR0154374B1 (en) 1998-11-16
KR950029981A (en) 1995-11-24

Similar Documents

Publication Publication Date Title
US8023350B2 (en) Memory malfunction prediction system and method
US7861138B2 (en) Error correction in memory devices
US6590816B2 (en) Integrated memory and method for testing and repairing the integrated memory
US20130010557A1 (en) Memory repair systems and methods for a memory having redundant memory
KR100736288B1 (en) Nonvolatile memory device with redundancy cells for substituting defect cells
JP5127737B2 (en) Semiconductor device
US20090187305A1 (en) Method of detecting manipulation of a programmable memory device of a digital controller
JP4227149B2 (en) Information storage method for electronic control unit
JP2002082841A (en) Control data storage device of electronic controller
JPH06214891A (en) Circuit and method for masking of data
JP2010067098A (en) Information processor, information processing method, and information processing program
JP2001236792A (en) Refresh method for fixed value memory, its refresh device, and digital control device
JP2003002132A (en) Vehicle control device
KR100646919B1 (en) Semiconductor memory device and method for initializing the same
JPH07287672A (en) Equipment controller
JP2830302B2 (en) Automotive control device
JP3106947B2 (en) Nonvolatile semiconductor memory device
US6973530B2 (en) Method for writing and erasing a non-volatile memory area
US20070234162A1 (en) Integrated Semiconductor Memory and Methods for Testing and Operating the Same
US20080117696A1 (en) Method for repairing defects in memory and related memory system
US11455218B2 (en) Memory system
JP4543317B2 (en) Nonvolatile memory data control method
JPH0784894A (en) Method for writing nonvolatile memory
JPH03110650A (en) Eeprom check system
JPH07122087A (en) Eeprom error check system