JPS6295649A - Memory back-up device - Google Patents

Memory back-up device

Info

Publication number
JPS6295649A
JPS6295649A JP60235790A JP23579085A JPS6295649A JP S6295649 A JPS6295649 A JP S6295649A JP 60235790 A JP60235790 A JP 60235790A JP 23579085 A JP23579085 A JP 23579085A JP S6295649 A JPS6295649 A JP S6295649A
Authority
JP
Japan
Prior art keywords
cpu
data
signal
processing unit
central processing
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
JP60235790A
Other languages
Japanese (ja)
Inventor
Toshio Nagasaka
利男 長坂
Shizuo Tsuchiya
静男 土屋
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.)
Casio Computer Co Ltd
Casio Electronics Manufacturing Co Ltd
Original Assignee
Casio Computer Co Ltd
Casio Electronics Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd, Casio Electronics Manufacturing Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60235790A priority Critical patent/JPS6295649A/en
Publication of JPS6295649A publication Critical patent/JPS6295649A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To protect the data on a memory means despite of the runaway of a CPU by latching the data on the memory means of a central processing unit with the signals produced in the CPU at the prescribed cycles. CONSTITUTION:A CPU 1 incorporates a RAM and produces signals in the prescribed cycles to reset a watchdog timer 2 and also to latch data to a latch circuit 3. When the CPU 1 runs away, no signal is outputted from the CPU 1 and the timer 2 counts up the time. Then a reset signal is outputted to the CPU 1 from the timer 2. Thus the CPU 1 is reset and at the same time the data latched by the circuit 3 are set to the RAM.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、中央処理装置(以下CPUという)を用いた
電子装置において、CPUが暴走したときに、メモリの
記憶情報を保護するメモリバンクアップ装置に関する。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention provides a memory bank up device that protects information stored in a memory in an electronic device using a central processing unit (hereinafter referred to as CPU) when the CPU goes out of control. Regarding.

〔従来技術及びその問題点〕[Prior art and its problems]

従来、この種の装置としては、例えば第3図に示すよう
に、通常時にはCPUIから周期的に出力されるリセッ
ト信号によってウォッチドッグタイマ2がカウントアツ
プする前に、同タイマ2をリセットし、CPUIが暴走
するとりセント信号が出力されないために、ウォッチド
ッグタイマ2がカウントアンプし、CPLllをリセッ
トするようにしたものがある。
Conventionally, as shown in FIG. 3, for example, this type of device resets the watchdog timer 2 before the watchdog timer 2 counts up in response to a reset signal periodically output from the CPUI. There is a device in which the watchdog timer 2 performs count amplification and resets the CPLll because the cent signal is not output when the clock runs out of control.

しかしながら、上記のウォッチドッグタイマを用いたも
のでは、CPUの暴走を検出して、これをリセットする
だけであるために、暴走状態に入る前のランダムアクセ
スメモリ (以下、RAMという)に記憶されたデータ
を保護することはできない。そのため、例えばCPUを
複写機に用いた場合、使用枚数、感光ドラムの使用時間
等の装置の使用履歴データをRAMに記憶させると、C
PUの暴走によってそのデータが消失するという不具合
を生じる。従って、上記のような装置の履歴等のデータ
は、機械カウンタ等を用いて記憶させるという方式が採
られている。
However, with the watchdog timer described above, since the CPU only detects runaway and resets it, the Data cannot be protected. Therefore, for example, when a CPU is used in a copying machine, if the usage history data of the device, such as the number of sheets used and the usage time of the photosensitive drum, is stored in the RAM, the CPU
A problem occurs in which the data is lost due to the PU running out of control. Therefore, data such as the history of the device as described above is stored using a mechanical counter or the like.

また近年においては、RAMを内蔵したCMO8の1チ
ツプCPUが普及し、この中にはバンテリバフクアソプ
により電tA遮断時のRAMの記憶データを保護するも
のがある。
In recent years, CMO8 single-chip CPUs with built-in RAM have become popular, and some of these CPUs have a protection function that protects data stored in the RAM when power is cut off.

しかし、このようなものであっても、CPUが暴走した
場合にはRA Mの記憶データは保護することはできず
、またこれにウォッチドッグタイマを付けても同様にC
PUの暴走によってRAMの記憶データが消失するとい
う欠点があった。
However, even with this type of system, the data stored in RAM cannot be protected if the CPU goes out of control, and even if a watchdog timer is attached to it, the data stored in RAM cannot be protected.
There was a drawback that data stored in the RAM was lost due to a runaway of the PU.

〔発明の目的〕[Purpose of the invention]

本発明は、上記欠点に鑑み、CPUが暴走してもメモリ
の記憶データを保護することができるメモリバックアッ
プ装置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above drawbacks, it is an object of the present invention to provide a memory backup device that can protect data stored in a memory even if the CPU goes out of control.

〔発明の要点〕[Key points of the invention]

上記目的は本発明によれば、記↑、9手段と、予め決め
られたシーケンスプログラムを処理し、且つ所定の周期
で信号を発生する中央処理装置と、上記信号の発生毎に
上記記憶手段のデータをラッチするラッチ手段と、上記
中央処理装置から上記信号が出力されないことを検出し
て中央処理装置を初期状態に設定する設定手段とを有し
、該設定手段により上記中央処理装置が初期状態に設定
された時に、上記ラッチ手段のデータを記憶手段にセ・
ノドした後、中央処理装置の動作を再開させることを特
徴とするメモリパンクアップ装置を提供することにより
達成される。
According to the present invention, the above object is achieved by the above-mentioned ↑, 9 means, a central processing unit that processes a predetermined sequence program and generates a signal at a predetermined period, and a central processing unit that processes the above-mentioned storage means every time the above-mentioned signal is generated. latching means for latching data; and setting means for detecting that the signal is not output from the central processing unit and setting the central processing unit to the initial state, and the setting means sets the central processing unit to the initial state. When set to , the data of the latch means is stored in the storage means.
This is achieved by providing a memory blow-up device which is characterized in that it restarts the operation of the central processing unit after the memory is blown up.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照して詳細に説明する
。第1図は本発明の一実施例を示すブロック図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention.

なお、従来と同一部分は同一符号を付している。In addition, the same parts as the conventional one are given the same reference numerals.

第1図において、1は内部にRAM (図示せず)を備
えたCPtJであり、同CPU1の制御動作により電子
写真複写機の使用枚数、感光ドラムの使用時間等の使用
履歴データをRAMに記憶するようになっている。CP
UIは予め決められたシーケンスプログラムを処理しな
がら、所定の周期で信号を発生し、その信号を暴走検出
用のウォッチドッグタイマ2及びラッチ回路3に出力し
ている。
In FIG. 1, 1 is a CPtJ equipped with an internal RAM (not shown), and the usage history data such as the number of sheets used by the electrophotographic copying machine and the usage time of the photosensitive drum is stored in the RAM by the control operation of the CPU 1. It is supposed to be done. C.P.
The UI generates a signal at a predetermined cycle while processing a predetermined sequence program, and outputs the signal to a watchdog timer 2 and a latch circuit 3 for detecting runaway.

そして、通常時にはウォッチドッグタイマ2がカウント
アンプする前にCPUIから出力される周期的信号毎に
ウォッチドッグタイマ2をリセットし、同時にその信号
毎にCPUIのRAMのデータをラッチ回路3にラッチ
する。またCPUIが暴走した場合は、ウォッチドッグ
タイマ2にCPU1から信号が出力されないために、同
タイマ2がカウントアンプし、これによってウォッチド
ッグタイマ2からリセット信号を出力してcputをリ
セットし、同CPUIを初期状態に設定する。
In normal operation, the watchdog timer 2 is reset for each periodic signal output from the CPU before the watchdog timer 2 performs count amplification, and at the same time, data in the RAM of the CPU is latched in the latch circuit 3 for each signal. In addition, when the CPU goes out of control, since no signal is output from the CPU 1 to the watchdog timer 2, the timer 2 performs count amplification, which outputs a reset signal from the watchdog timer 2 to reset the cput, and the CPU 1 Set to the initial state.

この場合、第2図に動作のフローチャートを示すように
、CPUIが暴走からのIM帰であれば、ラッチ回路3
にラッチしたデータをcpu tの入力ポートから再び
RAMにセットし、動作を再開する。なお、この時、ラ
ッチ回路3にラッチされていたデータは常にCPUIが
暴走状態になる以前のRAMデータに等しいので、CP
UIのり3作再開により正しい制御動作の継続が行われ
る。4は電源■、が遮断したときのバックアップ電源で
あり、ダイオードDI及びD2からなるダイオードオア
回路によって、電源■、が遮断したときに自動的にバン
クアップ電源4に切換える。
In this case, as shown in the flowchart of operation in FIG. 2, if the CPU returns to IM from runaway, the latch circuit 3
The latched data is set in the RAM again from the input port of the CPU t, and the operation is restarted. Note that at this time, the data latched in the latch circuit 3 is always equal to the RAM data before the CPU went out of control, so the CPU
Correct control operation continues by restarting the UI glue 3 creation. Reference numeral 4 denotes a backup power source when the power source (2) is cut off, and it is automatically switched to the bank-up power source 4 when the power source (2) is cut off by a diode OR circuit consisting of diodes DI and D2.

なお、上記実施例においては、ウォッチドッグタイマ2
及びラッチ回路3に出力される周期的信号は、CPUI
が、ウォッチドッグタイマ2のリセット信号として専用
に所定周期を持ったタイミング信号を作成することによ
り得ているが、本発明は、これに限られることなく、グ
イナミソク駆シ】方式の表示器等を備えた装置の場合は
、この表示器を駆動させるために発せられるグイナミソ
ク信号をこの周期的信号として応用させることも可能で
ある。
Note that in the above embodiment, the watchdog timer 2
The periodic signal output to the latch circuit 3 is
However, the present invention is not limited to this, and can be obtained by creating a timing signal with a predetermined period exclusively as a reset signal for the watchdog timer 2. In the case of a device equipped with this, it is also possible to use the signal generated to drive the display as the periodic signal.

以上により、CPUIが暴走したときに、う。With the above, when the CPU goes out of control,

子回路3によってデータをラッチし、且つそのデータを
CPUIのRAMにセントするようにしたので、電子写
真複写機の使用枚数、感光ドラムの使用時間等の履歴デ
ータの消失を防止することができる。
Since the data is latched by the slave circuit 3 and stored in the RAM of the CPU, it is possible to prevent historical data such as the number of sheets used by the electrophotographic copying machine and the time period in which the photosensitive drums are used from being lost.

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

以上説明したように本発明によれば、CPUが暴走した
ときに、ラッチ回路にデータをラッチし、且つそのラッ
チしたデータをCPUが正常状態に復帰した時記憶手段
にセットするようにしたので、CPUの暴走時における
記憶データを保護することができるという効果がある。
As explained above, according to the present invention, data is latched in the latch circuit when the CPU goes out of control, and the latched data is set in the storage means when the CPU returns to the normal state. This has the effect that stored data can be protected when the CPU goes out of control.

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

第1図は本発明の一実施例のブロック図、第2図は本発
明の動作を示すフローチャート、第3図は従来装置の概
略構成図である。 ■ ・・・ CPU。 2 ・・・ ウォッチトングタイマ、 3 ・・・ ラッチ回路、 4 ・・・ ハックアップ電源。 特許出願人  カシオ計算機株式会社 同   上  カシオ電子工業株式会社第1図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flow chart showing the operation of the present invention, and FIG. 3 is a schematic configuration diagram of a conventional device. ■...CPU. 2... Watch tong timer, 3... Latch circuit, 4... Hack-up power supply. Patent applicant: Casio Computer Co., Ltd. Above: Casio Electronics Co., Ltd. Figure 1

Claims (1)

【特許請求の範囲】 記憶手段と、予め決められたシーケンスプログラムを処
理し、且つ所定の周期で信号を発生する中央処理装置と
、 上記信号の発生毎に上記記憶手段のデータをラッチする
ラッチ手段と、上記中央処理装置から上記信号が出力さ
れないことを検出して中央処理装置を初期状態に設定す
る設定手段とを有し、該設定手段により上記中央処理装
置が初期状態に設定された時に、上記ラッチ手段のデー
タを記憶手段にセットした後、中央処理装置の動作を再
開させることを特徴とするメモリバックアップ装置。
[Scope of Claims] A storage means, a central processing unit that processes a predetermined sequence program and generates a signal at a predetermined cycle, and a latch means that latches data in the storage means each time the signal is generated. and a setting means for detecting that the signal is not output from the central processing unit and setting the central processing unit to an initial state, and when the central processing unit is set to the initial state by the setting means, A memory backup device characterized in that the operation of the central processing unit is restarted after the data of the latch means is set in the storage means.
JP60235790A 1985-10-21 1985-10-21 Memory back-up device Pending JPS6295649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60235790A JPS6295649A (en) 1985-10-21 1985-10-21 Memory back-up device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60235790A JPS6295649A (en) 1985-10-21 1985-10-21 Memory back-up device

Publications (1)

Publication Number Publication Date
JPS6295649A true JPS6295649A (en) 1987-05-02

Family

ID=16991293

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60235790A Pending JPS6295649A (en) 1985-10-21 1985-10-21 Memory back-up device

Country Status (1)

Country Link
JP (1) JPS6295649A (en)

Similar Documents

Publication Publication Date Title
US7007180B2 (en) System and method for switching a computer system to a first or second power saving mode based on whether or not there exists a timer-expiration-waiting event in an event queue
US5576650A (en) Reset circuit of electronic device
US5923838A (en) Microcomputer with built-in flash memory
JP2009187552A (en) Power control system and power control method
JPH0214723B2 (en)
US5962930A (en) Method and apparatus for detecting supply power loss
US10089182B2 (en) Energy-efficient nonvolatile microprocessor
WO2020119532A1 (en) Processor control method and apparatus, and storage medium
JP3866749B2 (en) Microprocessor
US7219248B2 (en) Semiconductor integrated circuit operable to control power supply voltage
WO2018063565A1 (en) Technologies for low-power and high-accuracy timestamps
JP5281625B2 (en) Computer reset method and computer
CN101281416A (en) Method for ensuring system closedown completion
US6463492B1 (en) Technique to automatically notify an operating system level application of a system management event
JP2006201948A (en) Interrupt signal accepting device and method
JPS6295649A (en) Memory back-up device
TWI643058B (en) Electronic device and methods for calculating power on hours
WO2018138798A1 (en) Computer device, task initiation method, and task initiation program
JPH08339308A (en) Digital processor
CN102999734B (en) A kind of computing machine term of life limits method and system
JPH0756774A (en) Watching timer
JP2005141522A (en) Data processing apparatus
JP3302149B2 (en) Computer system
JP2705311B2 (en) Microcomputer
JP2870083B2 (en) Microcomputer with built-in watchdog timer