JPH0256687B2 - - Google Patents
Info
- Publication number
- JPH0256687B2 JPH0256687B2 JP59031610A JP3161084A JPH0256687B2 JP H0256687 B2 JPH0256687 B2 JP H0256687B2 JP 59031610 A JP59031610 A JP 59031610A JP 3161084 A JP3161084 A JP 3161084A JP H0256687 B2 JPH0256687 B2 JP H0256687B2
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- voltage
- output
- comparator
- resistor
- 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.)
- Expired - Lifetime
Links
Landscapes
- Power Sources (AREA)
- Direct Current Feeding And Distribution (AREA)
Description
産業上の利用分野
本発明は、電池電源により機器を制御するマイ
クロコンピユータの電源電圧チエツク回路に関す
る。
従来例の構成とその問題点
CMOSのマイクロコンピユータの出現で、電
池でマイコンを駆動することが容易になつた。し
かし、第1図に示す様に電池電圧は時間経過に伴
い低下するので、マイクロコンピユータの誤動作
を防止するため電池電圧低下時、誤動作する前に
マイクロコンピユータをリセツトし、機器を停止
する必要がある。しかし突然機器が停止すると不
便なことがあるため、マイクロコンピユータをリ
セツトする前に報知して電池寿命を知らせること
が多い。リセツト信号ハイでマイクロコンピユー
タをリセツトする従来例を第2図に示す。電池電
源1と並列に、抵抗2、ダイオード3を直列に接
続したものと、抵抗4、抵抗5、抵抗6を直列に
接続したものとが接続されている。比較器7には
抵抗2とダイオード3の中点電位laと、抵抗4と
抵抗5の中点電位lbが正負入力端子に入力し、比
較器8には抵抗2とダイオード3の中点電位la
と、抵抗5と抵抗6の中点電位lcが正負入力端子
に入力するよう接続されている。比較器7と比較
器8は一般周知のオープンコレクタ型の比較器で
あり、抵抗9は比較器7の出力電圧を、抵抗10
は比較器8の出力電圧をプルアツプするため、比
較器7と比較器8の出力端子に接続されている。
比較器7の出力はリセツト信号として、マイコン
11のリセツト端子に、比較器8の出力は報知信
号としてマイコン11に入力されている。マイコ
ン11は報知用ブザー13の報知信号を出力する
と共に機器12の各種コントロールをする。マイ
コン11は比較器7の出力がローの時には正常動
作して機器12を制御し、ハイの時にはマイコン
11はリセツトして機器12を停止する。比較器
8の出力がローの時にはマイコン11は報知せ
ず、ハイの時にはブザー13を鳴らして報知す
る。ld=l1の時la=lb、ld=l2の時la=lcとなるよ
うに抵抗4,5,6の定数を決定しているもので
ある。ld>l2の時、lc>laで比較器8の出力はロ
ーであり報知されず、またlb>laで比較器7の出
力はローでマイコン11は機器12を制御する。
l2>ld>l1の時、lc<laで8の出力がハイになり電
池寿命が近づいたことを報知する。またlb>laで
比較器7の出力はローでマイコン11は機器12
を制御する。ld<l1の時、lb<laとなり比較器7
の出力がハイとなつてマイコン11はリセツトし
機器12を停止するものである。この構成では、
アナログ比較回路を2個要するため、アナログ比
較器は消費電流が多く電池を消耗するので電池寿
命を低下させるという問題を有していた。
発明の目的
本発明はかかる従来の問題を解消するもので、
アナログ比較回路1個で2つの電圧レベルを比較
し、消費電流を削減することを目的とする。
発明の構成
この目的を達成するために本発明は、電池電源
により機器を制御するマイクロコンピユータと前
記電池電源の電圧を比較検知する電圧比較回路を
有し、前記電圧比較回路にはマイクロコンピユー
タの切替出力により比較レベルをリセツト電圧l1
と報知電圧l2に定期的に切替える切替回路を有
し、前記電圧比較回路は前記マイクロコンピユー
タの切替出力に応じて、リセツト信号、報知信号
に分割してマイクロコンピユータに入力する論理
回路に出力する構成としたものである。この構成
によつてアナログ比較回路を1個にして電池の消
耗を少なくするという作用を有する。
実施例の説明
以下、本発明の一実施例を第3図を用いて説明
する。マイコン11から常時切替信号を発生し、
電圧比較回路15の切替回路14に入力する。切
替回路14により電圧比較回路15の比較電圧を
切替える。電圧比較回路15の出力と切替信号が
論理回路16に入力する。通常マイコン11は機
器12の各種制御を行なつている。電池電源1の
電圧ldが第1図のl2より低くなると、論理回路1
6から報知信号をマイコン11に入力し、ブザー
13を鳴らして報知する。更にldが第1図のl1よ
り低くなると論理回路16からリセツト信号をマ
イコン11に入力し、マイコン11はリセツトし
て機器12を停止するというものである。具体的
な回路例を第4図に示す。第4図で第2図と同一
動作部品には同一番号を記す。
電池電源1と並列に、抵抗2、ダイオード3を
直列に接続したものとが接続されている。抵抗1
7と抵抗18は直列に接続され、抵抗18は切替
回路14と並列に接続され、抵抗17,18、切
替回路14は電池電源1と並列に接続されてい
る。抵抗17,18の中点電位leと、抵抗2、ダ
イオード3の中点電位l3は比較器19の正負入力
端子に入力する。比較器19は一般周知のオープ
ンコレクタ型比較器であり、抵抗20は比較器1
9の出力電圧をプルアツプするためのものであ
る。マイコン11からは常時第5図に示すような
切替信号が発生し、抵抗21とインバータ22に
入力している。抵抗21は抵抗23と直列に接続
され、その中点電位lfはトランジスタ24のベー
スに接続し、トランジスタ24のコレクタは抵抗
25と接続し、抵抗25の他端は抵抗17,18
の中点に接続している。比較器19の出力はマイ
コン11の報知信号入力端子とインバータ26に
接続している。インバータ22,26の出力はダ
イオード27,28のカソードと接続し、ダイオ
ード27,28のアノードは接続していて抵抗2
9を介して電源の正側と接続し、またリセツト信
号として、マイコン11のリセツト端子に入力し
ている。マイコン11は報知用ブザー13の報知
信号を出力すると共に機器12の各種コントロー
ルをする。実施例のマイコン11はリセツト信号
がローの時、正常動作して機器12を制御し、ハ
イの時にはマイコン11はリセツトして機器12
を停止する構成のものである。マイコン11は切
替信号でハイを出力している時に、報知信号の入
力がハイであれば報知せず、ローであればブザー
13を鳴らして報知するものである。
マイコン11からは第5図に示す切替信号が常
時発生する。切替信号がハイの時、トランジスタ
24がオンし、抵抗18と抵抗25が並列の状態
になる。切替信号がローの時、トランジスタ24
はオフし、抵抗18と抵抗25は切断された状態
となる。よつてleは第6図に示すように、切替信
号ローの時le=le1、切替信号ハイの時le=le2(le1
>le2)となる。ld=l1の時la=le1,ld=l2の時la
=le2となるように抵抗17,18,25の定数
は決定されているものである。
ld>l2の時、切替信号のハイ、ローにかかわら
ずle>laで比較器19の出力である報知信号はハ
イになり報知しない。また、インバータ26の出
力はローになるので、切替信号のハイ、ローでイ
ンバータ22の出力が切替つてもリセツト信号は
ローである。
l2>ld>l1の時、切替信号がハイの時に報知信
号がローとなつて電池寿命が近づいたことを報知
する。インバータ26の出力がハイになるが、イ
ンバータ22の出力がローなのでリセツト信号は
ローになる。切替信号がローの時に比較器19の
出力はハイで、インバータ26の出力はローにな
るので、インバータ22の出力がハイになるが、
リセツト信号はローを保つ。
ld<l1の時、切替信号のハイ、ローにかかわら
ず、比較器19の出力はローになり、インバータ
26の出力はハイになる。ここで切替信号がロー
になつた時にインバータ22の出力もハイとなつ
てリセツト信号がハイとなつてマイコン11はリ
セツトし、機器12は停止する。以上の比較器1
9、インバータ22、インバータ26の出力電圧
と、報知信号、リセツト信号の電圧のハイ、ロー
を次表に示す。
FIELD OF THE INVENTION The present invention relates to a power supply voltage check circuit for a microcomputer that controls equipment using a battery power source. Conventional configurations and their problems With the advent of CMOS microcomputers, it has become easier to drive microcomputers with batteries. However, as shown in Figure 1, the battery voltage decreases over time, so in order to prevent the microcomputer from malfunctioning, it is necessary to reset the microcomputer and stop the equipment before the battery voltage drops and the device malfunctions. . However, since it may be inconvenient if the equipment stops suddenly, a notification is often sent to notify the user of the battery life before resetting the microcomputer. FIG. 2 shows a conventional example in which a microcomputer is reset by a high reset signal. Connected in parallel with the battery power supply 1 are a resistor 2 and a diode 3 connected in series, and a resistor 4, a resistor 5, and a resistor 6 connected in series. The midpoint potential la between resistor 2 and diode 3 and the midpoint potential lb between resistor 4 and resistor 5 are input to the positive and negative input terminals of comparator 7, and the midpoint potential la between resistor 2 and diode 3 is input to comparator 8.
The midpoint potential lc between the resistors 5 and 6 is connected to be input to the positive and negative input terminals. Comparators 7 and 8 are generally well-known open collector type comparators, and resistor 9 connects the output voltage of comparator 7 to resistor 10.
is connected to the output terminals of comparator 7 and comparator 8 in order to pull up the output voltage of comparator 8.
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. The constants of resistors 4, 5, and 6 are determined so that when ld = l 1 , la = lb, and when ld = l 2 , la = lc. When ld> l2 , when lc>la, the output of the comparator 8 is low and no notification is given, and when lb>la, the output of the comparator 7 is low and the microcomputer 11 controls the device 12.
When l 2 > ld > l 1 , the output of 8 becomes high when lc < la, indicating that the battery life is nearing its end. Also, when lb>la, the output of comparator 7 is low and the microcomputer 11 outputs the device 12.
control. When ld<l 1 , lb<la and comparator 7
When the output becomes high, the microcomputer 11 is reset and the equipment 12 is stopped. In this configuration,
Since two analog comparison circuits are required, the analog comparator consumes a large amount of current, which consumes the battery, resulting in a shortened battery life. Purpose of the invention The present invention solves such conventional problems,
The purpose is to compare two voltage levels with one analog comparison circuit and reduce current consumption. Structure of the Invention In order to achieve this object, the present invention includes a microcomputer that controls equipment using a battery power source, and a voltage comparison circuit that compares and detects the voltage of the battery power source, and the voltage comparison circuit includes a microcomputer that controls the switching of the microcomputer. Reset comparison level by output voltage l 1
and an alarm voltage l2 , and the voltage comparator circuit divides the signal into a reset signal and an alarm signal according to the switching output of the microcomputer and outputs the signals to a logic circuit input to the microcomputer. It is structured as follows. This configuration has the effect of reducing battery consumption by using only one analog comparison circuit. DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to FIG. A constant switching signal is generated from the microcomputer 11,
It is input to the switching circuit 14 of the voltage comparison circuit 15. The switching circuit 14 switches the comparison voltage of the voltage comparison circuit 15. The output of the voltage comparison circuit 15 and the switching signal are input to the logic circuit 16. Normally, the microcomputer 11 performs various controls on the equipment 12. When the voltage ld of the battery power supply 1 becomes lower than l 2 in Fig. 1, the logic circuit 1
A notification signal is input from 6 to the microcomputer 11, and a buzzer 13 is sounded to notify the user. Furthermore, when ld becomes lower than l1 in FIG. 1, a reset signal is input from the logic circuit 16 to the microcomputer 11, and the microcomputer 11 resets and stops the equipment 12. A concrete 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. A resistor 2 and a diode 3 connected in series are connected in parallel with the battery power source 1. resistance 1
7 and a resistor 18 are connected in series, the resistor 18 is connected in parallel with the switching circuit 14, and the resistors 17, 18 and the switching circuit 14 are connected in parallel with the battery power source 1. The midpoint potential le of the resistors 17 and 18 and the midpoint potential l3 of the resistor 2 and diode 3 are input to the positive and negative input terminals of the comparator 19. The comparator 19 is a generally known open collector type comparator, and the resistor 20 is a comparator 1.
This is for pulling up the output voltage of 9. 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, its midpoint potential lf is connected to the base of the transistor 24, the collector of the transistor 24 is connected to the resistor 25, and the other end of the resistor 25 is connected to the resistors 17 and 18.
is connected to the midpoint of The output of the comparator 19 is connected to the notification signal input terminal of the microcomputer 11 and the inverter 26. The outputs of the inverters 22 and 26 are connected to the cathodes of diodes 27 and 28, and the anodes of the diodes 27 and 28 are connected and connected to the resistor 2.
It is connected to the positive side of the power supply via 9, and is input to the reset terminal of the microcomputer 11 as a reset signal. The microcomputer 11 outputs a notification signal from a notification buzzer 13 and also controls various devices 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 12.
It is configured to stop. When the microcomputer 11 is outputting a high switching signal, if the input of the notification signal is high, it does not notify, and if the input of the notification signal is low, it sounds the buzzer 13 to notify. A switching signal shown in FIG. 5 is always generated from the microcomputer 11. When the switching signal is high, transistor 24 is turned on, and resistor 18 and resistor 25 are placed in parallel. When the switching signal is low, transistor 24
is turned off, and the resistor 18 and the resistor 25 are in a disconnected state. Therefore, as shown in Figure 6, when the switching signal is low, le = le 1 ; when the switching signal is high, le = le 2 (le 1
>le 2 ). When ld=l 1 , la=le 1 , when ld=l 2 , la
The constants of the resistors 17, 18, and 25 are determined so that = le 2 . When ld> l2 , regardless of whether the switching signal is high or low, le>la and the notification signal output from the comparator 19 becomes high and does not notify. Furthermore, since the output of the inverter 26 becomes low, even if the output of the inverter 22 is switched between high and low states of the switching signal, the reset signal remains low. When l 2 > ld > l 1 , the notification signal becomes low when the switching signal is high to notify that the battery life is approaching. The output of inverter 26 goes high, but since the output of inverter 22 goes low, the reset signal goes low. When the switching signal is low, the output of the comparator 19 is high and the output of the inverter 26 is low, so the output of the inverter 22 is high.
The reset signal remains low. When ld<l 1 , the output of the comparator 19 becomes low and the output of the inverter 26 becomes high regardless of whether the switching signal is high or low. 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. Comparator 1 above
9. The following table shows the output voltages of the inverters 22 and 26, and the high and low voltages of the notification signal and reset signal.
【表】
尚、第4図の実施例では、インバータ22,2
6およびマイクロコンピユータ11はCMOS−
ICを使用しており、これらに消費する電流は極
めて小さく、電圧比較回路19の消費電流に比べ
て約1/106である。
発明の効果
以上のように本発明は、電池の消耗を報知する
ための電圧比較回路と、マイクロコンピユータを
リセツトする電圧比較回路を1つの電圧比較回路
で共用して、論理回路によりマイクロコンピユー
タに報知信号とリセツト信号を入力する構成とし
たため、アナログ電圧比較回路を1個少なくした
ので、消費電流を少なくし、電池寿命を長くする
という効果を有する。[Table] In the embodiment shown in FIG.
6 and microcomputer 11 are CMOS-
ICs are used, and the current consumed by these is extremely small, about 1/10 6 compared to the current consumed by the voltage comparator circuit 19. 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 microcomputer in one voltage comparison circuit, and notifies the microcomputer using the logic circuit. Since the configuration is such that a signal and a reset signal are input, the number of analog voltage comparison circuits is reduced by one, which has the effect of reducing current consumption and extending battery life.
第1図は電池電圧の時間変化を示す特性図、第
2図は従来例のマイクロコンピユータの電源電圧
チエツク回路図、第3図は本発明の一実施例を示
すマイクロコンピユータの電源電圧のチエツク回
路のブロツク図、第4図は同具体的な回路例を示
す回路図、第5図はマイクロコンピユータの切替
信号を示すタイミング図、第6図は比較器の正側
入力電圧を示すタイミング図である。
1……電池電源、11……マイクロコンピユー
タ、12……機器、14……切替回路、15……
電圧比較回路、16……論理回路。
Fig. 1 is a characteristic diagram showing changes in battery voltage over time, Fig. 2 is a conventional microcomputer power supply voltage check circuit diagram, and Fig. 3 is a microcomputer power supply voltage check circuit showing an embodiment of the present invention. 4 is a circuit diagram showing a specific example of the same circuit, FIG. 5 is a timing diagram showing the switching signal of the microcomputer, and FIG. 6 is a timing chart showing the positive input voltage of the comparator. . 1...Battery power source, 11...Microcomputer, 12...Device, 14...Switching circuit, 15...
Voltage comparison circuit, 16...Logic circuit.
Claims (1)
ピユータと前記電池電源の電圧を比較検知する電
圧比較回路を有し、前記電圧比較回路にはマイク
ロコンピユータの切替出力により比較レベルをリ
セツト電圧と報知電圧に定期的に切替える切替回
路を有し、前記電圧比較回路は前記マイクロコン
ピユータの切替出力に応じて、リセツト信号、報
知信号に分割してマイクロコンピユータに入力す
る論理回路に出力する構成としたマイクロコンピ
ユータの電源電圧チエツク回路。1 A microcomputer that controls equipment using a battery power supply and a voltage comparison circuit that compares and detects the voltage of the battery power supply, and the voltage comparison circuit has a reset voltage and a notification voltage that periodically set the comparison level by the switching output of the microcomputer. The power supply voltage of the microcomputer is configured such that the voltage comparator circuit divides the signal into a reset signal and a notification signal according to the switching output of the microcomputer, and outputs the signals to a logic circuit that is input to the microcomputer. Check circuit.
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 JPS60176125A (en) | 1985-09-10 |
| JPH0256687B2 true 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) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62146227U (en) * | 1986-03-03 | 1987-09-16 |
-
1984
- 1984-02-22 JP JP59031610A patent/JPS60176125A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60176125A (en) | 1985-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05108173A (en) | Step-down type voltage regulator | |
| CN215932416U (en) | Wake-up circuit | |
| EP0238803B1 (en) | Stabilized power-supply circuit | |
| US5157270A (en) | Reset signal generating circuit | |
| JPH0884443A (en) | Electronics | |
| JPH01174268A (en) | Detector for instantaneous disconnection of dc power supply | |
| JP3838708B2 (en) | Lithium ion power supply | |
| JPH0256687B2 (en) | ||
| US20230018700A1 (en) | Electronic circuit unit and battery pack | |
| JPH0993831A (en) | Power control device | |
| JP4039770B2 (en) | Electronic equipment power supply circuit | |
| JPS6264226A (en) | electrical equipment | |
| JP4021825B2 (en) | Power supply control device | |
| CN111025177A (en) | Power input monitoring device | |
| KR890002873Y1 (en) | Compensation circuit at blackout of vending machine | |
| KR940005522B1 (en) | Reset circuit | |
| JP3507164B2 (en) | Power supply circuit for electronic equipment | |
| JPH11266542A (en) | Power circuit | |
| JPH0435934Y2 (en) | ||
| KR200157748Y1 (en) | Electrostatic compensation circuit | |
| JP2583121B2 (en) | DC uninterruptible power supply | |
| JP2596134Y2 (en) | Switching power supply | |
| KR0114855Y1 (en) | Low voltage display circuit of battery | |
| JP2515950Y2 (en) | Backup power supply voltage drop detection circuit | |
| KR950002023B1 (en) | Circuit for backup cmos memory |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |