JPH0748171B2 - Control method using a microcomputer - Google Patents

Control method using a microcomputer

Info

Publication number
JPH0748171B2
JPH0748171B2 JP1135674A JP13567489A JPH0748171B2 JP H0748171 B2 JPH0748171 B2 JP H0748171B2 JP 1135674 A JP1135674 A JP 1135674A JP 13567489 A JP13567489 A JP 13567489A JP H0748171 B2 JPH0748171 B2 JP H0748171B2
Authority
JP
Japan
Prior art keywords
power failure
data
microcomputer
check data
control
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 - Fee Related
Application number
JP1135674A
Other languages
Japanese (ja)
Other versions
JPH031209A (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.)
Osaka Gas Co Ltd
Rinnai Corp
Original Assignee
Osaka Gas Co Ltd
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 Osaka Gas Co Ltd, Rinnai Corp filed Critical Osaka Gas Co Ltd
Priority to JP1135674A priority Critical patent/JPH0748171B2/en
Publication of JPH031209A publication Critical patent/JPH031209A/en
Publication of JPH0748171B2 publication Critical patent/JPH0748171B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

【発明の詳細な説明】 [利用分野及び発明の概要] 本発明は、マイクロコンピュータを用いた制御方法、特
に、停電対策を考慮した制御方法に関するもので、例え
ば炊飯器等に利用できる。
DETAILED DESCRIPTION OF THE INVENTION [Field of Use and Outline of the Invention] The present invention relates to a control method using a microcomputer, and particularly to a control method in consideration of measures against power failure, and can be used for, for example, a rice cooker.

本発明の概要は、マイクロコンピュータのメモリ中に書
き込んだデータを停電時に消失・変化しないようにバッ
クアップするコンデンサの放電を少なくし、これによ
り、長期停電が生じてもこれに対応できるようにしたも
のである。
The outline of the present invention is to reduce the discharge of a capacitor that backs up the data written in the memory of the microcomputer so as not to be lost / changed at the time of power failure, and thereby to cope with a long-term power failure. Is.

[従来技術及び課題] 内蔵したマイクロコンピュータ(以下、マイコンと略称
する)を利用して動作制御する器具として例えば炊飯器
があるが、該炊飯器には、記憶させた停電発生時の器具
制御状態に応じて停電解除後の器具制御を選択させ得る
ようになった停電対策機能を具備する器具がある。
[Prior Art and Problem] For example, there is a rice cooker as a device for controlling the operation using a built-in microcomputer (hereinafter, abbreviated as a microcomputer). The rice cooker has a stored device control state when a power failure occurs. There is a device equipped with a power failure countermeasure function which allows the user to select the device control after the power failure is released.

上記停電対策が施された器具では、器具制御用のマイコ
ンをバックアップ電源でバックアップし、これにより、
停電発生時の制御状態を示す制御データを停電発生後も
消失しないようにしている。そして、業務用のタイマ式
炊飯器等の制御装置では、休日等に電源遮断されても器
具制御や器具監視を支障なく継続させる必要があること
から、該制御装置では、長時間停電に対する対策が必要
となる。
In the appliances that have been provided with the above measures against power failure, the microcomputer for controlling the appliances is backed up by a backup power supply,
The control data indicating the control status at the time of power failure is not lost even after the power failure. In a control device such as a timer type rice cooker for business use, it is necessary to continue device control and device monitoring without interruption even when the power is cut off on holidays, etc. Will be needed.

上記長時間停電に対する対策が施された制御装置として
は例えば第3図に示す如きものがあり、このものでは、
制御装置内に組込まれたマイコン(1)は、補助電源用
コンデンサ(81)を具備する電源回路(3)からの電気
供給によって動作するようになっている。そして、該マ
イコン(1)の停電信号入力ポート(10)には、停電検
知回路(2)の出力が印加されている。又、上記電源回
路(3)からの電気供給によって比較的大容量(1〜3F
程度)のバックアップコンデンサ(4)が充電されるよ
うになっており、該バックアップコンデンサ(4)の両
端電圧は、必要データを記憶するランダムアクセスメモ
リ(メモリー群と言う)(5)に印加されてこれをバッ
クアップし、これにより、停電時における上記メモリー
群(5)内のデータが保持されるようになっている。更
に、上記バックアップコンデンサ(4)の両端電圧は停
電継続時間を測定する時計(7)に印加されている。
As a control device provided with measures against the above-mentioned long-term power failure, for example, there is a control device as shown in FIG.
The microcomputer (1) incorporated in the control device is operated by the electric power supply from the power supply circuit (3) including the auxiliary power supply capacitor (81). The output of the power failure detection circuit (2) is applied to the power failure signal input port (10) of the microcomputer (1). In addition, a relatively large capacity (1 to 3F) is obtained by supplying electricity from the power supply circuit (3).
Backup capacitor (4) is charged, and the voltage across the backup capacitor (4) is applied to a random access memory (referred to as a memory group) (5) that stores necessary data. This is backed up so that the data in the memory group (5) at the time of power failure can be retained. Furthermore, the voltage across the backup capacitor (4) is applied to a clock (7) for measuring the duration of power failure.

又、上記バックアップコンデンサ(4)の両端電圧は、
抵抗(61),(61),ツエナダイオード(69)及びコン
パレータ(60)から成る電圧監視回路(6)によって監
視されていると共に、該電圧監視回路(6)の出力はマ
イコン(1)のリセット端子(12)に印加されている。
The voltage across the backup capacitor (4) is
It is monitored by a voltage monitoring circuit (6) consisting of resistors (61), (61), a zener diode (69) and a comparator (60), and the output of the voltage monitoring circuit (6) is reset by the microcomputer (1). Applied to terminal (12).

このものでは、停電発生時の器具制御状態を示す制御デ
ータが書き込まれているメモリー群(5)はバックアッ
プコンデンサ(4)によってバックアップされているこ
とから、停電が発生しても、上記メモリー群(5)内に
書き込まれた前記制御データが消失することはない。従
って、停電が終って停電検知回路(2)から停電解除信
号が出たときに、前記記憶データを調べることによっ
て、停電発生時に於ける器具制御状態が判断でき、これ
により、上記停電発生時の器具制御状態に応じて停電終
了後の器具制御を続行させることができる。
In this case, since the memory group (5) in which the control data indicating the device control state at the time of power failure is written is backed up by the backup capacitor (4), even if a power failure occurs, the memory group ( The control data written in 5) will not be lost. Therefore, when the power outage detection circuit (2) outputs the power outage cancellation signal after the power outage ends, the stored data can be examined to determine the appliance control state at the time of the power outage. It is possible to continue the appliance control after the power outage according to the appliance control state.

そして、上記した制御装置では、バックアップコンデン
サ(4)の能力を越える長時間停電が発生してメモリー
群(5)内に書き込まれた必要データが消失や変化する
恐れが生じると、上記バックアップコンデンサ(4)の
電圧低下を電圧監視回路(6)が検知し、該検知信号に
よってマイコン(1)がリセットせしめられて、器具が
停止状態に保持される。これにより、長時間停電中にメ
モリー群(5)内の制御データが変化して停電解除後に
器具が誤動作する危険が防止できることとなる。
In the control device described above, if a long-time power failure that exceeds the capacity of the backup capacitor (4) occurs and the necessary data written in the memory group (5) may be lost or changed, the backup capacitor ( The voltage monitoring circuit (6) detects the voltage drop of 4), the microcomputer (1) is reset by the detection signal, and the instrument is held in a stopped state. As a result, it is possible to prevent the risk that the control data in the memory group (5) changes during a long power failure and the device malfunctions after the power failure is released.

ところが、上記従来のものでは、停電発生時の制御状態
を示す制御データが書き込まれたメモリー群(5)をバ
ックアップする為のバックアップコンデンサ(4)の電
圧は、該メモリー群(5)や停電継続時間を測定する時
計(7)に印加されているだけでなく、更に、上記コン
デンサ(4)の電圧は、抵抗(61),(61),ツエナダ
イオード(69)及びコンパレータ(60)から成る電圧監
視回路(6)に印加されている。即ち、上記単一のバッ
クアップコンデンサ(4)からの電気供給によって作動
せしめられる部品としては、メモリー群(5)や時計
(7)以外に、上記バックアップコンデンサ(4)の電
圧を監視する電圧監視回路(6)が存在するのである。
そして、上記電圧監視回路(6)は抵抗(61),(61)
やコンパレータ(60)等の複数の素子で構成されている
ことから、該電圧監視回路(6)は、バックアップコン
デンサ(4)に蓄えられた電気を多量に消費し、その分
だけ上記バックアップコンデンサ(4)によるバックア
ップ時間が短くなってしまうと言う問題があった。
However, in the above-mentioned conventional one, the voltage of the backup capacitor (4) for backing up the memory group (5) in which the control data indicating the control state at the time of power failure has been written is set to In addition to being applied to the time measuring clock (7), the voltage of the capacitor (4) is a voltage composed of resistors (61), (61), a zener diode (69) and a comparator (60). It is applied to the monitoring circuit (6). That is, as a component operated by the electric power supplied from the single backup capacitor (4), a voltage monitoring circuit for monitoring the voltage of the backup capacitor (4) other than the memory group (5) and the clock (7). (6) exists.
The voltage monitoring circuit (6) includes resistors (61) and (61).
The voltage monitoring circuit (6) consumes a large amount of electricity stored in the backup capacitor (4) because it is composed of a plurality of elements such as a comparator and a comparator (60). There was a problem that the backup time due to 4) would be shortened.

本発明は、かかる点に鑑みて成されたもので、『停電の
発生及び解除を検知する停電検知回路(2)と、電源回
路(3)からの供給電気によって充電され且つマイコン
(1)の電源端子(19)に接続される補助電源用コンデ
ンサと、これと同じく電源回路(3)からの供給電気に
よって充電されるバックアップコンデンサ(4)と、更
に、該バックアップコンデンサ(4)からの供給電気に
よってバックアップされ且つ停電発生時に於ける被制御
物の制御状態を示す制御データを記憶するメモリー群
(5)を設け、上記バックアップコンデンサ(4)のバ
ックアップ能力を越える長時間停電があったときにはマ
イコン(1)をリセット状態に保持するようにし、他
方、上記バックアップコンデンサ(4)のバックアップ
能力範囲内の短時間停電が解除された場合にはメモリー
群(5)に記憶させた停電発生時の制御データを用いて
後の制御を継続するようにしたもの』において、バック
アップコンデンサ(4)の電圧を監視する電圧監視回路
(6)を不要にすることにより上記コンデンサ(4)に
蓄えられた電気を消費する量を少なくし、これにより、
バックアップコンデンサ(4)によるバックアップ時間
を長くし得るようにすることをその課題とする。
The present invention has been made in view of the above point, and includes a "power failure detection circuit (2) for detecting the occurrence and cancellation of a power failure, and a microcomputer (1) that is charged by electricity supplied from a power supply circuit (3). A capacitor for auxiliary power supply connected to the power supply terminal (19), a backup capacitor (4) which is charged by the power supplied from the power supply circuit (3), and the power supplied from the backup capacitor (4). A memory group (5) for storing control data indicating the control status of the controlled object at the time of power failure is provided by the microcomputer (5) when there is a long power failure exceeding the backup capacity of the backup capacitor (4). 1) is held in a reset state, while the backup capacitor (4) is stopped for a short time within the backup capacity range. When the power is released, the control data stored in the memory group (5) is used to continue the subsequent control by using the control data at the time of power failure ”. By eliminating the circuit (6), the amount of electricity stored in the capacitor (4) is reduced, and
The task is to make the backup time by the backup capacitor (4) longer.

[手段] 上記課題を解決するための本発明の技術的手段は、『メ
モリー群(5)中に点在するチェックデータ用メモリ
(51),(51)・・を設けると共に、予め設定されたチ
ェックデータ(D1),(D2)・・を停電発生前又は発生
直後に上記チェックデータ用メモリ(51),(51)・・
に各別に書き込むチェックデータ書込みステップと、停
電解除後には上記チェックデータ用メモリ(51),(5
1)・・内の記憶データを読み出す読出しステップと、
更に、この読み出したデータと予め設定してある上記チ
ェックデータ(D1),(D2)・・の整合性を各別に調べ
る比較ステップとをこの順序で実行させ、上記比較ステ
ップを実行させた結果上記対比する2種類のデータの少
なくとも一組が互いに一致しないときにはマイコン
(1)をリセットさせるようにした』ことである。
[Means] A technical means of the present invention for solving the above-mentioned problem is to provide "check data memories (51), (51), ... interspersed in the memory group (5) and set in advance. Check data (D1), (D2), ... Check data memory (51), (51) ,.
Check data writing step to write to each separately, and the above check data memory (51), (5
1) ... Read step of reading the stored data in
Further, a comparison step for individually checking the consistency between the read data and the preset check data (D1), (D2), ... Is executed in this order, and the comparison step is executed. When at least one set of two types of data to be compared do not match each other, the microcomputer (1) is reset. ”

[作用] 上記技術的手段は次のように作用する。[Operation] The above technical means operates as follows.

マイコン(1)を作動させると、その作動初期又は後述
する停電発生直後にメモリー群(5)へのチェックデー
タの書き込み作業が行なわれる。
When the microcomputer (1) is operated, the check data is written in the memory group (5) at the initial stage of the operation or immediately after the occurrence of a power failure described later.

即ち、マイコン(1)の作動初期にチェックデータの書
き込みを行なう場合には、電源回路(3)からの供給電
気によって作動する上記マイコン(1)が書き込みステ
ップを実行することによって、メモリー群(5)中に点
在させたチェックデータ用メモリ(51),(51)・・に
予め設定されているチェックデータ(D1),(D2)・・
を書き込むのである。又、停電発生直後に上記チェック
データ(D1),(D2)・・の書き込みを行なう場合に
は、停電発生直後の暫くの間だけマイコン(1)の電源
として機能する補助電源用コンデンサによって該マイコ
ン(1)が動作し、該動作するマイコン(1)は書き込
みステップを実行する。又、メモリー群(5)には、既
述従来のものと同様に、停電発生時の制御データが書き
込まれる。
That is, when the check data is written in the initial stage of the operation of the microcomputer (1), the microcomputer (1) which is operated by the electricity supplied from the power supply circuit (3) executes the write step, and the memory group (5 Check data (D1), (D2) ... that are preset in the check data memories (51), (51) ..
To write. Further, when the above check data (D1), (D2) ... Is written immediately after the occurrence of a power failure, the microcomputer for auxiliary power supply that functions as the power source of the microcomputer (1) for a while immediately after the occurrence of a power failure uses the microcomputer. (1) operates, and the operating microcomputer (1) executes the writing step. Further, in the memory group (5), control data when a power failure occurs is written in the same way as the conventional one.

これにより、停電が継続している状態では、上記停電発
生時の制御データとチェックデータを記憶するメモリー
群(5)は、バックアップコンデンサ(4)によってバ
ックアップされた状態に維持せしめられる。そして、後
述する停電解除後は、上記チェックデータが消失・変化
していないか否かを調べる後述の動作によって、発生し
た停電がバックアップコンデンサ(4)の能力範囲内の
停電であったか否かが判断されるようになっている。
As a result, in the state where the power failure continues, the memory group (5) storing the control data and the check data at the time of the power failure is maintained in the state backed up by the backup capacitor (4). Then, after the power failure described later, it is determined whether or not the power failure that occurred is a power failure within the capacity of the backup capacitor (4) by the operation described later that checks whether or not the check data has been lost or changed. It is supposed to be done.

さて、停電が解除されて電源回路(3)からの電気供給
によってマイコン(1)が再動作し始めると、この停電
解除時に読み出しステップが実行され、これにより、チ
ェックデータ用メモリー(51),(51)が記憶している
データの読み出しが行なわれる。そして、該読み出した
データと停電発生直後等にメモリー群(5)に書き込む
為に予め設定してあったチェックデータ(D1),(D2)
・・とが一致するか否かを比較する比較ステップが実行
され、これにより、これら両データの整合性が調べられ
る。
Now, when the power failure is released and the microcomputer (1) starts to operate again by the electric power supply from the power supply circuit (3), the reading step is executed when the power failure is released, and the check data memory (51), ( The data stored in 51) is read. Then, the read data and the check data (D1) and (D2) that have been set in advance to be written in the memory group (5) immediately after the occurrence of the power failure.
.. A comparison step is performed which compares whether and match with, thereby checking the consistency of both these data.

そして、停電発生直後又はそれ以前にチェックデータ用
メモリ(51),(51)に書き込んだチェックデータと停
電解除後に上記チェックデータ用メモリ(51),(51)
から読み出したデータとが総て一致している場合には、
メモリー群(5)に記憶させている総てのデータ(停電
発生前の制御状態を示すデータ)が変質していないと判
断し、上記停電発生時の制御状態を示すメモリー群
(5)内の制御データに基いて停電解除後の制御を続行
する。
Then, the check data written in the check data memory (51), (51) immediately after the power failure occurs or before and the check data memory (51), (51) after the power failure is released.
If all the data read from
It is judged that all the data (data indicating the control state before the power failure) stored in the memory group (5) has not deteriorated, and the data in the memory group (5) indicating the control status when the power failure occurs Continues control after the power failure is released based on the control data.

他方、バックアップコンデンサ(4)のバックアップ能
力を越える程度の長時間停電が発生することにより、メ
モリー群(5)内に書き込んだチェックデータが消失・
変化すると、停電解除後に上記チェックデータ用メモリ
(51),(51)から読出した前記チェックデータと上記
チェックデータ用メモリ(51),(51)に停電発生直後
等に書き込んだチェックデータを比較した際これら両者
は一致しなくなる。そして、メモリー群(5)のチェッ
クデータ用メモリ(51),(51)に書き込んだチェック
データ(D1),(D2)・・が変質して該メモリー群
(5)に記憶させた停電発生前の制御状態を示す制御デ
ータも変質していると判断されるときは、マイコン
(1)をリセット状態に維持させる。
On the other hand, the check data written in the memory group (5) is lost due to a long power failure that exceeds the backup capacity of the backup capacitor (4).
If there is a change, the check data read from the check data memories (51) and (51) after the power failure is released is compared with the check data written to the check data memories (51) and (51) immediately after the power failure occurs. At the same time, the two do not match. Then, the check data (D1), (D2), ... Written in the check data memories (51), (51) of the memory group (5) are altered and stored in the memory group (5) before the occurrence of a power failure. When it is determined that the control data indicating the control state of 1) is also degenerated, the microcomputer (1) is maintained in the reset state.

このように、本発明によれば、メモリー群(5)に書き
込んだチェックデータ(D1),(D2)・・が消失・変化
してバックアップコンデンサ(4)の能力を越える程長
い停電が発生していると判断される場合には、これをマ
イコン(1)の機能によって判断することができ、既述
従来のように、バックアップコンデンサ(4)に蓄えら
れた電気を大量に消費する電圧監視回路(6)のような
特別な回路を設ける必要がなくなる。そして、該電圧監
視回路(6)のような特別な回路が不要となる分、バッ
クアップ用コンデンサ(4)に蓄えられた電気を停電中
に消費する量が少なく抑えられることとなる。
As described above, according to the present invention, the check data (D1), (D2), ... Written in the memory group (5) disappears or changes, and a long power failure occurs that exceeds the capacity of the backup capacitor (4). If it is determined that it is present, this can be determined by the function of the microcomputer (1), and as described above, a voltage monitoring circuit that consumes a large amount of electricity stored in the backup capacitor (4). It is not necessary to provide a special circuit like (6). Then, since a special circuit such as the voltage monitoring circuit (6) is unnecessary, the amount of electricity stored in the backup capacitor (4) consumed during a power failure can be suppressed to a small amount.

[効果] 本発明は次の特有の効果を有する。[Effect] The present invention has the following unique effects.

既述従来のようにバックアップコンデンサ(4)の電圧
を監視する電圧監視回路(6)を設ける必要がないから
停電中に於ける電力消費量が少なり、該電力消費量が少
なくなる分、バックアップコンデンサ(4)がメモリー
群(5)内の必要データを保持できる時間が長くなる。
即ち、既述従来のものに比べて一層長い時間の停電に対
応できることとなるのである。
As described above, it is not necessary to provide the voltage monitoring circuit (6) for monitoring the voltage of the backup capacitor (4), so that the power consumption during the power failure is small, and the power consumption is reduced, the backup is performed. The time for which the capacitor (4) can hold the necessary data in the memory group (5) becomes long.
That is, it is possible to cope with a power failure for a longer time than the conventional one described above.

又、制御データ記憶用のメモリー群(5)中にチェック
データ用メモリ(51),(51)を点在させたから、上記
メモリー群(5)に格納された制御データの保存状態の
良否判定が高い信頼性を有することとなる。即ち、上記
チェックデータをメモリー群(5)中の特定のアドレス
近傍に集中的に書き込んだ場合、該チェックデータの書
き込み場所が一部に偏ってしまう。従って、かかる場合
はメモリー群全域を対象としてデータの保存状態を判断
することができず、当該判断の信頼性が低くなる。これ
に対し、上記技術的手段によれば、メモリー群(5)中
に点在させたチュックデータを調べるから、該メモリー
群(5)を全体的に観察した上でそのデータの保存状態
の良否を判断することができ、当該判断の信頼性が向上
する。
Further, since the check data memories (51) and (51) are scattered in the control data storage memory group (5), it is possible to judge whether the storage state of the control data stored in the memory group (5) is good or bad. It will have high reliability. That is, when the check data is intensively written in the vicinity of a specific address in the memory group (5), the write locations of the check data are partially biased. Therefore, in such a case, the storage state of the data cannot be determined for the entire memory group, and the reliability of the determination becomes low. On the other hand, according to the above technical means, since the Chuk data scattered in the memory group (5) is examined, the memory group (5) is entirely observed and the storage state of the data is good or bad. Can be judged, and the reliability of the judgment is improved.

[実施例] 第1図に示すように、本発明を実施した制御装置では、
バッアップコンデンサ(4)の両端電圧を監視する電圧
監視回路(6)が設けられていない点を除いて既述従来
の制御装置と同様の回路構成になっている。即ち、マイ
コン(1)の停電信号入力ポート(10)には、停電検知
回路(2)の出力が印加されるようになっていると共
に、バックアップコンデンサ(4)の両端電圧は時計
(7)に印加されている。又、上記バックアップコンデ
ンサ(4)の両端電圧はメモリー群(5)のバックアッ
プ用の端子(41)にも印加され、更に、停電発生直後の
一定時間だけマイコン(1)を動作させるのには電源回
路(3)の補助電源用コンデンサ(81)を用いるように
なっている。尚、同図のものでは、平滑コンデンサ(8
2)も停電発生時に於けるマイコン(1)の作動用電源
として機能するようになっている。
[Embodiment] As shown in FIG. 1, in the control device embodying the present invention,
The circuit configuration is the same as that of the conventional control device described above, except that the voltage monitoring circuit (6) for monitoring the voltage across the back-up capacitor (4) is not provided. That is, the output of the power failure detection circuit (2) is applied to the power failure signal input port (10) of the microcomputer (1), and the voltage across the backup capacitor (4) is applied to the clock (7). Is being applied. The voltage across the backup capacitor (4) is also applied to the backup terminal (41) of the memory group (5). Furthermore, the power supply is required to operate the microcomputer (1) for a fixed time immediately after a power failure. The auxiliary power supply capacitor (81) of the circuit (3) is used. In addition, in the figure, the smoothing capacitor (8
2) also functions as a power source for operating the microcomputer (1) when a power failure occurs.

上記マイコン(1)には第2図のフローチャートに示す
如き停電処理プログラムが書き込まれており、本発明実
施例の制御装置の動作を同2図のフローチャート従って
説明する。尚、停電発生前に於ける被制御装置の制御状
態を示す必要データ(例えば、炊飯器の場合においては
タイマーセット時刻や、粥炊か通常炊飯を実行している
か等を示すデータ)は既述従来のものと同様にメモリー
群(5)に記憶せしめられている。
A power failure processing program as shown in the flowchart of FIG. 2 is written in the microcomputer (1), and the operation of the control device of the embodiment of the present invention will be described with reference to the flowchart of FIG. Note that the necessary data indicating the control status of the controlled device before the power failure occurs (for example, in the case of rice cookers, the data indicating the timer set time, whether rice porridge or normal rice is being executed, etc.) has been described above. It is stored in the memory group (5) in the same manner as the above.

.停電が発生すると、電源回路(3)の補助電源用コ
ンデンサ(81)や平滑コンデンサ(82)からの電気供給
によって、暫くの間だけマイコン(1)が動作状態に維
持せしめられる。そして、停電発生直後にマイコン
(1)が動作している間においては、停電検知回路
(2)が検知する停電信号によって、停電発生時刻を時
計(7)から読み取ってこれをメモリー群(5)に記憶
させると共に、メモリー群(5)に点在させたチェック
データ用メモリ(51),(51)(飛び飛びの番地に確保
したメモリ)に停電解除後に調べるチェックデータを書
き込む書き込みステップ(90)が実行される。又、必要
データをメモリー群(5)に退避させる停電待機処理が
成され、その後、停電検知回路(2)から停電解除信号
が出るのを待つ。(第2図(イ)の工程参照) そして、上記停電発生後には、バックアップコンデンサ
(4)の両端電圧によって時計(7)の動作が維持せし
められると共に、上記バックアップコンデンサ(4)の
電圧によってマイコン(1)のメモリー群(5)がバッ
クアップされた状態になる。
. When a power failure occurs, electric power is supplied from the auxiliary power supply capacitor (81) and the smoothing capacitor (82) of the power supply circuit (3) to keep the microcomputer (1) in an operating state for a while. Then, while the microcomputer (1) is operating immediately after the occurrence of the power failure, the power failure occurrence time is read from the clock (7) by the power failure signal detected by the power failure detection circuit (2) and is read in the memory group (5). And a writing step (90) for writing the check data to be checked after the power failure is released to the check data memories (51) and (51) (memory secured at the scattered addresses) which are stored in the memory group (5). To be executed. In addition, a power failure standby process of saving necessary data in the memory group (5) is performed, and thereafter, the power failure detection circuit (2) waits for a power failure cancellation signal. (Refer to the process of FIG. 2 (a)) Then, after the occurrence of the power failure, the operation of the clock (7) is maintained by the voltage across the backup capacitor (4), and the microcomputer by the voltage of the backup capacitor (4). The memory group (5) of (1) is backed up.

.やがて停電が解除されると、第2図の(ロ)に示す
プログラム処理が始まり、停電発生直後にチェックデー
タ用メモリ(51),(51)に書き込んだチェックデータ
を読み込む読み込みステップ(93)が実行され、該読み
込んだチェックデータが、停電発生直後に書き込んだデ
ータと同じであるか否かの整合性が調べられる。そし
て、バックアップコンデンサ(4)の能力を越える長時
間停電が発生してメモリー群(5)内のデータが変質し
ている場合には、停電発生直後にチェックデータ用メモ
リ(51),(51)に書き込んだチェックデータと停電解
除後に上記チェックデータ用メモリ(51),(51)から
読み出したデータが一致しないこととなり、この場合に
は、メモリー群(5)内に記憶させた器具制御用のデー
タ(停電発生前の制御状態を示すデータ等)が変質して
いると判断し、マイコン(1)をリセットさせる。(図
面符号(93),(94),(95)の工程参照) そして、上記チェックデータ用メモリ(51),(51)に
書き込んだチェックデータと停電解除後に上記メモリー
から読出したデータとを比較するプログラム中の手続が
上記技術的手段の項に記載の比較ステップに対応する。
. When the power failure is eventually released, the program processing shown in (b) of Fig. 2 starts, and the reading step (93) for reading the check data written in the check data memory (51), (51) immediately after the power failure occurs. It is executed and the consistency of whether the read check data is the same as the data written immediately after the power failure occurs is checked. Then, if a long power failure exceeding the capacity of the backup capacitor (4) occurs and the data in the memory group (5) is altered, the check data memory (51), (51) immediately after the power failure occurs. The check data written in the check data and the data read from the check data memories (51) and (51) after the power failure is released do not match, and in this case, the data stored in the memory group (5) for controlling the equipment is stored. It is determined that the data (data indicating the control state before the power failure, etc.) has deteriorated, and the microcomputer (1) is reset. (Refer to the process of drawing symbols (93), (94), (95)) Then, compare the check data written in the check data memories (51), (51) with the data read from the memory after the power failure is released. The procedure in the program to be executed corresponds to the comparing step described in the above-mentioned technical means section.

他方、停電発生時にチェックデータ用メモリ(51),
(51)に書き込んだチェックデータと停電解除後に上記
チェックデータ用メモリ(51),(51)から読出したデ
ータが総て一致する場合(バックアップコンデンサ
(4)の能力以内の短時間停電の場合)には、メモリー
群(5)内に記憶させてある器具制御用のデータ(停電
発生前の制御状態を示すデータ等)が変質していないと
判断する。そして、この実施例のものでは、停電前にメ
モリー群(5)に記憶させた制御データが変質していな
いと判断される場合であっても、更に時計(7)から停
電解除時刻を読み込んで停電継続時間を計算し、該停電
継続時間が予め知られているバックアップコンデンサ
(4)の能力(規格上の能力)を越えないか否かが判断
される(図面符号(95)のステップ参照)。そして、上
記コンデンサ(4)の能力以内の停電であることが確認
された場合には、メモリー群(5)に退避させてある停
電発生前の制御用データを利用することによって器具を
停電発生前の状態に戻す停電解除処理をした後、停電発
生前の制御に続く器具制御を続行させる(図面符号(9
6)のステップ参照)。
On the other hand, when a power failure occurs, the check data memory (51),
When the check data written in (51) and the data read from the check data memory (51) and (51) after the power failure is released are all the same (in the case of a short power failure within the capacity of the backup capacitor (4)) In this case, it is determined that the appliance control data stored in the memory group (5) (such as the data indicating the control state before the power outage) has not deteriorated. Further, in the case of this embodiment, even when it is judged that the control data stored in the memory group (5) before the power failure is not deteriorated, the power failure release time is further read from the clock (7). The power outage duration is calculated, and it is determined whether or not the power outage duration does not exceed the previously known capacity (standardized capacity) of the backup capacitor (4) (see step (95)). . If it is confirmed that the power outage is within the capacity of the capacitor (4), the control data before the power outage stored in the memory group (5) is used to save the power before the power outage occurs. After the power failure cancellation processing to return to the state of, the appliance control following the control before the occurrence of the power failure is continued (drawing code (9
See step 6)).

このように、上記実施例のものでは、メモリー群(5)
に点在させたチェックデータ用メモリ(51),(51)内
のチェックデータを停電解除後に調べるだけで、停電解
除後のマイコンの処理を正常な場合と異常な場合とに分
岐させることができ、既述従来のもののように、バック
アップコンデンサ(4)の蓄電量を監視する電源回路
(3)のような特別な回路が必要ない。従って、バック
アップコンデンサ(4)の蓄電量が上記従来のものにお
ける電源回路(3)で消費されるようなことがなくな
り、該バックアップコンデンサ(4)によるバックアッ
プ時間が長くなる。
Thus, in the above embodiment, the memory group (5)
By checking the check data in the check data memories (51) and (51) scattered in the above after power failure is released, the processing of the microcomputer after power failure is released can be branched into normal and abnormal processing. Unlike the conventional one, the special circuit such as the power supply circuit (3) for monitoring the amount of electricity stored in the backup capacitor (4) is not required. Therefore, the amount of electricity stored in the backup capacitor (4) is not consumed by the power supply circuit (3) in the conventional one, and the backup time by the backup capacitor (4) becomes long.

尚、上記実施例では、メモリー群(5)へのチェックデ
ータの書き込みを停電発生直後に行なうようにしている
が、マイコン(1)の作動初期に上記チェックデータの
書き込みを実行させても良い。係る場合には、該チェッ
クデータの書き込み動作が電源回路(3)からの供給電
気によって実行できることとなる。
In the above embodiment, the check data is written in the memory group (5) immediately after the power failure occurs, but the check data may be written in the initial stage of the operation of the microcomputer (1). In this case, the check data write operation can be performed by the electricity supplied from the power supply circuit (3).

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

第1図は本発明実施例の回路構成図,第2図はマイコン
(1)に書き込んだ制御プログラムを説明するフローチ
ャート,第3図は従来例の説明図であり、図中、 (2)……停電検知回路 (3)……電源回路 (4)……バックアップコンデンサ (5)……メモリー群 (51)……チェックデータ用メモリ
FIG. 1 is a circuit configuration diagram of an embodiment of the present invention, FIG. 2 is a flow chart explaining a control program written in a microcomputer (1), and FIG. 3 is an explanatory diagram of a conventional example, in which (2) ... … Power failure detection circuit (3) …… Power supply circuit (4) …… Backup capacitor (5) …… Memory group (51) …… Check data memory

フロントページの続き (72)発明者 堀田 修 大阪府大阪市中央区平野町4丁目1番2号 大阪瓦斯株式会社内 (72)発明者 大宅 崇史 愛知県名古屋市中川区福住町2番26号 リ ンナイ株式会社内 (56)参考文献 特開 昭57−127220(JP,A) 実開 昭62−187349(JP,U)Front page continuation (72) Inventor Osamu Hotta 4-1-2, Hirano-cho, Chuo-ku, Osaka-shi, Osaka Within Osaka Gas Co., Ltd. In Nanai Co., Ltd. (56) Reference JP-A-57-127220 (JP, A) Actually developed 62-187349 (JP, U)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】停電の発生及び解除を検知する停電検知回
路(2)と、電源回路(3)からの供給電気によって充
電され且つマイコン(1)の電源端子(19)に接続され
る補助電源用コンデンサと、これと同じく電源回路
(3)からの供給電気によって充電されるバックアップ
コンデンサ(4)と、更に、該バックアップコンデンサ
(4)からの供給電気によってバックアップされ且つ停
電発生時に於ける被制御物の制御状態を示す制御データ
を記憶するメモリー群(5)を設け、上記バックアップ
コンデンサ(4)のバックアップ能力を越える長時間停
電があったときにはマイコン(1)をリセット状態に保
持するようにし、他方、上記バックアップコンデンサ
(4)のバックアップ能力範囲内の短時間停電が解除さ
れた場合にはメモリー群(5)に記憶させた停電発生時
の制御データを用いて後の制御を継続するようにしたも
のにおいて、メモリー群(5)中に点在するチェックデ
ータ用メモリ(51),(51)・・を設けると共に、予め
設定されたチェックデータ(D1),(D2)・・を停電発
生前又は発生直後に上記チェックデータ用メモリ(5
1),(51)・・に各別に書き込むチェックデータ書込
みステップと、停電解除後には上記チェックデータ用メ
モリ(51),(51)・・内の記憶データを読み出す読出
しステップと、更に、この読み出したデータと予め設定
してある上記チェックデータ(D1),(D2)・・の整合
性を各別に調べる比較ステップとをこの順序で実行さ
せ、上記比較ステップを実行させた結果上記対比する2
種類のデータの少なくとも一組が互いに一致しないとき
にはマイコン(1)をリセットさせるようにしたマイク
ロコンピュータを用いた制御方法。
1. A power failure detection circuit (2) for detecting the occurrence and cancellation of a power failure, and an auxiliary power source that is charged by the electricity supplied from a power source circuit (3) and is connected to a power source terminal (19) of a microcomputer (1). Capacitor, a backup capacitor (4) which is also charged by the electricity supplied from the power supply circuit (3), and further controlled by electricity supplied from the backup capacitor (4) and to be controlled when a power failure occurs A memory group (5) for storing control data indicating a control state of the object is provided, and the microcomputer (1) is held in a reset state when there is a long-time power failure that exceeds the backup capacity of the backup capacitor (4). On the other hand, if the short-term power failure within the backup capacity range of the backup capacitor (4) is canceled, the memory group In the case where the control is stored in 5) and the subsequent control is continued by using the control data at the time of power outage, the check data memories (51), (51) ... scattered in the memory group (5) In addition to the above, check data (D1), (D2), ...
1), (51), ... Check data writing step for writing to each, and a read step for reading the stored data in the check data memory (51), (51) ,. And the comparison step for checking the consistency of the check data (D1), (D2), ..., which has been set in advance, with each other in this order, and as a result of executing the comparison step
A control method using a microcomputer for resetting a microcomputer (1) when at least one set of data of a kind does not match each other.
JP1135674A 1989-05-29 1989-05-29 Control method using a microcomputer Expired - Fee Related JPH0748171B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1135674A JPH0748171B2 (en) 1989-05-29 1989-05-29 Control method using a microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1135674A JPH0748171B2 (en) 1989-05-29 1989-05-29 Control method using a microcomputer

Publications (2)

Publication Number Publication Date
JPH031209A JPH031209A (en) 1991-01-07
JPH0748171B2 true JPH0748171B2 (en) 1995-05-24

Family

ID=15157276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1135674A Expired - Fee Related JPH0748171B2 (en) 1989-05-29 1989-05-29 Control method using a microcomputer

Country Status (1)

Country Link
JP (1) JPH0748171B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008050989A (en) * 2006-08-24 2008-03-06 Denso Corp Muffler

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57127220A (en) * 1981-01-29 1982-08-07 Fujitsu Ltd System for detecting turning-off of backup power source for memory
JPS62187349U (en) * 1986-05-19 1987-11-28

Also Published As

Publication number Publication date
JPH031209A (en) 1991-01-07

Similar Documents

Publication Publication Date Title
JP3224153B2 (en) Improved data protection system and data protection method
JP3831377B2 (en) Method and apparatus for analyzing power failure in a computer system
JP5317360B2 (en) Computer program, system, and method for thresholding system power loss notification in a data processing system
US7423355B2 (en) Power controller, apparatus provided with backup power supply, program for controlling power, and method for controlling power
US20080244311A1 (en) System and Method for Thresholding System Power Loss Notifications in a Data Processing System Based on Vital Product Data
US8386809B2 (en) System and method for configuring a power device
US8732602B2 (en) System and method for altering a user interface of a power device
JPH0748171B2 (en) Control method using a microcomputer
CN111400136A (en) Server-dedicated GPU fault protection device, method, equipment and medium
JP2010134856A (en) Nonvolatile storage medium writing circuit, nonvolatile storage medium writing method, and program
JPH0728572A (en) Automatic data preserving device at power interruption
JPH06103480B2 (en) Blackout processor
US10705149B2 (en) Voltage drop detection through data corruption detection
JPH0120775B2 (en)
JPH0374712A (en) Information processor
JPS626315A (en) Memory back-up device for microcomputer
JPS62102315A (en) Memory backup device for microcomputer
JPH01171050A (en) Reliability deciding device for memory data
JP2002091632A (en) Computer system
JP2000132463A (en) Memory backup system
JPH09274525A (en) Automatic power recovery system
JPS6082034A (en) Method of diagnosing defect of no break power source
JPS58194199A (en) Semiconductor external storage controller
JPS6155683B2 (en)
JPH06161908A (en) Memory controller

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees