JPH01255019A - Power source circuit for microcomputer - Google Patents

Power source circuit for microcomputer

Info

Publication number
JPH01255019A
JPH01255019A JP63082549A JP8254988A JPH01255019A JP H01255019 A JPH01255019 A JP H01255019A JP 63082549 A JP63082549 A JP 63082549A JP 8254988 A JP8254988 A JP 8254988A JP H01255019 A JPH01255019 A JP H01255019A
Authority
JP
Japan
Prior art keywords
voltage
microcomputer
power supply
circuit
memory
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
JP63082549A
Other languages
Japanese (ja)
Inventor
Jun Sugawara
潤 菅原
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.)
Alps Alpine Co Ltd
Original Assignee
Alps 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP63082549A priority Critical patent/JPH01255019A/en
Publication of JPH01255019A publication Critical patent/JPH01255019A/en
Pending legal-status Critical Current

Links

Landscapes

  • Direct Current Feeding And Distribution (AREA)
  • Power Sources (AREA)

Abstract

PURPOSE:To prevent malfunction from being generated at the time of applying a power source again by outputting a reset signal to a microcomputer (MPU) when the source voltage of the MPU drops less than a prescribed level in a low power consumption mode in a state where a commercial power source is disconnected. CONSTITUTION:When the commercial power source 1 is disconnected, a source voltage monitoring circuit 6 detects the lowering of the output voltage of a rectifier circuit 2, and outputs an interruption signal VINT to the MPU 5. The MPU 5 sets a processing interruption address, and writes test data on a part of a memory, then, moves a mode to the low power consumption mode. When the source voltage VCC of the MPU 5 drops less than a memory holding guarantee voltage and goes to a voltage in the neighborhood of 0V, the MPU 5, after performing the initializing processing of the memory, restarts an ordinary processing. Therefore, danger in which a processing by using destroyed memory data is continued after recovery of the power source can be evaded.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、家庭用AV機器(オーディオ・ビデオ機器
)にお(Jるマイクロコンピュータの電源回路に関する
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a power supply circuit for a microcomputer used in household AV equipment (audio/video equipment).

「従来の技術」 近年、家庭用(7)AV機器(TV受信機、V T R
1CDプレーヤ等)には、マイクロコンピュータが一搭
載され、機器の制御に用いられている。これらの機器の
使用時に、停電、コンセント抜け、屋内での移動のため
の一時的な取り外し等があると、例えばTV受信機の場
合に(J受信チャンネルのプリセットデータの消去、V
TRの場合にはタイマープログラム等の消去、CDプレ
ーヤの場合には設定が狂ってしまうといった不都合か生
ずる。そこで、電源断を検出して、マイクロコンピコ、
−りを低消費電力モードにし、電源が回復するまでの間
、バックアップ用電源により電源を供給し、電源回復後
は再び電源断時の状態からマイクロコンピュータが動作
を再開できるようにしていた。ここで、低消費電力モー
ドとは、電源の供給が絶たれた時のためにマイクロコン
ピュータに備えられた動作モードであり、このモードに
切り換えられると、マイクロコンピュータはクロックを
停止し、消費電流が数μへ以下の完全に静的な状態にな
る。
“Conventional technology” In recent years, household (7) AV equipment (TV receivers, VTR
1CD player, etc.) is equipped with one microcomputer and is used to control the device. When using these devices, if there is a power outage, unplugging, temporary removal for indoor movement, etc., for example, in the case of a TV receiver (deleting the preset data of the J reception channel, V
In the case of a TR, the timer program etc. may be erased, and in the case of a CD player, the settings may become incorrect. Therefore, by detecting a power outage, the microcontroller
- The microcomputer was placed in a low power consumption mode, and a backup power supply was used to supply power until the power was restored, and after the power was restored, the microcomputer was able to resume operation from the state it was in when the power was turned off. Here, the low power consumption mode is an operation mode prepared for the microcomputer in case the power supply is cut off. When switched to this mode, the microcomputer stops the clock and reduces the current consumption. It becomes completely static below a few microns.

そして、通常動作状態への復帰はマイクロコンピュータ
へのリセット又は割り込み信号の入力によって行われる
The return to the normal operating state is performed by resetting the microcomputer or inputting an interrupt signal.

第3図は従来のマイクロコンピュータの電源回路の回路
図である。商用電源lの出力電圧はトランスTで降圧さ
れた後、ダイオードD、、D2、D3、D4からなる整
流回路2で整流される。整流回路2の出力端と接地間に
は平滑コンデンサC1が介挿されており、出力電圧が平
滑化される。そして、整流回路2の出力電圧は電圧安定
化回路3へ入力される。電圧安定化回路3の出力はダイ
オードD5を順方向に介し、マイクロコンピュータ5の
電源端子Vccへ接続される。また、ダイオードD5の
カソードは、電流制限抵抗Rを介し、メモリバックアッ
プ時の電源となるバックアップコンデンサC2に接続さ
れる。また、電圧安定化回路3の出力には電源電圧を監
視するりセット回路4が接続されており、リセット回路
4の出力はマイクロコンピュータ5のリセット回路Re
setに接続されている。このリセット回路4は、内部
に時定数回路を有しており、入力電圧の立ち上がりによ
ってリセット信号VRを発してマイクロコンピュータ5
をリセットし、所定のリセット期間経過後リセットを解
除する。このリセット期間はマイクロコンピュータ5の
電源電圧Vccが十分に立ち上がってからリセット信号
VRか解除されるように設定される。マイクロコンピュ
ータ5は電圧監視ボートPを有し、この電圧監視ボート
Pは電圧安定化回路3の出力端に接続される。そして、
マイクロコンピュータ5が通常動作状態の時に電圧監視
ボーl−Pの入力電圧が所定レベル以下に下がると、マ
イクロコンピュータ5はこれを判定処理し、低消費電力
モードに移る。
FIG. 3 is a circuit diagram of a conventional microcomputer power supply circuit. The output voltage of the commercial power source 1 is stepped down by a transformer T, and then rectified by a rectifier circuit 2 consisting of diodes D, D2, D3, and D4. A smoothing capacitor C1 is inserted between the output end of the rectifier circuit 2 and ground, and the output voltage is smoothed. The output voltage of the rectifier circuit 2 is then input to the voltage stabilization circuit 3. The output of the voltage stabilizing circuit 3 is connected to the power supply terminal Vcc of the microcomputer 5 through a diode D5 in the forward direction. Further, the cathode of the diode D5 is connected via a current limiting resistor R to a backup capacitor C2 which serves as a power source during memory backup. Further, a power supply voltage monitoring/setting circuit 4 is connected to the output of the voltage stabilizing circuit 3, and the output of the reset circuit 4 is connected to the reset circuit Re of the microcomputer 5.
connected to set. This reset circuit 4 has an internal time constant circuit, and generates a reset signal VR when the input voltage rises, and outputs a reset signal VR to the microcomputer 5.
is reset, and the reset is canceled after a predetermined reset period has elapsed. This reset period is set so that the reset signal VR is released after the power supply voltage Vcc of the microcomputer 5 has sufficiently risen. The microcomputer 5 has a voltage monitoring port P, which is connected to the output end of the voltage stabilizing circuit 3. and,
When the input voltage of the voltage monitoring board I-P falls below a predetermined level while the microcomputer 5 is in a normal operating state, the microcomputer 5 processes this decision and shifts to a low power consumption mode.

=3− 次に、このマイクロコンピュータの電源回路の動作を第
4図のタイムチャートを用いて説明する。
=3- Next, the operation of the power supply circuit of this microcomputer will be explained using the time chart of FIG.

時刻t。において商用電源lがONすると、その結果、
電圧安定化回路3の出力電圧VBBおよびマイクロコン
ピュータ5の電源電圧Vccが上昇する。
Time t. When the commercial power supply l is turned on at , as a result,
The output voltage VBB of the voltage stabilizing circuit 3 and the power supply voltage Vcc of the microcomputer 5 rise.

同時に抵抗Rを介しバックアップコンデンサC3の充電
が行なわれる。そして、電圧安定化回路3の出力電圧V
BBがリセット回路4のリセット検出レベルVtIに達
するとリセット信号VRが出力され(時刻1+)、リセ
ット期間LR後に解除される(時刻t2)。そして、マ
イクロコンピュータ5はリセット信号VRが入力された
事により、メモリのテストを行う。この場合、メモリに
は後述するテストデータが格納されていないので、メモ
リが破壊されていると判断され、マイクロコンピュータ
5ではメモリの初期設定処理が行われる。そして、マイ
クロコンピュータ5は通常処理を開始する。
At the same time, the backup capacitor C3 is charged via the resistor R. Then, the output voltage V of the voltage stabilization circuit 3
When BB reaches the reset detection level VtI of the reset circuit 4, the reset signal VR is output (time 1+) and is released after the reset period LR (time t2). The microcomputer 5 then tests the memory upon receiving the reset signal VR. In this case, since test data, which will be described later, is not stored in the memory, it is determined that the memory is destroyed, and the microcomputer 5 performs memory initialization processing. The microcomputer 5 then starts normal processing.

次に、例えば時刻t3において停電が起こり商用電源1
がOFFしたとする。この結果、電圧安定化回路3の出
力電圧VBBが低下し、これが電圧監−4= 視ボートPを介してマイクロコンピュータ5に検知され
る。そして、マイクロコンピュータ5は電源復旧後のメ
モリテストのためのテストデータをメモリに格納すると
共に処理中断アドレスをセットし、低消費電力モートに
移る。そして、低消費電力モードになると、マイクロコ
ンピュータ5はバックアップコンデンサC2の充電電圧
によって電源電圧がバックアップされる。この時、ダイ
オードD、はバックアップコンデンサC7の電流が電圧
安定化回路3の出力に流れ込まない様に働く。
Next, for example, at time t3, a power outage occurs and the commercial power supply 1
Suppose that it is turned off. As a result, the output voltage VBB of the voltage stabilizing circuit 3 decreases, and this is detected by the microcomputer 5 via the voltage monitoring port P. Then, the microcomputer 5 stores test data for a memory test after the power is restored in the memory, sets a processing interruption address, and shifts to the low power consumption mode. When the microcomputer 5 enters the low power consumption mode, the power supply voltage of the microcomputer 5 is backed up by the charging voltage of the backup capacitor C2. At this time, the diode D works to prevent the current of the backup capacitor C7 from flowing into the output of the voltage stabilizing circuit 3.

そして、時刻L4において商用電源Iが復旧したとする
。この結果、電圧安定化回路3の出力電圧VBBが上昇
する。そして、電圧安定化回路3の出力電圧VBBがバ
ックアップコンデンサC2の残留電荷による電圧を越え
ると、ダイオードD5か導通し、マイクロコンピュータ
5の電源電圧Vccは電圧安定化回路3の出力電圧VB
Bに伴って上昇する。そして、電圧安定化回路3の出力
電圧VBBがリセット検出レベルVtlに達するとリセ
ット回路4からリセット信号VRが発せられ(時刻15
)、すセント期間tR後に解除される(時刻ta)。そ
して、リセット信号VRが入力された事により、マイク
ロコンピュータ5では低消費電力モードが解除されると
共にメモリテストが行われる。このメモリテストではマ
イクロコンピュータ5が低消費型ツノモードに入る時に
メモリに格納されたテストデータが破壊されてないかど
うかがテストされる。そして、マイクロコンピュータ5
ては、テスト結果が合格となった場合は処理中断アドレ
スから処理が続行され、テスト結果が不合格となった場
合はメモリの初期設定処理が実行される。
It is assumed that the commercial power supply I is restored at time L4. As a result, the output voltage VBB of the voltage stabilizing circuit 3 increases. When the output voltage VBB of the voltage stabilizing circuit 3 exceeds the voltage due to the residual charge of the backup capacitor C2, the diode D5 becomes conductive, and the power supply voltage Vcc of the microcomputer 5 becomes the output voltage VB of the voltage stabilizing circuit 3.
It increases with B. Then, when the output voltage VBB of the voltage stabilizing circuit 3 reaches the reset detection level Vtl, the reset signal VR is issued from the reset circuit 4 (time 15).
), and is released after a cent period tR (time ta). Then, by inputting the reset signal VR, the microcomputer 5 cancels the low power consumption mode and performs a memory test. In this memory test, it is tested whether or not the test data stored in the memory is destroyed when the microcomputer 5 enters the low consumption horn mode. And microcomputer 5
If the test result is a pass, the process is continued from the processing interruption address, and if the test result is a fail, the memory initialization process is executed.

「発明が解決しようとする課題」 ところで、従来のマイクロコンピュータの電源回路では
、大きな時定数を有する電圧安定化回路の出力電圧を電
圧監視ポー)Pに入力して、その電圧が所定レベル以下
に下がってから低消費電力モードに切り換わるため、商
用電源1が断になってから低消費電力モードに切換わる
までの時間が長く、この間にバックアップコンデンサC
2の充電電荷がマイクロコンピュータ5によって急速に
消費されてしまう。従って、この時点てマイクロコンピ
ュータ5の電源電圧Vccがメモリ保持保証電圧以下に
なってメモリの格納データが破壊されてしまったり、あ
るいは低消費電力モードになってからのバックアップ可
能期間か短くなってしまうという問題があった。また、
電源復旧時のメモリのテストが特定のメモリデータのみ
の確認であるため、メモリが正常であるかどうかが不確
実であるという問題があった。
``Problems to be Solved by the Invention'' By the way, in the conventional microcomputer power supply circuit, the output voltage of the voltage stabilizing circuit, which has a large time constant, is input to the voltage monitoring port (P), and the output voltage is set to below a predetermined level. Since switching to low power consumption mode occurs after the power has dropped, it takes a long time to switch to low power consumption mode after commercial power supply 1 is cut off, and during this time the backup capacitor C
2 is rapidly consumed by the microcomputer 5. Therefore, at this point, the power supply voltage Vcc of the microcomputer 5 becomes lower than the memory retention guaranteed voltage, and the data stored in the memory is destroyed, or the backup possible period after entering the low power consumption mode is shortened. There was a problem. Also,
Since the memory test upon power restoration only checks specific memory data, there is a problem in that it is uncertain whether the memory is normal or not.

この発明は上述した事情に鑑みてなされたもので、停電
等によって商用電源がOFFになった時に、速やかにマ
イクロコンピュータを低消費電力モードに切り換えると
共に電源電圧をバックアップし、商用電源が再びONに
なった時に、マイクロコンピュータが破壊されたメモリ
データを使って動作を継続するという誤動作を起こすこ
とがないマイクロコンピュータの電源回路を提供するこ
とを目的としている。
This invention was made in view of the above-mentioned circumstances, and when the commercial power supply is turned off due to a power outage, etc., the microcomputer is quickly switched to a low power consumption mode, the power supply voltage is backed up, and the commercial power supply is turned on again. It is an object of the present invention to provide a power supply circuit for a microcomputer that does not cause a malfunction in which the microcomputer continues to operate using corrupted memory data when the problem occurs.

「課題を解決するための手段」 この発明は、商用電源の交流電圧を直流電圧に変換して
出力する整流回路と、前記直流電圧の立ち上がりおよび
立ち下がりを検知してマイクロコンピュータに割込み信
号を出力する電源電圧監視回路と、前記直流電圧を安定
化電圧に変換し、前記マイクロコンピュータに電源電圧
として供給する電圧安定化回路と、前記安定化電圧によ
って充電され、かつ、前記安定化電圧が下った場合に前
記マイクロコンピュータに電源電圧を供給するバックア
ップコンデンサと、前記マイクロコンピュータの電源電
圧が所定値よりも小さい場合に前記マイクロコンピュー
タにリセット信号を出力するりセット回路とを具備する
ことを特徴としている。
``Means for Solving the Problems'' The present invention includes a rectifier circuit that converts AC voltage of a commercial power supply into a DC voltage and outputs it, and a rectifier circuit that detects the rise and fall of the DC voltage and outputs an interrupt signal to a microcomputer. a voltage stabilizing circuit that converts the DC voltage into a stabilized voltage and supplies it to the microcomputer as a power supply voltage; The present invention is characterized by comprising a backup capacitor that supplies a power supply voltage to the microcomputer when the power supply voltage is lower than a predetermined value, and a set circuit that outputs a reset signal to the microcomputer when the power supply voltage of the microcomputer is lower than a predetermined value. .

1作用」  。1 action”.

上記構成によれば、商用電源がOFFになると電源電圧
監視回路はマイクロコンピュータに割り込み信号を出力
し、この結果、マイクロコンピュータは速やかに低消費
電力モードになる。低消費電力モードになると、マイク
ロコンピュータはバックアップコンデンサによって電源
電圧をバックアップされる。ここで、低消費電力モード
中にマイクロコンピュータの電源電圧が所定レベル以下
になると、リセット回路からマイクロコンピュータにリ
セット信号が出力される。そして、商用電源がONにな
ると、マイクロコンピュータは電源電圧監視回路から割
り込み信号を受け、低消費電力モードが解除され、通常
動作を再開する。
According to the above configuration, when the commercial power supply is turned off, the power supply voltage monitoring circuit outputs an interrupt signal to the microcomputer, and as a result, the microcomputer quickly enters the low power consumption mode. When the microcomputer enters the low power consumption mode, the power supply voltage is backed up by a backup capacitor. Here, when the power supply voltage of the microcomputer falls below a predetermined level during the low power consumption mode, a reset signal is output from the reset circuit to the microcomputer. When the commercial power supply is turned on, the microcomputer receives an interrupt signal from the power supply voltage monitoring circuit, cancels the low power consumption mode, and resumes normal operation.

「実施例」 以下、図面を参照して本発明の一実施例について説明す
る。
"Embodiment" Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第1図はこの発明の一実施例によるマイクロコンピュー
タの電源回路の回路図である。なお、この図において、
前述した第3図と対応する部分には同一の符号を付し、
その説明を省略する。
FIG. 1 is a circuit diagram of a power supply circuit of a microcomputer according to an embodiment of the present invention. In addition, in this figure,
Parts corresponding to those in FIG. 3 described above are given the same reference numerals,
The explanation will be omitted.

6は電源電圧監視回路であり、入力端が整流回路2の出
力端に接続され、出力端がマイクロコンピュータ5の割
り込み入力端INTに接続される。
Reference numeral 6 denotes a power supply voltage monitoring circuit, the input end of which is connected to the output end of the rectifier circuit 2, and the output end connected to the interrupt input end INT of the microcomputer 5.

この電源監視回路6は、入力電圧の立ち上がり時と立ち
下がり時に割り込み信号VINTを出力する。
This power supply monitoring circuit 6 outputs an interrupt signal VINT when the input voltage rises and falls.

また、7はリセット回路であり、入力端がマイクロコン
ピュータ5の電源端子Vccに接続され、出ツノ端がマ
イクロコンピュータ5のリセット端子Re5etに接続
される。このリセット回路7は、第3図のリセット回路
4と異なり、入力電圧が立ち下がり、リセット検出レベ
ルVt以下になる時にリセット信号VRが出力され、入
力電圧が立ち上がり、リセット解除検出レベル■t3以
上になる時にリセット信号VRが解除される。そして、
リセット検出レベルvt、がメモリ保持保証電圧よりも
やや高い電圧値になるように設計される。
Further, 7 is a reset circuit whose input end is connected to the power supply terminal Vcc of the microcomputer 5, and whose output end is connected to the reset terminal Re5et of the microcomputer 5. This reset circuit 7 differs from the reset circuit 4 in FIG. 3 in that when the input voltage falls and becomes below the reset detection level Vt, the reset signal VR is output, and the input voltage rises and becomes above the reset release detection level t3. When this happens, the reset signal VR is released. and,
The reset detection level vt is designed to have a voltage value slightly higher than the memory retention guaranteed voltage.

次に、このマイクロコンピュータの電源回路の動作を第
2図のタイムヂャートを用いて説明する。
Next, the operation of the power supply circuit of this microcomputer will be explained using the time chart shown in FIG.

時刻t。aにおいて商用電源lがONすると、その結果
、電圧安定化回路3の出力電圧VBBおよびマイクロコ
ンピュータ5の電源電圧Vccが立ち上がる。同時に抵
抗Rを介しバックアップコンデンサC2の充電が行なわ
れる。このマイクロコンピュータ5の電源電圧Vccが
立ち上がる過程においては、リセット回路7からはリセ
ット信号VRが出力され、電源電圧■ccがリセット解
除検出レベル■t3に達した時点で解除される(時刻t
、a)。マイクロコンピュータ5では、リセット信号V
Rが入力された事により、メモリが初期設定され、通常
動作が開始される。
Time t. When the commercial power supply l is turned on at point a, as a result, the output voltage VBB of the voltage stabilizing circuit 3 and the power supply voltage Vcc of the microcomputer 5 rise. At the same time, the backup capacitor C2 is charged via the resistor R. In the process of rising the power supply voltage Vcc of the microcomputer 5, the reset signal VR is output from the reset circuit 7, and is released when the power supply voltage ■cc reaches the reset release detection level ■t3 (time t
, a). In the microcomputer 5, the reset signal V
By inputting R, the memory is initialized and normal operation is started.

次に、例えば時刻tzaにおいて停電が起こり商用電源
1がOFFしたとする。この結果、整流回路2の出力電
圧が急速に低下する。そして、この整流回路2の出力電
圧の低下が電源電圧監視回路6によって検知され、マイ
クロコンビコ−タ5に対して割り込み信号VINTが出
力される。この結果、マイクロコンピュータ5は、低消
費電力モードから通常動作へ復旧した時の準備として処
理中断アドレスの設定を行い、メモリの一部にテストデ
ータを書込んで低消費電力モードに移る(時刻t3a)
。そして、低消費電力モードでは、マイクロコンピュー
タ5−はバックアップコンデンサc2の充電電圧によっ
てバックアップされる。バックアップコンデンサC9の
充電電圧は数μA以下ではあるがマイクロコンピュータ
5によって消費され、これに伴ってマイクロコンピュー
タ5の電源電圧Vccは徐々に低下する。そして、例え
ば時刻=11− t、aにおいて、マイクロコンピュータ5の電源電圧V
ccがメモリ保持保証電圧以下になる前に、商用電源1
が復旧したとする。この結果、整流回路2の出力電圧の
立ち上がりが電源電圧監視回路6によって検知され、マ
イクロコンピュータ5に対して割り込み信号VINTが
出力される。そして、マイクロコンピュータ5では低消
費電力モードが解除されると共にメモリテストが行われ
る(時刻t、a)。このメモリテストではメモリに格納
されたテストデータが確認される。そして、マイクロコ
ンピュータ5では、テスト結果が合格の場合は処理中断
アドレスから処理が続行され、テスト結果が不合格の場
合はメモリの初期設定処理から実行される。
Next, assume that a power outage occurs at, for example, time tza and the commercial power supply 1 is turned off. As a result, the output voltage of the rectifier circuit 2 rapidly decreases. This drop in the output voltage of the rectifier circuit 2 is detected by the power supply voltage monitoring circuit 6, and an interrupt signal VINT is output to the microcombicoter 5. As a result, the microcomputer 5 sets a processing interrupt address in preparation for returning to normal operation from the low power consumption mode, writes test data to a part of the memory, and shifts to the low power consumption mode (time t3a )
. In the low power consumption mode, the microcomputer 5- is backed up by the charging voltage of the backup capacitor c2. The charging voltage of the backup capacitor C9 is consumed by the microcomputer 5, although it is less than a few μA, and the power supply voltage Vcc of the microcomputer 5 gradually decreases accordingly. Then, for example, at time = 11-t, a, the power supply voltage V of the microcomputer 5
Before cc falls below the guaranteed memory retention voltage, turn off the commercial power supply 1.
Suppose that it has been restored. As a result, the rise of the output voltage of the rectifier circuit 2 is detected by the power supply voltage monitoring circuit 6, and an interrupt signal VINT is output to the microcomputer 5. Then, in the microcomputer 5, the low power consumption mode is canceled and a memory test is performed (times t and a). In this memory test, test data stored in memory is confirmed. Then, in the microcomputer 5, if the test result is a pass, the process is continued from the processing interruption address, and if the test result is a fail, the process is executed from the memory initialization process.

次に、例えば時刻teaにおいて停電が起こって、商用
電源lがOFFし、時刻t7aにマイクロコンピュータ
5が低消費電力モードになったとする。
Next, assume that a power outage occurs at, for example, time tea, the commercial power supply 1 is turned off, and the microcomputer 5 enters the low power consumption mode at time t7a.

そして、停電が長引いて、時刻teaにおいてマイクロ
コンピュータ5の電源電圧Vccがリセット検出レベル
Vtzまで低下したとする。この結果、リセット回路7
からリセット信号V Rか出力される。
Assume that the power outage is prolonged and the power supply voltage Vcc of the microcomputer 5 drops to the reset detection level Vtz at time tea. As a result, the reset circuit 7
A reset signal VR is output from the output terminal.

そして、マイクロコンピュータ5では低消費電力モード
が解除され、内部ロジックが初期化されクロックオンレ
ータが発振を開始する。しかし、リセット信号VRが入
力されたままなのでプログラムは実行されない。そして
、クロックオンレータの発振動作によってバックアップ
コンデンサC7の電荷は急速に放電されて空になり、マ
イクロコンピュータ5の電源電圧VccはほぼOVにな
る。
Then, in the microcomputer 5, the low power consumption mode is canceled, the internal logic is initialized, and the clock onrator starts oscillating. However, the program is not executed because the reset signal VR remains input. Then, due to the oscillation operation of the clock onrator, the charge in the backup capacitor C7 is rapidly discharged and becomes empty, and the power supply voltage Vcc of the microcomputer 5 becomes approximately OV.

そして、時刻teaにおいて商用電源1が復旧したとす
る。この結果、整流回路2の出ツノ電圧の」1昇が電源
電圧監視回路6によって検知され、マイクロコンピュー
タ5に対して割り込み信号VINTが出力される。しか
し、この時点ではマイ列ロコンピ、−夕5の電源電圧V
ccがOV付近にあるので、割り込み信号VINTは無
効になる。そして、電圧安定化回路3の出力電圧VBB
が立ち上がり、これに伴ってマイクロコンピュータ5の
電源電圧Vccが立ち上がると、マイクロコンピュータ
5のクロックオシレータが発振動作を開始する。そして
、マイクロコンピュータ5の電源電圧Vccがリセット
解除検出レベルVt3に達すると、リセット信号VRが
解除される(時刻t+oa)。そして、マイクロコンピ
ュータ5てはメモリテストが行われるが、電源電圧Vc
cが一旦OV (J近にまで落ちているのでテストデー
タは失われており、テスト結果は不合格となる。そして
、マイクロコンピュータ5はメモリの初期設定処理を実
施後、通常処理を再開する。
It is assumed that the commercial power supply 1 is restored at time tea. As a result, the power supply voltage monitoring circuit 6 detects that the output voltage of the rectifier circuit 2 increases by 1, and an interrupt signal VINT is output to the microcomputer 5. However, at this point, the power supply voltage V
Since cc is near OV, interrupt signal VINT is disabled. Then, the output voltage VBB of the voltage stabilization circuit 3
rises and the power supply voltage Vcc of the microcomputer 5 rises accordingly, the clock oscillator of the microcomputer 5 starts oscillating. Then, when the power supply voltage Vcc of the microcomputer 5 reaches the reset release detection level Vt3, the reset signal VR is released (time t+oa). Then, a memory test is performed on the microcomputer 5, but the power supply voltage Vc
Since c has once fallen to near OV (J), the test data has been lost and the test result is failed.Then, the microcomputer 5 performs the memory initialization process and then resumes normal processing.

「発明の効果」 以」二説明したように、この発明によれば、商用電源の
交流電圧を直流電圧に変換して出力する整流回路と、前
記直流電圧の立ち上がりおよび立ち下がりを検知してマ
イクロコンピュータに割込み信号を出力する電源電圧監
視回路と、前記直流電圧を安定化電圧に変換し、前記マ
イクロコンピュータに電源電圧として供給する電圧安定
化回路と、前記安定化電圧によって充電され、かつ、前
記安定化電圧が下った場合に前記マイクロコンピュータ
に電源電圧を供給するバックアップコンデンサと、前記
マイクロコンピュータの電源電圧が所定値よりも小さい
場合に前記マイクロコンピュータにリセット信号を出力
するリセット回路とを設けたので、電源がOFFした場
合にマイクロコンピュータは速やかに低消費電圧モード
に移り、バックアップコンデンサによるバックアップ期
間を長くする事ができる。従って、電源断に伴うメモリ
データの破壊が非常に発生しにくくなるという効果が得
られる。また、低消費電力モードにおいて電源電圧が所
定値以下になった場合は確実にメモリが初期化されるの
で、電源復旧後に破壊されたメモリデータを使って処理
が継続される危険性がなくなるという効果が得られる。
``Effects of the Invention'' As explained hereinafter, the present invention includes a rectifier circuit that converts AC voltage of a commercial power supply into a DC voltage and outputs the DC voltage, and a microcontroller that detects the rise and fall of the DC voltage. a power supply voltage monitoring circuit that outputs an interrupt signal to the computer; a voltage stabilization circuit that converts the DC voltage into a stabilized voltage and supplies it to the microcomputer as a power supply voltage; A backup capacitor that supplies a power supply voltage to the microcomputer when the stabilizing voltage drops, and a reset circuit that outputs a reset signal to the microcomputer when the power supply voltage of the microcomputer is lower than a predetermined value are provided. Therefore, when the power is turned off, the microcomputer quickly shifts to the low voltage consumption mode, and the backup period by the backup capacitor can be extended. Therefore, it is possible to obtain the effect that destruction of memory data due to power cut-off is extremely unlikely to occur. Additionally, if the power supply voltage drops below a predetermined value in low power consumption mode, the memory is reliably initialized, which eliminates the risk of continued processing using corrupted memory data after power is restored. is obtained.

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

第1図はこの発明の一実施例によるマイクロコンピュー
タの電源回路の回路図、第2図は同実施例の動作を表す
タイムチャート、第3図は従来のマイクロコンピュータ
の電源回路の回路図、第4図は従来のマイクロコンピュ
ータの電源回路の動作を表すタイムチャートである。 1・ ・・商用電源、2・・・・整流回路、3・・・・
・・電圧安  □定化回路、7・ リセット回路、5・
 ・マイクロコンピュータ、6・・・・・電源電圧監視
回路、C3・・・バックアップコンデンサ。 出願人  アルプス電気株式会社 代表者  片開 勝太部
FIG. 1 is a circuit diagram of a power supply circuit of a microcomputer according to an embodiment of the present invention, FIG. 2 is a time chart showing the operation of the same embodiment, and FIG. 3 is a circuit diagram of a power supply circuit of a conventional microcomputer. FIG. 4 is a time chart showing the operation of a conventional microcomputer power supply circuit. 1... commercial power supply, 2... rectifier circuit, 3...
...Voltage stability □Stabilization circuit, 7. Reset circuit, 5.
・Microcomputer, 6...Power voltage monitoring circuit, C3...Backup capacitor. Applicant: Alps Electric Co., Ltd. Representative: Katsutabe Katakai

Claims (1)

【特許請求の範囲】 商用電源の交流電圧を直流電圧に変換して出力する整流
回路と、 前記直流電圧の立ち上がりおよび立ち下がりを検知して
マイクロコンピュータに割込み信号を出力する電源電圧
監視回路と、 前記直流電圧を安定化電圧に変換し、前記マイクロコン
ピュータに電源電圧として供給する電圧安定化回路と、 前記安定化電圧によって充電され、かつ、前記安定化電
圧が下った場合に前記マイクロコンピュータに電源電圧
を供給するバックアップコンデンサと、 前記マイクロコンピュータの電源電圧が所定値よりも小
さい場合に前記マイクロコンピュータにリセット信号を
出力するリセット回路と を備えたことを特徴とするマイクロコンピュータの電源
回路。
[Scope of Claims] A rectifier circuit that converts an AC voltage of a commercial power supply into a DC voltage and outputs the same; a power supply voltage monitoring circuit that detects the rise and fall of the DC voltage and outputs an interrupt signal to a microcomputer; a voltage stabilization circuit that converts the DC voltage into a stabilized voltage and supplies it to the microcomputer as a power supply voltage; and a voltage stabilization circuit that is charged by the stabilized voltage and supplies power to the microcomputer when the stabilized voltage drops A power supply circuit for a microcomputer, comprising: a backup capacitor that supplies voltage; and a reset circuit that outputs a reset signal to the microcomputer when a power supply voltage of the microcomputer is lower than a predetermined value.
JP63082549A 1988-04-04 1988-04-04 Power source circuit for microcomputer Pending JPH01255019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63082549A JPH01255019A (en) 1988-04-04 1988-04-04 Power source circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63082549A JPH01255019A (en) 1988-04-04 1988-04-04 Power source circuit for microcomputer

Publications (1)

Publication Number Publication Date
JPH01255019A true JPH01255019A (en) 1989-10-11

Family

ID=13777583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63082549A Pending JPH01255019A (en) 1988-04-04 1988-04-04 Power source circuit for microcomputer

Country Status (1)

Country Link
JP (1) JPH01255019A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05211728A (en) * 1992-01-31 1993-08-20 Pfu Ltd Power control system
JP2010066809A (en) * 2008-09-08 2010-03-25 Sanyo Electric Co Ltd Microcomputer
JP2011258061A (en) * 2010-06-10 2011-12-22 Fuji Electric Retail Systems Co Ltd Control device
CN108984330A (en) * 2018-05-31 2018-12-11 深圳市江波龙电子有限公司 A kind of method, apparatus and electronic equipment of control storage equipment
JP2021170870A (en) * 2020-04-15 2021-10-28 三菱電機株式会社 Electronic control device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05211728A (en) * 1992-01-31 1993-08-20 Pfu Ltd Power control system
JP2010066809A (en) * 2008-09-08 2010-03-25 Sanyo Electric Co Ltd Microcomputer
JP2011258061A (en) * 2010-06-10 2011-12-22 Fuji Electric Retail Systems Co Ltd Control device
CN108984330A (en) * 2018-05-31 2018-12-11 深圳市江波龙电子有限公司 A kind of method, apparatus and electronic equipment of control storage equipment
JP2021170870A (en) * 2020-04-15 2021-10-28 三菱電機株式会社 Electronic control device

Similar Documents

Publication Publication Date Title
US5815409A (en) Control system and method for automatic shutdown of a power supply
US5003192A (en) AC power switching device with non-volatile memory unit
JP3474587B2 (en) Reset control device for microcomputer system
JPH01255019A (en) Power source circuit for microcomputer
KR19980048106A (en) PD and PD's Power Failure Compensation Method
EP0697791B1 (en) Apparatus for determining if the duration of a power failure exceeded predetermined limits
TW201515002A (en) Integrated circuit and operation method thereof
JP2007156864A (en) Data retention unit
KR900003463Y1 (en) Back-up circuit of battery
CN114253381A (en) Electronic equipment and abnormal reset circuit thereof
JPH0219856Y2 (en)
JPH0313786Y2 (en)
JPH059812B2 (en)
JP2702768B2 (en) Microcomputer reset circuit
JPS6253138A (en) Storage battery spare power source unit
JP2785973B2 (en) Microcomputer reset circuit
JPH0720759Y2 (en) Power supply circuit with power failure compensation malfunction prevention function
JPH02114827A (en) Backup power source equipment
TWM626658U (en) Computer system
KR0147548B1 (en) Memory circuit for last data using eeprom and method to draw it out
JPH03136118A (en) Backup power source deciding circuit
JPS62157955A (en) Memory protecting circuit
JPS60238922A (en) Reset signal generating circuit of microprocessor
KR930003568B1 (en) Charge start control method
KR920000699Y1 (en) Reseting circuit in micom