JPS59158420A - Reset circuit of microcomputer - Google Patents

Reset circuit of microcomputer

Info

Publication number
JPS59158420A
JPS59158420A JP58032242A JP3224283A JPS59158420A JP S59158420 A JPS59158420 A JP S59158420A JP 58032242 A JP58032242 A JP 58032242A JP 3224283 A JP3224283 A JP 3224283A JP S59158420 A JPS59158420 A JP S59158420A
Authority
JP
Japan
Prior art keywords
circuit
microcomputer
voltage
reset
terminal
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
JP58032242A
Other languages
Japanese (ja)
Inventor
Yukikazu Matsuda
松田 幸和
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 JP58032242A priority Critical patent/JPS59158420A/en
Publication of JPS59158420A publication Critical patent/JPS59158420A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a reset system having stable operation by transmitting a signal to a reset terminal after a prescribed time with a timer circuit started by a power failure detecting circuit after power failure. CONSTITUTION:The power failure detecting circuit 7 brings a signal line A to ''L'' when a power failure is detected. Then, an input terminal I of a timer circuit 29' included in a power failure processing routine in the inside of a microcomputer 3 goes to ''L'' and the circuit 29' starts the operation. When a time T set within a time Tmax when a voltage applied to the computer 3 reaches an operating guarantee voltage or below is elapsed after the power failure, an ''L'' signal is outputted from an output terminal O of the circuit 29'. This output is connected to a signal line C of a circuit block 36, an output line B goes to ''L'' since the signal line A is already at ''L'' level and the computer 3 is reset. The output line B is kept to ''L'' so long as the signal line A is at ''L'' even if the state of the terminal O is changed because of the resetting.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピータのリセット回路に関するも
ので特に電源のバックアップ時や、低電圧で動作させる
場合に、電源電圧がマイクロコンビー−一夕の動作保証
電圧以下になり、プログラムが暴走するのを未然に防ぐ
為のり七ノド回路を提供するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a reset circuit for a microcomputer, and particularly when the power supply is backed up or operated at a low voltage, the power supply voltage is lower than the voltage guaranteed for overnight operation of the microcomputer. The following provides a glue circuit to prevent the program from running out of control.

従来例の構成とその問題点 一般にマイクロコンピュータは、一定の手順に従い、あ
らかじめ決められた仕事を実行させる為の命令群を記録
したメモリー回路を必要とし、家電商品、玩具1時計等
に利用された場合、上記メモリー回路は、電源の供給如
何にかかわらず、メモリー回路に記録された内容が消え
ることのない不揮発性メモリー回路が大半である。
Conventional configurations and their problems In general, microcomputers require a memory circuit that records a group of instructions for executing predetermined tasks according to a certain procedure, and are used in home appliances, toys, watches, etc. In this case, most of the memory circuits mentioned above are non-volatile memory circuits in which the contents recorded in the memory circuits do not disappear regardless of whether power is supplied.

一方マイクロコンビーータは「クロック」と称される発
振回路を備えており、この発振信号もしくは、2分周4
分周された発振信号にて、上記不揮発性メモリー回路か
ら個々の命令を順次一つづつ引き出してきて、一定の仕
事を行うという一種の順序回路で構成されている。そし
て一連の仕事が実行されてゆく途中で発生するデータは
、読み書きが自由であるが電源が供給されなくなれば内
容が消えてしまう揮発性メモリー回路に記録される。
On the other hand, the microconbeater is equipped with an oscillation circuit called a "clock", and this oscillation signal or frequency divided by 2 and 4
It is composed of a kind of sequential circuit that sequentially extracts individual commands from the nonvolatile memory circuit one by one using a frequency-divided oscillation signal to perform a certain task. The data generated during the execution of a series of tasks is recorded in volatile memory circuits that can be read and written freely, but the contents disappear when power is removed.

以上のようにあらかじめ決められた一連の仕事を順次実
行してゆくマイクロコンビーータは、電源が投入された
当初、一連の仕事のどの部分から始めるかは全く不明で
場合によっては、決められた内容と全く異なる動作をし
たり、応用された製品によっては事故を起こす可能性が
あり、危険である。
As mentioned above, when a microcomputer sequentially executes a predetermined series of tasks, it is completely unknown which part of the series of tasks it will start from when the power is turned on. It is dangerous because it may operate completely differently from the content or cause an accident depending on the product to which it is applied.

そこで、マイクロコンピュータにはリセット端子と称す
割り込み入力端子が備えられており、上記リセット端子
を11 L II (メーカによって“H″の場合もあ
り得る)にすると、上記不揮発メモリー回路の命令群の
うち、どの命令を選択するかを決めるカウンタ(「プロ
グラムカウンタ」と称す)に強制的にφ″が設定される
。(「リセット」が作動し7たと称す)。その後再び上
記リセット端子がl Hl″になった時に一連の仕事の
実行を開始する。すなわち、上記リセット端子がL″→
II HIIに変わることで必ず一連の仕事の最初から
開始させることが可能になる。
Therefore, microcomputers are equipped with an interrupt input terminal called a reset terminal, and when the reset terminal is set to 11L II (which may be set to "H" depending on the manufacturer), one of the commands of the nonvolatile memory circuit is , φ'' is forcibly set in a counter (referred to as a "program counter") that determines which instruction to select. (referred to as "7" when "reset" is activated). Thereafter, when the reset terminal becomes l Hl'' again, execution of a series of tasks is started. In other words, the reset terminal becomes L''→
By changing to II HII, it becomes possible to start a series of tasks from the beginning.

従来はORリセット方式と称され、マイクロコンヒー、
−夕の電源線とグランド線の間にティコラとコンデンサ
を直列に挿入し、ティコラとコンデンサの接続点とリセ
ット端子を接続することにより、電源が投入されてから
上記ティコラとコンデンサで決まる時定数だけ遅れてリ
セット端子に11 HIIが入力される方式が広く採用
されていた。
Conventionally, it was called the OR reset method, and
- By inserting a Tikora and a capacitor in series between the power supply line and the ground line, and connecting the connection point of the Tikora and the capacitor to the reset terminal, only the time constant determined by the Tikora and the capacitor can be set after the power is turned on. A method in which 11 HII is input to the reset terminal after a delay has been widely adopted.

しかしながら上記ORIJ上セツト式では、電源型□ 
圧がoyから立ち2る場合は効果があるが、例えば電源
電圧がDCsV〜6vで動作するマイクロコンビーータ
の場合電源電圧がDc3V以下に低下すると、マイクロ
コンビーータの動作は保証されず、しかもリセットは作
動しないという問題点があった。最近マイクロコンピュ
ータのC−MOS化、低消費電力化により、大容量コン
デンサ、乾電池等による停電時のバックアップが可能と
なってきているが、この様な場合にも、マイクロコンピ
ータの電源電圧が動作保証電圧以下になると、動作を停
止させる必要性が出てくる。第1図は停電検出とバック
アップ回路を備えた従来のリセット回路を示すものであ
る。1は停電時には供給が遮断される直流電源、2は安
定化電源でダイオード9を介してマイクロコンピュータ
3に電源電圧vcを供給する。4はリレー、表示装置、
スイッチ回路等を含む負荷回路で6はマイクロコンピー
タ3と、負荷回路4を接続する信号線群である。
However, in the above ORIJ upper set type, the power type □
It is effective when the voltage rises from oy to 2V, but for example, in the case of a microconbeater that operates with a power supply voltage of DCsV to 6V, if the power supply voltage drops to DC3V or less, the operation of the microconbeater is not guaranteed. Moreover, there was a problem that the reset did not work. Recently, with the shift to C-MOS and lower power consumption of microcomputers, it has become possible to use large capacity capacitors, dry batteries, etc. as backup in the event of a power outage. When the voltage drops below that, it becomes necessary to stop the operation. FIG. 1 shows a conventional reset circuit with a power failure detection and backup circuit. Reference numeral 1 denotes a DC power supply whose supply is cut off during a power outage, and 2 a stabilized power supply which supplies a power supply voltage vc to the microcomputer 3 via a diode 9. 4 is a relay, display device,
A load circuit includes a switch circuit, etc., and 6 is a group of signal lines connecting the microcomputer 3 and the load circuit 4.

6は発振器、7は停電検出回路で、直流電源1の電圧v
8がティコラ8.10で分圧され、オペアンプ13のの
入力側に接続され、e入力側にはマイクロコンピュータ
3の重連電圧Vaをツェナーダイオード12にてVZt
にクランプされた電圧が印加さ61、ジ れている。ティコラ11はツェナーダイオード12の電
流制限用である。14はリセット回路で、電圧vcをツ
ェナーダイオード16でvz2にクランプされた電圧が
オペアンプ16のe入力側に、電圧VCをティコラ17
とティコラ18で分圧した電圧が■入力側に印加されて
いる。ティコラ19はツェナーダイオード15の電流制
限用である。20はティコラで21はコンデンサであり
、コンデンサ21の充電電圧がマイクロコンピュータ3
のリセット端子に印加されている。23は大容量コンデ
ンサで、直流電源1からの供給が断たれた時にコンデン
サ23に充電された電荷で、電源電圧VCを供給する為
のものである。24はティコラである。
6 is an oscillator, 7 is a power failure detection circuit, and voltage v of DC power supply 1 is
8 is divided by the Tikola 8.10 and connected to the input side of the operational amplifier 13, and the multi-connected voltage Va of the microcomputer 3 is connected to the e input side by the Zener diode 12 to VZt.
A clamped voltage is applied to the voltage 61 and the voltage is distorted. Tycora 11 is for current limiting of Zener diode 12. 14 is a reset circuit, the voltage VC is clamped to vz2 by the Zener diode 16, and the voltage VC is connected to the e input side of the operational amplifier 16.
The voltage divided by Tikola 18 is applied to the input side. Tycora 19 is for current limiting of Zener diode 15. 20 is a Tikora, 21 is a capacitor, and the charging voltage of the capacitor 21 is the microcomputer 3.
is applied to the reset terminal of 23 is a large capacity capacitor, which is used to supply the power supply voltage VC with the charge charged in the capacitor 23 when the supply from the DC power supply 1 is cut off. 24 is Tikora.

第2図は電圧voの変化とオペアンプ16の出力すの状
態を示すグラフで、今、時刻tφで停電が発生したとす
ると、電圧Vaは、コンデンサ23より供給されるのみ
であるからしだいに低下してくる。
FIG. 2 is a graph showing changes in the voltage vo and the state of the output of the operational amplifier 16. If a power outage occurs now at time tφ, the voltage Va is only supplied from the capacitor 23, so it gradually decreases. I'll come.

ツェナーダイオード15の両端電圧Vz2 Ire:、
変化しないが、電圧vcをティコラ17とティコラ18
で分圧したa点の電位は電圧vcの低下に伴ない同じ様
に低下する。そして時刻tlの時にa点の電位がvz2
と一致すると、オペアンプ16の出力すはII H”か
ら“Lパに変化するのでマイクロコンピータ3はリセッ
トが作動し、動作が停止する。
Voltage across the Zener diode 15 Vz2 Ire:,
Although it does not change, the voltage VC is set to Tikora 17 and Tikora 18.
The potential at point a divided by , decreases in the same way as voltage vc decreases. Then, at time tl, the potential at point a is vz2
When it matches, the output of the operational amplifier 16 changes from "II H" to "L P," so that the microcomputer 3 is reset and stops operating.

この時刻t1時の電圧VCが、マイクロコンピータ3の
最低動作保証電圧Vc1以上であれば、マイクロコンビ
ーータ3が誤動作する前に停止させることが出来るし、
時刻tl以前に停電が復帰すれば、マイクロコンビーー
タ3はさらに仕事を続行することが出来る。
If the voltage VC at time t1 is equal to or higher than the minimum guaranteed operation voltage Vc1 of the microcomputer 3, it is possible to stop the microcomputer 3 before it malfunctions.
If the power is restored before time tl, the microcombinator 3 can continue its work.

停電検出回路7からの出力信号線C11−1,、時刻環
にL″となり、マイクロコンビーータ3は、信号線C:
 ” L”を検出して停電処理ルーチンを実行する。停
電処理ルーチンで行う仕事の内容は、応用機器によって
異なるが、負荷回路4をすべて遮断したり、停電復帰時
の開始条件を設定したりする。しかしながら上記従来例
では次の様々問題点を有していた。
The output signal line C11-1 from the power failure detection circuit 7 becomes L'' on the time ring, and the microconbeater 3 outputs the signal line C:
Detects "L" and executes the power outage processing routine. The contents of the work performed in the power outage processing routine vary depending on the application equipment, but include cutting off all load circuits 4 and setting start conditions for recovery from power outage. However, the above conventional example has the following various problems.

(1)オペアンプ13.16の電源を電圧VCから供給
するため、停電時の総消費電流が大きく、時刻を勤\ら
時刻t1−!での期間が短くなる。
(1) Since the power for the operational amplifiers 13 and 16 is supplied from the voltage VC, the total current consumption during a power outage is large, and the time t1-! period becomes shorter.

(2)  マイクロコンピュータ3の電源端子Vccに
供給される電源電圧vcの低下を検出し、一定値以下に
なると強制的にマイクロコンピュータ3実行を停止させ
る為、保証できる停電期間にばらつきがある。
(2) Since a drop in the power supply voltage vc supplied to the power supply terminal Vcc of the microcomputer 3 is detected and execution of the microcomputer 3 is forcibly stopped when the voltage falls below a certain value, there are variations in the guaranteed power outage period.

(3)  マイクロコンビーータ3の動作可能電源電圧
Vcが低くなればなる程、低電圧を検出して、リセット
をかける回路構成が複雑になり、調整が必要になる為量
産品には不適当である。
(3) The lower the operating power supply voltage Vc of the microcon beater 3, the more complex the circuit configuration for detecting low voltage and resetting it becomes, requiring adjustment, making it unsuitable for mass-produced products. It is.

発明の目的 本発明は上記問題点に鑑みてなしたもので、従来マイク
ロコンピータ3の電源端子Wooに供給される電源電圧
vcO値に応じてリセットを作動させていたのを、時間
で規定することにより、停電   時にバックアップ電
源から電源を供給されて動作しているマイクロコンピュ
ータ3にリセットをかけることを目的としている。
Purpose of the Invention The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to define a reset operation based on time, whereas the conventional reset operation was performed according to the power supply voltage vcO value supplied to the power supply terminal Woo of the microcomputer 3. The purpose of this is to reset the microcomputer 3, which is operating with power supplied from the backup power supply, in the event of a power outage.

発明の構成 上記目的を達成するために本発明は、上記停電検出回路
と、停電時に作動するバンクアンプ電源とを最少限備え
、他に上記停電検出回路が作動してからカウントを開始
するタイマー回路を設け、タイマー回路の出力はマイク
ロコンピュータ3のリセット端子に接続してあり一定時
間後に強制的にマイクロコンピュータ3をリセットする
ようにしたものである。
Structure of the Invention In order to achieve the above object, the present invention includes at least the above-mentioned power failure detection circuit and a bank amplifier power supply that operates during a power outage, and also includes a timer circuit that starts counting after the above-mentioned power failure detection circuit is activated. The output of the timer circuit is connected to the reset terminal of the microcomputer 3, so that the microcomputer 3 is forcibly reset after a certain period of time.

実施例の説明 以下その実施例を図を用いて説明する。各図にて同一付
番は同一のものを示しており、各図での説明は省略する
ものとする。第3図において1は第1図での停電検出回
路の他の実施例を示すもので、直流電源1の電圧V、が
安定化電源2を介して電圧VOK安定されている。ティ
コラ26の一端は電圧vG′に接続されており他端はテ
ィコラ26を介してグランドに接続され、さらにトラン
ジスタ27のベースに接続されている。トランジスタ2
7のエミッタはグランドに、そしてコレクタは、ティコ
ラ28を介して電圧vcにさらに、タイマー10、−ゾ 回路29とマイクロコンピュータ3の入力端子工に接続
されている。タイマー回路29は、ティコラ34を介し
て流入する電荷でコンデンサ30の両端電位が上昇し、
ティコラ31と32で電圧Vaを分圧した電位より高く
なる壕でタイマー回路29の出力であるオペアンプ33
の出力を“H11に保持している。ダイオード36はテ
ィコラ26を介してコンデンサ30に電荷が流入するの
を防止するダイオードである。
DESCRIPTION OF THE EMBODIMENTS The embodiments will be described below with reference to the drawings. In each figure, the same number indicates the same thing, and the explanation in each figure will be omitted. In FIG. 3, reference numeral 1 shows another embodiment of the power failure detection circuit in FIG. 1, in which the voltage V of the DC power supply 1 is stabilized by the voltage VOK via the stabilizing power supply 2. In FIG. One end of the Tikora 26 is connected to the voltage vG', and the other end is connected to the ground via the Tikora 26, and further connected to the base of the transistor 27. transistor 2
The emitter of 7 is connected to the ground, and the collector is further connected to the voltage VC via the Tikola 28, and to the timer 10, the -Z circuit 29, and the input terminal of the microcomputer 3. In the timer circuit 29, the potential across the capacitor 30 rises due to the charge flowing through the Tikola 34,
The operational amplifier 33, which is the output of the timer circuit 29, has a potential higher than the potential obtained by dividing the voltage Va by the Tikora 31 and 32.
The diode 36 is a diode that prevents electric charge from flowing into the capacitor 30 via the Tikola 26.

上記構成にて、通常時は直流電源1から安定化電源2.
ダイオード9.ティコラ24を介してコンデンサ23に
電荷が充電されているが、停電時には直流電源1からの
給電が停止するので上記コンデンサ23がバックアップ
電源となり、タイマー回路29及びマイクロコンピュー
タ3はコンデンサ23からの放電により動作をつづける
In the above configuration, normally, from DC power supply 1 to stabilized power supply 2.
Diode9. The capacitor 23 is charged with electric charge through the Tikora 24, but in the event of a power outage, the power supply from the DC power supply 1 is stopped, so the capacitor 23 becomes a backup power supply, and the timer circuit 29 and the microcomputer 3 are activated by the discharge from the capacitor 23. Continue the action.

そこで今、停電になったとすると、直流電源1の電圧V
、はOvとなり安定化電源の出力電圧vG′もコンデン
サ23からの放電がダイオード9で遮断される為Ovに
低下する。すると、電圧vc′が印加11・ されている時はティコラ26を介してl・ランジスタ2
7のベースに電流が流れ込むので、ONし、コンデンサ
3oの両端電位を約0.2■に保持していたのが、電圧
VCがOvとなると、トランジスタ27はOFFに反転
する。上記トランジスタ27のコレクタはマイクロコン
ピュータ3の入力端チェにも接続されており、通常時は
“l、 IIが入力されているが、停電時はトランジス
タ27がOFFするので“Huが入力される。マイクロ
コンピ−タ3は入力端子Iに入力される信号をチェック
することで停電の発生を検出することが可能で、入力端
チェに″H′″信号が入力されるとあらかじめ設定され
た停電処理ルーチンにジャンプし、信号線群6f!:通
じて負荷回路4を操作する。本発明は上記停電処理ルー
チンに関するものではないので詳しく述べることは避け
るが、最小限の処理内容としてマイクロコンビーータ3
のリセットがかかる前に入力端チェの入力が′L″すな
わち停電復帰した場合に、そのことを検出する為のチェ
ックルーチンは必要である。
So, if there is a power outage now, the voltage of DC power supply 1 is V
, becomes Ov, and the output voltage vG' of the stabilized power supply also decreases to Ov because the discharge from the capacitor 23 is blocked by the diode 9. Then, when the voltage VC' is applied 11, the l transistor 2 is
Since current flows into the base of transistor 7, the transistor 27 is turned on and the potential across the capacitor 3o is maintained at about 0.2■, but when the voltage VC becomes Ov, the transistor 27 is turned off. The collector of the transistor 27 is also connected to the input terminal check of the microcomputer 3, and normally "1" and "II" are input, but when a power failure occurs, the transistor 27 is turned off and "Hu" is input. The microcomputer 3 can detect the occurrence of a power outage by checking the signal input to the input terminal I, and when the "H'" signal is input to the input terminal check, the preset power outage processing is performed. Jump to the routine and signal line group 6f! :Operate the load circuit 4 through. Since the present invention does not relate to the above-mentioned power outage processing routine, a detailed description thereof will be avoided, but as a minimum processing content, the microcontroller 3
A check routine is necessary to detect if the input of the input terminal check is 'L', that is, the power is restored before the reset is applied.

一方、トランジスタ27がOFFするとタイマー回路2
9に備えられたコンデンサ3oにはティコラ34を介し
て電荷が流入するのでコンデンサ30の両端電位は上昇
する。該両端電位がティコラ31と32とで決められる
電位以上となると、オペアンプ33の出力すなわちタイ
マー回路29の出力は“′L°′となり、マイクロコン
ビー、−夕3はリセットされる。一方、タイマー回路2
9及びマイクロコンビー−−23が消費する電力は、あ
らかじめ実験により、測定可能であるから、ばらつき等
を考慮して、マイクロコンビーータ3に供給される電圧
Vcが、マイクロコンピュータ3の動作保証電圧以下に
低下するまでの時間Tmaxは容易に求められる。そこ
で、停電を検出してからタイマー回路29の出力が“′
L″′になるまでの時間Tを’I’max以下に設定し
ておけばマイクロコンビー−タ3は電源電圧voの低下
で誤動作する前に停止させることが出来る。
On the other hand, when the transistor 27 is turned off, the timer circuit 2
Since charges flow into the capacitor 3o provided in the capacitor 9 via the Tikola 34, the potential across the capacitor 30 increases. When the potential at both ends becomes equal to or higher than the potential determined by the Tikora 31 and 32, the output of the operational amplifier 33, that is, the output of the timer circuit 29 becomes "'L°'", and the microcomputer 3 is reset. On the other hand, the timer circuit 2
Since the power consumed by the microcomputer 9 and the microcomputer 23 can be measured in advance through experiments, the voltage Vc supplied to the microcomputer 3 is determined to be the operating guaranteed voltage of the microcomputer 3, taking into account variations etc. The time Tmax until the temperature decreases to below is easily determined. Therefore, after detecting a power outage, the output of the timer circuit 29 is
By setting the time T until it becomes L''' to be less than 'I'max, the microconbeater 3 can be stopped before it malfunctions due to a drop in the power supply voltage vo.

従って、停電時のマイクロコンピュータ3の動作時間を
一定にすることが可能で、しかも低電圧13・ を検出するリセット回路も不要になる。しかしながら」
二記発明では、タイマー回路の動作時間Tを微妙に調整
しなければならないという問題点と、タイマー回路自体
が消費する電力が無駄であるという問題点を有している
Therefore, it is possible to keep the operating time of the microcomputer 3 constant during a power outage, and there is no need for a reset circuit to detect the low voltage 13. however"
The second invention has the problem that the operating time T of the timer circuit must be delicately adjusted, and the power consumed by the timer circuit itself is wasted.

第4図は、さらに上記問題点に鑑みてなしたものでタイ
マー回路の働きをマイクロコンピュータ3自身に行なわ
せるようにしたものである。第4図において、29′(
dマイクロコンピータ3内部での上記停電処理ルーチン
内に含まれる時間カウントを行なうルーチンをブロック
で示したタイマー回路で通常時はll L 11が出力
されている。7は第1図で説明した停電検出回路で、該
回路の出力は、論理ブロック36と、マイクロコンピュ
ータ3の入力端チェに接続されており、入力端チェはタ
イマー回路29′に接続されている。論理ブロック36
はOR回路37とAND回路38とで構成された一種の
自己保持回路で、信号線入と信号線Cの両方共11 L
”になると、論理ブロック36の出力線Bが11 L 
11となり、−産出力線BがII L lT14I、−
2゛ になると、信号線Cの状態にかかわりなく、信号線Aが
′H”になるまで出力線BをL IIに保持するもので
ある。
FIG. 4 is a circuit diagram which has been developed in view of the above-mentioned problem, in which the microcomputer 3 itself performs the function of the timer circuit. In Figure 4, 29'(
A timer circuit is a timer circuit in which a routine for counting time included in the above-mentioned power failure processing routine inside the microcomputer 3 is shown as a block, and normally outputs ll L 11. 7 is the power failure detection circuit explained in FIG. 1, and the output of this circuit is connected to the logic block 36 and the input end check of the microcomputer 3, and the input end check is connected to the timer circuit 29'. . logic block 36
is a type of self-holding circuit composed of an OR circuit 37 and an AND circuit 38, and both signal line input and signal line C are 11 L.
”, the output line B of the logic block 36 becomes 11 L.
11, - output line B becomes II L lT14I, -
2, the output line B is held at L II regardless of the state of the signal line C until the signal line A becomes 'H'.

通常時は、信号線入に接続されている停電検出回路7の
出力はIf HIIであるので出力線BもH”であるが
、停電が検出されると、信号線Aが1lLllになると
同時にタイマー回路29′の動作が開始する。タイマー
回路29′のカウントは発振器6の周波数を基準とする
マイクロコンビーータ3のソフトカウントであるので調
整不要で高精度である。
Normally, the output of the power failure detection circuit 7 connected to the signal line input is If HII, so the output line B is also H'', but when a power failure is detected, the signal line A becomes 1LLL and at the same time the timer The operation of the circuit 29' is started.The count of the timer circuit 29' is a soft count of the microcon beater 3 based on the frequency of the oscillator 6, so that no adjustment is required and the count is highly accurate.

あらかじめ設定された時間Tが経過すると、タイマー回
路39′の出力は信号線Cに接続されているマイクロコ
ンビーータ3の出力端子0から“l、 11が出力され
る。ここで39は出力端子Oのプルアソブティコウであ
る。論理ブロックの信号線入はすでに“L“になってお
り、ここで、信号線Cが“L IIになると、出力線B
も“L IIとなり、マイクロコンピュータ3はリセッ
トされる。マイクロコンビーータ3のリセットにより出
力端子Oの状態が変化しても信号線入がII L”であ
る限り出力15 線Bは′L″が保持される。論理ブロックはOR回路と
AND回路のみで構成出来るためC−MOSの使用が可
能で、消費電力はマイクロコンビー−タ3の消費電力に
較べ無視出来る。
When the preset time T has elapsed, the output of the timer circuit 39' is "l, 11" from the output terminal 0 of the microconbeater 3 connected to the signal line C. Here, 39 is the output terminal. The logic block's signal line input is already "L", and when the signal line C becomes "L II", the output line B
becomes "L II", and the microcomputer 3 is reset. Even if the state of the output terminal O changes due to the reset of the microcomputer 3, as long as the signal line input is "II L", the output 15 line B remains 'L'. Since the logic block can be composed of only an OR circuit and an AND circuit, C-MOS can be used, and the power consumption can be ignored compared to the power consumption of the microconbeater 3.

従って、上記第3図で残っていたタイマー回路29′の
調整と、消費電力の問題点を一掃することが出来、低電
圧検出回路を使用することなしに、マイクロコンビー−
一夕3の動作を保証出来る。
Therefore, it is possible to eliminate the problems of adjusting the timer circuit 29' and power consumption that remained in FIG.
We can guarantee the operation of 3 times overnight.

発明の効果 本発明によれば一定時間後に強制的にマイクロコンビー
ータをリセットするので、安定した動作が行われる。
Effects of the Invention According to the present invention, since the microconbeater is forcibly reset after a certain period of time, stable operation is achieved.

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

第1図は従来の電圧VCの低下を検出してマイクロコン
ビーータ3のリセットをかける回路図、第2図はオペア
ンプの出力を示す図、第3図は本発明の一実施例を示す
回路図、第4図は他の実施例の回路図である。 1・・・・・・停電時には供給が遮断される直流電源、
3・・・・・・マイクロコンピュータ、6・・・・・マ
イクロコンピーータの発振器、7,7′・・・・・・停
電検出回路、13.16.33・・・・・・オペアンプ
、14・・・・・・低電圧検出回路、23・・・・・停
電時にはバックアップ電源となるコンデンサ、29.2
9’・・・・・・マイクロコンピュータ3の停電時動作
タイムを決めるタイマー回路、36・・・・・・論理ブ
ロック、vs・・・・・・直流電源1の電圧、vc・・
・・・・マイクロコンビーータに印加される電圧、VC
C・・・・・・マイクロコンピュータの電源端子、R・
・・・・・同じくリセット端子、工・・・・・・同じく
入力端子、O・・・・・・同じく出力端子。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名1ゐ
             1j
Figure 1 is a conventional circuit diagram that detects a drop in voltage VC and resets the microcon beater 3, Figure 2 is a diagram showing the output of an operational amplifier, and Figure 3 is a circuit diagram showing an embodiment of the present invention. 4 are circuit diagrams of other embodiments. 1...DC power supply whose supply is cut off during a power outage,
3... Microcomputer, 6... Microcomputer oscillator, 7,7'... Power failure detection circuit, 13.16.33... Operational amplifier, 14...Low voltage detection circuit, 23...Capacitor that serves as a backup power supply in the event of a power outage, 29.2
9'... Timer circuit that determines the operating time of the microcomputer 3 during power outage, 36... Logic block, vs... Voltage of the DC power supply 1, vc...
... Voltage applied to the microconbeater, VC
C... Microcomputer power supply terminal, R.
...Same as reset terminal, G...Same as input terminal, O...Same as output terminal. Name of agent: Patent attorney Toshio Nakao and one other person 1ゐ 1j

Claims (2)

【特許請求の範囲】[Claims] (1)入力信号が11 L I+の時、プログラムがO
番地から強制的にスタートするように設定された割り込
み入力端子(以下「リセット端子」と称す)と、あらか
じめ組み込まれたプログラムを記憶する不揮発性の第1
のメモリー回路と、随時データの書き換えが可能な揮発
性の第2のメモリー回路と、−F記プログラムが順次実
行される際の基準クロックを発生する発振回路を備えた
マイクロコンビー−一夕と、停電時に11 HI+ある
いは11 L I+の信号を発生する停電検出回路と、
停電時に上記マイクロコンピュータへ電源を供給するバ
ンクアップ回路と、上記停電検出回路から信号が発生し
てから一定時間後に上記リセット端子を“′Lパにする
信号を発生するタイマー℃” 回路とが成るマイクロコンピュータのリセット回路。 2/  ゛
(1) When the input signal is 11L I+, the program is O
An interrupt input terminal (hereinafter referred to as the "reset terminal") that is set to forcibly start from the address, and a non-volatile first terminal that stores a pre-installed program.
A microcombee equipped with a memory circuit, a volatile second memory circuit that allows data to be rewritten at any time, and an oscillation circuit that generates a reference clock when the programs in F are sequentially executed. A power outage detection circuit that generates a signal of 11 HI+ or 11 L I+ during a power outage;
It consists of a bank-up circuit that supplies power to the microcomputer in the event of a power outage, and a timer circuit that generates a signal that sets the reset terminal to "'L" after a certain period of time after a signal is generated from the power outage detection circuit. Microcomputer reset circuit. 2/ ゛
(2)タイマー回路の動作を上記マイクロコンピ−タの
上記第1のメモリー回路内に組み込まれたプログラムで
行う特許請求の範囲第1項記載のマイクロコンピュータ
のり七ノド回路。
(2) A microcomputer circuit according to claim 1, wherein the timer circuit is operated by a program incorporated in the first memory circuit of the microcomputer.
JP58032242A 1983-02-28 1983-02-28 Reset circuit of microcomputer Pending JPS59158420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58032242A JPS59158420A (en) 1983-02-28 1983-02-28 Reset circuit of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58032242A JPS59158420A (en) 1983-02-28 1983-02-28 Reset circuit of microcomputer

Publications (1)

Publication Number Publication Date
JPS59158420A true JPS59158420A (en) 1984-09-07

Family

ID=12353522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58032242A Pending JPS59158420A (en) 1983-02-28 1983-02-28 Reset circuit of microcomputer

Country Status (1)

Country Link
JP (1) JPS59158420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07202662A (en) * 1993-12-28 1995-08-04 Nec Corp Power-on reset circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07202662A (en) * 1993-12-28 1995-08-04 Nec Corp Power-on reset circuit

Similar Documents

Publication Publication Date Title
US4410991A (en) Supervisory control apparatus
GB2315618A (en) Power supply switching with logic integrity protection
JPS59158420A (en) Reset circuit of microcomputer
KR100382747B1 (en) Electronics
JPH0460245B2 (en)
JPH0142002B2 (en)
JPH01288934A (en) Double microcomputer system runaway preventing circuit
JPS58205225A (en) Composite resetting circuit
JPS62145440A (en) Runaway detection circuit
JPH0120775B2 (en)
JPH0342496Y2 (en)
JPS6225794Y2 (en)
JPS59146349A (en) Automatic reset system of microcomputer
JPS61121117A (en) Memory back-up controller
JPS6315954Y2 (en)
JPH0426902Y2 (en)
JPS626315A (en) Memory back-up device for microcomputer
JP2722348B2 (en) Oscillation circuit
JPH01195559A (en) Back-up memory for electronic equipment
KR0155045B1 (en) Watch dog timmer of self-service guard system
JPS62222318A (en) Information processor
JPH01245322A (en) Power failure control circuit for microprocessor
JPH06103480B2 (en) Blackout processor
JP3053270B2 (en) Power supply backup method and device
JPS5990102A (en) Program controller