JPS62214419A - Arithmatic and control unit - Google Patents

Arithmatic and control unit

Info

Publication number
JPS62214419A
JPS62214419A JP61058874A JP5887486A JPS62214419A JP S62214419 A JPS62214419 A JP S62214419A JP 61058874 A JP61058874 A JP 61058874A JP 5887486 A JP5887486 A JP 5887486A JP S62214419 A JPS62214419 A JP S62214419A
Authority
JP
Japan
Prior art keywords
circuit
supply voltage
voltage
arithmetic
power supply
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
JP61058874A
Other languages
Japanese (ja)
Inventor
Koichiro Aoyama
青山 耕一郎
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61058874A priority Critical patent/JPS62214419A/en
Publication of JPS62214419A publication Critical patent/JPS62214419A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the malfunction by setting an internal circuit to the stand-by mode when a supply voltage falls to a level lower than a preliminarily determined level and releasing this mode when the supply voltage is restored to the preliminarily determined level. CONSTITUTION:An arithmetic and control unit 10 consists of an oscillator 1, an I/O port 2, a display circuit 4, an arithmetic circuit 6, a supply voltage level detecting circuit 7, a control circuit 8, a power-on clear circuit 9, etc., and various peripheral equipments 11-14 are connected to this controller 10. The supply voltage level is detected by the detecting circuit 7; and if this voltage falls from a rated voltage to an operation securing voltage and falls to the detection voltage furthermore, the control circuit 8 sends an interrupt signal to the arithmetic circuit 6 to interrupt the processing, and all required data are saved in a RAM 5, and thereafter, the stand-by mode is set and the oscillator 1 is stopped. When the voltage rises thereafter, the control circuit 8 starts oscillation of the oscillator 1 or the like to restart the normal operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は演算制御装置に関し、特に、電源電位を判定し
て電源電圧が低下したとき内部回路をスタンバイモード
に設定して内部回路の誤動作や暴走を防ぐとともに電源
電圧が回復したときスタンバイモードを解除して通常動
作を行わせるようにした演算制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an arithmetic and control device, and in particular, it determines the power supply potential and sets the internal circuit to standby mode when the power supply voltage drops to prevent malfunction of the internal circuit. The present invention relates to an arithmetic and control device that prevents runaway and cancels standby mode to perform normal operation when power supply voltage is restored.

〔従来の技術〕[Conventional technology]

従来の演算制御装置として、例えば、半導体集積回路か
ら構成され、所定の演算操作を行わせるプログラム等を
記憶したROMと、必要なデータや演算結果等を一時的
に記憶するRAMと、RAMのデータやROMのプログ
ラム等によって所定の演算を行う演算回路と、その演算
結果に基づいて入出力インタフェースを介して接続され
ている周辺機器を制御する制御信号等を出力する制御回
路等を備えたものがある。
Conventional arithmetic control devices include, for example, a ROM that is composed of a semiconductor integrated circuit and stores programs for performing predetermined arithmetic operations, a RAM that temporarily stores necessary data and arithmetic results, and data in the RAM. It is equipped with an arithmetic circuit that performs predetermined arithmetic operations based on a program in ROM, etc., and a control circuit that outputs control signals, etc. to control peripheral devices connected via an input/output interface based on the arithmetic results. be.

この演算制御装置においては、上述した演算操作等は所
定の範囲のレベルの電源電圧のもとて所定のクロック信
号に基づいてタイミングをとられながら行われる。
In this arithmetic and control device, the above-mentioned arithmetic operations and the like are performed at a timing based on a predetermined clock signal under a power supply voltage within a predetermined range of levels.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、従来の演算制御装置にあっては、周辺機器等の
一時的な負荷の増大や、バッテリー駆動の場合の電池の
消耗等によって電源電圧が低下すると、内部回路が誤動
作を行ったり、暴走したりして周辺機器に損傷を与える
ことがある。また、このような誤動作や暴走が発生する
と、電源電圧が回復したとしても正常動作に戻らないと
いう不都合がある。
However, in conventional arithmetic and control units, if the power supply voltage drops due to a temporary increase in the load of peripheral devices, etc., or due to battery depletion in the case of battery drive, the internal circuits may malfunction or run out of control. This may cause damage to peripheral equipment. Further, when such malfunction or runaway occurs, there is a problem that normal operation cannot be restored even if the power supply voltage is restored.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記に鑑みてなされたものであり、電源電圧が
低下しても内部回路が誤動作したり、暴走しないように
するとともに電源電圧が回復したとき正常の動作に戻る
ようにするため、電源電圧が予め定めたレベル以下に低
下したとき内部回路をスタンバイモードに設定し、予め
定めたレベルに回復したとき内部回路のスタンバイモー
ドを解除するようにした演算制御装置を提供するもので
ある。
The present invention has been made in view of the above, and is designed to prevent internal circuits from malfunctioning or running out of control even when the power supply voltage drops, and to return to normal operation when the power supply voltage is restored. To provide an arithmetic and control device which sets an internal circuit to standby mode when the voltage drops below a predetermined level and releases the standby mode of the internal circuit when it recovers to the predetermined level.

本発明の演算制御装置の好ましい実施例によれば、前記
の予め定めたレベルは内部回路の動作を保証する電圧と
その動作の限界の電圧の間に設定される。また、更に、
電源電圧が低下してRAMがデータを保持することがで
きなくなると、電源をオフにするように制御される。そ
の後、電源電圧が回復したときは電源を再投入するよう
に制御すれば良い。
According to a preferred embodiment of the arithmetic and control device of the present invention, the predetermined level is set between a voltage that guarantees the operation of the internal circuit and a voltage that is the limit of its operation. Moreover, furthermore,
When the power supply voltage drops and the RAM is no longer able to hold data, the power is controlled to be turned off. Thereafter, when the power supply voltage is restored, the power supply may be controlled to be turned on again.

以下、本発明の演算制御装置を詳細に説明する。Hereinafter, the arithmetic and control device of the present invention will be explained in detail.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示す。ここで、1は発振器
、2は■10(入出力)ポート、3はROM、4は表示
回路、5はRAM、6は内部の演算処理を行う演算回路
、7は電源電圧の電位を検出する検出回路で電源電圧の
電位が後述する予め定めたレベルである検出電圧vz以
下になったとき検出信号を出力する、8は検出回路7の
検出信号をもとに各種の制御信号を発生する制御回路、
9はパワーオンクリア回路、10は以上の回路1〜9を
含んだ半導体装置回路より成る演算制御装置であり、こ
の実施例ではマイクロコンピュータを構成している。1
1.12.13.14は各種の周辺機器である。
FIG. 1 shows an embodiment of the invention. Here, 1 is an oscillator, 2 is 10 (input/output) port, 3 is ROM, 4 is a display circuit, 5 is RAM, 6 is an arithmetic circuit that performs internal arithmetic processing, and 7 detects the potential of the power supply voltage. A detection circuit outputs a detection signal when the potential of the power supply voltage becomes lower than a detection voltage vz, which is a predetermined level described later. 8 is a control for generating various control signals based on the detection signal of the detection circuit 7. circuit,
Reference numeral 9 designates a power-on clear circuit, and 10 designates an arithmetic and control unit comprising a semiconductor device circuit including the above-described circuits 1 to 9, which constitutes a microcomputer in this embodiment. 1
1.12.13.14 are various peripheral devices.

以上の構成において、第2図の電源電圧の波形および第
3図のフローチャートによりその操作を説明する。まず
、時間t0〜t、の期間で電源電圧が定格電圧v0であ
るときは検出回路7は検出信号を発生しないため制御回
路8は制御信号を発生せず(又は通常動作を行う様な制
御信号を発生し)、演算制御装置10は通常動作を行う
。次に、時間1.で電源電圧の低下が始まって時間t2
で動作保証電圧v1になり、さらに時間t、で検出電圧
v2まで低下すると、検出回路7は検出信号を発生し、
制御回路8はこの検出信号に基づいて演算回路に対して
割り込み信号を発生し、演算回路6が現在行っている処
理を中断し、必要なデータはすべてRAM5に退避させ
、その後スタンバイモードに入るように制御し、発振器
も停止する。従って、内部回路の誤動作や暴走を防止す
ることができる。因みに、時間t0〜t、の期間は電位
低下があっても通常動作を行う。電源電圧は時間t3以
後も低下し、時間t4で動作限界電圧v3になり、それ
以後もさらに低下して時間t。
The operation of the above configuration will be explained with reference to the power supply voltage waveform shown in FIG. 2 and the flowchart shown in FIG. 3. First, when the power supply voltage is the rated voltage v0 during the period from time t0 to time t, the detection circuit 7 does not generate a detection signal, so the control circuit 8 does not generate a control signal (or does not generate a control signal for normal operation). (is generated), and the arithmetic and control unit 10 performs normal operation. Next, time 1. The power supply voltage begins to drop at time t2.
When the voltage reaches the operation guaranteed voltage v1 at time t, and further decreases to the detection voltage v2 at time t, the detection circuit 7 generates a detection signal,
The control circuit 8 generates an interrupt signal to the arithmetic circuit based on this detection signal, interrupts the processing currently being performed by the arithmetic circuit 6, saves all necessary data to the RAM 5, and then enters standby mode. control and also stop the oscillator. Therefore, malfunction and runaway of the internal circuit can be prevented. Incidentally, during the period from time t0 to time t, normal operation is performed even if there is a potential drop. The power supply voltage continues to decrease after time t3, reaches the operating limit voltage v3 at time t4, and further decreases thereafter until time t.

で最低電源電圧V、になり、時間t6までこの電圧を維
持する。その後時間t6で上昇し、時間1.に再び検出
電圧v2に達したとすると、この時間t、〜t、の期間
は演算処理装置10はスタンバイモードを維持しており
、内部のデータの保持のみを行っている。このとき最低
電源電圧v4がRAM5のデータ保持電圧V、より低く
ならない限り保持しているデータの破壊は起こらない。
At this point, the lowest power supply voltage V is reached, and this voltage is maintained until time t6. After that, it rises at time t6, and at time 1. Assuming that the detection voltage v2 is reached again in , the arithmetic processing unit 10 maintains the standby mode during this period of time t, to t, and only holds internal data. At this time, unless the lowest power supply voltage v4 becomes lower than the data holding voltage V of the RAM 5, the held data will not be destroyed.

時間t7で検出回路7からの検出信号の発生が停止する
ため制御回路8は発振器1の発振を開始させ、演算回路
6へRAM5に退避した必要なデータを戻して中断して
いた処理を続行させて通常動作が再開する。この様な一
連の制御を行う事により電源電圧の低下の前後で演算制
御装置10は電源電圧低下の影響をまったく受けずに動
作を行う。一般に、動作保証電圧■1はその装置の動作
限界電圧より■3よりマージンを持っである程度高く設
定されるため、その間に検出電圧■2を設定することは
容易であり、又、RAM5のデータ保持はCMO3構成
の場合動作限界電圧V、に比べて非常に低く、電源電圧
の広範囲な変動に対してもデータ保持は可能である。又
、電源電圧がデータ保持電圧v5以下になったときは検
出回路7に別の検出信号を発生させるようにし、この別
の検出信号が出力されたときはパワーオンクリア回路9
にパワーオンクリア信号を発生させて電源をオフにする
ことにより内部回路の誤動作や暴走等を防止することが
できる。以後、電源電圧が回復したときは電源を再投入
した場合と同じ動作を行わせれば良い。
At time t7, the detection signal from the detection circuit 7 stops being generated, so the control circuit 8 starts the oscillation of the oscillator 1, returns the necessary data saved in the RAM 5 to the arithmetic circuit 6, and continues the interrupted process. normal operation resumes. By performing such a series of controls, the arithmetic and control device 10 operates without being affected by the power supply voltage drop before and after the power supply voltage drop. In general, the operation guaranteed voltage (1) is set to a certain degree higher than (3) with a margin than the operating limit voltage of the device, so it is easy to set the detection voltage (2) between them, and the data retention of RAM5 is very low compared to the operating limit voltage V in the case of the CMO3 configuration, and data retention is possible even when the power supply voltage fluctuates over a wide range. Further, when the power supply voltage becomes lower than the data holding voltage v5, the detection circuit 7 is made to generate another detection signal, and when this other detection signal is output, the power-on clear circuit 9
By generating a power-on clear signal to turn off the power, it is possible to prevent internal circuits from malfunctioning or running out of control. Thereafter, when the power supply voltage is restored, the same operation as when the power is turned on again can be performed.

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

以上説明したように、本発明の演算制御装置によれば、
電源電圧が予め定めたレベル以下に低下したとき内部回
路をスタンバイモードに設定し、予め定めたレベルに回
復したとき内部回路のスタンバイモードを解除するよう
にしたため、電源電圧が低下しても内部回路が誤動作し
たり、暴走しないようにすることができるとともに電源
電圧が回復したとき正常の動作に戻すことができる。
As explained above, according to the arithmetic and control device of the present invention,
When the power supply voltage drops below a predetermined level, the internal circuit is set to standby mode, and when it recovers to the predetermined level, the internal circuit is released from standby mode, so even if the power supply voltage drops, the internal circuit remains It is possible to prevent the system from malfunctioning or going out of control, and it is also possible to return to normal operation when the power supply voltage is restored.

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

第1図は本発明の一実施例を示すシステムブロック図、
第2図は電源電圧の波形図、第3図は制御用フローチャ
ート図。 符号の説明
FIG. 1 is a system block diagram showing an embodiment of the present invention;
FIG. 2 is a power supply voltage waveform diagram, and FIG. 3 is a control flowchart. Explanation of symbols

Claims (1)

【特許請求の範囲】[Claims] 電源電圧の電位を検出する電位検出回路と、前記電位検
出回路が前記電源電圧の電位が予め定めたレベル以下に
低下したことを検出したとき内部回路をスタンバイモー
ドに設定し、前記予め定めたレベルに回復したことを検
出したとき前記スタンバイモードを解除する制御回路を
設けたことを特徴とする演算制御装置。
a potential detection circuit that detects the potential of the power supply voltage; and when the potential detection circuit detects that the potential of the power supply voltage has fallen below a predetermined level, the internal circuit is set to standby mode, and the voltage is set to the predetermined level. 1. An arithmetic control device comprising: a control circuit for canceling the standby mode when detecting recovery from the standby mode.
JP61058874A 1986-03-17 1986-03-17 Arithmatic and control unit Pending JPS62214419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61058874A JPS62214419A (en) 1986-03-17 1986-03-17 Arithmatic and control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61058874A JPS62214419A (en) 1986-03-17 1986-03-17 Arithmatic and control unit

Publications (1)

Publication Number Publication Date
JPS62214419A true JPS62214419A (en) 1987-09-21

Family

ID=13096900

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61058874A Pending JPS62214419A (en) 1986-03-17 1986-03-17 Arithmatic and control unit

Country Status (1)

Country Link
JP (1) JPS62214419A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01136534A (en) * 1987-11-19 1989-05-29 Matsushita Electric Works Ltd Charging circuit
JPH0773065A (en) * 1993-09-01 1995-03-17 Nec Corp Emulator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01136534A (en) * 1987-11-19 1989-05-29 Matsushita Electric Works Ltd Charging circuit
JPH0773065A (en) * 1993-09-01 1995-03-17 Nec Corp Emulator

Similar Documents

Publication Publication Date Title
US4827149A (en) Operation halting circuit
JPS62214419A (en) Arithmatic and control unit
KR20000025277A (en) Power control circuit of portable electronic apparatus
JP3061943B2 (en) Power control circuit
JPH06150029A (en) Reset controller
JPS63191245A (en) Resetting control system for device being in runaway state
JPH01217511A (en) Interruption circuit
KR100407569B1 (en) Oscillator circuit with oscillation control function
JPH04171516A (en) Reset circuit
JPH05189078A (en) System clock selecting circuit
JP2871186B2 (en) Microcomputer
JPH01245322A (en) Power failure control circuit for microprocessor
KR900001483B1 (en) Driving method of controlling circuit for power source contained system controller
JPH02110722A (en) Oscillation control system
JPS6373410A (en) Power supply controller
JPS59213098A (en) Memory protecting system
JPH07129278A (en) Resetting control circuit of multiprocessor system
JPS6142001A (en) Malfunction preventing device of controller for automobile
JPH06195160A (en) External interruption edge detecting circuit for microcomputer
JPH09212201A (en) Control circuit for production facility
JPS5870333A (en) Cmos integrated circuit device of dynamic type
JPS6298416A (en) Starting system
JPS58166269A (en) Countermeasure circuit for power source fault of controller
JPH05333965A (en) Battery back-up system
JPS6278616A (en) Stand-by control system in cut-off mode of power supply