[go: up one dir, main page]

JPS63143619A - Automatic discriminating device for hot start and cold start - Google Patents

Automatic discriminating device for hot start and cold start

Info

Publication number
JPS63143619A
JPS63143619A JP61291042A JP29104286A JPS63143619A JP S63143619 A JPS63143619 A JP S63143619A JP 61291042 A JP61291042 A JP 61291042A JP 29104286 A JP29104286 A JP 29104286A JP S63143619 A JPS63143619 A JP S63143619A
Authority
JP
Japan
Prior art keywords
ram
voltage
power supply
cold start
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
JP61291042A
Other languages
Japanese (ja)
Inventor
Tetsuo Hiraga
哲雄 平賀
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP61291042A priority Critical patent/JPS63143619A/en
Publication of JPS63143619A publication Critical patent/JPS63143619A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To automatically discriminate hot start or cold start by monitoring the voltage of a RAM power supply for the backup of a RAM and deciding whether data stored in the RAM is correct or not. CONSTITUTION:When the voltage value of the RAM backup power supply 6 maintains the memory holding/guaranteeing voltage of the RAM 3, hot start is executed. At the time of power failure, the voltage value of the power supply 6 is dropped and the memory holding/guaranteeing voltage of the RAM 3 can not be maintained. A voltage detecting circuit 7 detects the voltage drop of the power supply 6 and resets a flip flop 8. When the power failure is restored and a power ON reset circuit 5 releases a reset signal, a microcomputer (CPU) 1 starts its operation, and after checking the reset state of the flip flop 8, executes cold start. Since whether data in the RAM 3 are correct or not is not guaranteed, the contents of the RAM 3 are cleared, the flip flop 8 is set up and the succeeding programs are sequentially executed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピュータを使用した電子機器の停
電時に働くメモリ保持回路に接続されるホットスタート
とコールドスタートの自動判別装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an automatic hot start/cold start discrimination device that uses a microcomputer and is connected to a memory holding circuit that operates during a power outage in electronic equipment.

従来の技術 近年マイクロコンピュータはあらゆる装置に導入され、
めざましく普及している。
Conventional technology In recent years, microcomputers have been introduced into all types of equipment.
It is spreading rapidly.

以下図面を参照しながら上述した従来のマイクロコンピ
ュータ周辺回路におけるホットスタート2  t−−:
’ とコールドスタートの方法について説明する。
Hot start 2 t-- in the conventional microcomputer peripheral circuit described above with reference to the drawings:
' and how to perform a cold start.

第2図は従来のコールドスタートの方法を示したマイク
ロコンピュータの基本回路の構成図である。第2図にお
いて、1はマイクロコンピュータ(CPU)、2はRO
M、311:RAM、5Uパワ一オンリセツト回路、9
はコールドスタートスイッチ、6はRAMのメモリーを
停電時に保護する為のバックアップ用電源である。
FIG. 2 is a block diagram of a basic circuit of a microcomputer showing a conventional cold start method. In Figure 2, 1 is a microcomputer (CPU), 2 is an RO
M, 311: RAM, 5U power-on reset circuit, 9
6 is a cold start switch, and 6 is a backup power supply to protect the RAM memory in the event of a power outage.

以上のように構成された基本回路構成図について、以下
その動作について説明する。
The operation of the basic circuit configuration diagram configured as described above will be described below.

マイクロコンピュータ1は電源が投入され、パワーオン
リセット回路6からのリセット信号が解除されると、前
記マイクロコンピュータ1の固有のスタート番地からプ
ログラムの実行を開始し、ROM2に書かれている命令
を処理していく。このようなプログラムの実行開始をホ
ットスタートと一般に呼ばれ、RAM3にメモリされた
テーブル化されたデータは、クリアせずに、そのまま使
用されるのが通常である。RAM5内のデータをすべて
クリアしプログラムの実行を開始する場合3 ′ − は、電源投入時にコールドスタートスイッチ9を押しな
がら、電源を投入するとアンドゲート回路10を介して
割込み入力端子にコールドスタート信号が入力され、プ
ログラムの実行は、割込み処理プログラムから開始され
、ここでRAM3のデータは、すべてクリアされ、停電
以前の動作、状態はすべてクリアされ初期状態から動作
を開始する。このようなプログラムの実行開始を一般に
コールドスタートと呼ぶ。
When the power of the microcomputer 1 is turned on and the reset signal from the power-on reset circuit 6 is released, the microcomputer 1 starts executing the program from the unique start address of the microcomputer 1 and processes the instructions written in the ROM 2. I will do it. Such a start of execution of a program is generally called a hot start, and the tabulated data stored in the RAM 3 is usually used as is without being cleared. If you want to clear all the data in RAM 5 and start executing the program, press the cold start switch 9 while turning on the power, and a cold start signal will be sent to the interrupt input terminal via the AND gate circuit 10. The execution of the program starts from the interrupt processing program, where all the data in the RAM 3 is cleared, all the operations and states before the power outage are cleared, and the operation starts from the initial state. Such a start of program execution is generally called a cold start.

発明が解決しようとする問題点 しかしながら上記のような構成では、コールドスタート
を行なう場合には、コールドスタートスイッチ9を押し
ながら電源を投入するという手動操作が必要であシ、ま
た、停電復帰後のRAM3のデータは、実際に動作させ
て正しいかどうかの判別を人がする必要があるという問
題点を有している。
Problems to be Solved by the Invention However, with the above configuration, when performing a cold start, it is necessary to manually turn on the power while pressing the cold start switch 9. The problem with the data in the RAM 3 is that it is necessary for a person to actually operate the data and judge whether it is correct or not.

本発明は上記問題に鑑み、RAMをバックアップするた
めのRAM用電源の電圧を監視し、RAM内にメモリさ
れているデータが正しいかどうかを判定することにより
、ホットスタートを行表うか、コールドスタートを行な
うかを自動的に判別せんとするものである。
In view of the above problems, the present invention monitors the voltage of the RAM power supply for backing up the RAM and determines whether the data stored in the RAM is correct. The purpose is to automatically determine whether the

問題点を解決するための手段 上記問題を解決するために、本発明のホットスタートと
コールドスタートの自動判別回路は、RAMのバックア
ップ電源の電圧がメモリ保持に充分な電圧であるか否か
を検出する検出手段と、その検出手段の検知出力に応じ
てマイクロコンピュータのコールドスタートとホットス
タートを選択する手段とよりなるものである。
Means for Solving the Problems In order to solve the above problems, the hot start/cold start automatic discrimination circuit of the present invention detects whether the voltage of the RAM backup power supply is sufficient for memory retention. and means for selecting cold start or hot start of the microcomputer according to the detection output of the detection means.

作  用 本発明は上記した構成によって、停電時に消費されるR
AMのバックアップ電源の電圧値を検出し、前記バック
アップ電源の電圧が、RAMのスタンバイ時のメモリ保
持電圧以下に下ったことを検知手段で検知し、電源投入
時に前記検知手段の検知出力がメモリ保持電圧以上であ
ることを示せばRAM内のメモリは正しいことが保証さ
れるためホットスタートを行ない、また、保持電圧以下
6 ′・−・ であればRAM内のメモリは、正しいかどうかが保証さ
れないためコールドスタートを行なうものであり、ホッ
トスタートとコールドスタートの自動判別が行なえ、手
動操作によるコールドスタートが不要となり、しかも誤
動作が防止できる。
Effect The present invention has the above-described configuration to reduce R consumed during a power outage.
A voltage value of a backup power source of the AM is detected, a detection means detects that the voltage of the backup power source has fallen below a memory retention voltage of the RAM during standby, and when the power is turned on, the detection output of the detection means indicates the memory retention voltage. If it shows that the voltage is above the voltage, the memory in the RAM is guaranteed to be correct, so a hot start is performed, and if it is below the holding voltage, it is not guaranteed that the memory in the RAM is correct. Therefore, it performs a cold start, and can automatically distinguish between a hot start and a cold start, eliminates the need for a manual cold start, and prevents malfunctions.

実施例 以下本発明の一実施例のホットスタートとコールドスタ
ートの自動判別回路について図面を参照しながら説明す
る。
Embodiment Hereinafter, a hot start/cold start automatic discrimination circuit according to an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例におけるマイクロコンピュー
タの基本回路構成図である。第1図において、1はマイ
クロコンピュータ(CPU)、2はROM、 3はRA
M、4は入出力ポート、5はパワーオンリセット回路、
eはRAM用バックアップ電源、7はRAM用バックア
ップ電源6の電圧がRAM3のメモリ保持保証電圧を維
持しているかどうかを検出・するだめの電圧検出回路、
8はバックアップ用電源6の電圧値の状態を記憶するだ
めのフリップフロップであり、マイクロコンピュータ1
のスタート後にセットされ、RAM用バ6 ′・−/ ツクアップ電源6の電圧値がRA M aのメモリ保持
保証電圧値以下に下がると、リセットされるように構成
されている。
FIG. 1 is a basic circuit diagram of a microcomputer in an embodiment of the present invention. In Figure 1, 1 is a microcomputer (CPU), 2 is a ROM, and 3 is an RA.
M, 4 is an input/output port, 5 is a power-on reset circuit,
e is a RAM backup power supply, 7 is a voltage detection circuit for detecting whether the voltage of the RAM backup power supply 6 maintains the memory retention guarantee voltage of the RAM 3;
8 is a flip-flop for storing the state of the voltage value of the backup power supply 6;
It is set after the start of the RAM buffer 6', and is reset when the voltage value of the pull-up power supply 6 falls below the memory retention guaranteed voltage value of RAM a.

以上のように構成されたホットスタートとコールドスタ
ートの自動判別回路について以下第1図を用いその動作
を説明する。
The operation of the hot start/cold start automatic discrimination circuit configured as described above will be explained below with reference to FIG.

第1図は本発明の一実施例によるマイクロコンピュータ
基本回路構成図であって、電源が投入されると、パワー
オンリセット回路5は、リセット信号を解除し、マイク
ロコンピュータ(CPU)1は定められた固有アドレス
から、ROM2に書き込まれた命令に従い、実行を開始
する。このとき、RAM用バックアップ電源6の電圧値
の状態を記憶するだめのフリップフロップ8の状態をマ
イクロコンピュータ(CPU)1で確認し、上記フリッ
プフロップが、セットされていれば、RAM用バックア
ップ電源6の電圧値はRAM3のメモリ保持保証電圧を
維持している為、ホットスタートを行なう・。以後、R
OM2に書き込まれたプログラムを順次処理していくが
、停電になると、マ7′−ノ イクロコンピュータ(CPU )は、停止L、RAM3
のデータは、上記RAM用バックアップ電池6により保
護される。しかしながら上記RAM用バックアップ電源
6は時間とともに消耗し、電圧値は低下し、ついには、
RAM3のメモリ保持保証電圧を維持できなくなる。電
圧検出回路7は、上記RAM用バックアップ電源6の電
圧低下を検出し、フリップフロップ8をリセットする。
FIG. 1 is a basic circuit diagram of a microcomputer according to an embodiment of the present invention. When the power is turned on, the power-on reset circuit 5 releases the reset signal, and the microcomputer (CPU) 1 is activated. Execution starts from the unique address written in the ROM 2 according to the instructions written in the ROM 2. At this time, the microcomputer (CPU) 1 checks the state of the flip-flop 8 that stores the voltage value state of the RAM backup power supply 6, and if the flip-flop is set, the RAM backup power supply 6 Since the voltage value maintains the memory retention guaranteed voltage of RAM3, a hot start is performed. From now on, R
The programs written in OM2 are processed sequentially, but when a power outage occurs, the computer (CPU) stops L and RAM3
The data is protected by the RAM backup battery 6. However, the RAM backup power supply 6 wears out over time, the voltage value decreases, and finally,
The memory retention guarantee voltage of RAM3 cannot be maintained. The voltage detection circuit 7 detects a voltage drop in the RAM backup power supply 6 and resets the flip-flop 8.

次に停電が復帰し、パワーオンリセット回路5がリセッ
ト信号を解除すると、マイクロコンピュータ(CPU)
1が動作を開始し、上記フリップフロップの状態がリセ
ット状態であることを確認してコールドスタートを行な
い、RAM5内のデータは、正しいかどうかが保証され
ない為、上記RAM3をクリアして、上記フリップフロ
ップをセットし順次後のプログラムを実行処理するもの
である。
Next, when the power is restored and the power-on reset circuit 5 releases the reset signal, the microcomputer (CPU)
1 starts operating, confirms that the state of the flip-flop is in the reset state, and performs a cold start. Since the data in RAM 5 is not guaranteed to be correct, clears the RAM 3 and resets the flip-flop. This program sets the program and executes subsequent programs in sequence.

そしてマイクロコンピュータ1がスタートした後に前記
フリップフロップは再びセットされる。
After the microcomputer 1 is started, the flip-flop is set again.

発明の効果 以上のように本発明のホットスタートとコールドスター
トの自動判別回路によれば、RAM用バックアップ電源
の電圧値を検出し、上記電圧値がRAMのメモリ保持保
証電圧を維持しているかどうかの状態を電源投入時にマ
イクロコンピュータ(CPU)で確認することによシ、
ホットスタートを行なうかコールドスタートを行なうか
の自動判別が行なえ、コールドスタートの手動操作が不
要であり、ホットスタートを行なう場合も、RAM内に
記憶されているデータが正しいことが保証されている為
、誤動作を防止できる。またコールドスタートとホット
スタートを自動選択できるため、大容量の電源が必要な
装置であっても、RAM用バックアップ電源の容量を適
当に選ぶことによシ見かけ上の停電保持時間を長く設定
でき、電源回路自体で停電保持時間を大きく取る必要が
なくなシ、コストダウンができるものである。
Effects of the Invention As described above, the hot start/cold start automatic discrimination circuit of the present invention detects the voltage value of the RAM backup power supply and determines whether the voltage value maintains the memory retention guaranteed voltage of the RAM. By checking the status of the microcomputer (CPU) when the power is turned on,
It can automatically determine whether to perform a hot start or a cold start, eliminating the need for manual cold start operations, and even when performing a hot start, the data stored in the RAM is guaranteed to be correct. , malfunctions can be prevented. In addition, since cold start and hot start can be automatically selected, even if the device requires a large capacity power supply, by appropriately selecting the capacity of the RAM backup power supply, the apparent power outage retention time can be set for a long time. There is no need for the power supply circuit itself to take a long time to maintain the power outage, and costs can be reduced.

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

第1図は本発明の一実施例におけるホットスタートとコ
ールドスタートの自動判別回路を使用したマイクロコン
ピュータの基本回路構成図、第29 ′・−ノ 図は従来のマイクロコンピュータの基本回路構成図であ
る。 1・・・・・・マイクロコンピュータ(CPU)、2・
・・・・・ROM、3・・・・・・RAM、4・・・・
・・入出力ポート、6・・・・・・パワーオンリセット
回路、6・・・・・・RAM用バックアップ電源、7・
・・・・・電圧検出回路、8・・・・・・フリップフロ
ップ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第2図
Figure 1 is a basic circuit configuration diagram of a microcomputer using an automatic hot start/cold start discrimination circuit according to an embodiment of the present invention, and Figures 29' and 29' are basic circuit configuration diagrams of a conventional microcomputer. . 1...Microcomputer (CPU), 2.
...ROM, 3...RAM, 4...
...Input/output port, 6...Power-on reset circuit, 6...Backup power supply for RAM, 7.
...Voltage detection circuit, 8...Flip-flop. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 2

Claims (1)

【特許請求の範囲】[Claims] RAMのメモリ保持電圧の過不足を検出する手段と、前
記検出手段の判定結果に応じて、電源投入時に前記RA
M内のメモリ内容をクリアするかしないかを選択的に切
換える手段を有するホットスタートとコールドスタート
の自動判別装置。
means for detecting excess or deficiency of the memory retention voltage of the RAM;
An automatic hot start/cold start discrimination device having means for selectively switching whether or not to clear the memory contents in M.
JP61291042A 1986-12-05 1986-12-05 Automatic discriminating device for hot start and cold start Pending JPS63143619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61291042A JPS63143619A (en) 1986-12-05 1986-12-05 Automatic discriminating device for hot start and cold start

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61291042A JPS63143619A (en) 1986-12-05 1986-12-05 Automatic discriminating device for hot start and cold start

Publications (1)

Publication Number Publication Date
JPS63143619A true JPS63143619A (en) 1988-06-15

Family

ID=17763685

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61291042A Pending JPS63143619A (en) 1986-12-05 1986-12-05 Automatic discriminating device for hot start and cold start

Country Status (1)

Country Link
JP (1) JPS63143619A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0895871A (en) * 1994-09-22 1996-04-12 Nec Corp Backup memory control system
JP2002159718A (en) * 2001-10-18 2002-06-04 Okumura Yu-Ki Co Ltd Pachinko machine
DE10058594A1 (en) * 2000-11-25 2002-06-13 Bosch Gmbh Robert Automobile electronic device has central multi-tasking universal processor for synchronizing independent sub-systems

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61147357A (en) * 1984-12-21 1986-07-05 Casio Comput Co Ltd Data processor
JPS62118459A (en) * 1985-11-19 1987-05-29 Sharp Corp Memory back-up system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61147357A (en) * 1984-12-21 1986-07-05 Casio Comput Co Ltd Data processor
JPS62118459A (en) * 1985-11-19 1987-05-29 Sharp Corp Memory back-up system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0895871A (en) * 1994-09-22 1996-04-12 Nec Corp Backup memory control system
DE10058594A1 (en) * 2000-11-25 2002-06-13 Bosch Gmbh Robert Automobile electronic device has central multi-tasking universal processor for synchronizing independent sub-systems
JP2002159718A (en) * 2001-10-18 2002-06-04 Okumura Yu-Ki Co Ltd Pachinko machine

Similar Documents

Publication Publication Date Title
DE68929536T2 (en) Apparatus and method for ensuring continuity of operation in a system
GB2290891B (en) Multiprocessor system
JPS63143619A (en) Automatic discriminating device for hot start and cold start
JPH03175537A (en) Error controller for debugging microprocessor
JP2965075B2 (en) Program execution status monitoring method
WO2004003714A2 (en) Circuit for detection of internal microprocessor watchdog device execution and method for resetting microprocessor system
JPH09198258A (en) Task stack overflow detecting circuit
JP2000076081A (en) Task manager and program recording medium
JPS58169218A (en) Recovery system of break of power supply
JPS6339013A (en) Electronic computer
JPH0561572A (en) External power source instantaneous interruption processing device for digital computer
JP2659067B2 (en) Microcomputer reset circuit
JPS61141059A (en) Terminal equipment
JPH064417A (en) Battery backup control system for memory
JPS5818725A (en) Semiconductor storage device
JP2007094537A (en) Memory dump device and memory dump collection method
JPS63191245A (en) Recovery control method for runaway device
JPS61101377A (en) Controller for elevator
JPS6389941A (en) Monitor and control equipment for microprocessor applied equipment
JPH0793188A (en) Runaway restoring device for process controller
JP2618126B2 (en) System audit monitoring method and apparatus
JPS6188317A (en) information processing equipment
JPS6355601A (en) Watchdog timer circuit
JPH0535892A (en) Microcomputer
JPH033041A (en) Time-out monitoring circuit