JPS6386007A - Power-down/reset signal generating circuit for microcomputer - Google Patents

Power-down/reset signal generating circuit for microcomputer

Info

Publication number
JPS6386007A
JPS6386007A JP61232876A JP23287686A JPS6386007A JP S6386007 A JPS6386007 A JP S6386007A JP 61232876 A JP61232876 A JP 61232876A JP 23287686 A JP23287686 A JP 23287686A JP S6386007 A JPS6386007 A JP S6386007A
Authority
JP
Japan
Prior art keywords
power
reset signal
cpu
power supply
circuit
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
JP61232876A
Other languages
Japanese (ja)
Inventor
Akihiro Matsui
昭博 松井
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP61232876A priority Critical patent/JPS6386007A/en
Publication of JPS6386007A publication Critical patent/JPS6386007A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To prevent the malfunctions of a CPU by applying the power-down signals to the CPU as well as to a single input of a reset signal generating circuit that is backed up by a back-up power supply. CONSTITUTION:A commercial power supply is rectified by a power supply circuit 1 and applied to a CR circuit consisting of a capacitor 2 and a resistance 3. When the voltage of the CR circuit exceeds the sum of value voltage level of a Zener diode 4 and the base-emitter voltage level of a transistor (Tr)5, this Tr5 is turned on and at the same time a TR6 is also turned on. Thus the power-down signal is changed to a high level from a low level. This power- down signal is applied to the clock of an FF7 and a Tr12 is turned on to set the reset signal at a high level. While a CPU starts to monitor the power-down signal when this signal is set at a low level decides a power supply OFF state. The CPU is held when the power supply is cut. In this case, the output of a gate 11 is applied to the reset terminal R of the FF7 and the Tr12 is turned off to set the reset signal at a low level.

Description

【発明の詳細な説明】 [産業上の利用分野] 水元1月は、マイクロコンビコータのCPUに用いるリ
セット信号発生回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] January Mizumoto relates to a reset signal generation circuit used in a CPU of a micro combi coater.

[従来の技術] 従来マイクロフンピユータのCPUのリセット信号回路
として使用されていたちのは、例えば、第3図に示すも
のがあり、この回路の信号のタイムチャートは第4図に
示すようになる。即わち、波形整形回路13より′rI
i源周波数周波数の周波数を有するパルス電圧がリドリ
ガーワンショット発生回路14に加えられており、交流
電源が断となった状態が一定時間継続すれば上記回路1
4よりワンパルスが発生し、この信号はパワーダウン信
号として出力される。同時にワンショット出力発生回路
15に加えられ発生した信号と、立上りリセット発生回
路1Gよりの信号とをゲート17を介してCPUに′f
i源立下りのリセット信号を与える。
[Prior Art] For example, the circuit shown in Fig. 3 has been conventionally used as a reset signal circuit for the CPU of a microcomputer, and the time chart of the signals of this circuit is shown in Fig. 4. . That is, from the waveform shaping circuit 13, 'rI
A pulse voltage having a frequency equal to the i source frequency is applied to the ridger one-shot generation circuit 14, and if the AC power supply continues to be cut off for a certain period of time, the circuit 1
One pulse is generated from 4, and this signal is output as a power down signal. At the same time, the generated signal applied to the one-shot output generation circuit 15 and the signal from the rising reset generation circuit 1G are sent to the CPU via the gate 17.
Gives a reset signal when the i source falls.

[発明が解決しようとする問題点] 上述の従来技術によれば次のような問題点がある。立上
りリセット信号発生回路は交流電源により作動するため
電源投入時にチャタリング現染があればリセット信号の
レベルは不安定となる。−方、CPUの電源も交流を整
流して得られるのでチャタリングによって不安定となる
。この場合、CPUの電源電圧がCPUを作動させるレ
ベルまで上昇し、しかもリセット信号のレベルがリセッ
ト電圧以上となればCPUには初期リセットがかからず
誤動作を発生する。また商用電源には瞬断、ノイズ等が
あり、これらはコンデンサで平滑されているシステムm
aに異常を生じないものがある。
[Problems to be Solved by the Invention] The above-mentioned prior art has the following problems. Since the rising reset signal generation circuit is operated by an AC power supply, if there is chattering when the power is turned on, the level of the reset signal will become unstable. - On the other hand, since the power supply for the CPU is also obtained by rectifying alternating current, it becomes unstable due to chattering. In this case, if the power supply voltage of the CPU rises to a level that activates the CPU and the level of the reset signal exceeds the reset voltage, the CPU will not be initially reset and will malfunction. In addition, commercial power supplies have instantaneous interruptions, noise, etc., and these are smoothed out by capacitors.
There are some cases in which no abnormality occurs in a.

このような場合でも上記の回路構成(ハード)のみによ
る回路では正常時にリセット信号を発生しCPLJに電
源断の処理をさせることがある。
Even in such a case, a circuit with only the above circuit configuration (hardware) may generate a reset signal during normal operation and cause the CPLJ to perform power-off processing.

[問題点を解決するための手段及び作用]ハードの回路
で発生するパワーダウン信号をCPUの入力に加えると
共にバックアップ電源でバックアップされているリセッ
ト信号発生回路の一入力に加え、一方CPUの出力信号
を前記リセット信号発生回路の他入力に加えてリセット
信号を発生させる。
[Means and actions for solving the problem] A power down signal generated in a hardware circuit is added to the input of the CPU, and is also added to one input of a reset signal generation circuit backed up by a backup power supply, while the output signal of the CPU is is added to other inputs of the reset signal generating circuit to generate a reset signal.

バックアップ電源でバックアップされているリセット信
号発生回路はパワーダウン信号の立上りでリセット信号
を解除するものを用いる。パワーダウン信号は交流電源
を整流して得られた直流をOR回路の供給し、OR回路
の電圧が閾値を越えたときにハイレヘベルとなるように
すればリセット信号は電源投入後一定時間必ず一定レベ
ル以下に保つことができて電源投入時の誤動作は発生し
ない。またパワーダウン信号をCPUで監視してCPU
の判断によりリセット信号を発生することができるので
電源瞬断時等の不要なリセット信号の発生も避けること
ができる。
The reset signal generation circuit backed up by a backup power supply is one that releases the reset signal at the rise of the power down signal. For the power down signal, supply the OR circuit with DC obtained by rectifying the AC power supply, and set it to a high level when the voltage of the OR circuit exceeds the threshold.The reset signal will always be at a constant level for a certain period of time after the power is turned on. It can be maintained below and malfunctions do not occur when the power is turned on. In addition, the power down signal is monitored by the CPU and
Since the reset signal can be generated based on the determination, it is possible to avoid generation of unnecessary reset signals when the power supply is momentarily cut off or the like.

[実施例] 以下、本発明の一実茄例を第1図、第2図を参照しなが
ら説明する。商用電源が電源回路1により整流されコン
デンサ2と抵抗3により構成されるOR回路に加えられ
る。電源投入時一定の時定数を持って立上るOR回路の
電圧がツェナダイオード4のツェナ電圧とトランジスタ
5のベース・エミッタ間電圧の和を越えるとトランジス
タ5はオンとなり、従って、トランジスタ6のベス電流
が流れ出し、トランジスタ6もオンとなる。このときパ
ワーダウン信号はロウからハイとなる。パワーダウン信
号はまたフリップフロップ7のクロックに加えられてい
る。フリップフロップ7はR1S端子がハイのときクロ
ックの立上りでD入力の反転がQに出力されるタイプで
あり、バッテリによるバックアップ電源が接続されてい
る。後述するように7リツプフロツプ7のび出力は電源
立下り時にハイとなっているので、D入力が常時ハイ状
態にある。フリップフロップ7は前述したパワーダウン
信号の立上りでd出力が立下る。このときトランジスタ
12がオンとなり、リセット信号はハイとなるが、それ
以前の状態ではQ出力は一定レベル以上のハイ状態が維
持されているのでトランジスタ12のエミッタ電圧の値
にかかわらずリセット信号は一定レベル以下となり確実
な立上りリセット信号をCPLIに与えることができる
[Example] Hereinafter, an example of an eggplant according to the present invention will be described with reference to FIGS. 1 and 2. Commercial power is rectified by a power supply circuit 1 and applied to an OR circuit constituted by a capacitor 2 and a resistor 3. When the voltage of the OR circuit, which rises with a certain time constant when the power is turned on, exceeds the sum of the Zener voltage of the Zener diode 4 and the base-emitter voltage of the transistor 5, the transistor 5 turns on, and therefore the base current of the transistor 6 increases. begins to flow, and transistor 6 is also turned on. At this time, the power down signal changes from low to high. A power down signal is also applied to the clock of flip-flop 7. The flip-flop 7 is of a type in which when the R1S terminal is high, the inversion of the D input is output to the Q at the rising edge of the clock, and is connected to a battery backup power source. As will be described later, the output of the 7-lip-flop 7 is high when the power supply falls, so the D input is always high. The d output of the flip-flop 7 falls at the rise of the aforementioned power down signal. At this time, the transistor 12 is turned on and the reset signal becomes high, but before that, the Q output is maintained at a high state above a certain level, so the reset signal remains constant regardless of the value of the emitter voltage of the transistor 12. It becomes possible to provide a reliable rising reset signal to the CPLI.

つぎに、電源所時のリセット信号の発生について述べる
。電源オフとなれば前記OR回路による時定数と前記ツ
ェナ電圧とベース・エミッタ間電圧で決る遅延時間後パ
ワーダウン信号がロウとなるが、フリップフロップ7は
立上りクロックで動作するタイプであるのでこのとぎは
変化しない。
Next, the generation of the reset signal at the power station will be described. When the power is turned off, the power down signal becomes low after a delay time determined by the time constant of the OR circuit, the Zener voltage, and the base-emitter voltage, but since the flip-flop 7 is of the type that operates with a rising clock, does not change.

パワーダウン信号はCPLIの割込み入力と他の入力端
子に加えられており、CPUはパワーダウン信号がロウ
となるとパワーダウン信号の監視を始め、プログラムに
従って、電源断を判断する。CPUが電源断と判断すれ
ば必要な処理を行った後、CPUの出力であるリセット
指令信号をロウとし、CPUをホールド状態とする。従
って、CPUのホールド状態を示すCPU停止信号もロ
ウとなる。
A power-down signal is applied to the interrupt input and other input terminals of the CPLI, and when the power-down signal becomes low, the CPU starts monitoring the power-down signal and determines power-off according to the program. If the CPU determines that the power is off, it performs necessary processing and then sets the reset command signal, which is the output of the CPU, to low, thereby placing the CPU in a hold state. Therefore, the CPU stop signal indicating the hold state of the CPU also becomes low.

このとき、ゲート11の出力はハイからロウに変化し、
この微分値がコンデンサ10を介してフリップフロップ
7のリセット端子Rに加わる。端子Rには抵抗8を介し
てVccの電圧が加わっているので常時ハイであるが、
ゲート11の出力がハイからロウに変化するときのみ口
つのパルスが加えられる。
At this time, the output of gate 11 changes from high to low,
This differential value is applied to the reset terminal R of the flip-flop 7 via the capacitor 10. Since the voltage of Vcc is applied to the terminal R via the resistor 8, it is always high.
Two pulses are applied only when the output of gate 11 changes from high to low.

このようにしてフリップフロップ7がリセットされると
Q出力はハイとなりトランジスタ12がオフとなりリセ
ット信号がロウとなる。従って、CPUに?ff源断0
立下リセット信号を与えることができる。なお、図にお
けるダイオード9はR端子がVccレベルであるとき、
ゲート11の出力がロウがらハイに変化した場合にR端
子にVcc以上の電圧が加わらないように設けである。
When the flip-flop 7 is reset in this way, the Q output becomes high, the transistor 12 is turned off, and the reset signal becomes low. Therefore, to the CPU? ff power disconnection 0
A falling reset signal can be given. Note that when the R terminal of the diode 9 in the figure is at the Vcc level,
This is provided to prevent a voltage higher than Vcc from being applied to the R terminal when the output of the gate 11 changes from low to high.

またvcCl、iシステム電源であり、電源断となった
後一定時間を経過して下るものでり、VBATはバッテ
リによるバックアップ電源で電源断となってもレベルは
不変である。
Also, vcCl is the i-system power supply, which goes down after a certain period of time has passed after the power is cut off, and VBAT is a backup power supply using a battery, and its level remains unchanged even if the power is cut off.

[発明の効果] 本発明によれば立上りリセット信号が一定レベル以下に
確保されるので立上り時のCPLIの誤動作がない。ま
た立下り時にパワーダウン信号をCPUが監視し、判断
してリセット信号を発生させるので瞬断時模の不要な電
源断の立下りリセット信号を発生させないようにするこ
とができる。
[Effects of the Invention] According to the present invention, since the rising reset signal is ensured to be below a certain level, there is no malfunction of the CPLI at the rising edge. Furthermore, since the CPU monitors the power down signal at the time of falling and makes a judgment to generate the reset signal, it is possible to avoid generating a falling reset signal for unnecessary power cut-off in the event of a momentary power outage.

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

第1図は本発明による一実施例の回路図、第2図は同回
路における信号のタイムチャート、第3図は従来技術に
よるリセット信号発生回路のブロック図、第4図は同回
路における信号のタイムチャートである。 図中、1は整流回路、2.10はコンデンサ、3.8は
抵抗、4はツェナダウオード、5.6.12はトランジ
スタ、7はフリップ70ツブ、9はダイオード、11は
ゲートである。 特許出願人  株式会社富士通ゼネラル第2図 第3図 第4図
FIG. 1 is a circuit diagram of an embodiment of the present invention, FIG. 2 is a time chart of signals in the same circuit, FIG. 3 is a block diagram of a reset signal generation circuit according to the prior art, and FIG. 4 is a diagram of signals in the same circuit. This is a time chart. In the figure, 1 is a rectifier circuit, 2.10 is a capacitor, 3.8 is a resistor, 4 is a Zener diode, 5.6.12 is a transistor, 7 is a flip 70 tube, 9 is a diode, and 11 is a gate. Patent applicant: Fujitsu General Ltd. Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 交流電源を整流して得られた直流をCR回路を介し得ら
れた電圧が所定の閾値を越えるとき出力電圧をハイレベ
ルとするパワーダウン信号発生回路の入力に加え前記パ
ワーダウン信号発生回路の出力信号をCPUの入力に加
えると共にバックアップ電源にバックアップされている
リセット信号発生回路の一入力に加え、一方、CPUの
出力信号を前記リセット信号発生回路の他の入力に加え
、前記リセット信号発生回路の出力を直接またはインタ
ーフェイス回路を介してCPUのリセット信号とするこ
とを特徴とするマイクロコンピュータ用パワーダウン信
号及リセット信号発生回路
In addition to the input of a power down signal generation circuit which sets the output voltage to a high level when the voltage obtained by rectifying the AC power supply through the CR circuit exceeds a predetermined threshold value, the output of the power down signal generation circuit is also provided. A signal is applied to the input of the CPU and one input of a reset signal generation circuit backed up by a backup power supply, while an output signal of the CPU is applied to the other input of the reset signal generation circuit. A power-down signal and reset signal generation circuit for a microcomputer, characterized in that the output is used as a CPU reset signal directly or via an interface circuit.
JP61232876A 1986-09-30 1986-09-30 Power-down/reset signal generating circuit for microcomputer Pending JPS6386007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61232876A JPS6386007A (en) 1986-09-30 1986-09-30 Power-down/reset signal generating circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61232876A JPS6386007A (en) 1986-09-30 1986-09-30 Power-down/reset signal generating circuit for microcomputer

Publications (1)

Publication Number Publication Date
JPS6386007A true JPS6386007A (en) 1988-04-16

Family

ID=16946218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61232876A Pending JPS6386007A (en) 1986-09-30 1986-09-30 Power-down/reset signal generating circuit for microcomputer

Country Status (1)

Country Link
JP (1) JPS6386007A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6116629B2 (en) * 1982-12-28 1986-05-01 Yoshimitsu Nagai

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6116629B2 (en) * 1982-12-28 1986-05-01 Yoshimitsu Nagai

Similar Documents

Publication Publication Date Title
US4434403A (en) Universal reset circuit for digital circuitry
US8310286B2 (en) Controller and voltage detection enabling circuit thereof
US6418002B1 (en) Power supply supervisor having a line voltage detector
US5426776A (en) Microprocessor watchdog circuit
JPH0120777B2 (en)
JP2862591B2 (en) Inrush current prevention circuit
JPH04236618A (en) Lockout preventive circuit
JPH06100947B2 (en) Power control circuit
US5587916A (en) Low voltage sensing circuits for battery powered devices having a micro-processor
JPS6386007A (en) Power-down/reset signal generating circuit for microcomputer
US8552766B2 (en) Threshold comparator with hysteresis and method for performing threshold comparison with hysteresis
JP2857442B2 (en) Power supply low voltage detector
JPH0537254Y2 (en)
JPH0313786Y2 (en)
JPH0510424Y2 (en)
JPH0581922B2 (en)
JPS63103311A (en) Processing method for microcomputer system at time of service interruption
JPS5944852B2 (en) power supply
JPS6067864A (en) Ac voltage detecting circuit
JPH0145223Y2 (en)
JPS5813378Y2 (en) Power-off detection monitoring circuit
JPH0219856Y2 (en)
JPS62269240A (en) Noise eliminating device
JPS61271523A (en) Memory back-up circuit
JPH07152460A (en) Voltage detection reset circuit