JPH0922403A - Integrated circuit having reset control function - Google Patents

Integrated circuit having reset control function

Info

Publication number
JPH0922403A
JPH0922403A JP7169578A JP16957895A JPH0922403A JP H0922403 A JPH0922403 A JP H0922403A JP 7169578 A JP7169578 A JP 7169578A JP 16957895 A JP16957895 A JP 16957895A JP H0922403 A JPH0922403 A JP H0922403A
Authority
JP
Japan
Prior art keywords
microcomputer
reset
power supply
supply voltage
oscillation
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.)
Withdrawn
Application number
JP7169578A
Other languages
Japanese (ja)
Inventor
Katsumi Sano
克己 佐野
Kiyohiko Onishi
潔彦 大西
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP7169578A priority Critical patent/JPH0922403A/en
Publication of JPH0922403A publication Critical patent/JPH0922403A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To surely and quickly perform the reset operation of a microcomputer by detecting the oscillation state of the microcomputer and to perform the optimum reset operation. SOLUTION: This integrated circuit includes a power voltage monitoring part 101, a pulse counter part 103, a coincidence detection part 105, a power-on reset part 107, a watchdog timer control part 109 and a watchdog timer part 111. The watchdog input terminal and the reset output terminal of the part 111 are connected to the watchdog output terminal and the reset input terminal of a microcomputer 113 respectively via a Schmitt inverter 115. At the same time, the input terminal of the part 105 is connected to the oscillation pulse output terminal of the microcomputer 113 via the inverter 115. Then the reset operation is started after a prescribed number of oscillation pulses of the microcomputer 113 are counted, and the reset operation is also started right after the power voltage returned to the operating voltage when the operating power voltage of the microcomputer 113 drops.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、電源電圧を監視し
てリセット動作を行うリセット制御機能付集積回路に関
し、特に、マイクロコンピュータの発振状態を検知する
ことで最適なリセット動作を行うリセット制御機能付集
積回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an integrated circuit with a reset control function for monitoring a power supply voltage and performing a reset operation, and more particularly to a reset control function for performing an optimum reset operation by detecting an oscillation state of a microcomputer. Integrated circuit.

【0002】[0002]

【従来の技術】近年、半導体技術の進歩に伴い、マイク
ロコンピュータ(以下、単にマイコンと呼ぶ。)は広く
応用され、応用分野ごとに各種のマイコンが応用されて
いる。
2. Description of the Related Art In recent years, with the progress of semiconductor technology, microcomputers (hereinafter simply referred to as "microcomputers") have been widely applied, and various microcomputers have been applied to each application field.

【0003】ところで、マイコンを動作させるために電
源を投入する際、マイコンの動作を制御するフリップフ
ロップ、カウンタ、レジスタ等の回路はどのような状態
にセットされるかわからないため、電源投入後、なんら
かの方法によりこれらの回路の状態をある定められた状
態にセットする必要がある。また、マイコンが動作中に
も、ある予期せぬ状態に動作が入ってしまう場合やある
所定の動作を永久に繰返してしまう場合があり、電源投
入後と同様に、これらの回路の状態を正常な状態に戻す
必要がある。
By the way, when the power is turned on to operate the microcomputer, it is not known what state the circuits such as flip-flops, counters and registers for controlling the operation of the microcomputer are set. The method requires the state of these circuits to be set to some defined state. In addition, even when the microcomputer is operating, some unexpected states may occur, or certain prescribed actions may be repeated forever. It is necessary to return to a normal state.

【0004】このため、マイコンは上述したようなマイ
コンの暴走を防ぐためのリセット制御機能付集積回路を
備えており、この回路により、マイコンの動作を制御す
る回路をある定められた状態に強制的にセットし、初期
状態に設定しなおすことにより、マイコンの動作を正常
な動作状態に戻している。
For this reason, the microcomputer is provided with an integrated circuit with a reset control function for preventing the above-mentioned runaway of the microcomputer, and by this circuit, the circuit for controlling the operation of the microcomputer is forced to a predetermined state. , And resetting to the initial state, the operation of the microcomputer is returned to the normal operating state.

【0005】このようなリセット制御機能付集積回路の
中に、電源電圧を監視してリセット動作を行う電源IC
(以下、電源電圧監視付電源ICと呼ぶ。)がある。電
源ICは、マイコンの動作電圧に即した定電圧を供給す
るものであるが、この電源ICに電源電圧監視機能を付
けることで、電源投入時あるいはマイコン動作中の電源
電圧降下時に自動的にリセット動作を行い、マイコンの
暴走を防ぐことができるようにしたものが電源電圧監視
付電源ICである。
In such an integrated circuit with a reset control function, a power supply IC for monitoring a power supply voltage and performing a reset operation
(Hereinafter, referred to as power supply IC with power supply voltage monitoring). The power supply IC supplies a constant voltage that matches the operating voltage of the microcomputer. By adding a power supply voltage monitoring function to this power supply IC, it is automatically reset when the power is turned on or when the power supply voltage drops during microcomputer operation. A power supply IC with a power supply voltage monitor operates to prevent the microcomputer from running away.

【0006】以下、従来の電源電圧監視付電源ICにつ
いて説明する。図12は、従来の電源電圧監視付電源I
Cとマイコンの接続の一例を示す図である。図12に示
すように、電源電圧監視付電源IC1201のVDD出力
端子がマイコン1203のVDD入力端子に、電源電圧監
視付電源IC1201のリセット出力端子がマイコン1
203のリセット入力端子にそれぞれ接続されている。
なお、マイコン1203は、発振段回路1205を有し
ている。
A conventional power supply IC with power supply voltage monitoring will be described below. FIG. 12 shows a conventional power supply I with power supply voltage monitoring.
It is a figure which shows an example of a connection of C and a microcomputer. As shown in FIG. 12, the V DD output terminal of the power supply voltage monitoring power supply IC 1201 is the V DD input terminal of the microcomputer 1203, and the reset output terminal of the power supply voltage monitoring power supply IC 1201 is the microcomputer 1
Each of them is connected to a reset input terminal of 203.
The microcomputer 1203 has an oscillation stage circuit 1205.

【0007】次に、電源電圧監視付電源ICのリセット
動作について図13のタイミングチャートを用いて説明
する。なお、図13は電源投入時のものである。
Next, the reset operation of the power supply IC with power supply voltage monitoring will be described with reference to the timing chart of FIG. Note that FIG. 13 shows the state when the power is turned on.

【0008】電源が投入され、VCC(アプリケーション
用供給電圧)の上昇とともに、VDD(マイコン及び周辺
回路用供給電源)の上昇が始まる。
When the power is turned on, the V CC (supply voltage for application) rises, and the V DD (supply power for microcomputer and peripheral circuits) starts to rise.

【0009】電源投入後、図13の時刻t131 で、マイ
コン1203に供給されるVDDがV2 (マイコン発振電
圧)となり、マイコン1203の発振段回路1205は
発振を開始する。
After the power is turned on, at time t 131 in FIG. 13, V DD supplied to the microcomputer 1203 becomes V 2 (microcomputer oscillation voltage), and the oscillation stage circuit 1205 of the microcomputer 1203 starts oscillation.

【0010】一方、電源IC1201はリセット出力端
子からマイコン1203のリセット入力端子に、時刻t
133 まで“0”レベルを出力することで、マイコン12
03にリセット動作を続けている。ここで、この“0”
レベルが出力される期間はコンデンサCと抵抗Rのウオ
ッチドッグ時定数で決まり、マイコンが発振を開始する
時刻t131 よりも後に終了するように設定されている。
この期間のことをリセットパルス幅と呼ぶ。図13にお
いては、T131 がリセットパルス幅に相当し、VDDがV
3 (動作電圧)になる時刻t132 から上述の時刻t133
までとなる。なお、V3 >V2 とする。
On the other hand, the power supply IC 1201 transfers from the reset output terminal to the reset input terminal of the microcomputer 1203 at time t.
By outputting “0” level up to 133 , the microcomputer 12
The reset operation continues at 03. Here, this "0"
The period during which the level is output is determined by the watchdog time constant of the capacitor C and the resistor R, and is set to end after the time t 131 when the microcomputer starts oscillation.
This period is called a reset pulse width. In FIG. 13, T 131 corresponds to the reset pulse width, and V DD is V
From time t 132 when 3 (operating voltage) is reached, time t 133 described above
Up to Note that V 3 > V 2 .

【0011】このように、マイコンが発振を開始して
も、電源ICはリセット動作を一定時間経過するまで続
けることになる。従って、電源投入時にはマイコンは自
動的にリセットされ、正常な動作状態に入ることができ
る。
As described above, even if the microcomputer starts oscillating, the power supply IC continues the reset operation until a fixed time elapses. Therefore, when the power is turned on, the microcomputer is automatically reset and can enter a normal operation state.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、従来の
電源電圧監視付電源ICのリセット動作には以下のよう
な問題があった。それは、VDDがV2 になってもマイコ
ンの発振段回路がすぐに発振しなかった時には、マイコ
ンが発振する前にリセット動作が終了してしてしまい、
結局マイコンのリセット動作が行われない場合が起こっ
てしまうということである。以下、図14のタイミング
チャートを用いて説明する。なお、図14は電源投入時
のものである。
However, the reset operation of the conventional power supply IC with power supply voltage monitoring has the following problems. The reason is that if the oscillation stage circuit of the microcomputer does not immediately oscillate even if V DD becomes V 2 , the reset operation ends before the microcomputer oscillates.
In the end, it means that the reset operation of the microcomputer may not be performed. Hereinafter, description will be made with reference to the timing chart of FIG. Note that FIG. 14 shows the state when the power is turned on.

【0013】マイコンの発振段回路は、その発振周波数
を決定する水晶の特性によりVDDがV2 になってもすぐ
に発振せず、一定時間経過後発振を開始するという特性
を有している場合があり、図14に示すTsta (発振開
始時間)が上記一定時間に相当している。
The oscillation stage circuit of the microcomputer has a characteristic that it does not oscillate immediately even if V DD becomes V 2 due to the characteristic of the crystal that determines the oscillation frequency, and starts oscillating after a certain period of time. In some cases, T sta (oscillation start time) shown in FIG. 14 corresponds to the constant time.

【0014】この時、電源ICがマイコンにリセット動
作を行うリセットパルス幅T141 が上記発振開始時間よ
りも十分長く設定されていない場合には、マイコンが発
振を開始する時刻t144 よりも、リセット動作を終了す
る時刻t143 のほうが先に来てしまうのである。従っ
て、マイコンのリセット動作が実行されないこととなっ
てしまうのである。
At this time, if the reset pulse width T 141 for resetting the microcomputer by the power supply IC is not set sufficiently longer than the oscillation start time, the reset pulse width T 141 is reset from the time t 144 when the microcomputer starts oscillation. The time t 143 at which the operation is finished comes earlier. Therefore, the reset operation of the microcomputer is not executed.

【0015】このため、あらかじめ上記Tsta を見込ん
でリセットパルス幅を設定することにより上述した状況
を回避しようとする方法が考えられるが、この方法では
マイコン動作中の電源電圧降下時におけるリセット動作
には次のような新たな問題が発生してしまうのである。
以下、図15に示すマイコン動作中の電源電圧降下時の
タイミングチャートを用いて説明する。なお、図15に
おいて、Aは上記Tst a を見込んでリセットパルス幅を
設定した場合、BはTsta を考慮せずにリセットパルス
幅を設定した場合である。
Therefore, there is a method of avoiding the above-mentioned situation by setting the reset pulse width by anticipating the above T sta in advance. In this method, the reset operation is performed when the power supply voltage drops during microcomputer operation. Causes the following new problems.
This will be described below with reference to the timing chart shown in FIG. 15 when the power supply voltage drops during the operation of the microcomputer. In FIG. 15, A is a case where the reset pulse width is set in consideration of T st a , and B is a case where the reset pulse width is set without considering T sta .

【0016】図15に示すように、マイコン動作中にV
DDがV3 以下に降下した場合でも、さらにV2 以下に降
下しなかった時には、発振段回路の発振は停止せずにマ
イコンは発振を続けている。そのため、電源投入時のよ
うにマイコンの状態を考慮することなくリセット動作を
終了させれば良いこととなる。
As shown in FIG. 15, while the microcomputer is operating, V
Even if DD drops below V 3 , if it does not drop below V 2 , the oscillation of the oscillation stage circuit is not stopped and the microcomputer continues to oscillate. Therefore, it suffices to end the reset operation without considering the state of the microcomputer as when the power is turned on.

【0017】このため、本来、図中Bで示すようにT
sta を考慮せずにリセットパルス幅T152 を設定してお
けば時刻t153 でリセット動作を終了させてマイコンを
復帰させることができるにもかかわらず、図中Aで示す
ようにTsta を見込んでリセットパルス幅T151 を設定
してしまうと、マイコンの復帰が時刻t154 となってし
まい、Tsta を見込んだ分だけ遅れてしまうのである。
Therefore, as shown by B in FIG.
If the reset pulse width T 152 is set without considering sta , the reset operation can be ended at time t 153 and the microcomputer can be restored, but T sta is expected as shown by A in the figure. Therefore, if the reset pulse width T 151 is set, the microcomputer will be reset at time t 154, and the delay will be delayed by the amount of T sta .

【0018】本発明は上記事情に鑑みて成されたもので
あり、その目的は、マイコンの発振状態を検知し、最適
なリセット動作を行うことにより、マイコンのリセット
動作を確実かつ速やかに行うことができるリセット制御
機能付集積回路を提供することである。
The present invention has been made in view of the above circumstances, and an object thereof is to detect the oscillation state of the microcomputer and perform an optimum reset operation to surely and quickly perform the reset operation of the microcomputer. It is to provide an integrated circuit with a reset control function capable of performing

【0019】[0019]

【課題を解決するための手段】上記の目的を達成するた
めに本発明は、マイクロコンピュータのリセット動作を
行う場合に、前記マイクロコンピュータの発振状態を検
知した後にリセット動作を終了させるリセット制御機能
付集積回路において、電源電圧を監視し、動作電圧を検
知した場合には動作判定信号を出力する手段と、前記マ
イクロコンピュータの発振パルスを入力し、あらかじめ
設定されたカウント数をカウントした後に一致信号を出
力する手段と、前記一致信号を出力する手段の出力と前
記マイクロコンピュータの発振パルスの比較を行う手段
と、電源電圧があらかじめ設定された電圧以上になると
前記一致信号を出力する手段を動作可能状態にする手段
と、前記動作判定信号と前記一致信号を入力し、リセッ
ト制御信号を出力する手段と、前記リセット制御信号に
より前記マイクロコンピュータのリセット動作を行う手
段とを具備し、前記マイクロコンピュータの電源投入時
には、前記マイクロコンピュータの発振パルスをあらか
じめ設定された数をカウントした後にリセット動作を開
始し、前記マイクロコンピュータの動作中の電源降下時
には、電源電圧が動作電圧に復帰した後すぐにリセット
動作を開始することを特徴とする。
In order to achieve the above-mentioned object, the present invention has a reset control function for ending the reset operation after detecting the oscillation state of the microcomputer when the reset operation of the microcomputer is performed. In the integrated circuit, the power supply voltage is monitored, and an operation determination signal is output when an operating voltage is detected, and an oscillation pulse of the microcomputer is input, and a match signal is output after counting a preset count number. The means for outputting, the means for comparing the output of the means for outputting the coincidence signal with the oscillation pulse of the microcomputer, and the means for outputting the coincidence signal when the power supply voltage is equal to or higher than a preset voltage are in an operable state. Means for inputting the operation determination signal and the coincidence signal, and outputting a reset control signal Means for resetting the microcomputer by the reset control signal, and when the microcomputer is powered on, the reset operation is performed after counting a preset number of oscillation pulses of the microcomputer. When the power supply is started and the power supply drops during operation of the microcomputer, the reset operation is started immediately after the power supply voltage returns to the operating voltage.

【0020】上記構成によれば、電源投入時にはマイコ
ンが発振を開始した後にリセット動作を開始し、マイコ
ン動作中の電源電圧降下時には動作電圧復帰後すぐにリ
セット動作を開始することができるので、マイコンのリ
セット動作を確実かつ速やかに行うことができる。
According to the above configuration, the reset operation can be started after the microcomputer starts oscillating when the power is turned on, and the reset operation can be started immediately after the operating voltage is restored when the power supply voltage drops during the microcomputer operation. The reset operation can be performed reliably and promptly.

【0021】[0021]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図1は、本発明の実施の形態に係
る電源電圧監視付電源ICの構成を示す内部ブロック図
である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is an internal block diagram showing a configuration of a power supply IC with power supply voltage monitoring according to an embodiment of the present invention.

【0022】図1において、本発明の実施の形態に係る
電源電圧監視付電源IC(図中Aで示す部分)は、電源
電圧を監視し、V3 (動作電圧)を検知した場合には動
作判定信号を出力する電源電圧監視部101と、クロッ
クパルス入力端子に入力されるクロックパルスをカウン
トし、あらかじめ設定されたカウント数をカウントした
後に一致検出信号を出力するパルスカウンタ部103
と、パルスカウンタ部103からの出力とパルスカウン
タ部103に入力されるクロックパルスの比較を行う一
致検出部105と、パルスカウンタ部103のリセット
入力端子にリセット信号を入力するパワーオンリセット
部107と、電源電圧監視部101から出力される動作
判定信号とパルスカウンタ部103から出力される一致
検出信号を入力し、リセット制御信号を出力するウオッ
チドッグタイマ制御部109と、マイコン113にリセ
ット信号を出力するウオッチドッグタイマ部111を有
し、ウオッチドッグタイマ部111のウオッチドッグ入
力端子がマイコン113のウオッチドッグ出力端子に、
ウオッチドッグタイマ部111のリセット出力端子がマ
イコン113のリセット入力端子に、一致検出部105
の入力端子がマイコン113の発振パルス出力端子にシ
ュミットインバータ115を介してそれぞれ接続されて
いる。
In FIG. 1, a power supply IC with power supply voltage monitoring (a portion indicated by A in the figure) according to the embodiment of the present invention monitors the power supply voltage and operates when V 3 (operating voltage) is detected. A power supply voltage monitoring unit 101 that outputs a determination signal and a pulse counter unit 103 that counts clock pulses input to a clock pulse input terminal and outputs a match detection signal after counting a preset count number.
A match detection unit 105 that compares the output from the pulse counter unit 103 with the clock pulse that is input to the pulse counter unit 103; and a power-on reset unit 107 that inputs a reset signal to the reset input terminal of the pulse counter unit 103. , A watchdog timer control unit 109 that inputs the operation determination signal output from the power supply voltage monitoring unit 101 and the coincidence detection signal output from the pulse counter unit 103, and outputs a reset control signal, and outputs a reset signal to the microcomputer 113 A watchdog timer unit 111, and a watchdog input terminal of the watchdog timer unit 111 is a watchdog output terminal of the microcomputer 113.
The reset output terminal of the watchdog timer unit 111 becomes the reset input terminal of the microcomputer 113, and the match detection unit 105
Input terminals are respectively connected to oscillation pulse output terminals of the microcomputer 113 via the Schmitt inverter 115.

【0023】電源電圧監視部101は、VDD(マイコン
及び周辺回路用供給電源)の変動を常時監視しており、
その値がV3 以下のときは“1”レベルの信号を出力
し、V3 以上のときは“0”レベルの信号(動作判定信
号)を出力する。
The power supply voltage monitoring unit 101 constantly monitors the fluctuation of V DD (power supply for microcomputer and peripheral circuits),
Its value when the V 3 below to output the "1" level signal, when the V 3 or more outputs "0" level of the signal (operation judging signal).

【0024】パルスカウンタ部103は、クロックパル
ス入力端子に入力されるクロックパルスを何発カウント
するかはあらかじめ設定されており、その設定カウント
数をカウントするまでは“0”レベルの信号を出力し、
設定カウント数をカウントした時点で“1”レベルの信
号(一致検出信号)を出力する。
The pulse counter section 103 is preset with how many clock pulses are input to the clock pulse input terminal, and outputs a "0" level signal until the set count number is counted. ,
When the set count number is counted, a "1" level signal (match detection signal) is output.

【0025】一致検出部105は、パルスカウンタ部1
03の出力とマイコン113からシュミットインバータ
115を介して入力されるクロックパルスの比較を行
い、パルスカウンタ部103の出力が“0”レベルのと
きは上記クロックパルスをそのままパルスカウンタ部1
03に出力し、パルスカウンタ部103の出力が“1”
レベルのときはクロックパルスによらず“1”レベルを
パルスカウンタ部103に出力する。なお、シュミット
インバータ115を介することでマイコン113からの
発振パルスをきれいな方形波にすることができる。
The coincidence detecting section 105 includes a pulse counter section 1
03 and the clock pulse input from the microcomputer 113 via the Schmitt inverter 115 are compared, and when the output of the pulse counter unit 103 is at "0" level, the clock pulse is directly used as it is.
03, and the output of the pulse counter unit 103 is “1”.
When it is at the level, the "1" level is output to the pulse counter unit 103 regardless of the clock pulse. The oscillation pulse from the microcomputer 113 can be made into a clean square wave by passing through the Schmitt inverter 115.

【0026】パワーオンリセット部107は、VDDがV
1 (パワーオンリセット設定電圧)以上になるときにパ
ルスカウンタ部103のリセットの解除を行い、パルス
カウンタ部103を動作可能状態とする。なお、VDD
1 以下になるときにはパワーオンリセット部107は
パルスカウンタ部103のリセットを行う。ここで、V
1 <V2 (マイコン発振電圧)とする。
In the power-on reset unit 107, V DD is V
When the voltage becomes equal to or higher than 1 (power-on reset set voltage), the reset of the pulse counter unit 103 is released, and the pulse counter unit 103 is made operable. When V DD becomes V 1 or less, the power-on reset unit 107 resets the pulse counter unit 103. Where V
1 <V 2 (microcomputer oscillation voltage).

【0027】ウオッチドッグタイマ制御部109は、電
源電圧監視部101から入力される動作判定信号とパル
スカウンタ部103から入力される一致検出信号によ
り、ウオッチドッグタイマ部111に“0”レベルの信
号(リセット制御信号)を出力し、それ以外の場合は
“1”レベルの信号を出力する。
The watchdog timer control section 109 sends a "0" level signal ("0" level) to the watchdog timer section 111 based on the operation determination signal input from the power supply voltage monitoring section 101 and the coincidence detection signal input from the pulse counter section 103. The reset control signal) is output, and in other cases, a "1" level signal is output.

【0028】ウオッチドッグタイマ部111は、ウオッ
チドッグタイマ制御部109からリセット制御信号を入
力すると、抵抗117とコンデンサ119のウオッチド
ッグ時定数で決まるリセットパルス幅のリセット信号を
マイコン113に出力する。
When the watchdog timer control section 109 receives a reset control signal from the watchdog timer control section 109, the watchdog timer section 111 outputs a reset signal having a reset pulse width determined by the watchdog time constant of the resistor 117 and the capacitor 119 to the microcomputer 113.

【0029】次に、本発明の実施の形態に係る電源電圧
監視付電源ICのリセット動作について図2のタイミン
グチャートを用いて説明する。なお、図2は電源投入時
のものである。
Next, the reset operation of the power supply IC with power supply voltage monitoring according to the embodiment of the present invention will be described with reference to the timing chart of FIG. Note that FIG. 2 shows the state when the power is turned on.

【0030】電源が投入されると、VCCの上昇ととも
に、VDDの上昇が始まる。そして、図2の時刻t21で、
DDがV1 となり、パワーオンリセット部107はパル
スカウンタ部103のリセット解除を行う。
When the power source is turned on, the rise of V DD begins with the rise of V CC . Then, at time t 21 in FIG.
V DD becomes V 1 , and the power-on reset unit 107 releases the reset of the pulse counter unit 103.

【0031】時刻t22で、VDDがV2 となり、発振段回
路(図示省略)は発振を開始する。その発振パルスはマ
イコン113の発振パルス出力端子からシュミトインバ
ータ115を介してクロックパルスとして一致検出部1
05に入力され、一致検出部105はそのままパルスカ
ウンタ部103に入力される。パルスカウンタ部103
は、クロックパルスを入力すると、あらかじめ設定され
たカウント数までクロックパルスをカウントし、その間
“0”レベルの信号を出力する。
At time t 22 , V DD becomes V 2 and the oscillation stage circuit (not shown) starts oscillation. The oscillation pulse is used as a clock pulse from the oscillation pulse output terminal of the microcomputer 113 via the Schmitt inverter 115, and the coincidence detection unit 1
05, and the coincidence detection unit 105 is directly input to the pulse counter unit 103. Pulse counter unit 103
When a clock pulse is input, it counts the clock pulse up to a preset count number and outputs a "0" level signal during that period.

【0032】時刻t23で、パルスカウンタ部103が設
定カウント数をカウントし終わると、“1”レベルの信
号を出力する。ここで、前記“1”レベルの信号は一致
検出部105に入力されており、一致検出部105は前
記“1”レベルの信号が入力された後は、マイコン11
3からのクロックパルスにかかわらず“1”レベルの信
号をパルスカウンタ部103に出力する。従って、パル
スカウンタ部103は“1”レベルの信号、すなわち、
一致検出信号の出力を続けることになる。
[0032] At time t 23, the pulse counter 103 finishes counting the set count, and outputs a "1" level signal. Here, the "1" level signal is input to the coincidence detection unit 105, and the coincidence detection unit 105 receives the microcomputer 1 after the "1" level signal is input.
The signal of “1” level is output to the pulse counter unit 103 regardless of the clock pulse from 3. Therefore, the pulse counter unit 103 outputs the signal of “1” level, that is,
The output of the coincidence detection signal is continued.

【0033】一方、パルスカウンタ部103が設定カウ
ント数をカウントしている間に、VDDはV3 となり、電
源電圧監視部101は“0”レベルの信号、すなわち、
動作判定信号をウオッチドッグタイマ制御部109に出
力する。
On the other hand, while the pulse counter unit 103 is counting the set count number, V DD becomes V 3 and the power supply voltage monitoring unit 101 outputs a signal of “0” level, that is,
The operation determination signal is output to the watchdog timer control unit 109.

【0034】このように、時刻t23で、電源電圧監視部
101は動作判定信号を、パルスカウンタ部103は一
致検出信号をウオッチドッグタイマ制御部109に出力
したことになる。
Thus, at time t 23 , the power supply voltage monitoring unit 101 outputs the operation determination signal and the pulse counter unit 103 outputs the coincidence detection signal to the watchdog timer control unit 109.

【0035】ウオッチドッグタイマ制御部109は、電
源電圧監視部101から動作判定信号を、パルスカウン
タ部103から一致検出信号を入力すると、ウオッチド
ッグタイマ部111にリセット制御信号を出力する。
The watchdog timer control unit 109 outputs a reset control signal to the watchdog timer unit 111 when the operation determination signal is input from the power supply voltage monitoring unit 101 and the coincidence detection signal is input from the pulse counter unit 103.

【0036】ウオッチドッグタイマ部111は、ウオッ
チドッグタイマ制御部109からリセット制御信号を入
力すると、マイコン113にリセットパルス幅T21のリ
セット動作を時刻t24まで行う。
When the watchdog timer control section 109 inputs a reset control signal from the watchdog timer control section 109, the watchdog timer section 111 performs a reset operation of the reset pulse width T 21 on the microcomputer 113 until time t 24 .

【0037】上述したように、本発明の実施の形態に係
る電源電圧監視付電源ICは、電源投入時には、マイコ
ンからの発振パルスをカウントすることによりマイコン
の発振状態を検知し、その後一定時間経過後にリセット
動作を終了させるので、マイコンのリセット動作を確実
に行うことができる。
As described above, the power supply IC with power supply voltage monitoring according to the embodiment of the present invention detects the oscillation state of the microcomputer by counting the oscillation pulses from the microcomputer when the power is turned on, and then a certain period of time elapses. Since the reset operation is ended later, the reset operation of the microcomputer can be surely performed.

【0038】次に、本発明の実施の形態に係る電源電圧
監視付電源ICのマイコン動作中の電源電圧降下時にお
けるリセット動作を図3のタイミングチャートを用いて
説明する。
Next, the reset operation when the power supply voltage drops during the microcomputer operation of the power supply IC with power supply voltage monitoring according to the embodiment of the present invention will be described with reference to the timing chart of FIG.

【0039】VDDが時刻t31に降下し始め、時刻t32
3 以下になると、電源監視部101は“1”レベルの
信号を出力する。
When V DD starts to drop at time t 31 and becomes V 3 or less at time t 32 , the power supply monitoring unit 101 outputs a “1” level signal.

【0040】一方、パルスカウンタ部103は“1”レ
ベルの一致検出信号の出力を続けている。
On the other hand, the pulse counter section 103 continues to output the "1" level coincidence detection signal.

【0041】従って、時刻t32では、電源電圧監視部1
01は“1”レベルの信号を、パルスカウンタ部103
は“1”レベルの一致検出信号をウオッチドッグタイマ
制御部109に出力する。
Therefore, at time t 32 , the power supply voltage monitoring unit 1
01 indicates a signal of “1” level, and the pulse counter unit 103
Outputs a match detection signal of “1” level to the watchdog timer control unit 109.

【0042】ウオッチドッグタイマ制御部109は、電
源電圧監視部101から“1”レベルの信号を、パルス
カウンタ部103から“1”レベルの一致検出信号を入
力すると、ウオッチドッグタイマ部111に“1”レベ
ルの信号を出力する。
When the watchdog timer control section 109 inputs a “1” level signal from the power supply voltage monitoring section 101 and a “1” level match detection signal from the pulse counter section 103, it outputs “1” to the watchdog timer section 111. It outputs a "level signal.

【0043】ウオッチドッグタイマ部111は、ウオッ
チドッグタイマ制御部109から“1”レベルの信号を
入力すると、動作を停止する。
The watchdog timer section 111 stops its operation when it receives a "1" level signal from the watchdog timer control section 109.

【0044】時刻t33で、VDDが再びV3 になると、電
源電圧監視部101は“0”レベルの動作判定信号をウ
オッチドッグタイマ制御部109に出力する。
When V DD becomes V 3 again at time t 33 , the power supply voltage monitoring unit 101 outputs an operation determination signal of “0” level to the watchdog timer control unit 109.

【0045】一方、パルスカウンタ部103は“1”レ
ベルの一致検出信号の出力を続けている。
On the other hand, the pulse counter section 103 continues to output the "1" level coincidence detection signal.

【0046】従って、時刻t33では、電源電圧監視部1
01は動作判定信号を、パルスカウンタ部103は一致
検出信号をウオッチドッグタイマ制御部109に出力す
る。
Therefore, at time t 33 , the power supply voltage monitoring unit 1
01 outputs an operation determination signal, and the pulse counter unit 103 outputs a coincidence detection signal to the watchdog timer control unit 109.

【0047】ウオッチドッグタイマ制御部109は、電
源電圧監視部101から動作判定信号を、パルスカウン
タ部103から一致検出信号を入力すると、ウオッチド
ッグタイマ部111にリセット制御信号を出力する。
The watchdog timer control unit 109 outputs a reset control signal to the watchdog timer unit 111 when the operation determination signal is input from the power supply voltage monitoring unit 101 and the coincidence detection signal is input from the pulse counter unit 103.

【0048】ウオッチドッグタイマ部111は、ウオッ
チドッグタイマ制御部109からリセット制御信号を入
力すると動作可能状態となり、マイコン113にリセッ
トパルス幅T31のリセット動作を時刻t33から時刻t35
まで行う。
The watchdog timer section 111 becomes operable when a reset control signal is input from the watchdog timer control section 109, and resets the reset pulse width T 31 to the microcomputer 113 from time t 33 to time t 35.
Do up to.

【0049】上述したように、本発明の実施の形態に係
る電源電圧監視付電源ICは、マイコン動作中の電源電
圧降下時には、VDDがV3 に復帰するとすぐにマイコン
のリセット動作を行うことができるので、マイコンの復
帰を速やかに行うことができる。
As described above, the power supply IC with power supply voltage monitoring according to the embodiment of the present invention performs the reset operation of the microcomputer as soon as V DD returns to V 3 when the power supply voltage drops during the operation of the microcomputer. Therefore, the microcomputer can be quickly restored.

【0050】以上説明したように、本発明の実施の形態
によれば、電源投入時にはマイコンの発振を検知し、そ
の後リセット動作を開始し、マイコン動作中の電源電圧
降下時には、電源電圧の復帰後すぐにリセット動作を開
始するので、マイコンのリセット動作を確実かつ速やか
に実行することができる。
As described above, according to the embodiment of the present invention, when the power is turned on, the oscillation of the microcomputer is detected, and then the reset operation is started. After the power supply voltage drops during the operation of the microcomputer, the power supply voltage is restored. Since the reset operation is started immediately, the reset operation of the microcomputer can be surely and promptly executed.

【0051】ここで、電源電圧監視部101、パルスカ
ウンタ部103、一致検出部105、パワーオンリセッ
ト部107およびウオッチドッグタイマ制御部109の
回路はいろいろな構成を考えることができるが、その一
例として、図4(a)にパワーオンリセット部107の
ヒステリシスなしの回路図、図4(b)にパワーオンリ
セット部107のヒステリシスありの回路図、図5にパ
ルスカウンタ部103および一致検出部105の回路
図、図6に電源電圧監視部101およびウオッチドッグ
タイマ制御部109の回路図を示しておく。図5におい
て、n個のDフリップフロップ501から構成される回
路がパルスカウンタ部103に、OR回路503が一致
検出部105に相当し、図6において、コンパレータ6
01と内部定電圧回路609とから構成される回路が電
源電圧監視部101に、論理回路603がウオッチドッ
グタイマ制御部109に相当する。
Here, the circuits of the power supply voltage monitoring unit 101, the pulse counter unit 103, the coincidence detecting unit 105, the power-on reset unit 107, and the watchdog timer control unit 109 can be configured in various ways. 4A shows a circuit diagram of the power-on reset unit 107 without hysteresis, FIG. 4B shows a circuit diagram of the power-on reset unit 107 with hysteresis, and FIG. 5 shows the pulse counter unit 103 and the coincidence detection unit 105. A circuit diagram and FIG. 6 are circuit diagrams of the power supply voltage monitoring unit 101 and the watchdog timer control unit 109. In FIG. 5, the circuit composed of n D flip-flops 501 corresponds to the pulse counter unit 103, and the OR circuit 503 corresponds to the match detection unit 105. In FIG.
01 and the internal constant voltage circuit 609 correspond to the power supply voltage monitoring unit 101, and the logic circuit 603 corresponds to the watchdog timer control unit 109.

【0052】なお、図7から図11に本発明の適用例を
示しておく。図7は、電源電圧監視付電源ICとマイコ
ンの接続例を示す図、図8は、電源電圧監視付電源IC
の構成例を示す図、図9は、ウオッチドッグタイマ機能
のみのICの構成例を示す図、図10は、リセット機能
のみのICの構成例を示す図、図11は、図8に示す電
源電圧監視付電源IC、図9に示すウオッチドッグタイ
マ機能のみのIC、図10に示すリセット機能のみのI
Cのいずれかを1チップマイコンに取り込んだ例を示す
ブロック図である。
7 to 11 show application examples of the present invention. FIG. 7 is a diagram showing a connection example of a power supply voltage monitoring power supply IC and a microcomputer, and FIG. 8 is a power supply voltage monitoring power supply IC.
FIG. 9 is a diagram showing a configuration example of an IC having only a watchdog timer function, FIG. 10 is a diagram showing a configuration example of an IC having only a reset function, and FIG. 11 is a power supply shown in FIG. Power supply IC with voltage monitoring, IC shown in FIG. 9 having only watchdog timer function, I shown in FIG. 10 having only reset function
FIG. 11 is a block diagram showing an example in which any one of Cs is incorporated in a one-chip microcomputer.

【0053】[0053]

【発明の効果】以上説明したように本発明によれば、マ
イコンの発振状態を検知してリセット動作を行うので、
マイコンのリセット動作を確実かつ速やかに行うことが
できる。
As described above, according to the present invention, the reset operation is performed by detecting the oscillation state of the microcomputer.
The reset operation of the microcomputer can be performed reliably and promptly.

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

【図1】本発明の実施の形態に係る電源電圧監視付電源
ICの構成を示す内部ブロック図である。
FIG. 1 is an internal block diagram showing the configuration of a power supply IC with power supply voltage monitoring according to an embodiment of the present invention.

【図2】本発明の実施の形態に係る電源電圧監視付電源
ICの電源投入時のリセット動作を示すタイミングチャ
ートである。
FIG. 2 is a timing chart showing a reset operation when the power supply of the power supply IC with power supply voltage monitoring according to the embodiment of the present invention is turned on.

【図3】本発明の実施の形態に係る電源電圧監視付電源
ICの電源電圧降下時のリセット動作を示すタイミング
チャートである。
FIG. 3 is a timing chart showing a reset operation when the power supply voltage drops in the power supply IC with power supply voltage monitoring according to the embodiment of the present invention.

【図4】(a)は図1に示すパワーオンリセット部のヒ
ステリシスなしの構成例を示す回路図、(b)は図1に
示すパワーオンリセット部のヒステリシスありの構成を
示す回路図である。
4A is a circuit diagram showing a configuration example without hysteresis of the power-on reset unit shown in FIG. 1, and FIG. 4B is a circuit diagram showing a configuration of the power-on reset unit shown in FIG. 1 with hysteresis. .

【図5】図1に示すパルスカウンタ部および一致検出部
の構成を示す回路図である。
5 is a circuit diagram showing configurations of a pulse counter section and a match detection section shown in FIG. 1. FIG.

【図6】図1に示す電源電圧監視部およびウオッチドッ
グタイマ制御部を示す回路図である。
FIG. 6 is a circuit diagram showing a power supply voltage monitoring unit and a watchdog timer control unit shown in FIG.

【図7】電源電圧監視付電源ICとマイコンの接続例を
示す図である。
FIG. 7 is a diagram showing a connection example between a power supply IC with power supply voltage monitoring and a microcomputer.

【図8】電源電圧監視付電源ICの構成例を示す図であ
る。
FIG. 8 is a diagram showing a configuration example of a power supply IC with power supply voltage monitoring.

【図9】ウオッチドッグタイマ機能のみのICの構成例
を示す図である。
FIG. 9 is a diagram showing a configuration example of an IC having only a watchdog timer function.

【図10】リセット機能のみのICの構成例を示す図で
ある。
FIG. 10 is a diagram showing a configuration example of an IC having only a reset function.

【図11】図8に示す電源電圧監視付電源IC、図9に
示すウオッチドッグタイマ機能のみのIC、図10に示
すリセット機能のみのICのいずれかを1チップマイコ
ンに取り込んだ例を示すブロック図である。
11 is a block diagram showing an example in which any one of the power supply voltage monitoring power supply IC shown in FIG. 8, the watchdog timer function-only IC shown in FIG. 9, and the reset function-only IC shown in FIG. It is a figure.

【図12】従来の電源電圧監視付電源ICとマイコンの
接続の一例を示す図である。
FIG. 12 is a diagram showing an example of connection between a conventional power supply voltage monitoring IC and a microcomputer.

【図13】従来の電源電圧監視付電源ICの電源投入時
のリセット動作を示すタイミングチャートである。
FIG. 13 is a timing chart showing a reset operation when the power supply of the conventional power supply IC with power supply voltage monitoring is turned on.

【図14】従来の電源電圧監視付電源ICの電源投入時
の他のリセット動作を示すタイミングチャートである。
FIG. 14 is a timing chart showing another reset operation when the power supply of the conventional power supply IC with power supply voltage monitoring is turned on.

【図15】従来の電源電圧監視付電源ICの電源電圧降
下時のリセット動作を示すタイミングチャートである。
FIG. 15 is a timing chart showing the reset operation of the conventional power supply IC with power supply voltage monitoring when the power supply voltage drops.

【符号の説明】[Explanation of symbols]

101 電源電圧監視部 103 パルスカウンタ部 105 一致検出部 107 パーオンリセット部 109 ウオッチドッグタイマ制御部 111 ウオッチドッグタイマ部 113、703、1203 マイコン(マイクロコンピ
ュータ) 115 シュミットインバータ 117、401、403、405、409、411、4
13、417、423、425、427 抵抗 119 コンデンサ 407、415、419、421、1003 トランジ
スタ 501 Dフリップフロップ 503 OR回路 505 シュミットインバータ 601 コンパレータ 603 論理回路 605 ウオッチドッグタイマ部 607 パルスカウンタ部 609 内部定電圧源 701、801、1201 電源電圧監視付電源IC 901 ウオッチドッグ機能のみのIC 903 別電源 1001 リセット機能のみのIC 1205 発振段回路
Reference numeral 101 power supply voltage monitoring unit 103 pulse counter unit 105 coincidence detection unit 107 par-on reset unit 109 watchdog timer control unit 111 watchdog timer unit 113, 703, 1203 microcomputer (microcomputer) 115 Schmidt inverter 117, 401, 403, 405, 409 411, 4
13, 417, 423, 425, 427 Resistor 119 Capacitor 407, 415, 419, 421, 1003 Transistor 501 D Flip-flop 503 OR circuit 505 Schmidt inverter 601 Comparator 603 Logic circuit 605 Watchdog timer part 607 Pulse counter part 609 Internal constant voltage Power source 701, 801, 1201 Power supply IC with power supply voltage monitoring 901 IC with watchdog function only 903 Separate power supply 1001 IC with reset function only 1205 Oscillation stage circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マイクロコンピュータのリセット動作を
行う場合に、前記マイクロコンピュータの発振状態を検
知した後にリセット動作を終了させるリセット制御機能
付集積回路において、 電源電圧を監視し、動作電圧を検知した場合には動作判
定信号を出力する手段と、 前記マイクロコンピュータの発振パルスを入力し、あら
かじめ設定されたカウント数をカウントした後に一致信
号を出力する手段と、 前記一致信号を出力する手段の出力と前記マイクロコン
ピュータの発振パルスの比較を行う手段と、 電源電圧があらかじめ設定された電圧以上になると前記
一致信号を出力する手段を動作可能状態にする手段と、 前記動作判定信号と前記一致信号を入力し、リセット制
御信号を出力する手段と、 前記リセット制御信号により前記マイクロコンピュータ
のリセット動作を行う手段とを具備し、 前記マイクロコンピュータの電源投入時には、前記マイ
クロコンピュータの発振パルスをあらかじめ設定された
数をカウントした後にリセット動作を開始し、 前記マイクロコンピュータの動作中の電源降下時には、
電源電圧が動作電圧に復帰した後すぐにリセット動作を
開始することを特徴とするリセット制御機能付集積回
路。
1. A reset control function integrated circuit for terminating the reset operation after detecting the oscillation state of the microcomputer when performing the reset operation of the microcomputer, monitors the power supply voltage, and detects the operation voltage. Means for outputting an operation determination signal, means for inputting an oscillation pulse of the microcomputer and for outputting a coincidence signal after counting a preset count number, output for the means for outputting the coincidence signal and the A means for comparing the oscillation pulses of the microcomputer, a means for enabling the means for outputting the coincidence signal when the power supply voltage exceeds a preset voltage, and a means for inputting the operation determination signal and the coincidence signal. Means for outputting a reset control signal, and the microphone according to the reset control signal (B) means for performing a reset operation of the microcomputer, and when the microcomputer is powered on, the reset operation is started after counting a preset number of oscillation pulses of the microcomputer, When the power goes down,
An integrated circuit with a reset control function, which starts a reset operation immediately after the power supply voltage returns to the operating voltage.
JP7169578A 1995-07-05 1995-07-05 Integrated circuit having reset control function Withdrawn JPH0922403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7169578A JPH0922403A (en) 1995-07-05 1995-07-05 Integrated circuit having reset control function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7169578A JPH0922403A (en) 1995-07-05 1995-07-05 Integrated circuit having reset control function

Publications (1)

Publication Number Publication Date
JPH0922403A true JPH0922403A (en) 1997-01-21

Family

ID=15889083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7169578A Withdrawn JPH0922403A (en) 1995-07-05 1995-07-05 Integrated circuit having reset control function

Country Status (1)

Country Link
JP (1) JPH0922403A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100468680B1 (en) * 1997-08-22 2005-03-16 삼성전자주식회사 System reset control apparatus and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100468680B1 (en) * 1997-08-22 2005-03-16 삼성전자주식회사 System reset control apparatus and method

Similar Documents

Publication Publication Date Title
JP3509232B2 (en) Computer system and its power management device
KR100340361B1 (en) A detector of an oscillation stopping and an apparatus for executing a treatment after the detection of an oscillation stopping
US10719331B2 (en) Stand-by mode of an electronic circuit
US7986168B2 (en) Semiconductor apparatus and anomaly detection method of the same
JPH0922403A (en) Integrated circuit having reset control function
JPH11259340A (en) Reactivation control circuit for computer
JP3711849B2 (en) Microcomputer
CN112000505A (en) Time-interval reliable watchdog circuit and control method thereof
JP2716386B2 (en) Clock output circuit
US7080281B2 (en) Method and circuit arrangement for monitoring the operation of a processor
JPH0720963A (en) Operation control circuit for clock oscillator
JP2698260B2 (en) Watchdog timer device
JPH05181709A (en) Watchdog timer for intermittent operation
JP3177139B2 (en) Oscillation restart controller
JPS60138625A (en) Cpu reset circuit
KR100407569B1 (en) Oscillator circuit with oscillation control function
JPH08263177A (en) Method and circuit for resetting cpu
JPH07129278A (en) Resetting control circuit of multiprocessor system
JP3144811B2 (en) Monitoring timer circuit
JPH0973404A (en) Watchdog timer circuit
KR890003479B1 (en) Method for provide instant interruption of electric power of micro computer
JPH06195160A (en) External interruption edge detecting circuit for microcomputer
JPH09212201A (en) Control circuit for production facility
CN110928220A (en) Monitoring method and monitoring circuit
JPH11110228A (en) Interrupt reception device and signal processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20021001