JPS60176125A - Power supply voltage check circuit of microcomputer - Google Patents

Power supply voltage check circuit of microcomputer

Info

Publication number
JPS60176125A
JPS60176125A JP59031610A JP3161084A JPS60176125A JP S60176125 A JPS60176125 A JP S60176125A JP 59031610 A JP59031610 A JP 59031610A JP 3161084 A JP3161084 A JP 3161084A JP S60176125 A JPS60176125 A JP S60176125A
Authority
JP
Japan
Prior art keywords
voltage
microcomputer
circuit
output
signal
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.)
Granted
Application number
JP59031610A
Other languages
Japanese (ja)
Other versions
JPH0256687B2 (en
Inventor
Hirohisa Imai
博久 今井
Keiichi Mori
慶一 森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP59031610A priority Critical patent/JPS60176125A/en
Publication of JPS60176125A publication Critical patent/JPS60176125A/en
Publication of JPH0256687B2 publication Critical patent/JPH0256687B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To compare two voltage levels with an analog comparator circuit by using a voltage comparator in common for a voltage comparator circuit informing shortage of a battery and a voltage comparator circuit resetting a microcomputer. CONSTITUTION:A normal switch signal is generated from the microcomputer 11, inputted to a switch circuit 14 of a voltage comparator circuit 15 so as to switch the comparison voltage of the voltage comparator circuit 15. An output of the voltage comparator circuit 15 and a switch signal are inputted to a logical circuit 16. The microcomputer 11 performs various controls of a device 12 normally. When a voltage ed of a battery power 1 is lower than an informing voltage e2, an informing signal is inputted to the microcomputer 11 from the logical circuit 16 so as to raise a buzzer 13 for information. When the voltage ed is lower than the reset voltage e1, a reset signal is inputted to the microcomputer 11 from the logical circuit 16, which is reset and the device 12 is stopped.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、電池電源によシ機器を制御するマイクロコン
ビーータの電源電圧チェック回路に関する0 従来例の構成とその問題点 CuO2のマイクロコンピュータの出現で、電池でマイ
コンを駆動することが容易になった。しかし、第1図に
示す様に電池電圧は時間経過に伴い低下するので、マイ
クロコンビーータの誤動作を防止するため電池電圧低下
時、誤動作する前にマイクロコンビーータをリセットし
、機器を停止する必要がある。しかし突然機器が停止す
ると不便なことがあるため、マイクロコンピュータをリ
セットする前に報知して電池寿命を知らせることが多い
。リセット信号ハイでマイクロコンピュータ(、リセッ
トする従来例を第2図に示す。電池電源1と並列に、抵
抗2、ダイオード3を直列に接続したものと、抵抗4、
抵抗5、抵抗6t−直列に接続したものとが接続されて
いる。比較器7には抵抗2とダイオード3の中点電位1
aと、抵抗4と抵抗5の中点電位lbが正負入力端子に
入力し、比較器8には抵抗2とダイオード3の中点電位
1゜と、抵抗5と抵抗6の中点電位Jl?eが正負入力
端子に入力するよう接続されている。比較器7と比較器
8は一般周知のオープンコレクタ型の比較器であシ、抵
抗9は比較器7の出力電圧を、抵抗10は比較器8の出
力電圧をプルアップするため、比較器7と比較器8の出
力端子に接続されている。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a power supply voltage check circuit for a microcomputer that controls equipment powered by a battery.Conventional structure and problems thereof Advent of CuO2 microcomputer This made it easy to drive microcontrollers with batteries. However, as shown in Figure 1, the battery voltage decreases over time, so in order to prevent the microconbeater from malfunctioning, when the battery voltage drops, the microconbeater is reset and the equipment is stopped before it malfunctions. There is a need to. However, since it can be inconvenient if the device suddenly stops, a notification is often sent to notify the user of battery life before resetting the microcomputer. A conventional example in which a microcomputer is reset when the reset signal is high is shown in Figure 2.A resistor 2 and a diode 3 are connected in series in parallel with a battery power source 1,
A resistor 5 and a resistor 6t connected in series are connected. The comparator 7 has a midpoint potential 1 between the resistor 2 and the diode 3.
a, the midpoint potential lb between resistor 4 and resistor 5 are input to the positive and negative input terminals, and comparator 8 receives midpoint potential 1° between resistor 2 and diode 3, and midpoint potential Jl? between resistor 5 and resistor 6. e is connected to be input to the positive and negative input terminals. Comparators 7 and 8 are generally well-known open collector type comparators. Resistor 9 pulls up the output voltage of comparator 7, and resistor 10 pulls up the output voltage of comparator 8. and the output terminal of the comparator 8.

比較器7の出力はリセット信号として、マイコン11の
リセット端子に、比較器8の出力は報知信号としてマイ
コン11に入力されている。マイコン11は報知用ブザ
ー13の報知信号を出力すると共に機器12の各種コン
トロールをする。マイコン11は比較器7の出力がロー
の時には正常動作して機器12を制御し、ハイの時には
マイコン11はリセットして機器12を停止する。比較
器8の出力がローの時にはマイコン11は報知せず、ハ
イの時にはブザー13を鳴らして報知する。
The output of the comparator 7 is input to the reset terminal of the microcomputer 11 as a reset signal, and the output of the comparator 8 is input to the microcomputer 11 as a notification signal. The microcomputer 11 outputs a notification signal from a notification buzzer 13 and also controls various devices 12. When the output of the comparator 7 is low, the microcomputer 11 operates normally and controls the device 12, and when the output is high, the microcomputer 11 resets and stops the device 12. When the output of the comparator 8 is low, the microcomputer 11 does not notify, but when the output is high, the buzzer 13 sounds to notify.

na=n+の時I!a=nb、 #a=#gの時Na 
= (lcとなるように抵抗4,5.6の定数を決定し
ているものである。6a>hの時、nc>naで比較器
8の出力はローであシ報知されず、またnb’>6aで
比較器7の出力はローでマイコン11は機器12を制御
する。e2> #d >’(l lの時、llc<(l
aで8の出力がハイになり電池寿命が近づいたことを報
知する0またj?b>#aで比較器7の出力はローでマ
イコン11は機器12を制御する。J?d<J?iの時
、#b<#aとなシ比較器7の出力がハイとなってマイ
コン11はリセットし機器12を停止するものである。
When na=n+ I! When a=nb, #a=#g, Na
The constants of resistors 4 and 5.6 are determined so that = (lc).When 6a>h, nc>na, the output of comparator 8 is low and no alarm is output, and nb When '>6a, the output of the comparator 7 is low and the microcomputer 11 controls the device 12. e2>#d>'(l When l, llc<(l
At a, the output of 8 goes high to notify that the battery life is nearing 0 and at j? When b>#a, the output of the comparator 7 is low and the microcomputer 11 controls the device 12. J? d<J? When #b<#a, the output of the comparator 7 becomes high, the microcomputer 11 is reset, and the equipment 12 is stopped.

この構成では、アナログ比較回路を2個要するため、ア
ナログ比較器は消費電流が多く電池を消耗するので電池
寿命を低下させるという問題を有していた。
In this configuration, two analog comparison circuits are required, so the analog comparator consumes a large amount of current and consumes the battery, resulting in a shortened battery life.

発明の目的 本発明はかかる従来の問題を解消するもので、アナログ
比較回路1f!lで2つの電圧レベルを比較し、消費電
流を削減することを目的とする。
OBJECTS OF THE INVENTION The present invention solves the problems of the conventional analog comparator circuit 1f! The purpose is to compare two voltage levels at 1 and reduce current consumption.

発明の構成 この目的を達成するために本発明は、電池電源によシ機
器を制御するマイクロコンビーータト前記電池電源の電
圧を比較検知する電圧比較回路を有し、前記電圧比較回
路にはマイクロコンピュータの切替出力により比較レベ
ルをリセット電圧佑と報知電圧12に定期的に切替える
切替回路を有し、前記電圧比較回路は前記マイクロコン
ピータの切替出力に応じて、リセット信号、報知信号に
分割してマイクロコンピータに入力する論理回路に出力
する構成としたものである。この構成によってアナログ
比較回路を1111!1[1,て電池の消耗を少なくす
るという作用を有する。
Structure of the Invention In order to achieve this object, the present invention has a voltage comparator circuit for comparing and detecting the voltage of the battery power supply, and a microcontroller for controlling battery-powered equipment. It has a switching circuit that periodically switches the comparison level between a reset voltage 12 and a notification voltage 12 according to the switching output of the computer, and the voltage comparison circuit divides into a reset signal and a notification signal according to the switching output of the microcomputer. The configuration is such that the output is output to a logic circuit that is input to a microcomputer. This configuration has the effect of reducing battery consumption by making the analog comparison circuit 1111!1[1.

実施例の説明 以下、本発明の一実施例を第3図を用いて説明する。マ
イコン11から常時切替信号を発生し、電圧比較回路1
5の切替回路14に入力する。切替回路14により電圧
比較回路15の比較電圧を切替える。電圧比較回路15
の出力と切替信号が論理回路16に入力する。通常マイ
コン11は機器12の各種制御を行なっている。電池電
源1の電圧naが1g1図の42よシ低□くなると、論
理回路16から報知信号をマイコン11に入力し、ブザ
ー13を鳴らして報知する0更に(ldが第1図のll
より低くなると論理回路16からリセット信号をマイコ
ン11に入力し、マイコン11はリセットして機器12
を停止するとbうものである。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to FIG. A switching signal is constantly generated from the microcomputer 11, and the voltage comparison circuit 1
5 to the switching circuit 14. The switching circuit 14 switches the comparison voltage of the voltage comparison circuit 15. Voltage comparison circuit 15
The output and switching signal are input to the logic circuit 16. Normally, the microcomputer 11 performs various controls on the equipment 12. When the voltage na of the battery power supply 1 becomes lower than 42 in Figure 1g1, a notification signal is input from the logic circuit 16 to the microcomputer 11, and the buzzer 13 sounds to notify the user.
When the level becomes lower, a reset signal is input from the logic circuit 16 to the microcomputer 11, and the microcomputer 11 resets the device 12.
If you stop it, it will hurt.

具体的な回路例を第4図に示す。第4図で第2図と同一
動作部品には同一番号を記す。
A specific example of the circuit is shown in FIG. In FIG. 4, parts that operate the same as those in FIG. 2 are given the same numbers.

電池電源1と並列に、抵抗2、ダイオード3を□直列に
゛接続したものとが接続されている。抵抗17と抵抗1
8は直列に接続され、抵抗18は切替回路14と並列に
接続され、抵抗17.18、切替回路16は電池電源1
と並列に接続されている。抵抗17.18の中点″配位
geと、抵抗2、ダイオード3の中点電位(laは比較
器19の正負入力端子に入力する。比較器19は一般周
知のオープンコレクク型比較器であシ、抵抗2oは比較
器19の出力電圧をプルアップするためのものである。
A resistor 2 and a diode 3 connected in series are connected in parallel with the battery power source 1. Resistor 17 and Resistor 1
8 are connected in series, a resistor 18 is connected in parallel with the switching circuit 14, and a resistor 17.18 and the switching circuit 16 are connected to the battery power supply 1.
are connected in parallel. The midpoint configuration ge of resistors 17 and 18 and the midpoint potential of resistor 2 and diode 3 (la are input to the positive and negative input terminals of comparator 19. Comparator 19 is a commonly known open collector type comparator. The resistor 2o is used to pull up the output voltage of the comparator 19.

マイコン11からは常時第5図に示すような切替信号が
発生し、抵抗21とインバータ22に入力している。抵
抗21は抵抗23と直列に接続され、その中点電位1t
はトランジスタ24のベースに接続し、トランジスタ2
4のコレクタは抵抗25と接続し、抵抗25の他端は抵
抗17.18の中点に接続している。比較器19の出方
はマイコン11 (D報知信号入力端子とインバータ2
6に接続している。インバータ22.26の出方はダイ
オード27.28のカソードと接続し、ダイオード27
.28のアノードは接続していて抵抗29を介して電源
の正側と接続し、またリセット信号として、マイコン1
1のリセット端子に入力している。マイコン11は報知
用ブザー13の報知信号を出力すると共に機器12の各
種コントロールヲする。実施例のマイコン11はリセッ
ト信号がローの時、正常動作して機器12を制御し、ハ
イの時にはマイコン11はリセットして機器12tl−
停止する構成のものである。報知信号の出力カハイの時
にはマイコン11は報知せず、ローになるとブザー13
を鳴らして報知するものである0 マイコン11からは第6図に示す切替信号が常時発生す
る。切替信号がハイの時、トランジスタ24がオンし、
抵抗18と抵抗25が並列の状態になる。切替信号がロ
ーの時、トランジスタ24はオフし、抵抗18と抵抗2
5は切断された状態と力る。・よって11eは第6図に
示すように、切替信号ローの時(le = (le l
 +切替信号ハイの時(le=(le2(net >(
le2)となる。nd=liの時na=(J e r 
+ J?d = E 2の時(la=lJezとなるよ
うに抵抗17.18.25の定数は決定されているもの
である。
The microcomputer 11 always generates a switching signal as shown in FIG. 5, which is input to the resistor 21 and the inverter 22. The resistor 21 is connected in series with the resistor 23, and its midpoint potential 1t
is connected to the base of transistor 24, and transistor 2
The collector of resistor 4 is connected to resistor 25, and the other end of resistor 25 is connected to the midpoint of resistors 17 and 18. The output of the comparator 19 is between the microcomputer 11 (D notification signal input terminal and the inverter 2
Connected to 6. The inverter 22.26 is connected to the cathode of the diode 27.28, and the diode 27
.. The anode of 28 is connected to the positive side of the power supply via a resistor 29, and is also sent to the microcomputer 1 as a reset signal.
It is input to the reset terminal of 1. The microcomputer 11 outputs a notification signal from a notification buzzer 13 and performs various controls on the equipment 12. When the reset signal is low, the microcomputer 11 of the embodiment operates normally and controls the device 12, and when it is high, the microcomputer 11 resets and controls the device 12tl-.
It is configured to stop. When the notification signal output is high, the microcomputer 11 does not notify, and when it goes low, the buzzer 13 is activated.
The microcomputer 11 always generates a switching signal shown in FIG. When the switching signal is high, the transistor 24 is turned on,
The resistor 18 and the resistor 25 are placed in parallel. When the switching signal is low, transistor 24 is turned off and resistor 18 and resistor 2
5 is in a disconnected state.・Therefore, as shown in FIG. 6, when the switching signal 11e is low (le = (le l
+When the switching signal is high (le=(le2(net >(
le2). When nd=li, na=(J e r
+ J? The constants of the resistors 17, 18, and 25 are determined so that when d = E 2 (la = lJez).

ed>e2の時、切替信号のハイ、ローにかかわらず(
le>(laで比較器19の出力である報知信号はハイ
になり報知しない。また、インバータ26 ゛の出力は
ローになるので、切替信号のハイ、ローテインバータ2
2の出力が切替ってもリセット信号はローである。
When ed>e2, regardless of whether the switching signal is high or low (
le>(la, the notification signal that is the output of the comparator 19 becomes high and does not notify. Also, the output of the inverter 26 becomes low, so the switching signal is high and the rotary inverter 2
Even if the output of 2 switches, the reset signal is low.

12>ld>l+の時、切替信号がハイの時に報知信号
がローとなって電池寿命が近づいたことを報知する。イ
ンバータ26の出力がハイになるが、インバータ22の
出力かローなのでリセット信号はローになる。切替信号
がローの時に比較器19の出力はハイで、インバータ2
6の出力はローになるので、インバータ22の出力がハ
イになるが、リセット信号はローを保つ。
When 12>ld>l+, the notification signal becomes low when the switching signal is high, and it is notified that the battery life is approaching. The output of the inverter 26 becomes high, but since the output of the inverter 22 is also low, the reset signal becomes low. When the switching signal is low, the output of comparator 19 is high, and inverter 2
6 becomes low, so the output of inverter 22 becomes high, but the reset signal remains low.

11a<llIの時、切替信号のハイ、ローにかがゎら
す、比較器19の出力はローになシ、インバータ26の
出力はハイになる。ここで切替信号がローになった時に
インバータ22の出力もハイとなってリセット信号がハ
イとなってマイコン11はリセットし、機器12は停止
する。以上の比較器19、インバータ22、インバータ
26の出方電圧と、報知信号、リセット信号の電圧のハ
イ、ローを次表に示す。
When 11a<llI, the switching signal changes between high and low, the output of the comparator 19 remains low, and the output of the inverter 26 becomes high. Here, when the switching signal becomes low, the output of the inverter 22 also becomes high, the reset signal becomes high, the microcomputer 11 is reset, and the equipment 12 is stopped. The output voltages of the comparator 19, inverter 22, and inverter 26, and the high and low voltages of the notification signal and reset signal are shown in the following table.

表 尚、fI4図の実施例で社、インバータ22 、26お
よびマイクロコンピュータ11は0MO5−ICを使用
しており、これらに消費する電流は極めて小さく、電圧
比較回路19の消費電流に比べて約1/10 である。
In the embodiment shown in Figure fI4, the inverters 22 and 26 and the microcomputer 11 use 0MO5-ICs, and the current consumed by these is extremely small, about 1% compared to the current consumed by the voltage comparison circuit 19. /10.

発明の効果 以上のように本発明は、電池の消耗を報知するための電
圧比較回路と、マイクロコンビ、−夕をリセットする電
圧比較回路を1つの電圧比較回路テ共用して、論理回路
によシマイクロコンピ一タに報知信号とリセット信号を
入力する構成としたため、アナログ電圧比較回路を1門
少なくしたので、消費電流を少なくし、電池寿命を長く
するという効果を有する。
Effects of the Invention As described above, the present invention shares the voltage comparison circuit for notifying the battery consumption and the voltage comparison circuit for resetting the microcomputers, and uses a logic circuit. Since the configuration is such that the notification signal and reset signal are input to the microcomputer, the number of analog voltage comparison circuits is reduced by one, which has the effect of reducing current consumption and extending battery life.

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

tJ!Ji図は゛電池電圧の時間変化を示す特性図、第
2図は従来例のマイクロコンピュータの電源W圧チェッ
ク回路の回路図、fJ3図は本発明の一実施例を示すマ
イクロコンピータの電源電圧のチェック回路のブロック
図、第4図は同具体的な回路例を示す回路図、第5図は
マイクロコンピータの切替信号を示すタイミング図、f
J6図は比較器の正側入力電圧を示すタイミング図であ
る。 1・・・・・・電池電源、11・・・・・・マイクロコ
ンピュータ、12・・・・・・機器、14・・・・・・
切替回路、15・・・・・・電圧比較回路、16・・・
・・・論理回路代坤人の氏名 弁理士 中 尾 敏 男
 ほか1名第1図
tJ! Ji diagram is a characteristic diagram showing the time change of battery voltage, Figure 2 is a circuit diagram of a conventional microcomputer power supply voltage check circuit, and fJ3 diagram is a microcomputer power supply voltage check circuit showing an embodiment of the present invention. A block diagram of the circuit, Fig. 4 is a circuit diagram showing a specific example of the same circuit, Fig. 5 is a timing diagram showing a microcomputer switching signal, f
Figure J6 is a timing diagram showing the positive input voltage of the comparator. 1...Battery power source, 11...Microcomputer, 12...Device, 14...
Switching circuit, 15...Voltage comparison circuit, 16...
...Name of logic circuit representative: Patent attorney Toshio Nakao and one other person Figure 1

Claims (1)

【特許請求の範囲】[Claims] 電池電源によシ機器を制御するマイクロコンビーータと
前記電/ll!電源の電圧を比較検知する電圧比較回路
を有し、前記電圧比較回路にはマイクロコンビーータの
切替出力によシ比較レベルをリセット電圧桁と報知電圧
岬に定期的に切替える切替回路を有し、前記電圧比較回
路は前記マイクロコンビーータの切替出力に応じて、リ
セット信号、報知信号に分割してマイクロコンビーータ
に入力する論理回路に出力する構成としたマイクロコン
ビーータの電源電圧チェック回路。
A microcontroller that controls equipment using battery power and the electric/ll! The voltage comparison circuit includes a voltage comparison circuit that compares and detects the voltage of the power supply, and the voltage comparison circuit includes a switching circuit that periodically switches the comparison level between the reset voltage digit and the alarm voltage cape based on the switching output of the microconbeater. , the voltage comparator circuit is configured to divide into a reset signal and a notification signal according to the switching output of the microconbeater, and output the signal to a logic circuit input to the microconbeater.The power supply voltage of the microconbeater is checked. circuit.
JP59031610A 1984-02-22 1984-02-22 Power supply voltage check circuit of microcomputer Granted JPS60176125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59031610A JPS60176125A (en) 1984-02-22 1984-02-22 Power supply voltage check circuit of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59031610A JPS60176125A (en) 1984-02-22 1984-02-22 Power supply voltage check circuit of microcomputer

Publications (2)

Publication Number Publication Date
JPS60176125A true JPS60176125A (en) 1985-09-10
JPH0256687B2 JPH0256687B2 (en) 1990-11-30

Family

ID=12335967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59031610A Granted JPS60176125A (en) 1984-02-22 1984-02-22 Power supply voltage check circuit of microcomputer

Country Status (1)

Country Link
JP (1) JPS60176125A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62146227U (en) * 1986-03-03 1987-09-16

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62146227U (en) * 1986-03-03 1987-09-16

Also Published As

Publication number Publication date
JPH0256687B2 (en) 1990-11-30

Similar Documents

Publication Publication Date Title
US10804721B1 (en) Emergency power control system
JPS60176125A (en) Power supply voltage check circuit of microcomputer
CN215730143U (en) Novel calling at home device
CN213602442U (en) Battery and power supply switching circuit
JPH0322831A (en) Power supply circuit
CN111025177A (en) Power input monitoring device
CN211127542U (en) Machine room monitoring host
CN215116727U (en) Power failure alarm circuit and power consumption equipment
CN218829227U (en) Main and standby power switching circuit with alarm function and standby circuit thereof
CN215071671U (en) Battery output current overload protection circuit
CN219980649U (en) Power management circuit with self-locking function
CN218449517U (en) Battery combination power supply circuit and battery power supply equipment
CN220325296U (en) Power-on and power-off management circuit for controlling battery output
JPS6214757Y2 (en)
CN216794853U (en) Zero-standby input switching power supply circuit
CN214479829U (en) Dual-power supply circuit
CN218102685U (en) Battery discharging device
JPH0567154U (en) Power supply monitoring circuit
CN216118434U (en) Medical electronic instrument switch circuit
CN218213842U (en) Key awakening circuit applied to frame circuit breaker
JPH0229441Y2 (en)
CN219999079U (en) Charging and discharging circuit of super capacitor
CN216929991U (en) Power switch self-locking circuit
CN217112485U (en) Power failure indication circuit suitable for alternating current power supply
CN218350398U (en) Power failure detection circuit and electronic equipment

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees