JPH0533650U - Microcomputer power supply circuit - Google Patents

Microcomputer power supply circuit

Info

Publication number
JPH0533650U
JPH0533650U JP7914491U JP7914491U JPH0533650U JP H0533650 U JPH0533650 U JP H0533650U JP 7914491 U JP7914491 U JP 7914491U JP 7914491 U JP7914491 U JP 7914491U JP H0533650 U JPH0533650 U JP H0533650U
Authority
JP
Japan
Prior art keywords
power supply
microcomputer
reset
circuit
backup power
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
JP7914491U
Other languages
Japanese (ja)
Other versions
JP2602824Y2 (en
Inventor
潤一郎 田渕
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP1991079144U priority Critical patent/JP2602824Y2/en
Publication of JPH0533650U publication Critical patent/JPH0533650U/en
Application granted granted Critical
Publication of JP2602824Y2 publication Critical patent/JP2602824Y2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 本考案は、マイコンのリセット回路を簡単化
することができ、マイコンのバックアップ電源を有効に
使用することを目的とする。 【構成】 本考案は、メイン電源4とバックアップ電源
3とを切り替える切替回路2からなるマイコン1の電源
回路において、バックアップ電源3の装着時にメイン電
源4を装着することによって、端子1bを介してマイコ
ン1をリセットする。また、マイコン1の端子fからの
信号により、マイコン1は端子1bを介してリセットさ
れる。
(57) [Abstract] [Purpose] The present invention is intended to simplify a reset circuit of a microcomputer and to effectively use a backup power supply of the microcomputer. According to the present invention, in a power supply circuit of a microcomputer 1 including a switching circuit 2 for switching between a main power supply 4 and a backup power supply 3, by mounting the main power supply 4 when the backup power supply 3 is mounted, the microcomputer is connected via a terminal 1b. Reset 1 In addition, the microcomputer 1 is reset via the terminal 1b by a signal from the terminal f of the microcomputer 1.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、2種類の電圧に応じて、高周波のメインクロックと低周波のサブク ロックのいずれか一方で動作するマイクロコンピュータの電源回路に関する。 The present invention relates to a power supply circuit for a microcomputer that operates with either a high-frequency main clock or a low-frequency sub clock according to two types of voltages.

【0002】[0002]

【従来の技術】[Prior Art]

従来ビデオカメラ等の携帯型電子機器には、実開昭61−169443号公報 (H02J 9/06)に示すように、バッテリー等のメイン電源が非装着状態 である場合にも、現在の時刻の保存を可能とするタイマ駆動用にリチウム電池等 のバックアップ電源が不可欠である。 Conventional portable electronic devices such as video cameras have the current time as shown in Japanese Utility Model Publication No. 61-169443 (H02J 9/06) even when the main power source such as a battery is not attached. A backup power source such as a lithium battery is indispensable for driving the timer that enables storage.

【0003】 しかしながら、上記従来技術では、バックアップ電源による電力供給により一 時的に高周波のメインクロックにて、マイクロコンピュータ(以下マイコンとい う)を動作させる場合、バックアップ電源の電力消費が著しく多くなる。However, in the above-mentioned conventional technology, when a microcomputer (hereinafter referred to as a microcomputer) is temporarily operated with a high-frequency main clock by power supply from a backup power supply, the power consumption of the backup power supply significantly increases.

【0004】 そこで、バックアップ電源は本来、リチウム電池のように小容量であるため、 上述の電力消費が大きな問題となる。また、電源電圧が低い状態で高周波のクロ ックに動作させることにより、マイコンの暴走の恐れも生じる。Therefore, since the backup power source originally has a small capacity like a lithium battery, the above-mentioned power consumption becomes a serious problem. In addition, operating a high-frequency clock with a low power supply voltage may cause the microcomputer to run out of control.

【0005】 そこで、この問題を解決するために、本出願人は実願平2−122808号( H02J 9/06)号により先に提案している。Therefore, in order to solve this problem, the present applicant has previously proposed in Japanese Patent Application No. 2-122808 (H02J 9/06).

【0006】 これは、図3に示す構成である。1は端子1a、1b、1cに印加される電源 電圧に応じて、周波数の異なる2種類のクロックの一方にて動作するマイコンで あり、2は電源を切り替える切替回路である。This is the configuration shown in FIG. Reference numeral 1 is a microcomputer that operates with one of two types of clocks having different frequencies according to the power supply voltage applied to the terminals 1a, 1b, and 1c, and 2 is a switching circuit that switches the power supply.

【0007】 3はリチウム電池等のバックアップ電源、4はバッテリー等のメイン電源であ る。また、5はマイコンをリセットする第1リセット回路、6は同様にマイコン をリセットする第2リセット回路である。Reference numeral 3 is a backup power source such as a lithium battery, and 4 is a main power source such as a battery. Further, 5 is a first reset circuit for resetting the microcomputer, and 6 is a second reset circuit for similarly resetting the microcomputer.

【0008】 11は論理積回路、12は時定数を持たすためのコンデンサである。Reference numeral 11 is an AND circuit, and 12 is a capacitor for having a time constant.

【0009】 次にこの図3の回路動作について説明する。Next, the circuit operation of FIG. 3 will be described.

【0010】 マイコン1は印加される電源電圧がメイン電源4のときに、高い周波数(例え ば12MHz)のメインクロックにて動作して、パワーオンのときに様々なシス テムを実行する。When the power supply voltage applied is the main power supply 4, the microcomputer 1 operates with a main clock having a high frequency (for example, 12 MHz), and executes various systems when the power is on.

【0011】 また、電源電圧がバックアップ電源3のときには、比較的低い周波数(例えば 32KHz)のサブクロックにて動作し、パワーオフのときのタイマー動作をす る。尚、マイコン1の動作保証電圧は2.5〜5Vに設定されている。When the power supply voltage is the backup power supply 3, the sub-clock operates at a relatively low frequency (for example, 32 KHz), and the timer operates when the power is off. The operation guarantee voltage of the microcomputer 1 is set to 2.5 to 5V.

【0012】 マイコン1の端子1aは、切替回路2の固定接点に結合される。切替回路2の 一方の可動接点2aはバックアップ電源3と第2リセット回路6とを入力とする 論理積回路11が結合され、また、他方の可動接点2bにはメイン電源4の出力 が結合される。The terminal 1 a of the microcomputer 1 is coupled to the fixed contact of the switching circuit 2. One movable contact 2a of the switching circuit 2 is coupled with a logical product circuit 11 having the backup power supply 3 and the second reset circuit 6 as inputs, and the other movable contact 2b is coupled with the output of the main power supply 4. ..

【0013】 また、メイン電源4は第1リセット回路5に接続され、この第1リセット回路 5の出力により、切替回路2の切替制御、及びマイコン1の制御端子1cを介し て制御を行う。The main power supply 4 is connected to a first reset circuit 5, and the output of the first reset circuit 5 controls the switching of the switching circuit 2 and the control terminal 1 c of the microcomputer 1.

【0014】 ここで、バックアップ電源3は例えば3Vのリチウム電池、メイン電源4は例 えば5Vのバッテリーとする。Here, the backup power supply 3 is, for example, a 3V lithium battery, and the main power supply 4 is, for example, a 5V battery.

【0015】 そして、第1リセット回路5は入力電圧が4.3V以上であればハイレベル、 4.3V未満であればローレベルを出力するもので、切替回路2は第1リセット 回路5の出力がローレベルであれば、一方の可動接点2a側に切り替わって、端 子1aにマイコン1の電源電圧VDDとしてバックアップ電源3の電圧3Vを印 加し、逆にハイレベルであれば、他方の可動接点2b側に切り替わって、端子1 aにメイン電源3の電圧5Vを印加する。The first reset circuit 5 outputs a high level when the input voltage is 4.3 V or more, and outputs a low level when the input voltage is less than 4.3 V. The switching circuit 2 outputs the output of the first reset circuit 5. If is low level, it is switched to one movable contact 2a side, and the voltage 3V of the backup power supply 3 is applied to the terminal 1a as the power supply voltage VDD of the microcomputer 1. Conversely, if it is high level, the other movable contact is moved. Switching to the contact 2b side, the voltage 5V of the main power supply 3 is applied to the terminal 1a.

【0016】 また、切替回路2の固定接点には第2リセット回路6が接続される。A second reset circuit 6 is connected to the fixed contact of the switching circuit 2.

【0017】 そして、第2リセット回路6は切替回路2の出力電圧が2.5V以上であれば ハイレベル、2.5V未満であればローレベルを出力するもので、この第2リセ ット回路6の出力はマイコン1のリセット端子1bに入力されて、リセット信号 として働く。尚、マイコン1は第1リセット回路5の出力がローレベルの時にリ セットを維持する。The second reset circuit 6 outputs a high level when the output voltage of the switching circuit 2 is 2.5 V or more, and outputs a low level when the output voltage is less than 2.5 V. This second reset circuit 6 The output of 6 is input to the reset terminal 1b of the microcomputer 1 and serves as a reset signal. The microcomputer 1 maintains the reset when the output of the first reset circuit 5 is at the low level.

【0018】 さらに、第2リセット回路6の出力は先ほど述べた論理積回路11にも入力さ れ、バックアップ電源3の出力と論理演算が行われ、マイコン1をリセット制御 する。Further, the output of the second reset circuit 6 is also input to the AND circuit 11 described above, the logical operation is performed with the output of the backup power supply 3, and the microcomputer 1 is reset and controlled.

【0019】 図3において、メイン電源4及びバックアップ電源3が共に装着されていない 時に、第2リセット回路6の出力はローレベルとなり、また、切替回路2は可動 接点2a側に切り替わる。この状態でバックアップ電源3だけを装着すると、論 理積回路11の一方の入力11bはハイレベルとなるが、第2リセット回路6の 出力はローレベルであるために論理積回路11の出力もローレベルとなる。In FIG. 3, when the main power supply 4 and the backup power supply 3 are not mounted, the output of the second reset circuit 6 becomes low level, and the switching circuit 2 switches to the movable contact 2a side. If only the backup power supply 3 is installed in this state, one input 11b of the logical product circuit 11 becomes high level, but the output of the second reset circuit 6 is low level, so the output of the logical product circuit 11 also becomes low level. It becomes a level.

【0020】 そして、切替回路2が可動接点2a側にあっても、電源電圧VDDは0Vとな りマイコン1には電源電圧は印加されない。また、第2リセットの回路6の出力 がローレベルであるため、マイコン1はリセット状態を維持する。この様に、メ イン電源4を装着しない状態で、バックアップ電源3のみを装着しても、マイコ ン1は動作せず、バックアップ電源3の電力消費は生じない。Even if the switching circuit 2 is on the movable contact 2a side, the power supply voltage VDD is 0 V, and the power supply voltage is not applied to the microcomputer 1. Moreover, since the output of the second reset circuit 6 is at a low level, the microcomputer 1 maintains the reset state. As described above, even if only the backup power supply 3 is mounted without mounting the main power supply 4, the microcomputer 1 does not operate, and the power consumption of the backup power supply 3 does not occur.

【0021】 次に、バックアップ電源3を装着した状態で、メイン電源4を装着するか、あ るいはメイン電源4を装着した後にバックアップ電源3を装着すると、第1リセ ット回路5の出力はハイレベルに移行し、切替回路2は可動接点2b側に切り替 わる。これに伴い、端子1aには5Vが印加されると共に、第2リセット回路6 の出力はハイレベルに移行して、マイコン1のリセットは解除され、12MHz のメインクロックで動作を開始する。Next, when the main power supply 4 is attached while the backup power supply 3 is attached, or when the backup power supply 3 is attached after the main power supply 4 is attached, the output of the first reset circuit 5 becomes The level shifts to the high level, and the switching circuit 2 switches to the movable contact 2b side. Along with this, 5 V is applied to the terminal 1a, the output of the second reset circuit 6 shifts to the high level, the reset of the microcomputer 1 is released, and the operation is started by the main clock of 12 MHz.

【0022】 この後、メイン電源4を取り外すと、第1リセット回路5の出力はローレベル に移行して、切替回路2は可動接点2a側に切り替わり、端子1aには3Vが印 加され、この時、第2リセット回路6の出力はハイレベルを維持するので、マイ コン1は32KHzのサブクロックでタイマー動作を実行する。After that, when the main power supply 4 is removed, the output of the first reset circuit 5 shifts to the low level, the switching circuit 2 switches to the movable contact 2a side, and 3V is applied to the terminal 1a. At this time, since the output of the second reset circuit 6 maintains the high level, the microcomputer 1 executes the timer operation with the sub clock of 32 KHz.

【0023】 図4は上述のマイコンの駆動タイミングを図示したもので、メイン電源4の装 着時点から時間t2後にメイン電源4のみを取り外すと、この時間t2ではメイ ンクロックにて動作し、この後、第1リセット回路5がローレベルに移行した時 に、このレベル移行を端子1cを介してマイコン1が検知し、メインクロックか らサブクロックにソフトウェアにてクロックを切り替え、以後、32KHzのサ ブクロックで動作する。FIG. 4 shows the driving timing of the above-mentioned microcomputer. If only the main power supply 4 is removed after time t2 from the time when the main power supply 4 is installed, the main clock operates at this time t2. After that, when the first reset circuit 5 shifts to the low level, this level shift is detected by the microcomputer 1 via the terminal 1c, and the clock is switched from the main clock to the sub clock by software. It works with Buklock.

【0024】 このクロック切り替えは、マイコン1への印加電圧が5Vからメインクロック の動作保証電圧に低下するまでの間に行う必要があるが、コンデンサ12を端子 1aとアース間に挿入することにより印加電圧の保持が可能となり、VDDの5 Vから3Vへの降下が緩やかになり、この保持期間を数msecに設定すること により、この間にクロックは確実にサブクロックに切り替わる。This clock switching needs to be performed before the voltage applied to the microcomputer 1 drops from 5 V to the operation guarantee voltage of the main clock, but it is applied by inserting the capacitor 12 between the terminal 1a and the ground. The voltage can be held, the drop of VDD from 5 V to 3 V becomes gentle, and by setting the holding period to several msec, the clock is reliably switched to the sub clock during this period.

【0025】 よって、バックアップ電源による高周波のメインクロックによるマイコン駆動 が阻止され、バックアップ電源の大きな電力消費及びマイコン暴走を抑えること ができ、実用的価値が高い。Therefore, the driving of the microcomputer by the high-frequency main clock by the backup power supply is prevented, the large power consumption of the backup power supply and the microcomputer runaway can be suppressed, and the practical value is high.

【0026】[0026]

【考案が解決しようとする課題】 しかしながら、上記の従来例の場合、メイン電源4がオフされてから、バック アップ電源3にマイコンの電源端子の電圧VDDが切り替わる極めて短時間にマ イコン1のクロックを高速クロック(12MHz)から低速クロック(32KH z)に切り替える必要があり、そのためにメイン電源がオフされたことを検出す る第1リセット回路5が必要である。However, in the case of the above-mentioned conventional example, the clock of the microcomputer 1 is switched in an extremely short time after the main power supply 4 is turned off and the voltage VDD of the power supply terminal of the microcomputer is switched to the backup power supply 3. Must be switched from the high speed clock (12 MHz) to the low speed clock (32 KHz), and therefore the first reset circuit 5 for detecting that the main power supply is turned off is required.

【0027】 また、バックアップ電源3の電圧が低下したことを検出するための第2リセッ ト回路6も必要であり、リセット回路が大規模化されてしまう。Further, the second reset circuit 6 for detecting that the voltage of the backup power supply 3 has dropped is also necessary, and the reset circuit becomes large-scaled.

【0028】 しかも、電源端子1aの電源電圧VDDが第1リセット回路5のリセット電圧 (4.5V)以下を検出してから第2リセット回路6のリセット電圧(2.5V )を検出するまでにマイコン1のクロックを低速クロック(32KHz)に切り 替える必要があり、もしバックアップ電源3に切り替わってからも高速クロック (12MHz)でマイコン1がしばらく動作を続けた場合か、またはバックアッ プ電源3のインピーダンスが高い場合では、電源端子1aの電源電圧VDDは第 2リセット回路6のリセット電圧(2.5V)以下になり、第2リセット回路6 によりマイコン1がリセットされてしまうことになる。Moreover, from when the power supply voltage VDD of the power supply terminal 1a is detected to be equal to or lower than the reset voltage (4.5V) of the first reset circuit 5 until the reset voltage (2.5V) of the second reset circuit 6 is detected. It is necessary to switch the clock of the microcomputer 1 to the low-speed clock (32 KHz), and if the microcomputer 1 continues to operate at the high-speed clock (12 MHz) for a while after switching to the backup power supply 3, or if the impedance of the backup power supply 3 Is high, the power supply voltage VDD of the power supply terminal 1a becomes equal to or lower than the reset voltage (2.5V) of the second reset circuit 6, and the second reset circuit 6 resets the microcomputer 1.

【0029】 さらに、バックアップ電源3の電圧が第2リセット回路6のリセット電圧(2 .5V)以下になると、マイコン1にリセットがかかってしまうため、マイコン 1が2.0V又は1.5Vまで低速動作できた場合でも、2.5Vになった時点 で、時計動作を停止するために、バックアップ電源3を十分に使用できない。Further, when the voltage of the backup power supply 3 becomes equal to or lower than the reset voltage (2.5V) of the second reset circuit 6, the microcomputer 1 is reset, so that the microcomputer 1 operates at a low speed of 2.0V or 1.5V. Even if it can operate, the backup power supply 3 cannot be used sufficiently because it stops the clock operation when the voltage reaches 2.5V.

【0030】 本考案は、上記の課題を解決するもので、簡単な回路構成でマイコンのリセッ ト回路を提供することができる。The present invention solves the above problems, and can provide a reset circuit of a microcomputer with a simple circuit configuration.

【0031】[0031]

【課題を解決するための手段】[Means for Solving the Problems]

本考案は、第1電源と、該第1電源の電圧値V1よりも低いV2を有する第2 電源と、少なくとも電圧値V1を印加時にメインクロックで動作するマイクロコ ンピュータとからなるマイクロコンピュータの電源回路において、該マイクロコ ンピュータは少なくともマイクロコンピュータ自身の出力によってリセット制御 を行うことを特徴とするマイクロコンピュータの電源回路に関するものである。 The present invention provides a power supply for a microcomputer including a first power supply, a second power supply having a voltage V2 lower than the voltage V1 of the first power supply, and a microcomputer that operates at least with a main clock when the voltage V1 is applied. In the circuit, the microcomputer relates to a power supply circuit of a microcomputer, which performs reset control at least by an output of the microcomputer itself.

【0032】[0032]

【作用】[Action]

本考案は、マイコンのリセット回路を簡単化することができ、マイコンのバッ クアップ電源を有効に使用することが可能である。 The present invention can simplify the reset circuit of the microcomputer and can effectively use the backup power supply of the microcomputer.

【0033】[0033]

【実施例】【Example】

図1は本考案の一実施例のマイコンの電源回路である。尚、従来例と同一部分 には同一符号を付け説明は省略する。 FIG. 1 shows a power supply circuit of a microcomputer according to an embodiment of the present invention. The same parts as those in the conventional example are designated by the same reference numerals and the description thereof will be omitted.

【0034】 11は2つの入力の論理積を出力する論理積回路である。A logical product circuit 11 outputs a logical product of two inputs.

【0035】 同図を参照しながら動作を説明する。まず、バックアップ電源3及びメイン電 源4がオフの場合、若しくは外れている場合、マイコン1の端子1bにはローレ ベルが入力される。The operation will be described with reference to FIG. First, when the backup power supply 3 and the main power supply 4 are off or disconnected, a low level is input to the terminal 1b of the microcomputer 1.

【0036】 この場合、通常のマイコン1は出力がハイインピーダンスになることが多く、 端子1e及び1fは抵抗R3及びR2を接地してプルダウンしておく。In this case, the output of the normal microcomputer 1 is often high impedance, and the terminals 1e and 1f have the resistors R3 and R2 grounded and pulled down.

【0037】 電源電圧VDDが0Vのため、端子1e及び1fはローレベルである。Since the power supply voltage VDD is 0V, the terminals 1e and 1f are at low level.

【0038】 図2は夫々の状態のときの各部の波形を示す図である。FIG. 2 is a diagram showing the waveform of each part in each state.

【0039】 状態Aはバックアップ電源3のリチウム電池のみ装着した場合であり、前述の 様に端子1eはローレベルのため、バックアップ電源3の電圧の出力は論理積回 路11によって、切替回路2の一方の可動接点2aには出力されない。The state A is a case where only the lithium battery of the backup power supply 3 is installed. Since the terminal 1e is at the low level as described above, the voltage output of the backup power supply 3 is output by the AND circuit 11 to the switching circuit 2. It is not output to one movable contact 2a.

【0040】 状態Bはバックアップ電源3のリチウム電池及びメイン電源4のバッテリーを 装着した場合であり、電源電圧VDDは5Vとなる。また、電源電圧VDDが5 Vになって、コンデンサC1に充電され、点hはハイレベルとなるために、ダイ オードD3を介してリセットが解除され、マイコン1のプログラムが始まる。State B is a case where the lithium battery of the backup power source 3 and the battery of the main power source 4 are mounted, and the power source voltage VDD is 5V. Further, since the power supply voltage VDD becomes 5 V and the capacitor C1 is charged, and the point h becomes high level, the reset is released via the diode D3 and the program of the microcomputer 1 starts.

【0041】 そこで、バックアップ電源3が装着されているかどうかをマイコン1の端子1 gよりマイコン1が検出し、バックアップ電源3が装着されていれば、マイコン 1のタイマーはクリアしない。Therefore, the microcomputer 1 detects from the terminal 1g of the microcomputer 1 whether or not the backup power supply 3 is installed, and if the backup power supply 3 is installed, the timer of the microcomputer 1 is not cleared.

【0042】 但し、図示していないが時計として異常なデータであれば、パワーオン前にマ イコン1が暴走状態であったと判断して、時計機構をリセットする。However, although not shown, if the data is abnormal as a timepiece, it is determined that the microcomputer 1 was in a runaway state before power-on, and the timepiece mechanism is reset.

【0043】 状態Cはバックアップ電源回路3のリチウム電池が装着した状態であり、メイ ン電源4が外された場合であり、端子1e、1fはハイレベルを出力し続ける。 これによりマイコン1はリセットされないために、バックアップ電源3のリチウ ム電池の電圧がマイコン1の動作不能電圧以下に低下するまで、時計機構は継続 動作する。The state C is a state in which the lithium battery of the backup power supply circuit 3 is attached and the main power supply 4 is removed, and the terminals 1e and 1f continue to output a high level. As a result, since the microcomputer 1 is not reset, the timepiece mechanism continues to operate until the voltage of the lithium battery of the backup power source 3 drops below the inoperable voltage of the microcomputer 1.

【0044】 状態Dはバックアップ電源3が装着された状態で、メイン電源4を装着した場 合であり、メイン電源4が装着されたことをマイコン1の端子1dからマイコン 1が検出し、端子1fからローレベルを出力する。State D is a state in which the backup power source 3 is attached and the main power source 4 is attached. When the main power source 4 is attached, the microcomputer 1 detects from the terminal 1d of the microcomputer 1 and the terminal 1f Outputs a low level.

【0045】 この信号はダイオードD2を通して、マイコン1のリセット端子1bに入力さ れ、マイコン1をリセットする(以下セルフリセットという)。このセルフリセ ットにより、端子1e、1fはハイインピーダンスになるために抵抗R2のプル ダウンによりローレベルとなる。This signal is input to the reset terminal 1b of the microcomputer 1 through the diode D2 and resets the microcomputer 1 (hereinafter referred to as self reset). Due to this self-reset, the terminals 1e and 1f become high impedance, so that the resistor R2 is pulled down to the low level.

【0046】 そして、抵抗R1、ダイオードD1、コンデンサC1とからなるフィルタを通 過した5Vにより、しばらくすると点hがハイレベルとなるためにリセット解除 され、マイコン1のプログラムが始まる。Then, due to 5V passing through the filter composed of the resistor R1, the diode D1, and the capacitor C1, the point h becomes high level after a while, so that the reset is released and the program of the microcomputer 1 is started.

【0047】 この処理によって、端子1e、1fはハイレベルを出力する。By this processing, the terminals 1e and 1f output a high level.

【0048】 状態Eはバックアップ電源3がオフ若しくは外された後にメイン電源4がオフ 若しくは外された場合であり、電源電圧VDDは0Vになるために、端子1e、 1fはローレベルを出力する。従って、マイコン1はリセット状態となる。The state E is a case where the main power supply 4 is turned off or removed after the backup power supply 3 is turned off or removed. Since the power supply voltage VDD becomes 0 V, the terminals 1e and 1f output a low level. Therefore, the microcomputer 1 is in the reset state.

【0049】 状態Fは状態Eでメイン電源4が装着された場合であり、装着される前はリセ ット状態であるために、端子1e、1fはローレベルを出力しており、前記フィ ルタによりメイン電源装着後しばらくしてリセット解除(つまり点hがハイレベ ル)となり、プログラムが始まる。The state F is a case where the main power source 4 is attached in the state E. Since the main power source 4 is in the reset state before being attached, the terminals 1e and 1f output a low level. Due to this, the reset is released (that is, point h is at high level) some time after the main power supply is installed, and the program starts.

【0050】 以上説明したように、メイン電源4が装着されたとき、それまでバックアップ 電源3が装着されているいないに係わらず、マイコン1をリセットする。As described above, when the main power supply 4 is attached, the microcomputer 1 is reset regardless of whether the backup power supply 3 has been attached until then.

【0051】 特にバックアップ電源3が装着された状態でメイン電源4を装着すると、マイ コン1は端子から出力した信号により、セルフリセットする。Especially when the main power supply 4 is attached with the backup power supply 3 attached, the microcomputer 1 is self-reset by the signal output from the terminal.

【0052】 また、時計機構のカウンタが0.5秒刻みの場合、マイコン1がリセットされ たとき、時計のデータを時計機構のクロックの平均である0.25秒だけ加算す ることにより、リセットによる時計の狂いを補正する。When the counter of the timepiece mechanism is in 0.5 second increments, when the microcomputer 1 is reset, the timepiece data is reset by adding 0.25 seconds, which is the average of the clocks of the timepiece mechanism. Correct the clock error caused by.

【0053】 また、上記構成の説明において、電源が装着されるという方法を用いたが、電 源が装着された状態でパワースイッチ等のオン、オフの切り替えにより、マイコ ン1の電源供給を制御できる回路であれば他の方法を用いても本考案の効果を損 なうことはない。Further, in the above description of the configuration, the method in which the power source is attached is used, but the power supply of the mycon 1 is controlled by switching the power switch or the like on and off with the power source attached. The effect of the present invention will not be impaired if other methods are used as long as the circuit can be used.

【0054】 尚、切替回路2は、ダイオード等のスイッチング素子を用いてもよい。The switching circuit 2 may use a switching element such as a diode.

【0055】[0055]

【考案の効果】[Effect of the device]

本考案は、マイコンのリセット回路を簡単化することができる。また、バック アップ電源が2.5V以下になってもリセットはかからず、メイン電源が外され た状態で、バックアップ電源のみで時計機構の動作を継続させる場合、リセット はかからないためマイコンの動作実力の限界まで、バックアップ電源を消費して 時計機構の動作を継続するため、マイコンのバックアップ電源を有効に使用する ことが可能である。 The present invention can simplify the reset circuit of the microcomputer. Also, even if the backup power supply becomes 2.5V or less, it will not be reset, and if the clock mechanism continues to operate with only the backup power supply when the main power supply is disconnected, the reset operation will not occur and the microcomputer's operating capability Since the backup power is consumed up to the limit of the above and the operation of the clock mechanism is continued, it is possible to effectively use the backup power of the microcomputer.

【0056】 また、マイコンが大規模化になったときに、低速クロックの動作においても消 費電流が大きくなり、このようなバックアップ電源の使用が有効となる。Further, when the microcomputer becomes large-scale, the consumption current becomes large even in the operation of the low speed clock, and the use of such a backup power supply becomes effective.

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

【図1】本考案の一実施例のマイクロコンピュータの電
源回路を示す図である。
FIG. 1 is a diagram showing a power supply circuit of a microcomputer according to an embodiment of the present invention.

【図2】本考案の一実施例の各状態の各部波形である。FIG. 2 is a waveform of each part in each state of one embodiment of the present invention.

【図3】従来例のマイクロコンピュータの電源回路を示
す図である。
FIG. 3 is a diagram showing a power supply circuit of a conventional microcomputer.

【図4】従来例の電源切替説明図である。FIG. 4 is an explanatory diagram of power switching of a conventional example.

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

1 マイコン 2 切替回路 3 バックアップ電源 4 メイン電源 11 論理積回路 1 Microcomputer 2 Switching circuit 3 Backup power supply 4 Main power supply 11 AND circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 1/04 301 C 7368−5B ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI Technical display location G06F 1/04 301 C 7368-5B

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 第1電源と、該第1電源の電圧値V1よ
りも低いV2を有する第2電源と、少なくとも電圧値V
1を印加時にメインクロックで動作するマイクロコンピ
ュータとからなるマイクロコンピュータの電源回路にお
いて、 該マイクロコンピュータは少なくともマイクロコンピュ
ータ自身の出力によってリセット制御を行うことを特徴
とするマイクロコンピュータの電源回路。
1. A first power source, a second power source having V2 lower than a voltage value V1 of the first power source, and at least a voltage value V.
A power supply circuit for a microcomputer comprising a microcomputer that operates with a main clock when 1 is applied, wherein the microcomputer performs reset control at least by the output of the microcomputer itself.
JP1991079144U 1991-09-30 1991-09-30 Power supply circuit of microcomputer Expired - Fee Related JP2602824Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1991079144U JP2602824Y2 (en) 1991-09-30 1991-09-30 Power supply circuit of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1991079144U JP2602824Y2 (en) 1991-09-30 1991-09-30 Power supply circuit of microcomputer

Publications (2)

Publication Number Publication Date
JPH0533650U true JPH0533650U (en) 1993-04-30
JP2602824Y2 JP2602824Y2 (en) 2000-01-31

Family

ID=13681771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1991079144U Expired - Fee Related JP2602824Y2 (en) 1991-09-30 1991-09-30 Power supply circuit of microcomputer

Country Status (1)

Country Link
JP (1) JP2602824Y2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0248720A (en) * 1988-08-10 1990-02-19 Sanyo Electric Co Ltd One chip microcomputer and its operation control method
JPH02232714A (en) * 1989-03-07 1990-09-14 Nippon Carbureter Co Ltd Power supply device for engine control microcomputer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0248720A (en) * 1988-08-10 1990-02-19 Sanyo Electric Co Ltd One chip microcomputer and its operation control method
JPH02232714A (en) * 1989-03-07 1990-09-14 Nippon Carbureter Co Ltd Power supply device for engine control microcomputer

Also Published As

Publication number Publication date
JP2602824Y2 (en) 2000-01-31

Similar Documents

Publication Publication Date Title
US5345583A (en) Method and apparatus for momentarily interrupting power to a microprocessor to clear a fault state
EP0484745B1 (en) Apparatus for controlling the power supply in a computer system
JP2002518733A (en) Battery-powered device that recovers from abnormal power
JP3274935B2 (en) Microcomputer
US6134655A (en) Method and apparatus for initializing a microprocessor to insure fault-free operation
JPH11327961A (en) Control circuit
JP2524380Y2 (en) Power control circuit for radio control transmitter
JPH0533650U (en) Microcomputer power supply circuit
EP0669568B1 (en) Microprocessor malfunction operation preventing circuit
EP0484757A2 (en) Method and apparatus for controlling power supply
JP2837609B2 (en) Power control method
JPH0212546A (en) Memory holding system
JPH0142002B2 (en)
KR950004205B1 (en) Power control method of computer system and apparatus therefor
JPH0338711A (en) Memory back-up system
JP2509531Y2 (en) Microcomputer power supply circuit
JPS6253138A (en) Storage battery spare power source unit
JP2722348B2 (en) Oscillation circuit
JPH0318988Y2 (en)
JPH08331215A (en) Portable equipment
JPS61224019A (en) Resetting circuit of microprocessor
JPH042553Y2 (en)
JPS61121117A (en) Memory back-up controller
JPS62214419A (en) Arithmatic and control unit
CN113571003A (en) Display device with recovery mechanism

Legal Events

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