JPH0385487A - Time-piece apparatus - Google Patents

Time-piece apparatus

Info

Publication number
JPH0385487A
JPH0385487A JP1221516A JP22151689A JPH0385487A JP H0385487 A JPH0385487 A JP H0385487A JP 1221516 A JP1221516 A JP 1221516A JP 22151689 A JP22151689 A JP 22151689A JP H0385487 A JPH0385487 A JP H0385487A
Authority
JP
Japan
Prior art keywords
time
power
power supply
clock
pulse
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
JP1221516A
Other languages
Japanese (ja)
Other versions
JPH0664167B2 (en
Inventor
Toru Yoshinaga
徹 吉永
Osamu Ikeda
修 池田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP22151689A priority Critical patent/JPH0664167B2/en
Publication of JPH0385487A publication Critical patent/JPH0385487A/en
Publication of JPH0664167B2 publication Critical patent/JPH0664167B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02BINTERNAL-COMBUSTION PISTON ENGINES; COMBUSTION ENGINES IN GENERAL
    • F02B75/00Other engines
    • F02B75/02Engines characterised by their cycles, e.g. six-stroke
    • F02B2075/022Engines characterised by their cycles, e.g. six-stroke having less than six strokes per cycle
    • F02B2075/025Engines characterised by their cycles, e.g. six-stroke having less than six strokes per cycle two

Landscapes

  • Electric Clocks (AREA)

Abstract

PURPOSE:To reduce clock gain due to the repetition of current supply and power failure by performing the changing-over to the time of a backup time- piece at the time of power failure while performing the changing-over to a power supply synchronous time-piece at the time of power recovery and applying statistical processing to said time. CONSTITUTION:A microcomputer 4A being a central processing circuit counts the pulse of power supply voltage subjected to waveform shaping by a waveform shaping circuit 2 to tick time as a power supply synchronous time-piece to display the same on a display device 5. When a pulse is not generated for a definite period, power failure is judged to change over time to a quartz time- piece 3. When the circuit 2 becomes a state generating a pulse, power recovery is judged to return to power supply synchronous time but, at this time, the count time of the first pulse from the circuit 2 is set to a time of the 1/2 cycle of a pulse, that is, statistical processing is applied to perform processing. Therefore, stable clocking operation reduced in error can be realized over a long period of time.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、複合計器1例えば電子式電力量計の時計装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a clock device for a complex meter 1, such as an electronic wattmeter.

[従来の技術] 従来例の構成を第4図を参照しながら説明する。[Conventional technology] The configuration of a conventional example will be explained with reference to FIG.

第4図は、従来の時計装置を示すブロック図である。FIG. 4 is a block diagram showing a conventional timepiece device.

第4図において、従来の時計装置は、図示しない画用電
源に接続された電源電圧端子(1)と、この電源電圧端
子(1〉に接続されたノイズフィルタを含む波形整形回
路(2)と、水晶時計(3)と、波形整形回路(2)及
び水晶時計(3)に接続されたマイクロコンピュータ(
4)と、このマイクロコンピュータ(4)に接続された
表示器(5)と、各回路に電源を供給する電池等の電源
回路(6)とからfll戒されている。
In FIG. 4, the conventional clock device includes a power supply voltage terminal (1) connected to a picture power supply (not shown), and a waveform shaping circuit (2) including a noise filter connected to this power supply voltage terminal (1). , a crystal clock (3), a microcomputer (
4), a display device (5) connected to this microcomputer (4), and a power supply circuit (6) such as a battery that supplies power to each circuit.

なお、第4図は電子式電力量計の時計装置部分を示した
もので、電源電流端子(7)、並びに入力側が電源電圧
端子(1)及び電源電流端子(7)に接続されかつ出力
側がマイクロコンピュータ(4)に接続された電力量周
波数変換回路(8)も図示されている。
Furthermore, Figure 4 shows the clock device part of the electronic watt-hour meter, in which the power supply current terminal (7), the input side is connected to the power supply voltage terminal (1) and the power supply current terminal (7), and the output side is connected to the power supply voltage terminal (1) and the power supply current terminal (7). Also shown is a power frequency conversion circuit (8) connected to the microcomputer (4).

つぎに、上述した従来例の動作を説明する。Next, the operation of the above-mentioned conventional example will be explained.

電源周波数に基づいた電源同期時計は、その周波数の較
差が電力会社によって年間通して補正されているので、
長期的にみると正確である。
Power-synchronized clocks based on the power frequency are corrected throughout the year by the power company for frequency differences.
It is accurate in the long run.

波形整形回路(2)は、電源電圧を波形整形して電源周
波数に比例したパルスをマイクロコンピュータ(4)へ
出力する。
The waveform shaping circuit (2) shapes the waveform of the power supply voltage and outputs pulses proportional to the power supply frequency to the microcomputer (4).

マイクロコンピュータ(4〉は、入力するパルスをカウ
ントして電源同期時計として1時刻を刻む、また、その
時刻を表示器(5)により表示する。
The microcomputer (4) counts input pulses to mark one hour as a power synchronized clock, and displays the time on a display (5).

そして、マイクロコンピュータ(4)は、波形整形回路
(2)からのパルスが一定期間ない場合には、停電と判
断して水晶時計(3)の時刻に切り換える。
If there is no pulse from the waveform shaping circuit (2) for a certain period of time, the microcomputer (4) determines that there is a power outage and switches to the time set by the crystal clock (3).

その後、波形整形回路(2)がパルスを出力するように
なると、復電したと判断して電源同期時計の時刻に切り
換える。
After that, when the waveform shaping circuit (2) starts outputting pulses, it is determined that the power has been restored and the time is switched to the time of the power synchronized clock.

しかしながら、このときのタイミングが不定なので2時
間誤差(時計進み)が生じる。
However, since the timing at this time is uncertain, a two-hour error (clock advance) occurs.

一方で、電力量周波数変換回路(8)は、電源電圧及び
電流を乗算して電力量を求め、その電力Iを周波数に変
換してマイクロコンピュータ(4)へ出力する。
On the other hand, the power amount frequency conversion circuit (8) multiplies the power supply voltage and current to obtain the power amount, converts the power I into a frequency, and outputs the frequency to the microcomputer (4).

マイクロコンピュータ(4)は、入力される周波数を積
算して積算電力量を計算する。
The microcomputer (4) integrates the input frequencies and calculates the integrated power amount.

[発明が解決しようとする課題] 上述したような従来の時計装置では、通電、停電を繰り
返すことにより必ず時計が進むという問題点があった。
[Problems to be Solved by the Invention] The conventional clock device as described above has a problem in that the clock always advances due to repeated energization and power outage.

この発明は、上述した問題点を解決するためになされた
もので、通電、停電の繰り返しによる時計進みを少なく
することができる時計装置を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and an object thereof is to provide a timepiece device that can reduce clock advance due to repeated energization and power outage.

[:sIIを解決するための手段] この発明に係る時計装置は、以下に述べるような手段を
備えたものである。
[Means for solving sII] A timepiece device according to the present invention includes the following means.

(i〉、電源電圧を波形整形して電源周波数に対応した
パルスを出力する波形整形回路。
(i> Waveform shaping circuit that shapes the power supply voltage and outputs pulses corresponding to the power supply frequency.

(ii)、発振器に基づいて時刻を刻むバ・ンクア・ツ
ブ用時計。
(ii) A Ban Nkua Tubu clock that keeps time based on an oscillator.

(ii)、上記パルスをカウントして電源同期時計とし
て時刻を刻み、停電時には上記バ・ソファ・ツブ用時計
の時刻に切り換え、復電時に上記電源同期時計の時刻に
切り換えるとともにその時刻に統計的処理を加える中央
演算処理回路。
(ii) The above pulses are counted and the time is kept as a power synchronized clock, and in the event of a power outage, the time is switched to the time of the above-mentioned bath/sofa/tsubu clock, and when the power is restored, the time is switched to the time of the above power synchronized clock, and the statistical clock is set at that time. A central processing circuit that performs processing.

[作用] この発明においては、波形整形回路によって、電源電圧
が波形整形されて電源周波数に対応したパルスが出力さ
れる。
[Operation] In the present invention, the power supply voltage is waveform-shaped by the waveform shaping circuit and a pulse corresponding to the power supply frequency is output.

また、中央演算処理回路によって、上記パルスがカウン
トされて電源同期時計として時刻が刻まれ、停電時には
上記バックアップ用時計の時刻に切り換えられ、復電時
に上記電源同期時計の時刻に切り換えられるとともにそ
の時刻に統計的処理が加えられる。
In addition, the central processing circuit counts the above pulses and keeps time as a power synchronized clock, and in the event of a power outage, the time is switched to the time of the backup clock, and when power is restored, the time is switched to the time of the power synchronized clock, and the time is clocked. is subjected to statistical processing.

[実施例] この発明の実施例の構成を第1図を参照しながら説明す
る。
[Embodiment] The configuration of an embodiment of the present invention will be described with reference to FIG.

第1図は、この発明の一実施例を示すブロック図であり
、電源電圧端子(1)〜水晶時計(3)、表示器(5)
〜電力量周波数変換回路(8〉は上記従来装置のものと
全く同一である。
FIG. 1 is a block diagram showing an embodiment of the present invention, which includes a power supply voltage terminal (1) to a crystal clock (3), and a display device (5).
~Power frequency conversion circuit (8>) is completely the same as that of the above-mentioned conventional device.

第1図において、この発明の一実施例は、上述した従来
装置のマイクロコンピュータ(4)を、新しい機能が加
わったマイクロコンピュータ(4^)に置き換えたもの
である。
In FIG. 1, an embodiment of the present invention is such that the microcomputer (4) of the conventional device described above is replaced with a microcomputer (4^) having new functions.

ところで、この発明のバックパップ用時計は、上述した
この発明の一実施例では水晶時計(3)であり、中央演
算処理回路は、マイクロコンピュータ(4^)である。
By the way, the backpack watch of the present invention is a crystal watch (3) in the above-described embodiment of the present invention, and the central processing circuit is a microcomputer (4^).

つぎに、上述した実施例の動作を第2図及び第3図を参
照しながら説明する。
Next, the operation of the above embodiment will be explained with reference to FIGS. 2 and 3.

第25!!はこの発明の一実施例の波形整形回路(2〉
の出力パルスを示す波形図、第3図はこの発明の一実施
例の動作を示すフローチャート図である。
25th! ! is a waveform shaping circuit (2) of an embodiment of the present invention.
FIG. 3 is a flowchart showing the operation of an embodiment of the present invention.

第3図のステ、ブ(10)において、マイクロコンピュ
ータ(4^)は、時刻モードを電源同期時計とする。
In step (10) of FIG. 3, the microcomputer (4^) sets the time mode to a power synchronized clock.

ステ、F(11)において、マイクロコンピュータ(4
^)は、波形整形回路(2)からのパルスをカウントし
、波形整形回路(2)がパルスを一定期間発生している
かどうかを判断する6発生していない場合には停電と判
断し次のステ、ブ(12)へ進む。
In Ste, F (11), microcomputer (4
^) counts the pulses from the waveform shaping circuit (2) and determines whether the waveform shaping circuit (2) is generating pulses for a certain period of time 6 If no pulses are generated, it is determined that there is a power outage and the next Step, proceed to bu (12).

そうでない場合はステ、ブ(10)へ戻る。If not, return to step (10).

ステ、F(12)〜(13〉において、時刻モードを水
晶時計(3)とし、水晶時計〈3)により時刻を刻む、
波形整形回路(2)がパルスを発生するようになったら
復電と判断して、次のステ、ブ〈14〉へ進む。
In Steps F (12) to (13), the time mode is set to crystal clock (3), and the time is ticked by crystal clock <3).
When the waveform shaping circuit (2) starts generating pulses, it is determined that the power has been restored, and the process proceeds to the next step, B<14>.

スyqフ(14)において、電源同期時計の統計的処理
を加えてステ、ブ(10)へ戻る。
In step (14), statistical processing of the power synchronized clock is added and the process returns to step (10).

すなわち、例えば、50Hz周波数の電源の場合、1周
期20m5のパルスをカウントして時刻を刻むとする。
That is, for example, in the case of a power source with a frequency of 50 Hz, time is counted by counting pulses of 20 m5 per cycle.

停電時の水晶時計(3)動作から、通電になると次の分
00秒において電源同期時計の動作に切り替わる。その
とき、波形整形回路(2)からの第1発註のパルスの到
来時間は、第2図に示すように、0〜20m5の範囲内
で不定である。従って、必ず切換動作により、時刻は、
0〜20m5の進みを生じる。そこで、この水晶時計(
3)から電源同期時計に切り替わる際、上述した第1発
註のパルスのカウント時間を、パルスの172周期であ
る10m5として処理する。
The crystal clock (3) operation during a power outage switches to power synchronized clock operation at the next minute 00 seconds when power is turned on. At this time, the arrival time of the first pulse from the waveform shaping circuit (2) is indefinite within the range of 0 to 20 m5, as shown in FIG. Therefore, the time must be changed by switching operation.
A progress of 0 to 20 m5 is generated. Therefore, this crystal clock (
When switching to the power synchronized clock from 3), the count time of the first pulse mentioned above is treated as 10 m5, which is 172 cycles of the pulse.

そうすると、長期的に誤差の少ない時計が実現できる。In this way, a clock with fewer errors can be realized over the long term.

この発明の一実施例は、上述したように、停電から復電
して、水晶時計(3)から電源同期時計に切り替わる際
、波形整形回路(2)からの第1発註のパルスのカウン
ト時間を、統計的処理を加えて、つまりパルスの172
周期の時間として処理するので、長期的に安定な時計動
作を実現することができるという効果を奏する。
As described above, in an embodiment of the present invention, when the power is restored from a power outage and the crystal clock (3) is switched to the power synchronized clock, the count time of the first pulse from the waveform shaping circuit (2) is , by adding statistical processing, that is, 172 pulses
Since it is processed as a periodic time, it is possible to realize stable clock operation over a long period of time.

なお、上述した実施例では統計的処理として。In addition, in the above-mentioned embodiment, this is performed as statistical processing.

水晶時計(3)から電源同期時計に切り替わる毎に、波
形整形回路(2)からの第1発註のパルスのカウント時
間をパルスの172周期の時間としたが、上述の切り替
わる回数をカウントして、その偶数回目又は奇数回目に
切り替わる毎に第1発註のパルスのカウント時間を零時
間としても同様の動作を期待できる。
Each time the crystal clock (3) switches to the power synchronized clock, the count time of the first pulse from the waveform shaping circuit (2) is set to 172 cycles of the pulse, but the number of switchings described above is counted. , a similar operation can be expected even if the count time of the first pulse is set to zero time every time the pulse is switched to an even or odd number.

ところで上記説明では、電子式電力I計に利用する場合
について述べたが、その他の複合機器にも利用できるこ
とはいうまでもない。
Incidentally, in the above description, the case where the present invention is used in an electronic power I meter has been described, but it goes without saying that it can also be used in other composite devices.

[発明の効果] この発明は、以上説明したとおり、電源電圧を波形整形
して電源周波数に対応したパルスを出力する波形整形回
路と、発振器に基づいて時刻を刻むバックアップ用時計
と、上記パルスをカウントして電源同期時計として時刻
を刻み、停電時には上記バックアップ用時計の時刻に切
り換え、復電時に上記電源同期時計の時刻に切り換える
とともにその時刻に統計的処理を加える中央演算処理回
路とを備えたので、通電、停電の繰り返しによる時計進
みを少なくすることができるという効果を奏する。
[Effects of the Invention] As explained above, the present invention comprises a waveform shaping circuit that shapes the waveform of a power supply voltage and outputs a pulse corresponding to the power supply frequency, a backup clock that keeps time based on an oscillator, and a back-up clock that keeps time based on an oscillator. It is equipped with a central processing circuit that counts and keeps time as a power synchronized clock, switches to the time of the backup clock when the power goes out, switches to the time of the power synchronized clock when the power is restored, and performs statistical processing on the time. Therefore, it is possible to reduce clock advance due to repeated energization and power outage.

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

第1図はこの発明の一実施例を示すブロック図、第2r
Mはこの発明の一実施例の波形整形回路の出力パルスを
示す波形図、第3図はこの発明の一実施例の動作を示す
フローチャート図、第4図は従来の時計装置を示すブロ
ック図である。 図において、 (1) ・・・ 電源電圧端子、 (2) (3) (4^) (5〉 なお、 を示す。 ・・・ 波形整形回路、 ・・・ 水晶時計、 ・・・ マイクロコンピュータ、 ・・・ 表示器である。
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
M is a waveform diagram showing output pulses of a waveform shaping circuit according to an embodiment of the present invention, FIG. 3 is a flowchart diagram showing the operation of an embodiment of the present invention, and FIG. 4 is a block diagram showing a conventional clock device. be. In the figure, (1) ... power supply voltage terminal, (2) (3) (4^) (5>) In addition, ... waveform shaping circuit, ... crystal clock, ... microcomputer, ... It is an indicator.

Claims (1)

【特許請求の範囲】[Claims] 電源電圧を波形整形して電源周波数に対応したパルスを
出力する波形整形回路、発振器に基づいて時刻を刻むバ
ックアップ用時計、及び上記パルスをカウントして電源
同期時計として時刻を刻み、停電時には上記バックアッ
プ用時計の時刻に切り換え、復電時に上記電源同期時計
の時刻に切り換えるとともにその時刻に統計的処理を加
える中央演算処理回路を備えたことを特徴とする時計装
置。
A waveform shaping circuit that shapes the power supply voltage and outputs pulses corresponding to the power supply frequency, a backup clock that keeps time based on an oscillator, and a backup clock that counts the above pulses and keeps time as a power synchronized clock, and in the event of a power outage, the above backup What is claimed is: 1. A clock device comprising a central processing circuit that switches to the time of the power supply synchronized clock when the power is restored, and performs statistical processing on the time.
JP22151689A 1989-08-30 1989-08-30 Commercial AC power supply synchronous clock device Expired - Fee Related JPH0664167B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22151689A JPH0664167B2 (en) 1989-08-30 1989-08-30 Commercial AC power supply synchronous clock device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22151689A JPH0664167B2 (en) 1989-08-30 1989-08-30 Commercial AC power supply synchronous clock device

Publications (2)

Publication Number Publication Date
JPH0385487A true JPH0385487A (en) 1991-04-10
JPH0664167B2 JPH0664167B2 (en) 1994-08-22

Family

ID=16767940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22151689A Expired - Fee Related JPH0664167B2 (en) 1989-08-30 1989-08-30 Commercial AC power supply synchronous clock device

Country Status (1)

Country Link
JP (1) JPH0664167B2 (en)

Also Published As

Publication number Publication date
JPH0664167B2 (en) 1994-08-22

Similar Documents

Publication Publication Date Title
KR100396785B1 (en) Apparatus and method for compensating time error of gsm terminal
US4068462A (en) Frequency adjustment circuit
JPH0385487A (en) Time-piece apparatus
JP2001183478A (en) Microcomputer system and electronic watt-hour meter
JP3383437B2 (en) Time measurement method and clock
JPH01124773A (en) Frequency measuring instrument
JPH0821884A (en) Clock device
JP3281757B2 (en) Automatic correction device for oscillation error in electronic timepiece
JP2000314788A (en) Timepiece synchronous with synchronizing signal from digital network
JP4004668B2 (en) Data processing circuit
JPH058995B2 (en)
JP2993318B2 (en) Timed switching watchdog timer circuit
JPS64634Y2 (en)
JP4293499B2 (en) Real-time clock device
JP3642185B2 (en) Separate electronic energy meter
JP3238334B2 (en) Clock time unit time signal generator
JPH066211A (en) Reference oscillator and its control method
JPS62164200A (en) Traffic signal controller
JPH042971A (en) Electronic watt-hour meter
JPS58205885A (en) Integrated circuit for electronic time piece
JPH0557696U (en) Zero-zero switch mechanism
JPH0129431B2 (en)
JPS59111088A (en) Electronic clock
JPH0694854A (en) Standard time producing device
JPH04349517A (en) Synchronous device for fractional second integrating timepiece by calendar ic

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070822

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees