JPH0778038A - Device with built-in timer - Google Patents
Device with built-in timerInfo
- Publication number
- JPH0778038A JPH0778038A JP5172168A JP17216893A JPH0778038A JP H0778038 A JPH0778038 A JP H0778038A JP 5172168 A JP5172168 A JP 5172168A JP 17216893 A JP17216893 A JP 17216893A JP H0778038 A JPH0778038 A JP H0778038A
- Authority
- JP
- Japan
- Prior art keywords
- power failure
- microcomputer
- power
- circuit
- clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Power Sources (AREA)
Abstract
(57)【要約】
【目的】停電後でも時刻情報を正確に把握し得る時間が
長いタイマ内蔵装置の実現。
【構成】マイクロコンピュータ100へのクロック信号
Gを発生するクロック発生回路1と、クロック信号Fを
発生するクロック発生回路(2+3)と、クロック信号
Fに応じて時刻データ14aを更新する時刻データ更新
手段(114)と、カウンタ回路(9)と、を備え、停
電発生時にカウンタ回路(9)をリセットし、停電中は
クロック発生回路(2+3)とカウンタ回路(9)がコ
ンデンサC1からの電力供給を受けカウンタ回路(9)
がクロック信号Fをカウントし、停電終了時にカウンタ
回路(9)のカウント値に応じて時刻データ14aを更
新する。
(57) [Abstract] [Purpose] Realization of a device with a built-in timer that takes a long time to accurately grasp time information even after a power failure. A clock generation circuit 1 for generating a clock signal G for a microcomputer 100, a clock generation circuit (2 + 3) for generating a clock signal F, and time data updating means for updating time data 14a according to the clock signal F. (114) and a counter circuit (9), the counter circuit (9) is reset when a power failure occurs, and the clock generation circuit (2 + 3) and the counter circuit (9) supply power from the capacitor C1 during the power failure. Receiver counter circuit (9)
Counts the clock signal F, and updates the time data 14a according to the count value of the counter circuit (9) at the end of the power failure.
Description
【0001】[0001]
【産業上の利用分野】この発明は、タイマ内蔵装置に関
し、詳しくは、マイクロコンピュータに基づくタイマ機
能を有し、停電(この明細書では、外部要因によって装
置への電力供給が断たれた状態に限らず、広く、装置の
電源コードやブレーカ等を操作して電力供給を断ったと
きの状態をも含む。)からの復帰後も継続してタイマ機
能を発揮するタイマ内蔵装置の改良に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device with a built-in timer, and more particularly, to a device having a timer function based on a microcomputer and having a power failure (in this specification, power supply to the device is cut off by an external factor). The present invention relates to an improvement of a device with a built-in timer that continuously exhibits a timer function even after recovery from a wide range (including a state when power supply is cut off by operating a power cord or breaker of the device).
【0002】[0002]
【従来の技術】図2に、従来のタイマ内蔵装置の具体例
としてのビデオテープレコーダについて、マイクロコン
ピュータ10を主体とする制御回路のブロック図を示
す。なお、インターフェイスやバスライン等の図示は割
愛した。マイクロコンピュータ10は、20MHzのク
ロック信号Gを受けて動作し、内蔵プログラムである時
計プログラム14やサーボ制御プログラム15等を実行
して装置をコントロールする。2. Description of the Related Art FIG. 2 shows a block diagram of a control circuit mainly composed of a microcomputer 10 for a video tape recorder as a specific example of a conventional timer built-in device. The illustration of interfaces and bus lines is omitted. The microcomputer 10 operates by receiving a clock signal G of 20 MHz and executes a clock program 14, a servo control program 15 and the like which are built-in programs to control the device.
【0003】時計プログラム14は、発振回路(OS
C)2やプリスケーラ3、表示パネル4と共に、タイマ
機能を担う。すなわち、発振回路2が32KHzの発振
信号Eを発生し、これをプリスケーラ3が分周して2H
zのクロック信号Fを発生し、これを受けて時計プログ
ラム14がRAM上の時刻データ14aを更新する。そ
して、表示制御プログラム13がこの時刻データ14a
を基に現在時刻を表示パネル4に表示する。なお、サー
ボ制御プログラム15は、ヘッドシリンダ5の回転を制
御するために、いわゆるフリーランニングカウンタ9等
によって検出パルスFGのパルス周期を計時するが、こ
のカウンタ9のクロック入力として発振信号Eが用いら
れることもある。The clock program 14 is an oscillator circuit (OS
C) Functions as a timer together with 2, the prescaler 3, and the display panel 4. That is, the oscillating circuit 2 generates an oscillating signal E of 32 KHz, which the prescaler 3 divides to generate 2H.
A clock signal F of z is generated, and in response to this, the clock program 14 updates the time data 14a on the RAM. Then, the display control program 13 uses the time data 14a.
The current time is displayed on the display panel 4 based on the. The servo control program 15 measures the pulse cycle of the detection pulse FG by a so-called free running counter 9 or the like in order to control the rotation of the head cylinder 5, and the oscillation signal E is used as a clock input of this counter 9. Sometimes.
【0004】[0004]
【発明が解決しようとする課題】このような従来のタイ
マ内蔵装置では、時刻データ14aをプログラムによっ
て更新することから、停電があったときに復帰後も継続
してタイマ機能を発揮するには、時刻データ14aを正
確な値に維持するための時計プログラム14が停電中に
も実行されることが必要である。そこで、大容量のコン
デンサC1をマイクロコンピュータ10への電源ライン
Bと接地間に接続しておき、普段は電源ラインAからダ
イオードD1を介してコンデンサC1に充電をし、停電
時にはコンデンサC1からマイクロコンピュータ10や
発振回路2、プリスケーラ3に電力を供給する。In such a conventional timer built-in device, since the time data 14a is updated by a program, in order to continue to exert the timer function even after the recovery in the event of a power failure, The clock program 14 for maintaining the time data 14a at an accurate value needs to be executed even during a power failure. Therefore, a large-capacity capacitor C1 is connected between the power supply line B to the microcomputer 10 and the ground, and normally the capacitor C1 is charged from the power supply line A through the diode D1. Power is supplied to 10, the oscillator circuit 2, and the prescaler 3.
【0005】さらに、停電時には、発振停止状態となる
クロック信号Gから低い周波数の発振信号Eにマイクロ
コンピュータ10のクロックを切り替えて、タイマ機能
を維持すると共に、マイクロコンピュータ10の電力消
費量を削減する。しかし、クロック周波数を落としても
マイクロコンピュータ10が消費する電力は発振回路2
やプリスケーラ3のそれに較べて大きい。特に、マイク
ロコンピュータの機能・性能の向上に伴ってマイクロコ
ンピュータの回路規模が増大する傾向の下では、マイク
ロコンピュータの電力消費量も増大する一方である。Further, at the time of power failure, the clock of the microcomputer 10 is switched from the clock signal G which is in the oscillation stopped state to the oscillation signal E of a low frequency to maintain the timer function and reduce the power consumption of the microcomputer 10. . However, even if the clock frequency is reduced, the power consumed by the microcomputer 10 is still generated by the oscillator circuit 2.
It is bigger than that of the prescaler 3. In particular, under the tendency that the circuit scale of the microcomputer increases as the function and performance of the microcomputer improve, the power consumption of the microcomputer also increases.
【0006】これに対し、コストや信頼性等の制約から
採用可能なコンデンサは限られており、停電時供給用電
力の無制限な増加は望めない。かかる事情から、従来の
ままでは、停電後でも時刻データ14aを正確な値に維
持し得る時間を、長くすることができない。むしろ、短
かくなりがちである。これでは、その時間の増大を希望
する消費者等の要請に応えることができず、装置の製品
価値を損ねてしまうので問題である。この発明の目的
は、このような従来技術の問題点を解決するものであっ
て、停電後でも時刻情報を正確に把握し得る時間が長い
タイマ内蔵装置を実現することにある。On the other hand, the number of capacitors that can be used is limited due to restrictions such as cost and reliability, and an unlimited increase in power supply during a power failure cannot be expected. Under such circumstances, if the conventional method is used, the time during which the time data 14a can be maintained at an accurate value even after a power failure cannot be lengthened. Rather, it tends to be short. This is a problem because it is not possible to meet the demand of consumers who want to increase the time, and the product value of the device is impaired. An object of the present invention is to solve such a problem of the prior art and to realize a device with a built-in timer in which it is possible to accurately grasp time information even after a power failure.
【0007】[0007]
【課題を解決するための手段】この目的を達成するため
のこの発明のタイマ内蔵装置の構成は、電源電圧を受け
て停電時供給用電力を蓄えるコンデンサと、マイクロコ
ンピュータと、前記マイクロコンピュータの動作速度に
対応した周期の第1のクロック信号を発生しこれを前記
マイクロコンピュータにクロックとして送出する第1の
クロック発生回路と、時刻表示の分解能に対応した周期
の第2のクロック信号を発生する第2のクロック発生回
路と、前記電源電圧又は前記電源電圧の元となる電圧を
監視して停電の発生および終了を検出する停電監視手段
と、前記マイクロコンピュータのプログラムであり前記
第2のクロック信号に応じて前記時刻表示のための時刻
データを更新する時刻データ更新手段と、前記マイクロ
コンピュータの制御下にあるカウンタ回路と、を備え、
前記停電監視手段により停電の発生が検出されると前記
マイクロコンピュータが前記カウンタ回路のカウント値
をリセットし、停電中は前記第2のクロック発生回路と
前記カウンタ回路が前記コンデンサからの前記停電時供
給用電力の供給を受け前記カウンタ回路が前記第2のク
ロック信号をカウントし、前記停電監視手段により停電
の終了が検出されると前記マイクロコンピュータが前記
カウンタ回路のカウント値を受けて前記時刻データ更新
手段がこの入力されたカウント値に応じて前記時刻デー
タを更新するものである。To achieve this object, a timer built-in device according to the present invention has a configuration for receiving a power supply voltage and storing power for supply during a power failure, a microcomputer, and an operation of the microcomputer. A first clock generation circuit for generating a first clock signal having a cycle corresponding to the speed and sending the clock signal to the microcomputer as a clock; and a second clock signal for generating a second clock signal having a cycle corresponding to the resolution of time display. 2, a clock generation circuit, a power failure monitoring unit that monitors the power supply voltage or a voltage that is a source of the power supply voltage to detect the occurrence and termination of a power failure, and a program of the microcomputer, which is the second clock signal. According to the time data updating means for updating the time data for displaying the time, and the control of the microcomputer. And a counter circuit the underlying,
When the occurrence of a power failure is detected by the power failure monitoring means, the microcomputer resets the count value of the counter circuit, and during the power failure, the second clock generation circuit and the counter circuit supply from the capacitor during the power failure. The counter circuit counts the second clock signal in response to the supply of power for use, and when the power failure monitoring means detects the end of the power failure, the microcomputer receives the count value of the counter circuit and updates the time data. The means updates the time data according to the input count value.
【0008】[0008]
【作用】このような構成のこの発明のタイマ内蔵装置に
あっては、停電中はカウンタ回路が第2のクロック信号
をカウントし、停電からの復帰後、このカウント値に応
じて時刻データを更新する。これにより、停電中にマイ
クロコンピュータの動作を停止させても、停電からの復
帰後は、時刻データが正しい時刻を示す。電力消費量の
大きいマイクロコンピュータが動作しなければ、コンデ
ンサの容量が同じであってもこれから停電時供給用電力
の供給を受けてタイマ機能を維持する第2のクロック発
生回路とカウンタ回路は、従来よりも長い時間にわたっ
て動作できることとなる。したがって、停電でも時刻デ
ータを正確な値に維持し得る時間が長くなり、停電後で
も時刻情報を正確に把握し得る時間について性能の向上
を達成することができる。In the timer built-in device of the present invention having such a configuration, the counter circuit counts the second clock signal during a power failure, and after recovery from the power failure, the time data is updated according to the count value. To do. Thus, even if the operation of the microcomputer is stopped during the power failure, the time data shows the correct time after the recovery from the power failure. If the microcomputer consuming a large amount of power does not operate, the second clock generation circuit and the counter circuit that maintain the timer function by receiving the power for power supply from the power failure even if the capacitors have the same capacity are Will be able to operate for a longer period of time. Therefore, the time during which the time data can be maintained at an accurate value becomes longer even after a power failure, and the performance can be improved for the time during which the time information can be accurately grasped even after a power failure.
【0009】[0009]
【実施例】以下、この発明の一実施例について図面を参
照して詳細に説明する。図1に、タイマ内蔵装置の具体
例としてのビデオテープレコーダについて、マイクロコ
ンピュータ100を主体とする制御回路のブロック図を
示す。なお、インターフェイスやバスライン等の図示は
割愛した。ここで、C1は0.1〜1μFの大容量コン
デンサであり、1は20MHzの発振回路(OSC)、
2は32KHzの発振回路(OSC)、3は14ビット
で分周するプリスケーラ、4はLEDやLCDの表示パ
ネル、5はビデオヘッドシリンダ、6はその回転セン
サ、7はシリンダ5の回転周期等を計るための計時回
路、100はメモリ内蔵の1チップのマイクロコンピュ
ータである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows a block diagram of a control circuit including a microcomputer 100 as a main component of a video tape recorder as a specific example of a device having a timer. The illustration of interfaces and bus lines is omitted. Here, C1 is a large-capacity capacitor of 0.1 to 1 μF, 1 is an oscillation circuit (OSC) of 20 MHz,
2 is a 32 KHz oscillator circuit (OSC), 3 is a prescaler that divides by 14 bits, 4 is an LED or LCD display panel, 5 is a video head cylinder, 6 is a rotation sensor thereof, and 7 is a rotation cycle of the cylinder 5. A timing circuit for measuring, 100 is a one-chip microcomputer with a built-in memory.
【0010】コンデンサC1は、マイクロコンピュータ
10への電源ラインBと接地間に接続され、停電してい
ない普段のときは、5Vの電源ラインAからダイオード
D1を介して電源電圧を受けて充電される。これによ
り、停電時供給用電力が蓄えられる。なお、図では省略
したが、発振回路2やプリスケーラ3、カウンタ9等も
電源ラインBからの電力供給を受ける。これにより、停
電時には、コンデンサC1に蓄えられていた停電時供給
用電力が、マイクロコンピュータ10や発振回路2等に
供給される。The capacitor C1 is connected between the power supply line B to the microcomputer 10 and the ground, and is normally charged by receiving the power supply voltage from the 5V power supply line A through the diode D1 when no power failure occurs. . As a result, the power for supply at the time of power failure is stored. Although not shown in the figure, the oscillator circuit 2, the prescaler 3, the counter 9, and the like also receive power from the power line B. As a result, during a power failure, the power supply during a power failure, which has been stored in the capacitor C1, is supplied to the microcomputer 10, the oscillation circuit 2, and the like.
【0011】マイクロコンピュータ100は、従来と同
様のハードウエアであるが、多チップや別メモリ等の組
み合わせで構成されていてもよい。ソフトウエアについ
ては、内蔵メモリに停電監視プログラム111,チュー
ニングプログラム12,表示制御プログラム13,時計
プログラム114,サーボ制御プログラム15等を記憶
している。これらのプログラムを実行して装置をコント
ロールする。なお、停電監視プログラム111と時計プ
ログラム114は部分的に従来と機能が異なるが、これ
らについては、後述する。Although the microcomputer 100 has the same hardware as the conventional one, it may be composed of a combination of multiple chips or different memories. Regarding software, a power failure monitoring program 111, a tuning program 12, a display control program 13, a clock program 114, a servo control program 15, etc. are stored in a built-in memory. Run these programs to control the device. The power failure monitoring program 111 and the clock program 114 partially differ in function from the conventional ones, which will be described later.
【0012】発振回路1は、第1のクロック発生回路と
して、第1のクロック信号すなわち20MHzのクロッ
ク信号Gを発生し、これをマイクロコンピュータ100
に送出する。20MHzの周波数はマイクロコンピュー
タ100の動作速度に対応して決められたものであり、
マイクロコンピュータ100はこれをクロックとして受
け、20MHzのマシンサイクルで動作する。発振回路
1は、電源ラインAから電力供給を受ける。そこで、停
電時には、発振回路1の発振が停止し、さらにマイクロ
コンピュータ100も動作を停止する。これにより、停
電時には、これらの回路1,100は電力を消費しな
い。The oscillating circuit 1 as a first clock generating circuit generates a first clock signal, that is, a clock signal G of 20 MHz, and this is generated by the microcomputer 100.
Send to. The frequency of 20 MHz is determined according to the operating speed of the microcomputer 100,
The microcomputer 100 receives this as a clock and operates in a machine cycle of 20 MHz. The oscillator circuit 1 receives power from the power supply line A. Therefore, at the time of a power failure, the oscillation of the oscillator circuit 1 is stopped and the microcomputer 100 is also stopped. Thus, at the time of power failure, these circuits 1 and 100 do not consume power.
【0013】発振回路2は、32KHzの発振信号Eを
発生し、14ビットカウンタ等による分周回路であるプ
リスケーラ3は、発振信号Eを分周して2Hzの発振信
号Fを発生する。発振信号Eの周波数2Hzは、時刻表
示の分解能に対応して決められたものである。すなわ
ち、発振回路2とプリスケーラ3は、第2のクロック発
生回路として、第2のクロック信号としての2Hzの発
振信号Fを発生する。この発振信号Fが、割込回路等を
介してマイクロコンピュータ100に入力され、時計プ
ログラム114による時刻データ14aの更新に供され
る。The oscillating circuit 2 generates an oscillating signal E of 32 KHz, and the prescaler 3 which is a frequency dividing circuit such as a 14-bit counter divides the oscillating signal E to generate an oscillating signal F of 2 Hz. The frequency 2 Hz of the oscillation signal E is determined in correspondence with the resolution of the time display. That is, the oscillation circuit 2 and the prescaler 3 generate the oscillation signal F of 2 Hz as the second clock signal as the second clock generation circuit. The oscillation signal F is input to the microcomputer 100 via an interrupt circuit or the like and used for updating the time data 14a by the clock program 114.
【0014】計時回路7は、19ビットのラッチ8とカ
ウンタ9とを有し、マイクロコンピュータ100の制御
の下、カウンタ9のカウント値の差に基づいてシリンダ
5の回転周期等を計るためのものである。このために、
カウンタ9は、普段はいわゆるフリーランニングカウン
タとして動作するために、スイッチ2を介して発振信号
Gを受けてこれをカウントする。この実施例のビデオテ
ープレコーダでは、このカウンタ9が、この発明のカウ
ンタ回路にも兼用される。そこで、回路規模の増加はな
い。The clock circuit 7 has a 19-bit latch 8 and a counter 9 and is for controlling the rotation cycle of the cylinder 5 based on the difference between the count values of the counter 9 under the control of the microcomputer 100. Is. For this,
Since the counter 9 normally operates as a so-called free running counter, it receives the oscillation signal G via the switch 2 and counts it. In the video tape recorder of this embodiment, the counter 9 is also used as the counter circuit of the present invention. Therefore, the circuit scale does not increase.
【0015】カウンタ9は、停電中は、スイッチ2を介
して発振信号Fを受け、これをカウントする。また、こ
のカウンタ9と上述の発振回路2,プリスケーラ3は、
電源ラインBから電力供給を受ける。そこで、停電時で
あっても、コンデンサC1に蓄えられた停電時供給用電
力が供給されるので、これらの回路は動作を継続し得
る。しかも、これらの回路は、規模が小さく且つ動作周
波数も低いので、消費電力が僅かなもので済む。これに
より、限られた量の停電時供給用電力の下でも、長時間
動作が可能となり、カウンタ9は、約73時間にわたっ
て最大カウント値までカウントすることができる。During a power failure, the counter 9 receives the oscillation signal F via the switch 2 and counts it. The counter 9, the oscillator circuit 2 and the prescaler 3 are
Power is supplied from the power supply line B. Therefore, even during a power failure, the power for power supply during a power failure stored in the capacitor C1 is supplied, so that these circuits can continue to operate. Moreover, since these circuits are small in scale and have a low operating frequency, they consume little power. As a result, long-term operation is possible even under a limited amount of power supply during a power failure, and the counter 9 can count up to the maximum count value for about 73 hours.
【0016】停電監視プログラム111は、電源ライン
Aの電源電圧と所定の閾値(例えば4.7V)との比較
結果を2値で出力する停電検出回路(図示せず)と共
に、停電監視手段をなす。停電検出回路の出力値が変化
すると、このことが割り込み等によってマイクロコンピ
ュータ100に入力され、停電監視プログラム111が
起動される。起動された停電監視プログラム111は、
停電検出回路の出力値を読取り、その値に応じて停電状
態になったのか停電状態から回復したのかを知る。これ
により、電源ラインAの電源電圧を監視し、停電の発生
および終了を検出することができる。The power failure monitoring program 111 constitutes a power failure monitoring means together with a power failure detection circuit (not shown) which outputs a binary comparison result of the power supply voltage of the power supply line A and a predetermined threshold value (for example, 4.7 V). . When the output value of the power failure detection circuit changes, this is input to the microcomputer 100 by an interrupt or the like, and the power failure monitoring program 111 is started. The activated power failure monitoring program 111 is
Read the output value of the power failure detection circuit to know whether the power failure state or the power failure state has been recovered according to the value. As a result, it is possible to monitor the power supply voltage of the power supply line A and detect the occurrence and termination of power failure.
【0017】停電監視プログラム111は、停電の発生
を検出すると、発振回路1が完全に停止する前に直ち
に、スイッチSW2を制御してその入力を発振信号Fに
切り替える。さらに、停電の終了を検出すると、スイッ
チSW2を制御してその入力を発振信号Gに戻す。これ
により、普段はカウンタ9がスイッチ2を介してクロッ
ク入力として32KHzの発振信号Eを受け、停電時に
はカウンタ9がスイッチ2を介してクロック入力として
2Hzの発振信号Fを受けることができる。また、停電
監視プログラム111は、停電の発生を検出すると、カ
ウンタ9のカウント値をリセットする。そこで、カウン
タ9は、停電発生後の経過時間をカウントすることとな
る。Upon detecting the occurrence of a power failure, the power failure monitoring program 111 immediately controls the switch SW2 to switch its input to the oscillation signal F before the oscillation circuit 1 completely stops. Further, when the end of the power failure is detected, the switch SW2 is controlled to return its input to the oscillation signal G. As a result, the counter 9 can normally receive the oscillation signal E of 32 KHz as a clock input via the switch 2, and the counter 9 can receive the oscillation signal F of 2 Hz as a clock input via the switch 2 during a power failure. Further, the power failure monitoring program 111 resets the count value of the counter 9 when detecting the occurrence of a power failure. Therefore, the counter 9 counts the elapsed time after the occurrence of the power failure.
【0018】時計プログラム114は、発振回路(OS
C)2やプリスケーラ3、表示パネル4と共に、タイマ
機能を担うものである。時計プログラム114は、普段
は、2Hzの発振信号Fを受ける度に、RAM上に保持
されている時刻データ14aを+1して更新する。すな
わち、時刻データ更新手段として機能する。そして、表
示制御プログラム13が、0.5秒単位のこの時刻デー
タ14aを基に現在時刻の表示文字列を編集して、現在
時刻を表示パネル4に表示する。The clock program 114 is an oscillator circuit (OS
C) 2 and the prescaler 3 and the display panel 4 play a timer function. The clock program 114 normally updates the time data 14a held in the RAM by +1 each time it receives the oscillation signal F of 2 Hz. That is, it functions as time data updating means. Then, the display control program 13 edits the display character string of the current time based on the time data 14a in 0.5 second units, and displays the current time on the display panel 4.
【0019】また、停電監視プログラム111は、停電
の終了すなわち停電からの回復を検出すると、特別に時
計プログラム114を起動する。すると、時計プログラ
ム114は、カウンタ9からそのカウント値を読み取
り、この値を時刻データ14aに加算する。上述の如く
カウンタ9のカウント値は停電後の経過時間を示してい
るから、カウント値に応じて更新された時刻データ14
aは正確な現在時刻となる。これにより、停電中には時
計プログラム114が動作しなくても、停電後も引き続
き正しい時刻を表示することができる。Further, the power failure monitoring program 111 specially activates the clock program 114 when detecting the end of the power failure, that is, the recovery from the power failure. Then, the clock program 114 reads the count value from the counter 9 and adds this value to the time data 14a. As described above, since the count value of the counter 9 indicates the elapsed time after the power failure, the time data 14 updated according to the count value.
a is the exact current time. As a result, even if the clock program 114 does not operate during the power failure, the correct time can be continuously displayed even after the power failure.
【0020】このような構成のビデオテープレコーダの
タイマ機能に関する動作を説明する。普段は、回路2,
3からの2Hzの発振信号Fを受けて時計プログラム1
4がRAM上の時刻データ14aを更新する。そして、
この時刻データ14aを基に、現在時刻が表示され、予
約に応じた自動録画等の処理が行われる。そして、停電
すると、電力消費の激しい発振回路1や表示パネル4等
に加えてやはり電力消費の大きいマイクロコンピュータ
100も動作を停止する。もっとも、カウンタ9が発振
信号Fをカウントしているので、停電発生後の経過時間
は把握されている。The operation relating to the timer function of the video tape recorder having such a configuration will be described. Circuit 2
The clock program 1 receives the oscillation signal F of 2 Hz from 3
4 updates the time data 14a on the RAM. And
The current time is displayed based on the time data 14a, and processing such as automatic recording according to the reservation is performed. Then, when a power failure occurs, in addition to the oscillator circuit 1 and the display panel 4 that consume a lot of power, the microcomputer 100 that also consumes a large amount of power also stops operating. However, since the counter 9 counts the oscillation signal F, the elapsed time after the occurrence of the power failure is known.
【0021】停電から復帰すると、発振回路1や表示パ
ネル4、マイクロコンピュータ100が動作を再開す
る。そして、直ちに時刻データ14aがカウント値に応
じて現在時刻に対応する値に更新され、再び表示パネル
4に正確な現在時刻が表示される。このように、停電中
にマイクロコンピュータ100が動作しないので、停電
時供給用電力の消費を節約することができる。しかも、
タイマ機能を損なうことがない。その結果、停電後でも
時刻情報を正確に把握し得る時間が長くなる。以上、ビ
デオテープレコーダを例に説明してきたが、この発明の
適用は、これに限られるものでなく、同様のタイマ機能
を有する装置すなわちタイマ内蔵装置全てに有効であ
る。When the power is restored from the power failure, the oscillation circuit 1, the display panel 4, and the microcomputer 100 restart their operations. Then, the time data 14a is immediately updated to a value corresponding to the current time according to the count value, and the accurate current time is displayed again on the display panel 4. As described above, since the microcomputer 100 does not operate during the power failure, it is possible to save the consumption of the power supply during the power failure. Moreover,
Does not impair the timer function. As a result, it takes a long time to accurately grasp the time information even after a power failure. Although the video tape recorder has been described above as an example, the application of the present invention is not limited to this, and is effective for all devices having a similar timer function, that is, all devices with a built-in timer.
【0022】[0022]
【発明の効果】以上の説明から理解できるように、この
発明のタイマ内蔵装置にあっては、マイクロコンピュー
タへの第1のクロック信号を発生する第1のクロック発
生回路と、第2のクロック信号を発生する第2のクロッ
ク発生回路と、第2のクロック信号に応じて時刻データ
を更新する時刻データ更新手段と、カウンタ回路と、を
備え、停電発生時にカウンタ回路をリセットし、停電中
は前記第2のクロック発生回路とカウンタ回路がコンデ
ンサからの電力供給を受けカウンタ回路が第2のクロッ
ク信号をカウントし、停電終了時にカウンタ回路のカウ
ント値に応じて時刻データを更新する。これにより、停
電後でも時刻情報を正確に把握し得る時間が長いタイマ
内蔵装置を実現することができるという効果がある。As can be understood from the above description, in the timer built-in device of the present invention, the first clock generating circuit for generating the first clock signal to the microcomputer and the second clock signal are provided. And a counter circuit for updating the time data according to the second clock signal, and a counter circuit for resetting the counter circuit when a power failure occurs, The second clock generation circuit and the counter circuit receive power supply from the capacitor, the counter circuit counts the second clock signal, and updates the time data according to the count value of the counter circuit at the end of the power failure. As a result, there is an effect that it is possible to realize a device with a built-in timer in which it is possible to accurately grasp time information even after a power failure.
【図1】図1は、この発明の構成のタイマ内蔵装置の一
実施例としてのビデオテープレコーダについて、マイク
ロコンピュータを主体とする制御回路のブロック図であ
る。FIG. 1 is a block diagram of a control circuit mainly composed of a microcomputer in a video tape recorder as an embodiment of a timer built-in device having the configuration of the present invention.
【図2】図2は、従来のビデオテープレコーダについて
の制御回路のブロック図である。FIG. 2 is a block diagram of a control circuit for a conventional video tape recorder.
C1 コンデンサ 1 発振回路(OSC) 2 発振回路(OSC) 3 プリスケーラ 4 表示パネル 5 ビデオヘッドシリンダ 6 回転センサ 7 計時回路 8 ラッチ 9 カウンタ 10 マイクロコンピュータ 11 停電監視プログラム 12 チューニングプログラム 13 表示制御プログラム 14 時計プログラム 15 サーボ制御プログラム 100 マイクロコンピュータ 111 停電監視プログラム 114 時計プログラム C1 Capacitor 1 Oscillation circuit (OSC) 2 Oscillation circuit (OSC) 3 Prescaler 4 Display panel 5 Video head cylinder 6 Rotation sensor 7 Timing circuit 8 Latch 9 Counter 10 Microcomputer 11 Power failure monitoring program 12 Tuning program 13 Display control program 14 Clock program 15 Servo control program 100 Microcomputer 111 Power failure monitoring program 114 Clock program
Claims (1)
るコンデンサと、マイクロコンピュータと、前記マイク
ロコンピュータの動作速度に対応した周期の第1のクロ
ック信号を発生しこれを前記マイクロコンピュータにク
ロックとして送出する第1のクロック発生回路と、時刻
表示の分解能に対応した周期の第2のクロック信号を発
生する第2のクロック発生回路と、前記電源電圧又は前
記電源電圧の元となる電圧を監視して停電の発生および
終了を検出する停電監視手段と、前記マイクロコンピュ
ータのプログラムであり前記第2のクロック信号に応じ
て前記時刻表示のための時刻データを更新する時刻デー
タ更新手段と、前記マイクロコンピュータの制御下にあ
るカウンタ回路と、を備え、前記停電監視手段により停
電の発生が検出されると前記マイクロコンピュータが前
記カウンタ回路のカウント値をリセットし、停電中は前
記第2のクロック発生回路と前記カウンタ回路が前記コ
ンデンサからの前記停電時供給用電力の供給を受け前記
カウンタ回路が前記第2のクロック信号をカウントし、
前記停電監視手段により停電の終了が検出されると前記
マイクロコンピュータが前記カウンタ回路のカウント値
を受けて前記時刻データ更新手段がこの入力されたカウ
ント値に応じて前記時刻データを更新することを特徴と
するタイマ内蔵装置。1. A capacitor for receiving a power supply voltage to store power for supply during a power failure, a microcomputer, and a first clock signal having a cycle corresponding to an operating speed of the microcomputer and clocking the first clock signal to the microcomputer. A first clock generating circuit, a second clock generating circuit that generates a second clock signal having a cycle corresponding to the resolution of time display, and the power supply voltage or a voltage that is a source of the power supply voltage. A power failure monitoring means for detecting occurrence and termination of power failure, a time data updating means for updating the time data for displaying the time according to the second clock signal, which is a program of the microcomputer, and the microcomputer. A counter circuit under the control of a computer, and the occurrence of a power failure is detected by the power failure monitoring means. Then, the microcomputer resets the count value of the counter circuit, and during the power failure, the second clock generating circuit and the counter circuit receive the power supply for the power failure from the capacitor, and the counter circuit receives the power. Count the second clock signal,
When the end of the power failure is detected by the power failure monitoring means, the microcomputer receives the count value of the counter circuit, and the time data updating means updates the time data according to the input count value. A device with a built-in timer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5172168A JPH0778038A (en) | 1993-06-18 | 1993-06-18 | Device with built-in timer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5172168A JPH0778038A (en) | 1993-06-18 | 1993-06-18 | Device with built-in timer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0778038A true JPH0778038A (en) | 1995-03-20 |
Family
ID=15936841
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5172168A Pending JPH0778038A (en) | 1993-06-18 | 1993-06-18 | Device with built-in timer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0778038A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62189520A (en) * | 1986-02-14 | 1987-08-19 | Nec Corp | Clock count system for microcomputer |
| JPS63106028A (en) * | 1986-10-22 | 1988-05-11 | Nec Corp | Timepiece counting system |
-
1993
- 1993-06-18 JP JP5172168A patent/JPH0778038A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62189520A (en) * | 1986-02-14 | 1987-08-19 | Nec Corp | Clock count system for microcomputer |
| JPS63106028A (en) * | 1986-10-22 | 1988-05-11 | Nec Corp | Timepiece counting system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8566627B2 (en) | Adaptive power control | |
| US5148380A (en) | Method and apparatus for conserving power in a data processing system | |
| JP3474587B2 (en) | Reset control device for microcomputer system | |
| US5831347A (en) | Apparatus for determining if the duration of a power failure exceeded predetermined limits | |
| CN110673691B (en) | Electronic system, sensing circuit and sensing method | |
| JP2009238211A (en) | Information processing apparatus and elapsed time measurement method | |
| JP2002196845A (en) | Microcomputer control method | |
| JPH0870415A (en) | Electronics | |
| CN107918569B (en) | Method and device for monitoring power failure of RTC chip and stop of crystal oscillator | |
| JPH0321928B2 (en) | ||
| JP3859916B2 (en) | Circuit equipment | |
| JPH0142002B2 (en) | ||
| JPH10282265A (en) | Electronic clock with power generation function | |
| US6486454B1 (en) | Microwave oven using dual clock | |
| JP3053270B2 (en) | Power supply backup method and device | |
| JP3624532B2 (en) | Electronic timepiece and control method thereof | |
| JPS58113889A (en) | timer device | |
| CN113571003A (en) | Display device with recovery mechanism | |
| JPS61121117A (en) | Memory back-up controller | |
| JP2595984B2 (en) | Clock device | |
| JP2001311786A (en) | RTC device | |
| JP3706415B2 (en) | Electronic watch with power generation mechanism | |
| KR910001307Y1 (en) | Hard disk usage status display device of personal computer | |
| US5187441A (en) | Portable information apparatus for sensing battery voltage drop | |
| JPH10123183A (en) | Momentary power failure detection device |