JP2003215177A - Electronic equipment having function for detecting service interruption and restoration - Google Patents

Electronic equipment having function for detecting service interruption and restoration

Info

Publication number
JP2003215177A
JP2003215177A JP2002008418A JP2002008418A JP2003215177A JP 2003215177 A JP2003215177 A JP 2003215177A JP 2002008418 A JP2002008418 A JP 2002008418A JP 2002008418 A JP2002008418 A JP 2002008418A JP 2003215177 A JP2003215177 A JP 2003215177A
Authority
JP
Japan
Prior art keywords
terminal
input
output
power
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.)
Granted
Application number
JP2002008418A
Other languages
Japanese (ja)
Other versions
JP3926631B2 (en
Inventor
Etsuro Nakayama
悦郎 中山
Tetsuya Uchibori
哲也 内堀
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.)
Osaki Electric Co Ltd
Original Assignee
Osaki 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 Osaki Electric Co Ltd filed Critical Osaki Electric Co Ltd
Priority to JP2002008418A priority Critical patent/JP3926631B2/en
Publication of JP2003215177A publication Critical patent/JP2003215177A/en
Application granted granted Critical
Publication of JP3926631B2 publication Critical patent/JP3926631B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic equipment that monitores service restoration at a low electric power consumption. <P>SOLUTION: In this electronic equipment provided with a power source circuit 3, a back-up electric power source 5, and a service interruption and restoration detecting circuit 1 comprising a micro computer 11 having an input terminal T112 for A/D conversion, an interruption terminal T111, a function for monitoring service interruption and restoration in a power source circuit, an operation mode changing function for switching an operation for the micro computer between a usual operation mode and a low power consumption mode, and a function for controlling an operation for the electronic equipment, a service interruption and restoration detecting signal for indicating whether the power source circuit 3 is under the service interruption or the service restoration is supplied to a terminal T113, an output voltage of the power source circuit 3 is supplied to the terminal T111, shifting to the low power consumption mode is conducted when the service interruption and restoration detecting signal indicates the service interruption, and restoration to the usual operation mode is conducted when the service restoration of the power source to the terminal T111 is detected. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、例えば電子式電力
量計のようにA/D変換機能を持ったマイコンを用いた
電子機器に関し、とくに、停電時にバッテリーバックア
ップによる復電監視動作を低消費電力で行なうようにし
た停復電検出機能を具備した電子機器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device using a microcomputer having an A / D conversion function such as an electronic watt-hour meter, and more particularly, it consumes a low power consumption for recovery monitoring operation by battery backup at the time of power failure. The present invention relates to an electronic device having a power recovery and restoration detection function that is performed with electric power.

【0002】[0002]

【従来の技術】停電時にバッテリーによるバックアップ
がなされる電子式電力量計などの電子機器においては、
図8に示すようなハードウエアで構成される停復電検出
手法、図9に示すようなマイコンを内蔵したソフトウエ
アによる停復電検出手法によって、停電検出や復電検出
を行なっている。
2. Description of the Related Art In electronic equipment such as an electronic watt hour meter which is backed up by a battery in the event of a power failure,
A power failure detection and power recovery detection are performed by a power failure and power recovery detection method configured by hardware as shown in FIG. 8 and a power failure and power recovery detection method by software having a microcomputer as shown in FIG.

【0003】図8に示すハードウエアからなる停復電検
出手段を具備した電子機器は、停復電検出回路1と、電
源回路3と、バックアップ電源5と、電子機器本体7と
から構成される。
An electronic device equipped with a power failure / recovery detection means consisting of the hardware shown in FIG. 8 is composed of a power failure / recovery detection circuit 1, a power supply circuit 3, a backup power supply 5, and an electronic device body 7. .

【0004】停復電検出回路1は、直列に接続された抵
抗121と抵抗122からなる停復電圧検出回路12
と、停復電圧検出回路12の出力が一方の入力端子に供
給され後述する基準電圧回路17の出力が他方の端子に
供給されるヒステリシスコンパレータ15と、一方が停
復電圧検出回路12に接続され他方が電子機器7の停復
電検出信号端子T73に接続される抵抗161と抵抗1
62と定電圧ダイオード163とからなる停復電検出信
号回路16と、直列に接続された抵抗171と定電圧ダ
イオード172からなる基準電圧回路17とから構成さ
れる。
The power recovery / recovery voltage detection circuit 1 comprises a power recovery / recovery voltage detection circuit 12 including a resistor 121 and a resistor 122 connected in series.
And a hysteresis comparator 15 in which the output of the recovery voltage detection circuit 12 is supplied to one input terminal and the output of a reference voltage circuit 17 described later is supplied to the other terminal, and one is connected to the recovery voltage detection circuit 12. The other is a resistor 161 and a resistor 1 connected to the power failure detection signal T73 of the electronic device 7.
The power failure detection / recovery detection signal circuit 16 including 62 and the constant voltage diode 163, and the reference voltage circuit 17 including the resistor 171 and the constant voltage diode 172 connected in series.

【0005】電源回路3は、1次側が商用電源に接続さ
れた変圧器31と、変圧器31の2次側に接続された整
流器32と、変圧器31の2次側に並列に接続された平
滑コンデンサ33と、平滑コンデンサに並列に接続され
出力がバックアップ電源回路5と逆流阻止ダイオード3
5に接続される定電圧回路34と、電子機器の非バック
アップ電源端子T71に接続される逆流阻止ダイオード
35とを有して構成される。
The power supply circuit 3 has a transformer 31 whose primary side is connected to a commercial power source, a rectifier 32 connected to the secondary side of the transformer 31, and a secondary side of the transformer 31 connected in parallel. The smoothing capacitor 33 and the output connected to the smoothing capacitor in parallel are the backup power supply circuit 5 and the reverse current blocking diode 3.
5 and a backflow prevention diode 35 connected to the non-backup power supply terminal T71 of the electronic device.

【0006】バックアップ電源5は、1次電池などの電
力蓄積手段51と、逆流阻止ダイオード52と、逆流阻
止ダイオード53とを有して構成され、出力が電子機器
7のバックアップ電源端子T72に供給される。
The backup power source 5 comprises a power storage means 51 such as a primary battery, a backflow blocking diode 52, and a backflow blocking diode 53, and the output is supplied to the backup power terminal T72 of the electronic device 7. It

【0007】このようなヒステリシスコンパレータ15
を用いた停復電圧検出手段を用いた電子機器は、ヒステ
リシスコンパレータ15や、停復電検出信号回路16を
必要とする。
Such a hysteresis comparator 15
The electronic device using the power recovery / restoration voltage detection means using the circuit requires the hysteresis comparator 15 and the power recovery / restoration detection signal circuit 16.

【0008】図9に示すように、マイコンを内蔵したソ
フトウエアによる停復電検出手法によって停電検出や復
電検出を行なう停復電検出手段を具備した電子機器は、
停復電検出回路1と、電源回路3と、バックアップ電源
5と、電子機器本体7とから構成される。
As shown in FIG. 9, an electronic device equipped with a power failure / recovery detecting means for detecting a power failure or power recovery by a power failure / recovery detection method using software with a built-in microcomputer,
The power failure detection circuit 1 includes a power supply circuit 3, a backup power supply 5, and an electronic device body 7.

【0009】停復電検出回路1は、停復電圧検出回路1
2の出力がA/D入力端子T112に入力されるA/D
変換機能を備えたマイコン11と、直列に接続された抵
抗121と抵抗122からなる停復電圧検出回路12と
から構成される。
The recovery / recovery voltage detection circuit 1 is a recovery / recovery voltage detection circuit 1
2 output is input to A / D input terminal T112
It is composed of a microcomputer 11 having a conversion function, and a recovery voltage detection circuit 12 including a resistor 121 and a resistor 122 connected in series.

【0010】電源回路3は、1次側が商用電源に接続さ
れた変圧器31と、変圧器31の2次側に接続された整
流器32と、変圧器31の2次側に並列に接続された平
滑コンデンサ33と、平滑コンデンサに並列に接続され
出力がバックアップ電源回路5と逆流阻止ダイオード3
5に接続される定電圧回路34と、電子機器の非バック
アップ電源端子T71に接続される逆流阻止ダイオード
35とを有して構成される。
The power supply circuit 3 has a transformer 31 whose primary side is connected to a commercial power source, a rectifier 32 connected to the secondary side of the transformer 31, and a secondary side of the transformer 31 connected in parallel. The smoothing capacitor 33 and the output connected to the smoothing capacitor in parallel are the backup power supply circuit 5 and the reverse current blocking diode 3.
5 and a backflow prevention diode 35 connected to the non-backup power supply terminal T71 of the electronic device.

【0011】バックアップ電源5は、1次電池などの電
力蓄積手段51と、逆流阻止ダイオード52と、逆流阻
止ダイオード53とを有して構成され、出力が電子機器
7のバックアップ電源端子T72に供給される。
The backup power supply 5 comprises a power storage means 51 such as a primary battery, a backflow blocking diode 52, and a backflow blocking diode 53, and the output is supplied to the backup power terminal T72 of the electronic device 7. It

【0012】このように、バッテリーバックアップを持
つ装置では、一般的に停電中はマイコンを低消費電力モ
ードにして使用し、復電により通常動作モードに戻すこ
とが行われる。この場合ハード的な停電検出回路を持っ
ていればその出力信号の変化をマイコンの割り込み等で
捕らえて通常動作モードに戻せるが、マイコンに内蔵し
たA/D変換機能とソフトウェアによって停復電を検出
する場合には、タイマ等で定期的にマイコンを動作させ
て電源の状態をA/D変換機能により調べて復電を検出
する必要がある。
As described above, in a device having a battery backup, the microcomputer is generally used in a low power consumption mode during a power failure, and then returned to the normal operation mode by power recovery. In this case, if there is a hardware power failure detection circuit, changes in the output signal can be caught by interrupts of the microcomputer and returned to the normal operation mode, but power failure is detected by the A / D conversion function and software built into the microcomputer. In that case, it is necessary to periodically operate the microcomputer with a timer or the like to check the power supply state by the A / D conversion function to detect power recovery.

【0013】このマイコン11において、停電レベルが
復電レベルより小さい関係でヒステリシスを生成するイ
ンターバルタイマルーチンR4のフローを、図10を用
いて説明する。マイコン11は、A/D入力端子T11
2に入力された停復電検出信号をA/D変換し(S6
1)、停電中であるか否かを判断する(S62)。停電中
でないときには、A/D変換した停復電検出信号が停電
レベル以下であるか否かを判定する(S63)。A/D変
換した停復電検出信号が停電レベル以下であるときは、
停電移行処理を実行し(S64)、低消費電力モードへ移
行する(S65)。
The flow of the interval timer routine R4 for generating hysteresis in the microcomputer 11 in the relationship that the power failure level is smaller than the power recovery level will be described with reference to FIG. The microcomputer 11 has an A / D input terminal T11
The power failure / restoration detection signal input to 2 is A / D converted (S6
1), it is determined whether or not there is a power outage (S62). When there is no power outage, it is determined whether or not the A / D converted stop / recovery detection signal is below the power outage level (S63). When the power recovery / restoration detection signal converted from A / D is below the power failure level,
A power failure shift process is executed (S64), and a low power consumption mode is entered (S65).

【0014】ステップS62の判定で、停電中と判定さ
れたときには、A/D変換した停復電検出信号が復電レ
ベル以上であるか否かを判定する(S66)。A/D変換
した停復電検出信号が復電レベル以上であるときには、
復電移行処理を実行し(S67)、インターバルタイマル
ーチンを終了する(S68)。
If it is determined in step S62 that a power failure is occurring, it is determined whether the A / D converted stop / recovery detection signal is equal to or higher than the power recovery level (S66). When the power recovery / restoration detection signal converted from A / D is above the power recovery level,
Power recovery transition processing is executed (S67), and the interval timer routine is ended (S68).

【0015】ステップS63で、A/D変換した停復電
検出信号が停電レベル以下でないと判断されると、イン
ターバルタイマルーチンを終了する(S68)。
If it is determined in step S63 that the A / D converted power failure / restoration detection signal is not lower than the power failure level, the interval timer routine is terminated (S68).

【0016】ステップS66で、A/D変換した停復電
検出信号が復電レベル以上でないときには、低消費電力
モードへ移行する(S65)。
In step S66, when the A / D-converted power recovery / restoration detection signal is not higher than the power recovery level, the low power consumption mode is entered (S65).

【0017】このようにして停電レベル<復電レベルの
関係でヒステリシスを生成することができる。
In this way, hysteresis can be generated in the relationship of power failure level <power recovery level.

【0018】停復電検出のコストを比較すると、ハード
的な回路をもつものの方が部品点数が多く高くなるが、
マイコンのA/D変換機能を用いる方法では復電検出を
行うための動作間隔を短く設定するとバックアップを行
うバッテリーの容量が多く必要になりやはりコストアッ
プになってしまう。
Comparing the costs for detecting the power failure and restoration, the number of parts is higher in the case of having a hardware circuit,
In the method using the A / D conversion function of the microcomputer, if the operation interval for detecting the power recovery is set to be short, a large capacity of the battery for backing up is required and the cost is increased.

【0019】部品点数から見てコスト的にはマイコンの
A/D変換機能よって停復電を検出する方式のほうが有
利であるが、バックアップ時の電力消費を低く抑えるた
めには、復電の検出をA/D変換機能によらずに行う必
要がある。
From the viewpoint of the number of parts, the method of detecting power failure / recovery by the A / D conversion function of the microcomputer is more advantageous from the viewpoint of cost, but in order to suppress the power consumption at the time of backup, detection of power recovery is performed. Must be performed independently of the A / D conversion function.

【0020】[0020]

【発明が解決しようとする課題】本発明は、上記問題を
解決するために、A/D変換機能を内蔵したマイコンを
備えソフトウエアによって停復電を検出する停復電検出
機能を有する電子機器において、バックアップ電源の容
量を大きくすることなく低消費電力で復電監視を行うこ
とができる停復電検出機能を備えた電子機器を提供する
ことを目的とする。
SUMMARY OF THE INVENTION In order to solve the above problems, the present invention provides an electronic device having a microcomputer having an A / D conversion function and having a power failure / restoration detection function for detecting power failure / restoration by software. In view of the above, it is an object of the present invention to provide an electronic device having a power failure recovery detection function capable of performing power recovery monitoring with low power consumption without increasing the capacity of a backup power supply.

【0021】[0021]

【課題を解決するための手段】上記課題を解決するため
に、本発明は、A/D変換機能を持ったマイコンを用
い、機器電源の停復電検出をこのA/D変換機能により
低消費電力で行うバックアップ電源を有する機器におい
て、復電の検出を、バックアップを行わない電源電圧を
マイコンの低消費動作から復帰する端子に接続して検出
し、通常動作に復帰するようにした。
In order to solve the above-mentioned problems, the present invention uses a microcomputer having an A / D conversion function and uses the A / D conversion function to reduce the power consumption of the device power supply. In a device having a backup power supply that uses electric power, detection of power recovery is performed by connecting a power supply voltage that does not perform backup to a terminal that recovers from the low power consumption operation of the microcomputer, and recovers to normal operation.

【0022】さらに、本発明は、A/D変換機能を持っ
たマイコンを用い、機器電源の停復電検出をこのA/D
変換機能により低消費電力モードで行うバックアップ電
源を有する機器において、バックアップを行わない電源
電圧を低消費動作から復帰する端子に制限抵抗を介して
接続し、さらにこの端子とは別の入出力切替のできる端
子もこの端子に接続し、停電後のバックアップを行わな
い電源電圧が下降途中に別の端子から低電圧を出力し
て、バックアップを行わない電源電圧が十分下がった後
に別の端子を入力に切替え、その後の復電の検出、通常
動作に復帰を行う。
Further, according to the present invention, the microcomputer having the A / D conversion function is used to detect the power failure / recovery of the equipment power source.
In a device that has a backup power supply that operates in the low power consumption mode by the conversion function, connect the power supply voltage that is not backed up to the terminal that recovers from the low power consumption operation via a limiting resistor, and switch the input / output separately from this terminal. Also connect this terminal to this terminal, output a low voltage from another terminal while the power supply voltage that does not perform backup after a power failure is falling, and input another terminal after the power supply voltage that does not perform backup has dropped sufficiently. Switching, detection of power recovery after that, and return to normal operation.

【0023】さらに、本発明は、上記課題を解決するた
めに、電子機器およびマイコンに電圧を供給する電源回
路と、停電時にマイコンに電圧を供給するバックアップ
電源と、A/D変換用入力端子と割込み端子とを有する
マイコンからなる停復電検出回路とを備えた停復電検出
機能を有する電子機器において、前記マイコンが、電源
電圧の停電と復旧を監視する停復電監視機能と、マイコ
ンの動作モードを通常動作モードと低消費電力モードと
の間で移行させる動作モード変更機能と、電子機器の動
作を制御する機能とを有し、前記電源回路が停電である
か通電であるかを表わす停復電検出信号を前記A/D変
換用入力端子に供給し、前記電源回路の出力電圧を前記
割込み端子に供給し、停復電検出信号が停電を示したと
きにマイコンの動作モードをバックアップ電源からの電
力により動作する低消費電力モードに移行させ、割込み
端子に電源の復旧を検出したときにマイコンの動作モー
ドを通常動作モードに復帰させるようにした。
Further, in order to solve the above problems, the present invention provides a power supply circuit for supplying a voltage to an electronic device and a microcomputer, a backup power supply for supplying a voltage to the microcomputer at the time of a power failure, and an A / D conversion input terminal. In an electronic device having a power failure / recovery detection function including a power failure / recovery detection circuit including a microcomputer having an interrupt terminal, the microcomputer has a power failure / recovery monitoring function for monitoring power failure and recovery of a power supply voltage, and a microcomputer It has an operation mode changing function for shifting the operation mode between the normal operation mode and the low power consumption mode, and a function for controlling the operation of the electronic device, and indicates whether the power supply circuit is in a power failure or a power supply. Supplying the power failure / restoration detection signal to the A / D conversion input terminal, supplying the output voltage of the power supply circuit to the interrupt terminal, and operating the microcomputer when the power failure / restoration detection signal indicates a power failure. Over de it is shifted to the low power consumption mode which is operated by electric power from a backup power supply, and so as to return the operation mode of the microcomputer to the normal operation mode upon detection of a restoration of power supply to the interrupt terminal.

【0024】また、本発明は、上記停復電検出機能を有
する電子機器において、上記マイコンが、端子の状態を
出力状態または入力状態に変更可能な入出力切替可能端
子を有し、上記電源回路の出力電圧を制限抵抗を介して
上記割込み端子と前記入出力切替可能端子に供給し、上
記停復電検出信号が停電を示したときに前記入出力切替
可能端子を低電圧を出力する出力状態とし、その後入出
力切替可能端子を入力状態として復電監視を行なうよう
にした。
Further, the present invention provides the electronic device having the above-mentioned power failure recovery function, wherein the microcomputer has an input / output switchable terminal capable of changing a terminal state to an output state or an input state, and the power supply circuit. An output state in which the output voltage of the input / output switchable terminal is supplied to the interrupt terminal and the input / output switchable terminal via a limiting resistor and the input / output switchable terminal outputs a low voltage when the power failure / restoration detection signal indicates a power failure. After that, the input / output switchable terminal is set to the input state to perform power recovery monitoring.

【0025】本発明は、上記停復電検出機能を有する電
子機器において、上記マイコンが、端子の状態を出力状
態または入力状態に変更可能な入出力切替可能端子を有
し、上記電源回路の出力電圧を制限抵抗を介して上記割
込み端子と前記入出力切替可能端子に供給し、上記停復
電検出信号が停電を示したときに前記入出力切替可能端
子を低電圧を出力する出力状態とし、前記電源回路の出
力電圧が前記割込み端子に入力貫通電流を生じない電圧
にまで低下したときに、前記入出力切替可能端子を出力
状態から入力状態に変更して復電監視を行なうようにし
た。
According to the present invention, in the electronic device having the function of detecting power failure and recovery, the microcomputer has an input / output switchable terminal capable of changing the state of the terminal to an output state or an input state, and the output of the power supply circuit. A voltage is supplied to the interrupt terminal and the input / output switchable terminal via a limiting resistor, and the input / output switchable terminal is set to an output state of outputting a low voltage when the power failure / restoration detection signal indicates a power failure, When the output voltage of the power supply circuit drops to a voltage at which an input through current does not occur at the interrupt terminal, the input / output switchable terminal is changed from the output state to the input state to perform power recovery monitoring.

【0026】本発明は、上記停復電検出機能を有する電
子機器において、上記マイコンが、端子の状態を出力状
態または入力状態に変更可能な入出力切替可能端子と、
前記A/D変換用入力端子と異なる第2のA/D変換用入
力端子を有し、上記停復電検出回路が、非バックアップ
電圧検出信号を出力する上記電源回路の出力に接続され
た非バックアップ電圧検出回路を備え、前記電源回路の
出力電圧を制限抵抗を介して前記割込み端子と入出力切
替可能端子に供給し、前記非バックアップ電圧検出信号
を第2のA/D変換用入力端子に供給し、上記停復電検
出信号が停電を示したときに前記入出力切替可能端子を
低電圧を出力する出力状態とし、前記電源回路の出力電
圧が割込み端子に入力貫通電流を生じない電圧にまで低
下したことを前記第2のA/D変換用入力端子の入力に
より検出したときに、前記入出力切替可能端子を出力状
態から入力状態に変更して復電監視を行なうようにし
た。
According to the present invention, in the electronic device having the above-mentioned power failure / restoration detection function, the microcomputer can change the state of the terminal to an output state or an input state, and an input / output switchable terminal,
A second A / D conversion input terminal different from the A / D conversion input terminal is provided, and the power failure / restoration detection circuit is connected to an output of the power supply circuit that outputs a non-backup voltage detection signal. A backup voltage detection circuit is provided, the output voltage of the power supply circuit is supplied to the interrupt terminal and the input / output switchable terminal via a limiting resistor, and the non-backup voltage detection signal is input to the second A / D conversion input terminal. When the power failure / recovery detection signal indicates a power failure, the input / output switchable terminal is set to an output state that outputs a low voltage, and the output voltage of the power supply circuit is set to a voltage that does not cause an input through current at the interrupt terminal. When it is detected by the input of the second A / D conversion input terminal that the input / output switchable terminal is changed from the output state to the input state, power recovery monitoring is performed.

【0027】本発明は、上記電子機器において、前記低
消費電力動作から復帰する割込み端子が入出力切替可能
端子のとき、停電後のバックアップを行なわない電源電
圧が下降途中にバックアップ電源電圧を復帰する端子を
出力端子に切り替えて低電圧を出力し、バックアップを
行なわない電源電圧が十分下がった後にバックアップ電
源電圧を復帰する端子を入力端子に切り替えて復電検出
の通常動作に復帰するようにした。
According to the present invention, in the above electronic device, when the interrupt terminal for recovering from the low power consumption operation is an input / output switchable terminal, the backup power supply voltage is restored while the power supply voltage not backed up after a power failure is falling. The terminal is switched to the output terminal to output a low voltage, and the terminal that restores the backup power supply voltage is switched to the input terminal after the power supply voltage that does not perform the backup has dropped sufficiently to return to the normal operation of power recovery detection.

【0028】[0028]

【発明の実施の形態】本発明にかかる停復電検出機能を
有する電子機器の構成の概要を、図1を用いて説明す
る。
BEST MODE FOR CARRYING OUT THE INVENTION An outline of the configuration of an electronic device having a power failure / restoration detection function according to the present invention will be described with reference to FIG.

【0029】図1に示すように、例えば電子式電力量計
などの、本発明にかかるマイコンを内蔵するとともにソ
フトウエアによる停復電検出手法によって停電検出や復
電検出を行なう停復電検出機能を具備した電子機器は、
停復電検出回路1と、電源回路3と、バックアップ電源
5と、電子機器本体7とから構成される。
As shown in FIG. 1, a power failure / recovery detection function that incorporates a microcomputer according to the present invention, such as an electronic watt hour meter, and performs power failure detection and power recovery detection by a software power failure recovery method. An electronic device equipped with
The power failure detection circuit 1 includes a power supply circuit 3, a backup power supply 5, and an electronic device body 7.

【0030】停復電検出回路1は、A/D変換機能を備
えるとともに割込み端子T111および第1A/D入力
端子T112を有するマイコン11と、直列に接続され
た抵抗121と抵抗122からなり接続点Aがそのマイ
コン11の第1A/D入力端子T112に接続される停
復電圧検出回路12とから構成される。
The power recovery / restoration detection circuit 1 comprises a microcomputer 11 having an A / D conversion function and having an interrupt terminal T111 and a first A / D input terminal T112, a resistor 121 and a resistor 122 connected in series, and a connection point. A is composed of the recovery voltage detection circuit 12 connected to the first A / D input terminal T112 of the microcomputer 11.

【0031】電源回路3は、1次側が商用電源に接続さ
れた変圧器31と、変圧器31の2次側に接続された整
流器32と、変圧器31の2次側に並列に接続された平
滑コンデンサ33と、平滑コンデンサに並列に接続され
出力がバックアップ電源回路5と逆流阻止ダイオード3
5に接続される定電圧回路34と、電子機器の非バック
アップ電源端子T71およびマイコン11の割込み端子
T111に接続される逆流阻止ダイオード35とを有し
て構成される。
The power supply circuit 3 has a transformer 31 whose primary side is connected to a commercial power source, a rectifier 32 which is connected to the secondary side of the transformer 31, and a secondary side of the transformer 31 which is connected in parallel. The smoothing capacitor 33 and the output connected to the smoothing capacitor in parallel are the backup power supply circuit 5 and the reverse current blocking diode 3.
5 and a reverse voltage blocking diode 35 connected to the non-backup power supply terminal T71 of the electronic device and the interrupt terminal T111 of the microcomputer 11.

【0032】バックアップ電源5は、1次電池などの電
力蓄積手段51および逆流阻止ダイオード52と、逆流
阻止ダイオード53とを有して構成され、出力が電子機
器7のバックアップ電源端子T72に供給される。電力
蓄積手段51と逆流素子ダイオード52の直列回路は、
逆流阻止ダイオード53を介して前記定電圧回路34に
並列に接続されるとともに、マイコン11のAVcc端
子およびVcc端子と、GND端子およびAGND端子
接続される。
The backup power supply 5 is configured to have a power storage means 51 such as a primary battery, a backflow blocking diode 52, and a backflow blocking diode 53, and the output is supplied to the backup power terminal T72 of the electronic device 7. . The series circuit of the power storage means 51 and the reverse current element diode 52 is
It is connected in parallel to the constant voltage circuit 34 via the reverse current blocking diode 53, and is also connected to the AVcc terminal and Vcc terminal of the microcomputer 11, the GND terminal and the AGND terminal.

【0033】マイコン11の割込み端子T111は、マ
イコン11の信号変化で割込みが発生し通常モードに戻
せる端子である。バックアップを行わない電源を割込み
端子T111に接続することによって、復電時に割り込
みが発生して通常モードに戻るので、復電を監視するた
めに定期的にマイコンを動作させてA/D変換を行うこ
となく復電を検出することができる。
The interrupt terminal T111 of the microcomputer 11 is a terminal capable of returning to the normal mode when an interrupt occurs due to a signal change of the microcomputer 11. By connecting a power supply that does not perform backup to the interrupt terminal T111, an interrupt occurs at power recovery and returns to the normal mode. Therefore, the microcomputer is operated periodically to monitor power recovery and A / D conversion is performed. Power recovery can be detected without

【0034】しかし、このままの接続では停電直後のバ
ックアップを行わない電源の電圧下降中にその電位が中
間値となり、マイコン11の割込み端子T111に図2
に実線で示す入力貫通電流を発生させる。バックアップ
を行わない電源の負荷は、中間電位程度の低電圧ではほ
とんど動作せずその下降速度は回路にもよるが数秒とい
うオーダーになる場合も珍しくない。したがって、入力
貫通電流が発生する場合もこのオーダーで発生し、その
電流はバックアップを行うバッテ−リーから供給される
ことになりバッテリーを著しく消費する。数秒にわたる
入力貫通電流の発生は、バッテ−リーの内部インピーダ
ンスが高い場合には、電圧が降下しバックアップ動作に
支障をきたす場合もある。
However, in this connection as it is, the potential becomes an intermediate value during the voltage drop of the power supply which is not backed up immediately after the power failure, and the interrupt terminal T111 of the microcomputer 11 is shown in FIG.
The input through current shown by the solid line is generated. It is not uncommon for the load of the power supply that does not perform backup to operate at a low voltage of approximately the intermediate potential, and its falling speed may be on the order of several seconds, depending on the circuit. Therefore, even when the input through current is generated, it is generated in this order, and the current is supplied from the battery for backup, which consumes the battery significantly. If the internal impedance of the battery is high, the generation of the input shoot-through current for several seconds may cause a voltage drop and hinder the backup operation.

【0035】この問題を解決する本発明の第2の実施例
を、図3を用いて説明する。この実施例では、逆流阻止
ダイオード35を介したバックアップを行わない電源3
と割込み端子T111との間に制限抵抗13を挿入する
とともに、割込み端子T111に並列に入出力を切替え
ることができる入出力切替可能端子T113を接続した
点に特徴を有している。マイコン11が停復電圧検出回
路12の入力を監視して入力電圧が所定の値以下になっ
たことを検出すると、入出力切替可能端子T113は、
バックアップを行わない電源3の電圧が入力貫通電流を
生じない電圧に下降するまで低電圧を出力する。このこ
とによって、制限抵抗13を介して割込み端子T111
に供給される電源3の電圧は、入出力切替可能端子T1
13と同じ低電圧になり入力貫通電流が発生することは
ない。電源3の電圧が入力貫通電流を生じない電圧に下
降する時間を経過した後、入出力切替可能端子T113
を入力に切り換えてから低消費電力モードに移行して、
復電を監視し、割込み端子T111の立ち上がりを割り
込みが検出して復電を検出し、マイコンを通常モードに
戻すことができる。
A second embodiment of the present invention which solves this problem will be described with reference to FIG. In this embodiment, the power supply 3 that does not perform backup via the reverse current blocking diode 35.
It is characterized in that the limiting resistor 13 is inserted between the interrupt terminal T111 and the interrupt terminal T111, and an input / output switchable terminal T113 capable of switching input / output is connected in parallel to the interrupt terminal T111. When the microcomputer 11 monitors the input of the recovery voltage detection circuit 12 and detects that the input voltage has become a predetermined value or less, the input / output switchable terminal T113 is
A low voltage is output until the voltage of the power supply 3 that does not perform backup drops to a voltage that does not generate input through current. By this, the interrupt terminal T111 via the limiting resistor 13
The voltage of the power source 3 supplied to the input / output switchable terminal T1
The voltage is the same as that of No. 13 and no input through current is generated. After a lapse of time for the voltage of the power supply 3 to drop to a voltage that does not generate input through current, the input / output switchable terminal T113
After switching to input, shift to low power consumption mode,
The power recovery can be monitored, the interrupt can detect the rising of the interrupt terminal T111, the power recovery can be detected, and the microcomputer can be returned to the normal mode.

【0036】ここで、入出力切替可能端子T113が低
電圧を出力する期間は、バックアップを行わない電源3
の電圧が入力貫通電流を生じない電圧に下降するまでの
時間を実測して得た値を用いることもできる。
Here, during the period in which the input / output switchable terminal T113 outputs a low voltage, the power supply 3 that does not perform backup
It is also possible to use a value obtained by actually measuring the time required for the voltage to drop to a voltage at which an input through current does not occur.

【0037】図4を用いて、非バックアップ電圧検出信
号入力の確認を行わない場合のインターバルタイマルー
チンR3を説明する。
The interval timer routine R3 when the non-backup voltage detection signal input is not confirmed will be described with reference to FIG.

【0038】マイコン11は、第1A/D入力端子T1
12に入力される停復電検出信号をA/D変換し(S4
1)、A/D変換結果が停電レベル以下であるか否かを
判断する(S42)。停復電検出信号が停電レベルを越
えるときには、インターバルタイマルーチンR3を終了
する(S54)。停復電検出信号が停電レベル以下である
ときには、タイマ停止を含む停電移行処理を実行する
(S43)とともに、入出力切替可能端子T113を低電
圧レベル出力に切り替えて(S44)、非バックアップ
電圧の降下のカウントを開始する(S45)。次いで、第
1A/D入力端子T112に入力される停復電検出信号
をA/D変換し(S46)、A/D変換結果が復電レベル
以上であるかを判定する(S47)。
The microcomputer 11 has a first A / D input terminal T1.
The power failure / recovery detection signal input to 12 is A / D converted (S4
1), it is determined whether the A / D conversion result is equal to or lower than the power failure level (S42). When the power failure / restoration detection signal exceeds the power failure level, the interval timer routine R3 is ended (S54). When the power failure detection signal is below the power failure level, execute the power failure transition processing including timer stop
Simultaneously with (S43), the input / output switchable terminal T113 is switched to the low voltage level output (S44), and the count of the drop of the non-backup voltage is started (S45). Next, the power recovery / restoration detection signal input to the first A / D input terminal T112 is A / D converted (S46), and it is determined whether the A / D conversion result is equal to or higher than the power recovery level (S47).

【0039】ステップS47で、A/D変換結果が復電
レベル以上の場合には、入出力切替可能端子T113を
入力に切り替える(S52)とともに、タイマ再開を含
む復電移行処理を実行して(S53)、インターバルタイ
マルーチンR3を終了する(S54)。
If the A / D conversion result is equal to or higher than the power recovery level in step S47, the input / output switchable terminal T113 is switched to input (S52), and power recovery transition processing including timer restart is executed ( (S53), the interval timer routine R3 is ended (S54).

【0040】ステップS47で、A/D変換結果が復電
レベルに満たない場合には、電圧降下カウントが終了し
たか否かを監視し(S48)、電圧降下カウントが終了す
るまでステップS46に戻り、非バックアップ電圧降下
のカウントを続ける。ステップS48で、電圧降下カウ
ントが終了すると、入出力切替可能端子T113を低電
圧出力から入力に切り替え(S49)、低消費電力モード
に設定して復電監視状態に移行する(S50)。
If the A / D conversion result is less than the power recovery level in step S47, it is monitored whether or not the voltage drop count is finished (S48), and the process returns to step S46 until the voltage drop count is finished. , Continue counting non-backup voltage drop. When the voltage drop count is completed in step S48, the input / output switchable terminal T113 is switched from the low voltage output to the input (S49), the low power consumption mode is set, and the power recovery monitoring state is set (S50).

【0041】復電を監視する状態で割込み端子T111
に電圧の立上りがあると、低消費電力モードから通常の
状態への復帰を設定し(S50)、低消費電力モードへ
移行する(S51)。
Interrupt terminal T111 while monitoring power recovery
If the voltage rises at the point, the recovery from the low power consumption mode to the normal state is set (S50), and the mode shifts to the low power consumption mode (S51).

【0042】このように入出力切替可能端子T113の
低電圧出力期間を設定する手法に変えて、図5に示すよ
うに、バックアップを行わない電源3の電圧を、抵抗1
41と抵抗142の直列回路からなる非バックアップ電
圧検出手段14を介して第2A/D入力端子T114に
入力し、A/D変換して正確に停復電を検出する手法が
有る。この場合のマイコン11における停復電検出処理
のインターバルタイマルーチンR1処理を図6のチャー
トを用いて説明する。
As described above, the method of setting the low voltage output period of the input / output switchable terminal T113 is changed to the voltage of the power source 3 not backed up as shown in FIG.
There is a method of inputting to the second A / D input terminal T114 via the non-backup voltage detecting means 14 composed of a series circuit of 41 and a resistor 142, A / D converting it, and accurately detecting power failure / restoration. The interval timer routine R1 processing of the power recovery / restoration detection processing in the microcomputer 11 in this case will be described with reference to the chart of FIG.

【0043】マイコン11は、第1A/D入力端子T1
12に入力される停復電検出信号をA/D変換し(S
1)、A/D変換結果が停電レベル以下であるか否かを
判断する(S2)。停復電検出信号が停電レベル以下で
あるときには、タイマ停止を含む停電移行処理を実行す
る(S3)とともに、入出力切替可能端子T113を低電
圧レベル出力に切り替えて(S4)、第2A/D入力端
子T114に入力される非バックアップ電圧検出信号を
A/D変換する(S5)。
The microcomputer 11 has a first A / D input terminal T1.
The power failure / recovery detection signal input to 12 is A / D converted (S
1), it is determined whether or not the A / D conversion result is equal to or lower than the power failure level (S2). When the power failure / restoration detection signal is lower than the power failure level, the power failure transition processing including the timer stop is executed (S3), and the input / output switchable terminal T113 is switched to the low voltage level output (S4). The non-backup voltage detection signal input to the input terminal T114 is A / D converted (S5).

【0044】入力貫流電流が十分小さな値となる非バッ
クアップ電圧であるか否かを判定し(S6)、検出した非
バックアップ電圧が十分低い電圧であるときには、入力
貫通電流が生じない状態にあるので、入出力切替可能端
子T113を低電圧出力から入力に切り替え(S7)、低
消費電力モードに設定して復電監視状態に移行する。
Whether or not the input flow-through current is a non-backup voltage at which the value is sufficiently small is determined (S6). When the detected non-backup voltage is a sufficiently low voltage, the input flow-through current does not occur. The input / output switchable terminal T113 is switched from the low voltage output to the input (S7), the low power consumption mode is set, and the power recovery monitoring state is set.

【0045】復電を監視する状態で割込み端子T111
に電圧の立上りがあると、低消費電力モードから通常の
状態への復帰を設定し(S8)、低消費電力モードへ移
行する(S9)。
Interrupt terminal T111 while monitoring power recovery
If the voltage rises at the point, the recovery from the low power consumption mode to the normal state is set (S8), and the mode shifts to the low power consumption mode (S9).

【0046】ステップS6で、非バックアップ電圧が十
分低くないときには、第1A/D入力端子T112に入
力される停復電検出信号をA/D変換し(S10)、A/
D変換結果が復電レベル以上であるかを判定する(S1
1)。復電レベルに達しないときには、ステップS5に
戻る。停復電検出信号が復電レベル以上であるときに
は、入出力切替可能端子T113を入力に切り替える
(S12)とともに、タイマ再開を含む復電移行処理を
実行して(S13)、インターバルタイマルーチンR1を
終了する(S14)。
When the non-backup voltage is not sufficiently low in step S6, the power failure / restoration detection signal input to the first A / D input terminal T112 is A / D converted (S10), and A / D conversion is performed.
It is determined whether the D conversion result is equal to or higher than the power recovery level (S1
1). When the power recovery level is not reached, the process returns to step S5. When the power recovery detection signal is equal to or higher than the power recovery level, the input / output switchable terminal T113 is switched to the input (S12), the power recovery transition process including the timer restart is executed (S13), and the interval timer routine R1 is executed. It ends (S14).

【0047】次に、図7を用いて、低消費電力モードか
ら復帰する場合の割込み端子T111における割込みル
ーチンR2を説明する。マイコン11は、第1A/D入
力端子T112に入力される停復電検出信号をA/D変
換して(S21)、A/D変換結果が復電レベル以上であ
るか否かを判定する(S22)。停復電検出信号が復電レ
ベル以上であるときには、復電移行処理を実行して(S
32)、割込みルーチンR2を終了する(S33)。ステ
ップS22において、停復電検出信号が復電レベルに達
しないときには、入出力切替可能端子T113を低電圧
レベル出力に切り替え(S23)、第2A/D入力端子T
114に入力される非バックアップ電圧検出信号をA/
D変換する(S24)。
Next, the interrupt routine R2 at the interrupt terminal T111 when returning from the low power consumption mode will be described with reference to FIG. The microcomputer 11 performs A / D conversion on the power recovery / restoration detection signal input to the first A / D input terminal T112 (S21), and determines whether the A / D conversion result is equal to or higher than the power recovery level ( S22). When the power failure detection signal is above the power recovery level, the power recovery transition processing is executed (S
32), the interrupt routine R2 is ended (S33). When the power recovery / restoration detection signal does not reach the power recovery level in step S22, the input / output switchable terminal T113 is switched to the low voltage level output (S23), and the second A / D input terminal T
The non-backup voltage detection signal input to 114 is A /
D conversion is performed (S24).

【0048】A/D変換された非バックアップ電圧が十
分低いか否かを判定し(S25)、低い場合には、入力貫
通電流が生じない状態にあるので、入出力切替可能端子
T113を低電圧出力から入力に切り替え(S26)、低
消費電力モードに設定して復電監視状態に移行する。
It is determined whether or not the A / D converted non-backup voltage is sufficiently low (S25). If it is low, the input through current does not occur, so the input / output switchable terminal T113 is set to a low voltage. The output is switched to the input (S26), the low power consumption mode is set, and the power recovery monitoring state is set.

【0049】復電を監視する状態で割込み端子T111
に電圧の立上りがあると、低消費電力モードから通常の
状態への復帰を設定し(S27)、低消費電力モードへ
移行する(S28)。
Interrupt terminal T111 while monitoring power recovery
If the voltage rises at the point, the recovery from the low power consumption mode to the normal state is set (S27), and the mode shifts to the low power consumption mode (S28).

【0050】ステップS25で非バックアップ電圧が十
分低くない場合には、第1A/D入力端子T112に入
力される停復電検出信号をA/D変換し(S29)、A/
D変換結果が復電レベル以上であるかを判定する(S3
0)。復電レベルに達しないときには、ステップS24
に戻る。停復電検出信号が復電レベル以上であるときに
は、入出力切替可能端子T113を入力に切り替える
(S31)とともに、タイマ再開を含む復電移行処理を
実行して(S32)、割込みルーチンR2を終了する(S
33)。
If the non-backup voltage is not sufficiently low in step S25, the power failure / restoration detection signal input to the first A / D input terminal T112 is A / D converted (S29), and A / D conversion is performed.
It is determined whether the D conversion result is equal to or higher than the power recovery level (S3
0). If the power recovery level is not reached, step S24
Return to. When the power recovery detection signal is equal to or higher than the power recovery level, the input / output switchable terminal T113 is switched to the input (S31), the power recovery transition process including the timer restart is executed (S32), and the interrupt routine R2 ends. Do (S
33).

【0051】以上のように、本発明において、マイコン
が通常モードに戻った後にA/D変換機能により復電を
確認すればより確実である。
As described above, in the present invention, it is more certain to confirm the power recovery by the A / D conversion function after the microcomputer returns to the normal mode.

【0052】また、入力貫通電流値やその時間が問題と
ならない場合には、図1に示した停復電検出回路を備え
ても低消費電力での復電監視を行うことができる。さら
に、図3および図4に示すように、バックアップを行わ
ない電源の下降時間をあらかじめ実測等により一定値と
する方法も有効である。
When the input through current value and its time are not a problem, power recovery monitoring can be performed with low power consumption even if the power failure recovery circuit shown in FIG. 1 is provided. Furthermore, as shown in FIGS. 3 and 4, it is also effective to use a method in which the fall time of the power supply that does not perform backup is set to a constant value by actual measurement in advance.

【0053】[0053]

【発明の効果】本発明によれば、A/D変換機能を持っ
たマイコンを用い、バッテリーバックアップによる低消
費動作を行う機器において低コストでの停復電検出を行
うことができる。
According to the present invention, by using a microcomputer having an A / D conversion function, it is possible to detect power failure / restoration at low cost in a device that performs low power consumption operation by battery backup.

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

【図1】 本発明の第1の実施例にかかる停復電検出回
路を備えた電子機器の構成の概要を説明するブロック
図。
FIG. 1 is a block diagram illustrating an outline of a configuration of an electronic device including a power failure / restoration detection circuit according to a first embodiment of the present invention.

【図2】 C−MOS ICの入力貫通電流を説明する
図。
FIG. 2 is a diagram illustrating an input through current of a C-MOS IC.

【図3】 本発明の第2の実施例にかかる停復電検出回
路を備えた電子機器の構成の概要を説明するブロック
図。
FIG. 3 is a block diagram illustrating an outline of a configuration of an electronic device including a power failure / restoration detection circuit according to a second embodiment of the present invention.

【図4】 図3におけるマイコンのインターバルタイマ
ールーチンの処理を説明するフローチャート。
FIG. 4 is a flowchart illustrating processing of an interval timer routine of the microcomputer in FIG.

【図5】 本発明の第3の実施例にかかる停復電検出回
路を備えた電子機器の構成の概要を説明するブロック
図。
FIG. 5 is a block diagram illustrating an outline of a configuration of an electronic device including a power failure / restoration detection circuit according to a third embodiment of the present invention.

【図6】 図5におけるマイコンのインターバルタイマ
ールーチンの処理を説明するフローチャート。
FIG. 6 is a flowchart illustrating processing of an interval timer routine of the microcomputer shown in FIG.

【図7】 図5におけるマイコンの割込みルーチンの処
理を説明するフローチャート。
7 is a flowchart illustrating processing of an interrupt routine of the microcomputer shown in FIG.

【図8】 従来のヒステリシスコンパレータによる停復
電検出回路を備えた電子機器の構成を説明するブロック
図。
FIG. 8 is a block diagram illustrating a configuration of an electronic device including a conventional power restoration / recovery detection circuit using a hysteresis comparator.

【図9】 従来のマイコンを用いた停復電検出機能を備
えた電子機器の構成を説明するブロック図。
FIG. 9 is a block diagram illustrating the configuration of an electronic device having a power failure and power recovery detection function using a conventional microcomputer.

【図10】 図9におけるマイコンのインターバルタイ
マールーチンの処理を説明するフローチャート。
10 is a flowchart illustrating processing of an interval timer routine of the microcomputer shown in FIG.

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

1 停復電圧検出回路 11 マイコン 12 停復電圧検出回路 13 制限抵抗 14 非バックアップ電圧検出回路 15 ヒステリシスコンパレータ 17 基準電圧源 3 電源回路 31 変圧器 32 整流器 33 平滑コンデンサ 34 定電圧回路 35 逆流阻止ダイオード 5 バックアップ電源 51 電力貯蔵手段 52 逆流阻止ダイオード 53 逆流阻止ダイオード 7 電子機器本体 T111 割込み端子 T112 第1A/D変換用入力端子 T113 入出力切替可能端子 T114 第2A/D変換用入力端子 1 Restoration voltage detection circuit 11 Microcomputer 12 Restoration voltage detection circuit 13 Limiting resistance 14 Non-backup voltage detection circuit 15 Hysteresis comparator 17 Reference voltage source 3 power supply circuit 31 transformer 32 rectifier 33 Smoothing capacitor 34 constant voltage circuit 35 Backflow prevention diode 5 Backup power supply 51 power storage means 52 Backflow prevention diode 53 Backflow prevention diode 7 Electronic device body T111 interrupt terminal T112 1st A / D conversion input terminal T113 I / O switchable terminal T114 Second input terminal for A / D conversion

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 電子機器およびマイコンに電圧を供給す
る電源回路と、停電時にマイコンに電圧を供給するバッ
クアップ電源と、A/D変換用入力端子と割込み端子と
を有するマイコンからなる停復電検出回路とを備えた停
復電検出機能を有する電子機器において、前記マイコン
が、電源電圧の停電と復旧を監視する停復電監視機能
と、マイコンの動作モードを通常動作モードと低消費電
力モードとの間で移行させる動作モード変更機能と、電
子機器の動作を制御する機能とを有し、前記電源回路が
停電であるか通電であるかを表わす停復電検出信号を前
記A/D変換用入力端子に供給し、前記電源回路の出力
電圧を前記割込み端子に供給し、停復電検出信号が停電
を示したときにマイコンの動作モードをバックアップ電
源からの電力により動作する低消費電力モードに移行さ
せ、割込み端子に電源の復旧を検出したときにマイコン
の動作モードを通常動作モードに復帰させることを特徴
とする停復電検出機能を有する電子機器。
1. A power recovery circuit comprising a power supply circuit for supplying a voltage to an electronic device and a microcomputer, a backup power supply for supplying a voltage to the microcomputer in the event of a power failure, and a microcomputer having an A / D conversion input terminal and an interrupt terminal. In an electronic device having a power failure and power recovery detection function including a circuit, the microcomputer has a power failure and power recovery monitoring function for monitoring power failure and restoration of the power supply voltage, and the operation modes of the microcomputer are a normal operation mode and a low power consumption mode. And a function to change the operation mode of the electronic device and a function to control the operation of the electronic device, and a power failure recovery signal indicating whether the power supply circuit is in a power failure or a current is used for the A / D conversion. Supply to the input terminal, supply the output voltage of the power supply circuit to the interrupt terminal, and operate the microcomputer operation mode by the power from the backup power supply when the power failure / restoration detection signal indicates a power failure. That is shifted to the low power consumption mode, an electronic device having a Tomafuku electrostatic detection, characterized in that to return the operation mode of the microcomputer to the normal operation mode upon detection of a restoration of power supply to the interrupt terminal.
【請求項2】 上記マイコンが、端子の状態を出力状態
または入力状態に変更可能な入出力切替可能端子を有
し、上記電源回路の出力電圧を制限抵抗を介して上記割
込み端子と前記入出力切替可能端子に供給し、上記停復
電検出信号が停電を示したときに前記入出力切替可能端
子を低電圧を出力する出力状態とし、その後入出力切替
可能端子を入力状態として復電監視を行なうことを特徴
とする請求項1に記載の停復電検出機能を有する電子機
器。
2. The microcomputer has an input / output switchable terminal capable of changing a terminal state to an output state or an input state, and outputs the output voltage of the power supply circuit to the interrupt terminal and the input / output through a limiting resistor. Supply the power to the switchable terminal and put the input / output switchable terminal in the output state to output a low voltage when the above-mentioned power failure / restoration detection signal indicates a power failure. The electronic device having the power failure / restoration detection function according to claim 1.
【請求項3】 上記マイコンが、端子の状態を出力状態
または入力状態に変更可能な入出力切替可能端子を有
し、上記電源回路の出力電圧を制限抵抗を介して上記割
込み端子と前記入出力切替可能端子に供給し、上記停復
電検出信号が停電を示したときに前記入出力切替可能端
子を低電圧を出力する出力状態とし、前記電源回路の出
力電圧が前記割込み端子に入力貫通電流を生じない電圧
にまで低下したときに、前記入出力切替可能端子を出力
状態から入力状態に変更して復電監視を行なうことを特
徴とする請求項1に記載の停復電検出機能を有する電子
機器。
3. The microcomputer has an input / output switchable terminal capable of changing a terminal state to an output state or an input state, and outputs the output voltage of the power supply circuit to the interrupt terminal and the input / output through a limiting resistor. The output voltage of the power supply circuit is input to the interrupt terminal by supplying the switchable terminal to the output state in which the input / output switchable terminal outputs a low voltage when the power failure / restoration detection signal indicates a power failure. The power failure recovery detection function according to claim 1, wherein the input / output switchable terminal is changed from an output state to an input state to perform power recovery monitoring when the voltage is reduced to a voltage that does not cause a power failure. Electronics.
【請求項4】 上記マイコンが、端子の状態を出力状態
または入力状態に変更可能な入出力切替可能端子と、前
記A/D変換用入力端子と異なる第2のA/D変換用入力
端子を有し、上記停復電検出回路が、非バックアップ電
圧検出信号を出力する上記電源回路の出力に接続された
非バックアップ電圧検出回路を備え、前記電源回路の出
力電圧を制限抵抗を介して前記割込み端子と入出力切替
可能端子に供給し、前記非バックアップ電圧検出信号を
第2のA/D変換用入力端子に供給し、上記停復電検出
信号が停電を示したときに前記入出力切替可能端子を低
電圧を出力する出力状態とし、前記電源回路の出力電圧
が割込み端子に入力貫通電流を生じない電圧にまで低下
したことを前記第2のA/D変換用入力端子の入力によ
り検出したときに、前記入出力切替可能端子を出力状態
から入力状態に変更して復電監視を行なうことを特徴と
する請求項1に記載の停復電検出機能を有する電子機
器。
4. The input / output switchable terminal capable of changing a terminal state to an output state or an input state, and a second A / D conversion input terminal different from the A / D conversion input terminal. The power recovery circuit includes a non-backup voltage detection circuit connected to the output of the power supply circuit that outputs a non-backup voltage detection signal, and the output voltage of the power supply circuit is interrupted via a limiting resistor. Input to the terminal and input / output switchable terminal, the non-backup voltage detection signal is supplied to the second A / D conversion input terminal, and the input / output can be switched when the power failure / restoration detection signal indicates a power failure. The terminal is set to an output state for outputting a low voltage, and it is detected by the input of the second A / D conversion input terminal that the output voltage of the power supply circuit has dropped to a voltage at which an input through current does not occur at the interrupt terminal. Sometimes before The electronic device having a power failure / recovery detection function according to claim 1, wherein a recovery output monitoring is performed by changing a writing output switchable terminal from an output state to an input state.
【請求項5】 前記低消費電力動作から復帰する割込み
端子が入出力切替可能端子のとき、停電後のバックアッ
プを行なわない電源電圧が下降途中にバックアップ電源
電圧を復帰する端子を出力端子に切り替えて低電圧を出
力し、バックアップを行なわない電源電圧が十分下がっ
た後にバックアップ電源電圧を復帰する端子を入力端子
に切り替えて復電検出の通常動作に復帰を行うことを特
徴とする請求項2ないし請求項4のいずれか1項に記載
の電子機器。
5. When the interrupt terminal for recovering from the low power consumption operation is an input / output switchable terminal, a terminal for recovering the backup power supply voltage is switched to an output terminal while the power supply voltage not backed up after a power failure is falling. 3. A low voltage is output, and after the power supply voltage for which backup is not performed has dropped sufficiently, the terminal for restoring the backup power supply voltage is switched to the input terminal to restore normal operation for power recovery detection. Item 5. The electronic device according to any one of items 4.
JP2002008418A 2002-01-17 2002-01-17 Electronic device having power failure detection function Expired - Fee Related JP3926631B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002008418A JP3926631B2 (en) 2002-01-17 2002-01-17 Electronic device having power failure detection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002008418A JP3926631B2 (en) 2002-01-17 2002-01-17 Electronic device having power failure detection function

Publications (2)

Publication Number Publication Date
JP2003215177A true JP2003215177A (en) 2003-07-30
JP3926631B2 JP3926631B2 (en) 2007-06-06

Family

ID=27646684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002008418A Expired - Fee Related JP3926631B2 (en) 2002-01-17 2002-01-17 Electronic device having power failure detection function

Country Status (1)

Country Link
JP (1) JP3926631B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011033569A (en) * 2009-08-05 2011-02-17 Mitsubishi Electric Corp Device for switchboard
JP2012005160A (en) * 2010-06-14 2012-01-05 Hitachi Ltd Charge/discharge circuit and built-in controller
JP2021067967A (en) * 2019-10-17 2021-04-30 大日本印刷株式会社 Content distribution device, computer program, content distribution method, and content distribution system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011033569A (en) * 2009-08-05 2011-02-17 Mitsubishi Electric Corp Device for switchboard
JP2012005160A (en) * 2010-06-14 2012-01-05 Hitachi Ltd Charge/discharge circuit and built-in controller
JP2021067967A (en) * 2019-10-17 2021-04-30 大日本印刷株式会社 Content distribution device, computer program, content distribution method, and content distribution system

Also Published As

Publication number Publication date
JP3926631B2 (en) 2007-06-06

Similar Documents

Publication Publication Date Title
EP2511791B1 (en) Dual input RTC supply generation with replica power path and autonomous mode of operation from the system supply
JPH0927836A (en) Cordless telephone set with power failure detection function
JP5390981B2 (en) Power backup device
JP2008022641A (en) Backup power-supply apparatus
JP2009303334A (en) Charge control apparatus and method of controlling the same
JP2007312544A (en) Backup power-supply device
KR20130052359A (en) Control ic having auto recovery circuit, auto recovery circuit of control ic, power converter system and method for auto-recovery in control ic
JP3926631B2 (en) Electronic device having power failure detection function
JP5067816B2 (en) Portable electronic device and control method thereof
JP2008286673A (en) Power failure detection circuit, power failure detection method, and power supply system
JPS62143153A (en) Controller for central processing unit
JP2007041824A (en) Resetting circuit for electronic control unit
JP3090031B2 (en) DC / DC converter
JP3926634B2 (en) Power failure detection device
JP2002199619A (en) Uninterruptible power supply device
JP4311915B2 (en) DC-DC converter with voltage detection function
JP2000292841A (en) Camera
JP2003005872A (en) Operation processor
JPH06133471A (en) Battery controlling method
JP3716863B2 (en) Uninterruptible power system
JP2008261663A (en) Electronic watthour meter
JP2007028744A (en) Power supply circuit for portable devices
JP5445205B2 (en) Power control circuit for portable device and power control method for portable device
JP6611200B2 (en) COMMUNICATION DEVICE AND COMMUNICATION DEVICE POWER SUPPLY CAPACITOR ABNORMALITY DETECTING METHOD
JP2007027960A (en) Signal variation timing delay circuit, sequence signal output circuit and power failure supervisory circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040604

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060925

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061003

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061201

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070227

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070228

R150 Certificate of patent or registration of utility model

Ref document number: 3926631

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130309

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130309

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140309

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees