JPH10198466A - Ic for monitoring power supply voltage - Google Patents

Ic for monitoring power supply voltage

Info

Publication number
JPH10198466A
JPH10198466A JP9002947A JP294797A JPH10198466A JP H10198466 A JPH10198466 A JP H10198466A JP 9002947 A JP9002947 A JP 9002947A JP 294797 A JP294797 A JP 294797A JP H10198466 A JPH10198466 A JP H10198466A
Authority
JP
Japan
Prior art keywords
power supply
signal
reset
terminal
voltage
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
JP9002947A
Other languages
Japanese (ja)
Inventor
Takayuki Suzuki
孝行 鈴木
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 Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP9002947A priority Critical patent/JPH10198466A/en
Publication of JPH10198466A publication Critical patent/JPH10198466A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the generation time of a reset signal to be applied to a system after the generation of a data saving command from being unstabilized due to the disturbance or the like of a voltage drop waveform in the main power supply and to prevent data saving from being failed due to the reset of the system during the writing of saving data in the system for saving/storing data in a non-volatile memory at the time of turning off the main power supply. SOLUTION: A power supply voltage monitoring IC 33 for outputting a data saving signal from an INT terminal 7 to the system when the main power supply VCC is dropped over backup voltage is provided with an input terminal 34 for a reset permission signal generated after the execution of data saving processing by the system and a counter 42 for starting count from the generation of the data saving signal and executing count-up after the lapse of time necessary for data saving, and when either one of the reset permission signal and the count-up signal is generated, a reset signal is outputted from a gate circuit 41.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、マイクロコンピ
ュータシステムに組み込まれ、主電源オフ時にバッテリ
ーバックアップ等により不揮発化されたメモリに、一連
の複数バイトのデータを待避・記憶させるために用いる
電源電圧監視用ICに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power supply voltage monitor which is incorporated in a microcomputer system and is used to save and store a series of plural bytes of data in a memory which is non-volatile by a battery backup or the like when a main power supply is turned off. Related to ICs.

【0002】[0002]

【従来の技術】電源断時に、バッテリーバックアップに
より不揮発化されたメモリにデータを待避させ、電源の
再投入時にこのデータを読み出して、動作を再開するマ
イクロコンピュータシステムは、データ待避のタイミン
グを検出するために電源電圧監視用ICを組み込むのが
一般的である。
2. Description of the Related Art A microcomputer system which saves data in a non-volatile memory by a battery backup when the power is turned off, reads the data when the power is turned on again, and resumes the operation, detects the timing of saving the data. For this purpose, it is common to incorporate a power supply voltage monitoring IC.

【0003】図6に従来の電源電圧監視用ICの内部等
価回路を示す。図6において、1はVCC端子で、システ
ムの主電源+5Vに接続される。2は外部コンデンサを
接続するTC 端子で、このコンデンサによって主電源立
ち上げ時にマイクロコンピュータをリセットする時間が
決定される。3はシステムのグランド端子である。4は
VOUT 端子で、データを待避させるメモリの電源端子に
電源を供給する。5はVBAT 端子で電池等のバックアッ
プ用電源から電源の供給を受ける。6はCSバー端子
で、不揮発化されたメモリにバックアップ制御信号を出
力する。7はINT端子で、主電源電圧VCCがバックア
ップ基準電圧まで低下したとき、マイクロコンピュータ
にデータ待避を行なわせる割り込み信号を出力する。8
は RESETバー端子で、マイクロコンピュータにリセット
信号を出力する。
FIG. 6 shows an internal equivalent circuit of a conventional power supply voltage monitoring IC. In FIG. 6, reference numeral 1 denotes a VCC terminal, which is connected to the main power supply of the system + 5V. Reference numeral 2 denotes a TC terminal for connecting an external capacitor, and this capacitor determines the time for resetting the microcomputer when the main power is turned on. 3 is a ground terminal of the system. Reference numeral 4 denotes a VOUT terminal for supplying power to a power supply terminal of a memory for saving data. A VBAT terminal 5 is supplied with power from a backup power source such as a battery. Reference numeral 6 denotes a CS bar terminal, which outputs a backup control signal to a nonvolatile memory. Reference numeral 7 denotes an INT terminal which outputs an interrupt signal for causing the microcomputer to save data when the main power supply voltage VCC drops to the backup reference voltage. 8
Is a RESET bar terminal, which outputs a reset signal to the microcomputer.

【0004】図6の構成において、切換え電圧検出回路
92 はVCC端子1からの入力電圧をヒステリシス付きコ
ンパレータにより監視し、電圧が3.3Vより高い場合
にハイレベル信号を出力し、3.3Vより低い場合はロ
ーレベル信号を出力する。
In the configuration shown in FIG. 6, a switching voltage detection circuit 92 monitors the input voltage from the VCC terminal 1 by a comparator with hysteresis, and outputs a high level signal when the voltage is higher than 3.3 V, and outputs a high level signal when the voltage is higher than 3.3 V. If it is low, a low level signal is output.

【0005】このハイレベル信号が出力されると、トラ
ンジスタ10,11は双方共にオンし、VOUT 端子4に
VCC端子1の電圧を供給する。ローレベル信号が出力さ
れたときは、トランジスタ10,11は双方共にオフ
し、逆流防止用のシェットキーバリアダイオード12を
通して、VBAT 端子5の電圧をVOUT 端子4に供給す
る。
When this high level signal is output, both the transistors 10 and 11 are turned on, and the voltage of the VCC terminal 1 is supplied to the VOUT terminal 4. When the low level signal is output, both the transistors 10 and 11 are turned off, and the voltage of the VBAT terminal 5 is supplied to the VOUT terminal 4 through the backflow preventing shet key barrier diode 12.

【0006】バックアップ電圧検出回路91 は、VCC端
子1からの入力電圧をヒステリシス付きコンパレータに
より監視し、電圧が4.75Vより低い場合にローレベ
ル信号を出力し、電圧が4.75Vより高い場合にハイ
レベル信号を出力する。このローレベル信号はシュミッ
ト・トリガ入力のインバータ13で反転され、INT端
子7より外部のマイクロコンピュータにデータ待避をさ
せる割り込み信号として出力される。
The backup voltage detecting circuit 91 monitors the input voltage from the VCC terminal 1 by a comparator with hysteresis, and outputs a low level signal when the voltage is lower than 4.75 V, and outputs a low level signal when the voltage is higher than 4.75 V. Outputs a high level signal. This low-level signal is inverted by the Schmitt trigger input inverter 13 and output from the INT terminal 7 as an interrupt signal to save data to an external microcomputer.

【0007】リセット電圧検出回路93 は、VCC端子1
からの入力電圧をヒステリシス付きコンパレータにより
監視し、電圧が4.2Vより低い場合にローレベル信号
を出力し、4.2Vより高い場合はハイレベル信号を出
力する。この出力は、オープンコレクタまたはオープン
ドレインのバッファ14で受けられる。このバッファ1
4の出力は、定電流源15から電流供給を受けるTC 端
子2に接続されている。
The reset voltage detection circuit 93 is connected to the VCC terminal 1
Is monitored by a comparator with hysteresis, and outputs a low-level signal when the voltage is lower than 4.2 V, and outputs a high-level signal when the voltage is higher than 4.2 V. This output is received by an open collector or open drain buffer 14. This buffer 1
4 is connected to a TC terminal 2 which receives a current from a constant current source 15.

【0008】リセット電圧検出回路93 がハイレベル信
号を出力したときは、TC 端子2に接続された外付けコ
ンデンサが、定電流源15からの電流によって+5Vに
まで充電される。電圧検出回路93 がローレベル信号を
出力したときは、TC 端子2はバッファ14の接地出力
によって+0Vになる。
When the reset voltage detecting circuit 93 outputs a high level signal, the external capacitor connected to the TC terminal 2 is charged to +5 V by the current from the constant current source 15. When the voltage detection circuit 93 outputs a low-level signal, the TC terminal 2 becomes +0 V by the ground output of the buffer 14.

【0009】TC 端子2の電圧は、シュミット・トリガ
入力のインバータ16によって、ハイ・ローを判別さ
れ、この反転出力が抵抗17,18で分圧されてトラン
ジスタ19をドライブする。すなわち、このトランジス
タ19は、電源電圧が4.2Vより低くて電圧検出回路
93 がローレベル信号を出力した時にオンし、 RESETバ
ー端子8をローレベル(システムへのリセット信号)に
する。
The voltage at the TC terminal 2 is determined to be high or low by the inverter 16 of the Schmitt trigger input, and the inverted output is divided by the resistors 17 and 18 to drive the transistor 19. That is, the transistor 19 is turned on when the power supply voltage is lower than 4.2 V and the voltage detection circuit 93 outputs a low level signal, and sets the RESET bar terminal 8 to a low level (reset signal to the system).

【0010】また、インバータ16の出力をインバータ
20によって反転した信号は、抵抗21,22を通して
トランジスタ23をドライブする。このトランジスタ2
3は、リセット電圧検出回路93 がローレベル信号を出
力するリセット時にオフとなり抵抗24を通してCSバ
ー端子6をVOUT 端子と同電圧にし、電圧検出回路93
がハイレベル信号を出力するときオンして、CSバー端
子6をローレベルにする。
A signal obtained by inverting the output of the inverter 16 by the inverter 20 drives the transistor 23 through the resistors 21 and 22. This transistor 2
3 is turned off at the time of reset when the reset voltage detection circuit 93 outputs a low level signal, and the CS bar terminal 6 is set to the same voltage as the VOUT terminal through the resistor 24;
Is turned on when outputting a high-level signal, and the CS bar terminal 6 is set to low level.

【0011】図7は、上記従来の電源電圧監視用ICを
用いたマイクロコンピュータシステムの接続例である。
図7において、25は電源電圧監視用IC、26はマイ
クロコンピュータ、27はバッテリーバックアップによ
り不揮発化されたメモリ、28はバックアップ用電源、
29は電源投入後のリセット時間を決定する外付けコン
デンサである。
FIG. 7 shows a connection example of a microcomputer system using the above-mentioned conventional power supply voltage monitoring IC.
In FIG. 7, 25 is a power supply voltage monitoring IC, 26 is a microcomputer, 27 is a nonvolatile memory by battery backup, 28 is a backup power supply,
An external capacitor 29 determines a reset time after power is turned on.

【0012】上記図6及び図7の構成で、主電源オフ時
に、その電圧が4.75Vまで低下すると、データ待避
のためINT端子7よりマイクロコンピュータ26に割
り込み信号を出力する。マイクロコンピュータ26は、
この割り込み信号に基づき、不揮発化されたメモリ27
に対して、データの待避を行なう。この待避データの内
容は、一連の複数バイトのデータである。
In the configuration shown in FIGS. 6 and 7, when the main power is turned off and the voltage drops to 4.75 V, an interrupt signal is output from the INT terminal 7 to the microcomputer 26 to save data. The microcomputer 26 is
Based on this interrupt signal, the nonvolatile memory 27
, Data is saved. The content of the save data is a series of data of a plurality of bytes.

【0013】さらに4.2Vまで低下すると、CSバー
端子6をローレベルにして、待避データを記憶したメモ
リ27のCE1 バー端子をハイレベルにし、 RESETバー
端子8からローレベルのリセット信号を出力する。
When the voltage further drops to 4.2 V, the CS bar terminal 6 is set to a low level, the CE1 bar terminal of the memory 27 storing the save data is set to a high level, and a low-level reset signal is output from the RESET bar terminal 8. .

【0014】さらに3.3Vまで低下すると、メモリ2
7への電源供給を主電源VCCからバックアップ用電源2
8に切換える。この状態は、電源電圧監視用IC25に
主電源VCCが供給されなくなっても継続する。
When the voltage further drops to 3.3 V, the memory 2
7 is supplied from the main power supply VCC to the backup power supply 2
Switch to 8. This state continues even if the main power supply VCC is not supplied to the power supply voltage monitoring IC 25.

【0015】また、主電源VCCが再投入されるときは、
主電源VCCの電圧が3.3Vまで立ち上がった時点で、
メモリ27への電源供給を、バックアップ用電源28か
ら主電源VCCに切換え、4.2Vまで上昇したとき、リ
セット状態の解除を行なうと共に、待避データを記憶し
たメモリ27のCE1 バー端子をローレベルにする。こ
れによって、メモリ27に待避されたデータによる動作
の再開が行われる。
When the main power supply VCC is turned on again,
When the voltage of the main power supply VCC rises to 3.3V,
The power supply to the memory 27 is switched from the backup power supply 28 to the main power supply VCC. When the power supply rises to 4.2 V, the reset state is released, and the CE1 bar terminal of the memory 27 storing the save data is set to low level. I do. As a result, the operation is resumed by the data saved in the memory 27.

【0016】[0016]

【発明が解決しようとする課題】上記従来の電源電圧監
視用IC25において、主電源オフ時にデータの待避を
行なうため、INT端子7からマイクロコンピュータ2
6に出力される割り込み信号と、 RESETバー端子8から
出力されるリセット信号は、ヒステリシス付きコンパレ
ータ13,16によるロー・ハイの判定結果である。
In the above-described conventional power supply voltage monitoring IC 25, the microcomputer 2 is connected to the INT terminal 7 through the INT terminal 7 in order to save data when the main power supply is turned off.
The reset signal output from the RESET bar terminal 8 and the interrupt signal output to 6 are the determination results of low / high by the comparators 13 and 16 with hysteresis.

【0017】しかし、このコンパレータ13,16に特
性のばらつきと精度誤差があり、さらに主電源VCCの電
圧波形がノイズ等によって乱れる場合があるため、主電
源オフ後に、これらのコンパレータが出力する割り込み
信号とリセット信号の発生時間は一定にならない。
However, since the comparators 13 and 16 have characteristic variations and accuracy errors, and the voltage waveform of the main power supply VCC may be disturbed by noise or the like, the interrupt signals output from these comparators after the main power supply is turned off. And the reset signal generation time is not constant.

【0018】例えば、図8に示すように、主電源VCCの
降下中にノイズ30が混入して電圧波形が乱れると、デ
ータ待避に失敗する場合がある。
For example, as shown in FIG. 8, if the noise 30 is mixed during the fall of the main power supply VCC and the voltage waveform is disturbed, the data saving may fail.

【0019】図8において、主電源VCCの電圧が、4.
75Vまで低下すると割り込み信号T11が出力され、デ
ータの待避動作を開始される。ここで、待避される一連
のデータはD0,D1,D2の3バイトである。本来な
らば、本来ならば32のタイミングでリセットがかか
り、データD0,D1,D2は全て正しく書き込まれて
バックアップされる。しかし、図8の場合、ノイズ30
の混入により、31のタイミングでリセットがかかる。
このタイミングであるとデータD0は書き込まれるがデ
ータD1,D2は書き込まれずデータ待避に失敗する。
In FIG. 8, the voltage of the main power supply VCC is 4.
When the voltage drops to 75 V, an interrupt signal T11 is output, and a data saving operation is started. Here, a series of data saved is 3 bytes of D0, D1, and D2. Normally, reset is normally performed at the timing of 32, and the data D0, D1, and D2 are all correctly written and backed up. However, in the case of FIG.
Is reset at the timing of 31.
At this timing, the data D0 is written but the data D1 and D2 are not written and the data saving fails.

【0020】その後の主電源VCCの立ち上げ後、それら
の待避データを使用して処理を行うと誤った結果が生
じ、場合によってはシステムの暴走にもつながる。ま
た、対策するために複雑な処理を行う必要がある。
When the main power supply VCC is subsequently turned on and the processing is performed using the saved data, an erroneous result occurs, and in some cases, the system goes out of control. Further, it is necessary to perform complicated processing to take measures.

【0021】[0021]

【課題を解決するための手段】前述した問題点を解決す
るため、本発明が提供する電源電圧監視用ICは、主電
源電圧を監視して、主電源オフ時に一連の複数バイトか
らなるデータを不揮発化されたメモリに記憶・待避させ
るタイミングと、システムのリセットを行なうタイミン
グを決定するものであって、主電源電圧が、バックアッ
プ基準電圧を超えて低下したことを検出するバックアッ
プ電圧検出回路と、この検出信号を外部装置に出力する
出力端子と、この検出信号を受け取った外部装置が所定
のデータ記憶処理を完了した後に発生するリセット許可
信号を受ける入力端子と、上記検出信号をスタート信号
としてクロックパルスをカウントし、データ記憶処理が
完了する所定時間の経過後にカウントアップ信号を発生
するカウンタと、上記リセット許可信号とカウントアッ
プ信号の少なくとも一方が発生したとき、外部装置にリ
セット信号を出力するゲート回路とを備えたことを特徴
とする。
In order to solve the above-mentioned problems, a power supply voltage monitoring IC provided by the present invention monitors a main power supply voltage and, when the main power supply is turned off, converts a series of data consisting of a plurality of bytes. A backup voltage detection circuit for determining timing for storing and saving in a non-volatile memory and timing for resetting the system, wherein the backup voltage detection circuit detects that the main power supply voltage has dropped below the backup reference voltage; An output terminal for outputting the detection signal to an external device, an input terminal for receiving a reset permission signal generated after the external device that has received the detection signal has completed a predetermined data storage process, and a clock having the detection signal as a start signal A counter that counts pulses and generates a count-up signal after a lapse of a predetermined time during which data storage processing is completed; When at least one of the serial reset permission signal and the count-up signal is generated, characterized in that a gate circuit for outputting a reset signal to an external device.

【0022】上記電源電圧監視用ICが組み込まれるマ
イクロコンピュータシステムは、主電源電圧がバックア
ップ基準電圧を超えて低下したとき、このICから出力
される検出信号を受けて、一連の複数バイトからなるバ
ックアップデータを不揮発性メモリに記憶させる手段
と、この記憶処理の後、このICにリセット許可信号を
出力する手段と、このICから出力されるリセット信号
によってシステムのリセット動作を行なうリセット手段
を備えたものとして構成される。
When the main power supply voltage drops below the backup reference voltage, the microcomputer system incorporating the power supply voltage monitoring IC receives a detection signal output from the IC and receives a backup signal comprising a series of plural bytes. Means for storing data in a non-volatile memory, means for outputting a reset permission signal to the IC after the storage processing, and means for resetting the system by a reset signal output from the IC Is configured as

【0023】[0023]

【発明の実施の形態】図1は本発明の電源電圧監視用I
C33の内部等価回路を示す図である。図1において、
1はVCC端子で、システムの主電源+5Vに接続され
る。2は外部コンデンサを接続するTC 端子で、このコ
ンデンサによって主電源立ち上げ時にマイクロコンピュ
ータ等の外部装置をリセットする時間が決定される。
FIG. 1 shows a power supply voltage monitoring I according to the present invention.
It is a figure showing an internal equivalent circuit of C33. In FIG.
Reference numeral 1 denotes a VCC terminal, which is connected to the main power supply of the system + 5V. Reference numeral 2 denotes a TC terminal for connecting an external capacitor, which determines the time for resetting an external device such as a microcomputer when the main power is turned on.

【0024】34は外部装置からのリセット許可信号を
入力するRESIN 端子で、抵抗35によってプルダウンさ
れている。このRESIN 端子34への入力は、ローレベル
入力でリセット不許可、ハイレベル入力でリセット許可
を表す。
Reference numeral 34 denotes a RESIN terminal for inputting a reset permission signal from an external device, which is pulled down by a resistor 35. The input to the RESIN terminal 34 indicates that the reset is not permitted by a low level input and the reset is permitted by a high level input.

【0025】36は、例えばマイクロコンピュータ等の
クロックを入力するCLK端子、3はシステムのグラン
ド端子3である。
Reference numeral 36 denotes a CLK terminal for inputting a clock of a microcomputer or the like, and reference numeral 3 denotes a ground terminal 3 of the system.

【0026】4はデータ待避を行なうメモリの電源端子
に電源供給するVOUT 端子で、主電源オン時にはVCC端
子1から電源供給され、主電源オフ時にはVBAT 端子5
に接続された電池等のバックアップ用電源から電源供給
される。
Reference numeral 4 denotes a VOUT terminal for supplying power to a power supply terminal of a memory for saving data. The power supply is supplied from a VCC terminal 1 when the main power supply is on, and a VBAT terminal 5 when the main power supply is off.
Power is supplied from a backup power supply such as a battery connected to the power supply.

【0027】6はCSバー端子で、データ待避用メモリ
にバックアップ制御信号を出力する。7はINT端子
で、主電源電圧VCCがバックアップ基準電圧まで低下し
たとき、マイクロコンピュータにデータ待避を行なわせ
る割り込み信号を出力する。8は RESETバー端子で、外
部装置にリセット信号を出力する。
Reference numeral 6 denotes a CS bar terminal for outputting a backup control signal to the data saving memory. Reference numeral 7 denotes an INT terminal which outputs an interrupt signal for causing the microcomputer to save data when the main power supply voltage VCC drops to the backup reference voltage. A reset bar terminal 8 outputs a reset signal to an external device.

【0028】図1の構成において、切換え電圧検出回路
92 はVCC端子1からの入力電圧をヒステリシス付きコ
ンパレータにより監視し、電圧が3.3Vより高い場合
にハイレベル信号を出力し、3.3Vより低い場合はロ
ーレベル信号を出力する。
In the configuration shown in FIG. 1, the switching voltage detecting circuit 92 monitors the input voltage from the VCC terminal 1 by a comparator with hysteresis, and outputs a high level signal when the voltage is higher than 3.3 V, and outputs a high level signal when the voltage is higher than 3.3 V. If it is low, a low level signal is output.

【0029】このハイレベル信号が出力されると、トラ
ンジスタ10,11は双方共にオンし、VOUT 端子4に
VCC端子1の電圧を供給する。ローレベル信号が出力さ
れたときは、トランジスタ10,11は双方共にオフ
し、逆流防止用のシェットキーバリアダイオード12を
通して、VBAT 端子5の電圧をVOUT 端子4に供給す
る。
When this high level signal is output, both the transistors 10 and 11 are turned on, and the voltage of the VCC terminal 1 is supplied to the VOUT terminal 4. When the low level signal is output, both the transistors 10 and 11 are turned off, and the voltage of the VBAT terminal 5 is supplied to the VOUT terminal 4 through the backflow preventing shet key barrier diode 12.

【0030】バックアップ電圧検出回路91 は、VCC端
子1からの入力電圧をヒステリシス付きコンパレータに
より監視し、電圧が4.75Vより低い場合にローレベ
ル信号を出力し、電圧が4.75Vより高い場合にハイ
レベル信号を出力する。このローレベル信号はシュミッ
ト・トリガ入力のインバータ13で反転され、INT端
子7より外部装置にデータ待避を指令する割り込み信号
として出力される。
The backup voltage detecting circuit 91 monitors the input voltage from the VCC terminal 1 by a comparator with hysteresis, and outputs a low level signal when the voltage is lower than 4.75 V, and outputs a low level signal when the voltage is higher than 4.75 V. Outputs a high level signal. This low level signal is inverted by the Schmitt trigger input inverter 13 and output from the INT terminal 7 as an interrupt signal for instructing the external device to save data.

【0031】15は定電流源で、TC 端子2に外付けさ
れて電源立ち上げ時に外部装置をリセットする時間を決
定するコンデンサに一定電流を供給する。
Reference numeral 15 denotes a constant current source which supplies a constant current to a capacitor which is externally connected to the TC terminal 2 and which determines a time for resetting an external device when the power is turned on.

【0032】36,37はオープンコレクタまたはオー
プンドレインのバッファである。38はリセット状態を
保持するFast Attack Slow Releaseピークホールド回路
で、CLRバー端子へのローレベル入力でクリアされた
後、又は主電源VCCを立ち上げた後に、バッファ36,
37が双方共に遮断出力となり、TC 端子2に接続され
た外付けコンデンサが所定レベルにまで充電されるまで
の期間に、その出力端子OUTをローレベル(リセット
状態保持信号)に保つ。
Reference numerals 36 and 37 denote open collector or open drain buffers. Reference numeral 38 denotes a Fast Attack Slow Release peak hold circuit for holding a reset state. The buffer 36, after being cleared by a low level input to the CLR bar terminal, or after the main power supply VCC is turned on,
The output terminal OUT is kept at a low level (reset state holding signal) until the external capacitor connected to the TC terminal 2 is charged to a predetermined level.

【0033】39はシュミットトリガ入力のインバータ
で、ピークホールド回路38の出力を反転する。40は
NOR回路で、RESIN 端子34に入力されたリセット許
可信号と、ピークホールド回路38のリセット状態保持
信号の論理和を取る。
Reference numeral 39 denotes a Schmitt trigger input inverter for inverting the output of the peak hold circuit 38. Numeral 40 denotes a NOR circuit which takes the logical sum of the reset permission signal input to the RESIN terminal 34 and the reset state holding signal of the peak hold circuit 38.

【0034】41は、ピークホールド回路38のローレ
ベル信号と、リセット許可信号と、カウントアップ信号
のいずれかが発生したとき、後述する回路を介して、外
部装置にリセット信号を出力するゲート回路で、NOR
回路40の出力とカウンタ42のカウントアップ出力の
論理和を取る論理和回路によって構成される。
Reference numeral 41 denotes a gate circuit that outputs a reset signal to an external device via a circuit described later when any of a low level signal of the peak hold circuit 38, a reset permission signal, and a count-up signal is generated. , NOR
It is constituted by a logical sum circuit which takes the logical sum of the output of the circuit 40 and the count-up output of the counter 42.

【0035】43はRESIN 端子34に入力されたリセッ
ト許可信号を反転するインバータ、44はRESIN 端子3
4に入力されたリセット許可信号と、カウンタ42のカ
ウントアップ出力の論理和を取る論理和回路である。
Reference numeral 43 denotes an inverter for inverting the reset permission signal input to the RESIN terminal 34, and reference numeral 44 denotes a RESIN terminal 3
4 is a logical sum circuit for calculating the logical sum of the reset permission signal input to the counter 4 and the count-up output of the counter 42.

【0036】カウンタ42は、バックアップ電圧検出回
路91 のローレベル出力があったときCLK端子に入力
されたクロックのカウントを開始し、カウント値が所定
値に達するとCOUNT UPバー端子からローレベルのカウン
トアップ出力を発生する。この所定値はデータ待避動作
の完了に必要な時間が確保されるように定められる。こ
のカウント値は、論理和回路41のローレベル出力が R
ESETバー端子に入力されることによってクリアされる。
The counter 42 starts counting the clock input to the CLK terminal when the backup voltage detection circuit 91 outputs a low level, and counts the low level from the COUNT UP bar terminal when the count value reaches a predetermined value. Generates up output. This predetermined value is determined so that the time required for completing the data saving operation is secured. This count value is obtained when the low level output of the OR circuit 41 is R
Cleared by input to the ESET bar terminal.

【0037】上記カウンタ42の内部等価回路を図2に
示す。45はシュミット・トリガ入力のインバータ、4
6,47,48,49,50,51は否定論理積、52
はカウント回路である。
FIG. 2 shows an internal equivalent circuit of the counter 42. 45 is a Schmitt trigger input inverter, 4
6, 47, 48, 49, 50, and 51 are NAND and 52
Is a counting circuit.

【0038】図1に戻って、論理和回路41の出力をイ
ンバータ53で反転した電圧は抵抗17,18で分圧さ
れてトランジスタ19をドライブする。すなわち、この
トランジスタ19は、論理和回路41がローレベル信号
を出力した時にオンし、 RESETバー端子8をローレベル
(システムへのリセット信号)にする。
Returning to FIG. 1, the voltage obtained by inverting the output of the OR circuit 41 by the inverter 53 is divided by the resistors 17 and 18 to drive the transistor 19. That is, the transistor 19 is turned on when the OR circuit 41 outputs a low level signal, and sets the RESET bar terminal 8 to low level (reset signal to the system).

【0039】また、論理和回路41の出力は、抵抗2
1,22を通してトランジスタ23をドライブする。す
なわち、トランジスタ23は、論理和回路41がローレ
ベル信号を出力するリセット時にオフとなり抵抗24を
通してCSバー端子6をVOUT端子4と同電圧にし、論
理和回路41がハイレベル信号を出力するときオンして
CSバー端子6をローレベルにする。
The output of the OR circuit 41 is a resistor 2
The transistor 23 is driven through 1 and 22. That is, the transistor 23 is turned off at the time of reset when the OR circuit 41 outputs a low-level signal, and the CS bar terminal 6 is set to the same voltage as the VOUT terminal 4 through the resistor 24, and is turned on when the OR circuit 41 outputs a high-level signal. To set the CS bar terminal 6 to low level.

【0040】上記論理和回路41の出力のハイ・ローに
よって、CSバー端子6がローレベルで RESETバー端子
8がハイレベルの状態(非リセット状態)と、CSバー
端子6がハイレベルで RESETバー端子8がローレベルの
状態(リセット状態)が切り換えられる。
When the output of the OR circuit 41 is high or low, the CS bar terminal 6 is at a low level and the RESET bar terminal 8 is at a high level (non-reset state). The state where the terminal 8 is at a low level (reset state) is switched.

【0041】この論理和回路41のハイ・ローは、次の
ような条件で決定される。論理和回路41の出力がロー
レベルとなってリセット状態となるのは、ピークホー
ルド回路38がローレベル出力をしている場合と、 R
ESIN端子34にハイレベルのリセット許可信号が入力さ
れている場合と、カウンタ42がローレベルのカウン
トアップ信号を出力している場合のいずれかであり、こ
れらの条件のいずれかの成立でリセット状態となる。
The high / low state of the OR circuit 41 is determined under the following conditions. The reason why the output of the OR circuit 41 becomes low level and enters the reset state is when the peak hold circuit 38 outputs low level,
Either a case where a high-level reset permission signal is input to the ESIN terminal 34 or a case where the counter 42 outputs a low-level count-up signal. Becomes

【0042】論理和回路41の出力がハイレベルとなっ
て非リセット状態となるのは、上記条件のいずれをも満
たさない場合である。上記リセット状態を決定する各条
件の成立する場合について説明する。
The output of the OR circuit 41 becomes high level and enters the non-reset state when none of the above conditions is satisfied. A case where the conditions for determining the reset state are satisfied will be described.

【0043】のピークホールド回路38がローレベル
出力をする場合は、主電源VCCを投入した直後で、TC
端子2に接続された外付けコンデンサが所定電圧まで充
電されていない場合と、リセット許可信号とカウントア
ップ信号の論理和を取る論理和回路44がローレベル出
力をしてピークホールド回路38をクリアした場合であ
る。このクリア時に論理和回路44のローレベル出力は
バッファ37を介してTC 端子2に接続された外付けコ
ンデンサを放電させるので、このピークホールド回路3
8の出力がローレベルからハイレベルに変わるのは、主
電源VCCが4.75Vより大きくなり、バックアップ電
圧検出回路91 がハイレベルになった状態が、TC 端子
2に接続された外付けコンデンサを所定電圧にまで充電
させる時間だけ継続したときである。
When the peak hold circuit 38 outputs a low level signal, the power supply is turned on immediately after the main power supply VCC is turned on.
When the external capacitor connected to the terminal 2 has not been charged to the predetermined voltage, the OR circuit 44 which takes the logical sum of the reset enable signal and the count-up signal outputs a low level to clear the peak hold circuit 38. Is the case. At the time of this clearing, the low level output of the OR circuit 44 discharges the external capacitor connected to the TC terminal 2 via the buffer 37.
The output 8 changes from low level to high level only when the main power supply VCC becomes higher than 4.75 V and the backup voltage detection circuit 91 becomes high level when the external capacitor connected to the TC terminal 2 is connected. This is the case where the charging is continued to the predetermined voltage.

【0044】のRESIN 端子34に入力されるハイレベ
ルのリセット許可信号は、INT端子7からデータ待避
のための割り込み信号を受けたマイクロコンピュータ等
の外部装置が、データ待避処理を完了した後に出力する
ものである。
The high-level reset enable signal input to the RESIN terminal 34 is output after an external device such as a microcomputer that has received an interrupt signal for data saving from the INT terminal 7 completes the data saving process. Things.

【0045】のカウンタ42がローレベルのカウント
アップ信号を出力するのは、バックアップ電圧検出回路
91 が主電源VCCの電圧が4.75Vより低下したとき
に出力するローレベル信号をスタート信号として、CL
K端子36より入力されるクロックをカウントし、この
カウント値がデータ待避動作が完了するように定められ
た所定値に達したときである。なお、一旦カウント動作
が開始すれば、VCC端子1の電圧が4.75Vより高く
なりバックアップ電圧検出回路91 がハイレベル信号を
出力しても、カウント動作は停止せず、論理和回路41
のローレベル出力を受けるまで継続される。
The counter 42 outputs a low-level count-up signal because the backup voltage detection circuit 91 uses a low-level signal output when the voltage of the main power supply VCC falls below 4.75 V as a start signal.
The clock input from the K terminal 36 is counted, and this count value reaches a predetermined value determined to complete the data saving operation. Once the counting operation is started, even if the voltage of the VCC terminal 1 becomes higher than 4.75 V and the backup voltage detecting circuit 91 outputs a high level signal, the counting operation is not stopped, and the OR circuit 41
Is continued until a low level output is received.

【0046】図3は、本発明の上記電源電圧監視用IC
を組み込んだマイクロコンピュータシステムの接続例で
ある。図3において、33は電源電圧監視用IC、26
はマイクロコンピュータ、27はバッテリーバックアッ
プにより不揮発化されたメモリであるスタティックRA
Mである。28はバックアップ用電源である電池で、V
BAT 端子5に接続されている。29は主電源立ち上げ時
のリセット時間を決定する外付けコンデンサで、TC 端
子2に接続されている。
FIG. 3 shows the power supply voltage monitoring IC of the present invention.
1 is a connection example of a microcomputer system in which is incorporated. In FIG. 3, reference numeral 33 denotes a power supply voltage monitoring IC;
Is a microcomputer, and 27 is a static RA which is a non-volatile memory by a battery backup.
M. Reference numeral 28 denotes a battery serving as a backup power supply.
Connected to BAT terminal 5. An external capacitor 29 determines the reset time when the main power is turned on, and is connected to the TC terminal 2.

【0047】上記マイクロコンピュータ26は、主電源
VCCがバックアップ基準電圧を超えて低下したとき、電
源電圧監視用IC33から出力される電圧低下検出信号
を受けて、一連の複数バイトからなるバックアップデー
タを不揮発化されたメモリ27に記憶させる手段と、こ
の記憶処理の後、この電源電圧監視用ICにリセット許
可信号を出力する手段と、この電源電圧監視用ICから
出力されるリセット信号によってシステムのリセット動
作を行なうリセット手段を備えたものである。
When the main power supply VCC drops below the backup reference voltage, the microcomputer 26 receives a voltage drop detection signal output from the power supply voltage monitoring IC 33 and stores a series of backup data consisting of a plurality of bytes in a nonvolatile manner. Means for storing the data in the memory 27, a means for outputting a reset permission signal to the power supply voltage monitoring IC after the storage processing, and a reset operation of the system by the reset signal output from the power supply voltage monitoring IC. Reset means for performing the following.

【0048】本発明の電源電圧監視用IC33のINT
端子7はマイクロコンピュータ26の割り込み入力IN
TPn端子に接続されている。リセット許可信号を受け
るRESIN 端子34は出力ポートPm端子に接続されてい
る。リセット信号を出力するRESETバー端子8はプルア
ップされ、マイクロコンピュータ26の RESETバー端子
に接続されている。CLK端子36はマイクロコンピュ
ータ26のCLKOUT端子に接続されている。CSバー
端子6はメモリ27のバックアップコントロール用のC
E1 バー端子に接続されている。VOUT 端子4はメモリ
27のVCC端子に接続されている。
INT of power supply voltage monitoring IC 33 of the present invention
Terminal 7 is an interrupt input IN of the microcomputer 26
It is connected to the TPn terminal. The RESIN terminal 34 receiving the reset permission signal is connected to the output port Pm terminal. The RESET bar terminal 8 for outputting the reset signal is pulled up and connected to the RESET bar terminal of the microcomputer 26. The CLK terminal 36 is connected to the CLKOUT terminal of the microcomputer 26. The CS bar terminal 6 is a C for backup control of the memory 27.
Connected to E1 bar terminal. The VOUT terminal 4 is connected to the VCC terminal of the memory 27.

【0049】マイクロコンピュータ26のアドレス・バ
スA15・・0端子、データ・バスD7・・0端子は、
それぞれメモリ27のアドレス・バスA15・・0端
子、データ・バスD7・・0端子に接続されている。
The address bus A15... 0 terminal and the data bus D7.
The terminals are connected to the address bus A15... 0 terminals and the data bus D7.

【0050】データリードの制御をするマイクロコンピ
ュータ26のRDバー端子は、メモリ27のデータ出力
制御用のOEバー端子に接続され、データライトの制御
をするWRバー端子は、メモリ27のデータ書き込み制
御用のWEバー端子に接続されている。
The RD bar terminal of the microcomputer 26 for controlling the data reading is connected to the OE bar terminal for controlling the data output of the memory 27, and the WR bar terminal for controlling the data writing is controlled by the data writing control of the memory 27. WE bar terminal.

【0051】マイクロコンピュータ26の外部デバイス
選択用のCS端子は、メモリ27のチップセレクト用の
CE2 端子に接続されている。
The external device selection CS terminal of the microcomputer 26 is connected to the chip selection CE2 terminal of the memory 27.

【0052】次に、図1,図3の回路の動作を説明す
る。主電源VCCの立ち上げ時、電源電圧監視用IC33
は主電源VCCの電圧が3.3Vまで立ち上がった時点
で、切換え電圧検出回路92 のハイレベル出力によっ
て、不揮発化されたメモリ27への電源供給を、バック
アップ用電源28から主電源VCCに切換える。さらに主
電源が4.75Vまで上昇すると、バックアップ電圧検
出回路91 の出力がハイレベルになる。このハイレベル
信号によって、バッファ36の出力はハイインピ−ダン
スとなり、バッファ37の出力もハイインピ−ダンスで
あるので、TC 端子2に接続されたコンデンサ29は定
電流源15から充電される。
Next, the operation of the circuits shown in FIGS. 1 and 3 will be described. When the main power supply VCC starts up, the power supply voltage monitoring IC 33
When the voltage of the main power supply VCC rises to 3.3 V, the power supply to the non-volatile memory 27 is switched from the backup power supply 28 to the main power supply VCC by the high level output of the switching voltage detection circuit 92. When the main power further rises to 4.75 V, the output of the backup voltage detecting circuit 91 goes high. Due to this high level signal, the output of the buffer 36 becomes high impedance and the output of the buffer 37 is also high impedance, so that the capacitor 29 connected to the TC terminal 2 is charged from the constant current source 15.

【0053】コンデンサ29が所定電圧まで充電される
までは、ピークホールド回路38の出力OUT の電圧は低
いので、インバータ39の出力はハイレベルとなり、 R
ESETバー端子8からリセット信号が出力され、マイクロ
コンピュータ26をリセット状態に保持する。所定時間
が経過して、コンデンサ29の電圧が上昇すると、ピー
クホールド回路38の出力OUT の電圧は上昇してインバ
ータ39の出力をローレベルにする。これによって、 R
ESETバー端子8はハイインピ−ダンスとなり、プルアッ
プされたマイクロコンピュータ26のリセット端子はハ
イレベルとなり、リセットが解除されて動作が開始す
る。
Until the capacitor 29 is charged to a predetermined voltage, the voltage of the output OUT of the peak hold circuit 38 is low.
A reset signal is output from the ESET bar terminal 8 to hold the microcomputer 26 in a reset state. When a predetermined time has elapsed and the voltage of the capacitor 29 rises, the voltage of the output OUT of the peak hold circuit 38 rises and the output of the inverter 39 goes low. This gives R
The ESET bar terminal 8 becomes high impedance, the reset terminal of the microcomputer 26 pulled up becomes high level, the reset is released, and the operation starts.

【0054】リセット解除後、マイクロコンピュータ2
6はメモリ27より一連の複数バイトのデータを読み出
し、読み出したデータを用い計算処理を行う。
After reset release, the microcomputer 2
Reference numeral 6 reads a series of data of a plurality of bytes from the memory 27 and performs a calculation process using the read data.

【0055】計算処理終了後、計算結果をスタティック
RAM27へ書き込む。マイクロコンピュータ26は、
この処理を繰り返し行う。
After the calculation process is completed, the calculation result is written into the static RAM 27. The microcomputer 26 is
This process is repeated.

【0056】その後、主電源オフ時に主電源VCCの電圧
低下を、バックアップ電圧検出回路91 が検出すると、
図4の制御フロー図に示す手順でデータの待避とリセッ
トを行なう。
Thereafter, when the backup voltage detecting circuit 91 detects a voltage drop of the main power supply VCC when the main power supply is turned off,
Data saving and resetting are performed according to the procedure shown in the control flowchart of FIG.

【0057】バックアップ電圧検出回路91 の電圧低下
検出信号は、シュミットトリガ入力のインバータ13を
通して、INT端子7からマイクロコンピュータ26の
INTPn端子にハイレベルの割り込み信号を出力され
る。
The voltage drop detection signal of the backup voltage detection circuit 91 is output from the INT terminal 7 to the INTPn terminal of the microcomputer 26 via the Schmitt trigger input inverter 13 as a high-level interrupt signal.

【0058】このデータ待避の割り込み信号を受けたマ
イクロコンピュータ26は、割り込み処理を開始し、デ
ータ待避の処理を行なう。例えば、この割り込み要求が
図5に示すように、マイクロコンピュータ26がメモリ
27に一連の10バイトデータの5バイト目を書き込み
中に発生したとすると、割り込み要求を認識した後に割
り込み処理として、残りの5バイトデータをメモリ27
に直ちに書き込む。
The microcomputer 26 that has received the data save interrupt signal starts an interrupt process and performs a data save process. For example, as shown in FIG. 5, assuming that the microcomputer 26 generates the fifth byte of a series of 10-byte data into the memory 27 as shown in FIG. 5 byte data in memory 27
Write to immediately.

【0059】全データ書き込み終了後、NOP処理等の
リセットをかけて良い状態にし、出力ポートPm端子か
ら電源電圧監視用IC33のRESIN 端子にハイレベルの
リセット許可信号を出力する。電源電圧監視用IC33
に入力されたリセット許可信号は、NOR回路40、論
理和回路41、インバータ53を経由してトランジスタ
19を導通させ、 RESETバー端子8を接地出力の状態に
する。マイクロコンピュータ26は、この信号を RESET
バー端子に受けてリセットをかける。
After all data has been written, a reset such as NOP processing is performed to obtain a good state, and a high-level reset permission signal is output from the output port Pm terminal to the RESIN terminal of the power supply voltage monitoring IC 33. Power supply voltage monitoring IC33
, The transistor 19 is turned on through the NOR circuit 40, the OR circuit 41, and the inverter 53, and the RESET bar terminal 8 is set to the ground output state. The microcomputer 26 resets this signal.
Reset by receiving on the bar terminal.

【0060】このとき、トランジスタ23は非導通とな
り、CSバー端子6はハイレベル信号をメモリ27のC
E1 バー端子に出力する。また、このリセット許可信号
は、インバータ43、論理和回路44を通って、バッフ
ァ37を接地出力にすると同時にピークホールド回路3
8のCLRバー端子に入力される。これによって、TC
端子2に接続された外部コンデンサを放電させると同時
に、ピークホールド回路38をクリアして、ピークホー
ルド回路38の出力電圧を0Vにする。
At this time, the transistor 23 is turned off, and the CS terminal 6 outputs a high-level signal to the C
Output to the E1 bar terminal. The reset permission signal passes through the inverter 43 and the OR circuit 44 to output the buffer 37 to the ground, and at the same time, the peak hold circuit 3
8 CLR bar terminals. As a result, TC
At the same time as discharging the external capacitor connected to the terminal 2, the peak hold circuit 38 is cleared, and the output voltage of the peak hold circuit 38 is set to 0V.

【0061】上記バックアップ電圧検出回路91 が出力
する電圧低下信号は、INT端子7に出力されると同時
に、カウンタ42にカウントスタート信号として入力さ
れ、CLK端子に入力されたクロックを、カウンタ42
にカウントさせている。したがって、このカウンタ42
がカウントアップするまでに、リセット許可信号が入力
されないときは、このカウントアップ出力が、論理和回
路41、インバータ53、トランジスタ19を通り、リ
セット信号としてマイクロコンピュータに出力されると
同時に、論理和回路44を通って、ピークホールド回路
38をクリアする。
The voltage drop signal output from the backup voltage detecting circuit 91 is output to the INT terminal 7 and at the same time, is input to the counter 42 as a count start signal.
To count. Therefore, this counter 42
If the reset permission signal is not input before the count-up is performed, this count-up output is output to the microcomputer as a reset signal through the OR circuit 41, the inverter 53, and the transistor 19, and at the same time, the OR circuit is output. Through 44, the peak hold circuit 38 is cleared.

【0062】このように、カウンタ42を備えているの
で、本発明の電源監視用IC33をリセット許可信号の
制御を行わないシステムに組み込んでも、主電源オフ時
にリセットをかける前に、一連の複数バイトのデータを
不揮発化されたメモリ27に確実に記憶させることがで
き、システムの暴走を防ぐことが可能となる。
As described above, since the counter 42 is provided, even if the power supply monitoring IC 33 of the present invention is incorporated in a system that does not control the reset permission signal, a series of plural bytes must be output before resetting when the main power supply is turned off. Can be reliably stored in the non-volatile memory 27, and runaway of the system can be prevented.

【0063】なお、カウンタ42は、論理和回路41が
出力するローレベル信号(リセット信号)によってリセ
ットされるので、ピークホールド回路38の出力が低電
圧のとき、リセット許可信号が入力されたとき、及びカ
ウントアップ出力がされたときのいずれの場合も、カウ
ント値はクリアされて初期状態となる。
Since the counter 42 is reset by the low level signal (reset signal) output from the OR circuit 41, when the output of the peak hold circuit 38 is at a low voltage, when the reset permission signal is input, In both cases when the count-up output is performed, the count value is cleared and the initial state is established.

【0064】さらに3.3Vまで低下すると、メモリ2
7への電源供給を主電源VCCからバックアップ用電源2
8に切換え、この状態は、電源電圧監視用IC33に主
電源VCCが供給されなくなっても継続する。
When the voltage further drops to 3.3 V, the memory 2
7 is supplied from the main power supply VCC to the backup power supply 2
8 and continues even if the main power supply VCC is no longer supplied to the power supply voltage monitoring IC 33.

【0065】また、主電源VCCが再投入されるときは、
主電源VCCの電圧が3.3Vまで立ち上がった時点で、
不揮発性メモリ27への電源供給を、バックアップ用電
源28から主電源VCCに切換え、4.75Vまで上昇し
たとき、待避データを記憶したメモリ27のCE1 バー
端子CSをローレベルにして、リセットの解除を行う。
このリセット解除によって、待避させていたデータによ
る動作の再開が行われる。
When the main power supply VCC is turned on again,
When the voltage of the main power supply VCC rises to 3.3V,
The power supply to the nonvolatile memory 27 is switched from the backup power supply 28 to the main power supply VCC. When the power supply rises to 4.75 V, the CE1 bar terminal CS of the memory 27 storing the save data is set to the low level to release the reset. I do.
By this reset release, the operation is resumed by the saved data.

【0066】なお、切換え電圧検出回路92 とバックア
ップ電圧検出回路91 のハイ・ローの区別をする基準電
圧は、システムの電圧レベルによって、適当な値に設定
されるものである。
The reference voltage for distinguishing between high and low of the switching voltage detecting circuit 92 and the backup voltage detecting circuit 91 is set to an appropriate value depending on the voltage level of the system.

【0067】上記本発明は、主電源VCCオフ時のリセッ
ト信号の発生に、一種の遅延をかけるものであるため、
全てのバックアップデータの書き込み終了するまで外部
装置が動作可能なように電源電圧を保つ電源容量の設計
が必要である。
According to the present invention, a kind of delay is applied to the generation of the reset signal when the main power supply VCC is off.
It is necessary to design a power supply capacity for maintaining the power supply voltage so that the external device can operate until all the backup data has been written.

【0068】[0068]

【発明の効果】以上説明したように、本発明の電源電圧
監視用ICは、主電源VCCオフ時にマイクロコンピュー
タ等の外部装置にリセット信号を出力する条件として、
外部装置が一連の複数バイトのデータを不揮発化された
メモリに記憶させた後に発生するリセット許可信号が出
力された場合、又は上記データ待避の指令を発した後に
データの待避・記憶が完了する所定時間の経過をカウン
トした場合のいずれかとしたから、主電源の遮断がいか
なる条件で行われても、一連のデータを誤り無く全て書
き込め、システムの暴走を防ぐことが可能となる。
As described above, the power supply voltage monitoring IC according to the present invention has the following conditions for outputting a reset signal to an external device such as a microcomputer when the main power supply VCC is off.
When a reset permission signal generated after the external device stores a series of data of a plurality of bytes in the non-volatile memory is output, or after the data saving instruction is issued, the data saving / storing is completed. Since any one of the cases where the passage of time is counted is performed, even if the main power supply is cut off under any conditions, a series of data can be all written without error, and it is possible to prevent runaway of the system.

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

【図1】本発明の電源電圧監視用ICの一実施例の内部
等価回路を示す図である。
FIG. 1 is a diagram showing an internal equivalent circuit of an embodiment of a power supply voltage monitoring IC of the present invention.

【図2】図1のカウンタ(42)の内部ブロック図であ
る。
FIG. 2 is an internal block diagram of a counter (42) of FIG.

【図3】図1の電源電圧監視用ICをマイクロコンピュ
ータシステムに組み込んだ例を示す図である。
FIG. 3 is a diagram showing an example in which the power supply voltage monitoring IC of FIG. 1 is incorporated in a microcomputer system.

【図4】図3のシステムにおける主電源オフ時からリセ
ットまでの動作を示すフローチャートである。
FIG. 4 is a flowchart showing an operation from a time when a main power is turned off to a time when the system is reset in the system shown in FIG. 3;

【図5】図3のシステムにおける主電源オフ時の各端子
の出力波形例を示す図である。
FIG. 5 is a diagram showing an example of output waveforms of each terminal when the main power supply is turned off in the system of FIG. 3;

【図6】従来の電源電圧監視用ICの内部等価回路を示
す図である。
FIG. 6 is a diagram showing an internal equivalent circuit of a conventional power supply voltage monitoring IC.

【図7】従来の電源電圧監視用ICを用いたマイクロコ
ンピュータシステムの接続例を示す図である。
FIG. 7 is a diagram showing a connection example of a microcomputer system using a conventional power supply voltage monitoring IC.

【図8】図7のシステムで主電源VCCのオフ時にノイズ
が混入した場合の各端子の出力波形図である。
8 is an output waveform diagram of each terminal when noise is mixed when the main power supply VCC is turned off in the system of FIG. 7;

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

1 主電源端子 2 リセット時間を設定する外部コンデンサの接続端子 3 グランド端子 4 不揮発化されるメモリへの電源供給端子 5 バックアップ電源の接続端子 6 不揮発化されたメモリにバックアップ制御信号を供
給する端子 7 データの待避・記憶を指令する割り込み信号の出力
端子 8 リセット信号の出力端子 91 バックアップ電圧検出回路 92 切換え電圧検出回路 10,11 主電源VCCとバックアップ用電源から、不
揮発化されるメモリに電源を切換え供給するトランジス
タ 12 ショットキーバリアダイオード 13,39,45 シュミットトリガ付きインバータ 15 定電流源 17,18,21,22,24,35 抵抗 19,23 トランジスタ 26 外部装置(マイクロコンピュータ) 27 不揮発化されるメモリ(スタティクRAM) 28 バックアップ用電源(電池) 29 リセット時間を決めるコンデンサ 30 主電源波形にのったノイズ 31 ノイズによって出力されたリセット信号出力 32 ノイズが無い場合のリセット信号出力 33 電源電圧監視用IC 34 リセット許可信号の入力端子 36,37 オープンコレクタバッファ 38 Fast Attack Slow Releaseピークホールド回路 40 NOR回路 41 ゲート回路(論理和回路) 44 論理和回路 42 カウンタ 43,53 インバータ 46,47,48,49,50,51 否定論理積回路 52 カウンタ回路
DESCRIPTION OF SYMBOLS 1 Main power supply terminal 2 Connection terminal of external capacitor for setting reset time 3 Ground terminal 4 Power supply terminal to nonvolatile memory 5 Backup power supply terminal 6 Terminal for supplying backup control signal to nonvolatile memory 7 Output terminal of interrupt signal for commanding data saving / storing 8 Output terminal of reset signal 91 Backup voltage detection circuit 92 Switching voltage detection circuit 10, 11 Switching power supply from main power supply VCC and backup power supply to non-volatile memory Supplying transistor 12 Schottky barrier diode 13, 39, 45 Inverter with Schmitt trigger 15 Constant current source 17, 18, 21, 22, 24, 35 Resistance 19, 23 Transistor 26 External device (microcomputer) 27 Non-volatile memory (Static AM) 28 Backup power supply (battery) 29 Capacitor that determines reset time 30 Noise on main power supply waveform 31 Reset signal output due to noise 32 Reset signal output in the absence of noise 33 Power supply voltage monitoring IC 34 Reset Input terminals 36 and 37 for the enable signal 36 and 37 Open collector buffer 38 Fast Attack Slow Release peak hold circuit 40 NOR circuit 41 Gate circuit (OR circuit) 44 OR circuit 42 Counter 43, 53 Inverter 46, 47, 48, 49, 50, 51 NAND circuit 52 Counter circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 主電源電圧を監視して、主電源オフ時に
一連の複数バイトからなるデータを不揮発化されたメモ
リに記憶・待避させるタイミングと、システムのリセッ
トを行なうタイミングを決定する電源電圧監視用ICで
あって、 主電源電圧が、バックアップ基準電圧を超えて低下した
ことを検出するバックアップ電圧検出回路と、この検出
信号を外部装置に出力する出力端子と、この検出信号を
受け取った外部装置が所定のデータ記憶処理を完了した
後に発生するリセット許可信号を受ける入力端子と、上
記検出信号をスタート信号としてクロックパルスをカウ
ントし、データ記憶処理が完了する所定時間の経過後に
カウントアップ信号を発生するカウンタと、上記リセッ
ト許可信号とカウントアップ信号の少なくとも一方が発
生したとき、外部装置にリセット信号を出力するゲート
回路とを備えた電源電圧監視用IC。
1. A power supply voltage monitor for monitoring a main power supply voltage and determining a timing for storing and saving a series of data of a plurality of bytes in a non-volatile memory when the main power supply is turned off and a timing for resetting a system. A backup voltage detection circuit for detecting that the main power supply voltage has dropped below the backup reference voltage, an output terminal for outputting the detection signal to an external device, and an external device for receiving the detection signal. An input terminal for receiving a reset permission signal generated after completing a predetermined data storage process, and counting the clock pulse using the detection signal as a start signal, and generating a count-up signal after a predetermined period of time when the data storage process is completed. And at least one of the reset permission signal and the count-up signal occurs. , Power supply voltage monitor IC that includes a gate circuit that outputs a reset signal to an external device.
【請求項2】請求項1に記載した電源電圧監視用ICが
組み込まれ、主電源電圧がバックアップ基準電圧を超え
て低下したとき、このICから出力される検出信号を受
けて、一連の複数バイトからなるバックアップデータを
不揮発化されたメモリに記憶させる手段と、この記憶処
理の後、このICにリセット許可信号を出力する手段
と、このICから出力されるリセット信号によってシス
テムのリセット動作を行なうリセット手段を具備したこ
とを特徴とするマイクロコンピュータシステム。
2. A power supply voltage monitoring IC according to claim 1, wherein when the main power supply voltage falls below a backup reference voltage, a detection signal output from the IC is received, and a series of a plurality of bytes are received. Means for storing backup data in a non-volatile memory, means for outputting a reset permission signal to the IC after the storage processing, and reset for performing a system reset operation by a reset signal output from the IC. A microcomputer system comprising means.
JP9002947A 1997-01-10 1997-01-10 Ic for monitoring power supply voltage Pending JPH10198466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9002947A JPH10198466A (en) 1997-01-10 1997-01-10 Ic for monitoring power supply voltage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9002947A JPH10198466A (en) 1997-01-10 1997-01-10 Ic for monitoring power supply voltage

Publications (1)

Publication Number Publication Date
JPH10198466A true JPH10198466A (en) 1998-07-31

Family

ID=11543576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9002947A Pending JPH10198466A (en) 1997-01-10 1997-01-10 Ic for monitoring power supply voltage

Country Status (1)

Country Link
JP (1) JPH10198466A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6222398B1 (en) 1998-11-20 2001-04-24 Nec Corporation Voltage detecting circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6222398B1 (en) 1998-11-20 2001-04-24 Nec Corporation Voltage detecting circuit

Similar Documents

Publication Publication Date Title
US5315549A (en) Memory controller for nonvolatile RAM operation, systems and methods
US4777626A (en) Memory device having backup power supply
US6438033B2 (en) Apparatus and method for programming voltage protection in a non-volatile memory system
US5175845A (en) Integrated circuit with watchdog timer and sleep control logic which places IC and watchdog timer into sleep mode
US5203000A (en) Power-up reset conditioned on direction of voltage change
JP3611316B2 (en) ELECTRIC DEVICE, COMPUTER DEVICE, POWER SWITCHING DEVICE, AND POWER SWITCHING METHOD
US5790873A (en) Method and apparatus for power supply switching with logic integrity protection
US5754462A (en) Microprocessor auxiliary with ability to be queried re power history
US7415621B2 (en) Power supply system, computer apparatus and maximum power control method
JP2004185273A (en) Memory card, and electronic device
WO1996024935A1 (en) Filtered serial event controlled command port for flash memory
US20110320686A1 (en) Frdy pull-up resistor activation
JP3563298B2 (en) Voltage detection circuit
US5349669A (en) Data write control means
JPH10198466A (en) Ic for monitoring power supply voltage
US20040032778A1 (en) Data processor, semiconductor memory device and clock frequency detecting method
US20060268625A1 (en) Semiconductor integrated circuit and microcomputer
CN213582162U (en) Embedded equipment
JP3112277B2 (en) Memory card
JPH0436426B2 (en)
JP3128435B2 (en) Computer system with resume function
SU841088A2 (en) Bistable element
KR970003318B1 (en) Data write control means
JP2809752B2 (en) Memory access circuit
JP4004659B2 (en) High voltage input interface circuit and semiconductor integrated circuit