JPS58105376A - Reading system of service interuption time - Google Patents

Reading system of service interuption time

Info

Publication number
JPS58105376A
JPS58105376A JP56204029A JP20402981A JPS58105376A JP S58105376 A JPS58105376 A JP S58105376A JP 56204029 A JP56204029 A JP 56204029A JP 20402981 A JP20402981 A JP 20402981A JP S58105376 A JPS58105376 A JP S58105376A
Authority
JP
Japan
Prior art keywords
time
counter
clock
power outage
clocks
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
Application number
JP56204029A
Other languages
Japanese (ja)
Inventor
Kunio Nozawa
野沢 邦雄
Osamu Yoshida
美田 修
Masako Sumi
角 正子
Yasusuke Katagiri
片桐 庸介
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56204029A priority Critical patent/JPS58105376A/en
Publication of JPS58105376A publication Critical patent/JPS58105376A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4825Interrupt from clock, e.g. time of day

Abstract

PURPOSE:To know the time of service interruption and at the same time to ensure a quick reset to the normal time, by stopping the working of a clock counter to hold the service interruption time data when the service is interrupted and counting the number of clocks equivalent to the period of service interruption by means of a different high-speed clock counter. CONSTITUTION:The time of service interruption is known for a data collector, and the processing items which are missed in the period of service interruption. In this case, a time counter CTR1 counts clocks and delivers a time data. When a service interruption is detected, the counter CTR1 stops its counting of clocks and holds the time of service interruptin. A counter CTR2 counts high-speed clocks (1-minute clocks) in place of the CTR1. Then the contents (the number of clocks equivalent to the period of service interruption) of the counter CTR2 are read and applied to the counter CRT1. Thus the time can be reset to the present normal time.

Description

【発明の詳細な説明】 不発明拡、データ収集装置i#に於いて、停電時刻を処
理部で絖取って、停電期間中に欠落した処理事項の認識
等を行なう為の停電時刻読取方式に関するものである。
[Detailed Description of the Invention] This invention relates to a power outage time reading method in the data collection device i#, in which the processing unit captures the power outage time to recognize missing processing items during the power outage period. It is something.

データ収集装置は、例えば第1図に示すように、処理部
1.メモリ2.入出力制御部5及び時計部4を有し、時
計部4は電池等で無停電化し、時計部4からの時刻デー
タに従って処理部1は所定時間毎にデータ収集を行なう
ものである。このようなデータ収集装置に於いて、停電
になると、時針部4のみ無停電化されているので動作を
継続するが、他は消費電力が大きいこともあって動作が
停止される。そして停電回復により、時計部4が正常に
動作していることにより、再び処理部1は処理を継続す
ることができる。
For example, as shown in FIG. 1, the data collection device includes a processing unit 1. Memory 2. It has an input/output control section 5 and a clock section 4, the clock section 4 is uninterrupted by a battery or the like, and the processing section 1 collects data at predetermined time intervals according to time data from the clock section 4. In such a data collection device, when a power outage occurs, only the hour hand section 4 continues to operate because it is uninterrupted, but the other sections stop operating because of their large power consumption. Then, when the power is restored and the clock section 4 is operating normally, the processing section 1 can continue processing again.

しかし、データ収集装置によっては、停電期間中に欠落
した処理参項を処理部1で認識する必要がある場合があ
る。その場合は停電時刻を処理部1で知る必要がある。
However, depending on the data collection device, it may be necessary for the processing section 1 to recognize the missing processing entry during the power outage period. In that case, it is necessary for the processing unit 1 to know the power outage time.

その為、例えば第2図に示すようにメモリ2を無停電化
することが考えられる。即ち時計部4から時刻データを
処理部1の制御によシメモリ2に書込み、一定時間毎に
繰返してメモリ2の時刻データを更新する。従って停電
に表ると、メモリ2への時刻データの書込みが停止され
るので、メモリ2の内容は停電時刻を示すものとなる。
Therefore, it is conceivable to make the memory 2 uninterrupted as shown in FIG. 2, for example. That is, time data is written from the clock section 4 into the memory 2 under the control of the processing section 1, and the time data in the memory 2 is updated at regular intervals. Therefore, when a power outage occurs, writing of time data to the memory 2 is stopped, so that the contents of the memory 2 indicate the time of the power outage.

この停電時刻は停電回復時に処理部1により読取ること
ができる。
This power outage time can be read by the processing unit 1 when the power outage is restored.

この従来例は、メモリ2の無停電化と、処理部1の制御
による時刻更新処理とが必要になり、処理部1の処理負
担が大きくなシ且つメモリ2の容量に対応したバックア
ップ電源を設けなければならない欠点がある。
This conventional example requires uninterrupted power supply to the memory 2 and time update processing under the control of the processing unit 1, and requires a backup power supply corresponding to the capacity of the memory 2 and the processing load on the processing unit 1 to be large. There are drawbacks that must be met.

又M5図に示すように、時計部4a、4b @設けて無
停電化し、時計部4aは第1図に於ける時計部4と同様
に動作し、一時計部4bは停電検出部5により停電を検
出したとき、時計部4bの動作を停止させ、停電時刻を
保持させておき、停電回復により処理部1で時計部4b
から停電時刻を読取るようにするもので、メモリ2への
時刻更新処理は必要でなくなる。しかし、2個の時計部
4a、4bを設けなければならず、又処理部1では2個
の時計部4α、46をそれぞれ認識しなidはならない
欠点がある。
In addition, as shown in Fig. M5, clock parts 4a and 4b are provided for uninterrupted power outage.The clock part 4a operates in the same manner as the clock part 4 in FIG. When the clock section 4b is detected, the operation of the clock section 4b is stopped and the power outage time is held, and when the power outage is recovered, the processing section 1
Since the time of power outage is read from , there is no need to update the time to the memory 2. However, there is a drawback that two clock sections 4a and 4b must be provided, and that the processing section 1 cannot recognize the two clock sections 4a and 46, respectively.

本発明は、1個の時計部で停電時刻の保持をも可能とす
ることを目的とするものである。以下実施例について詳
細に説明する。
An object of the present invention is to make it possible to maintain power outage time with one clock unit. Examples will be described in detail below.

第4図れ本発明の実施例の要部ブロック線図であシ、G
は処理部からのリード信号により時刻データを出力する
ゲート回路、cTRlは例えば1分クロックによシ1分
単位、10分単位、1時間単位。
Figure 4 is a block diagram of main parts of an embodiment of the present invention.
cTR1 is a gate circuit that outputs time data in response to a read signal from the processing section, and cTRl is a gate circuit that outputs time data based on a read signal from the processing section, and cTRl is a clock unit of 1 minute, 10 minutes, or 1 hour, for example.

10時時間位の時刻データを出力する時刻カウンタ、O
20は基準の両速クロックを出力する発振器、1)Vは
高速クロックを分周し例えば1分クロックを出力する分
周回路、DETは停電検出部、FF1゜FF2はフリッ
プ70ツブ、CTR2は停電期間中1分クロックをカウ
ントアツプし、停電回復にょシ高速クロックをダウンカ
ウントするカウンタ、01〜G4はアンド回路、G5.
に6はオア回路、G7If′iノア回路である。
A time counter that outputs time data around 10 o'clock, O
20 is an oscillator that outputs a reference double-speed clock, 1) V is a frequency dividing circuit that divides the high-speed clock and outputs, for example, a 1-minute clock, DET is a power failure detection unit, FF1° and FF2 are flip 70 knobs, and CTR2 is a power failure A counter that counts up the 1-minute clock during the period and counts down the high-speed clock when recovering from a power outage. 01 to G4 are AND circuits, and G5.
6 is an OR circuit, and G7If'i is a NOR circuit.

第5図は動作駁明図であシ、(α)〜(j)は第4図の
各部の信号α〜iの一例の波形を示すものである。
FIG. 5 is a diagram showing the operation, and (α) to (j) show waveforms of examples of signals α to i at each part in FIG. 4.

処理部からのリード信号fによシフリップフロップFF
1はリセットされ、又分周回路DVがらの1分りロック
bはアンド回路G1 とオア回路G5を介してカウンタ
CTR1のカウントクロックdとなり、カウンタCTl
11のカウント内容は前述の如く時刻データとなシ、リ
ード信号fによってゲート回路Gが開かれて処理部によ
シ時刻データが読取られる。
Shift flip-flop FF according to read signal f from processing section
1 is reset, and the 1-minute lock b from the frequency divider circuit DV becomes the count clock d of the counter CTR1 via the AND circuit G1 and the OR circuit G5,
The contents of the count 11 are time data as described above, and the gate circuit G is opened by the read signal f, and the time data is read by the processing section.

停電が時刻t1に生じたとすると、停電検出部DETか
らの検出信号aが@1#となり、フリップフロップFF
1がセットされる。従ってQ端子出力Cは第5図(1)
)に示すように″1′となり、ノア回路GV’の出力は
″0”となってアンド回路G1は閉じられ、フリップフ
ロップFF2のQ端子出力gも@IO″′であるから、
カウントクロックdはカウンタCTR1に加えられなく
なる。即ち停電時刻がカウンタCTR1に保持される。
If a power outage occurs at time t1, the detection signal a from the power outage detection unit DET becomes @1#, and the flip-flop FF
1 is set. Therefore, the Q terminal output C is shown in Figure 5 (1).
), the output of the NOR circuit GV' becomes "0" and the AND circuit G1 is closed, and the Q terminal output g of the flip-flop FF2 is also @IO"'.
Count clock d is no longer applied to counter CTR1. That is, the power outage time is held in the counter CTR1.

又7リツプフロツプFF1のQ端子出力Cが11#とな
ることによシ、1分りロックbがアンド回路G3.オア
回路G6を介してカウントクロック−となる。又フリッ
プフロップFF2のQ端子出力が“1”であるので、カ
ウンタCTR2$11アップカウントモードとなり、カ
ウントクロック−管カウントアツプする。即ち時刻カウ
ンタCTR1の代わシに1分りロックbをカウントする
Also, since the Q terminal output C of the 7-lip flop FF1 becomes 11#, the 1-minute lock b becomes the AND circuit G3. It becomes a count clock via the OR circuit G6. Also, since the Q terminal output of the flip-flop FF2 is "1", the counter CTR2 enters the $11 up count mode, and the count clock - tube counts up. That is, one minute lock b is counted instead of time counter CTR1.

時刻t2に停電回復すると、検出信号aid第5図(→
に示すように“0”となる。時刻t2以後、処理部が停
電時刻を読みとる信号fによりフリップフロップFF1
はリセットされ、Q端子出力c H@o”となる。又フ
リップフロップFF2はセットされ、Q端子出力gは“
1″、ル端子出力(は”0″とな)、カウンタCTR2
はダウンカウントモードとなる。
When the power is restored at time t2, the detection signal aid shown in Fig. 5 (→
It becomes "0" as shown in . After time t2, the processing unit reads the power outage time by the signal f, which causes the flip-flop FF1 to be activated.
is reset, and the Q terminal output c becomes "H@o".Flip-flop FF2 is also set, and the Q terminal output g becomes "
1", terminal output (is "0"), counter CTR2
is in down count mode.

従って高速クロックがアンド回路G2.オア回路G5を
介してカウントクロックdとなると共に、アンド回路G
4.オア回路G6を介してカウントクロック−となる。
Therefore, the high-speed clock is AND circuit G2. It becomes the count clock d via the OR circuit G5, and the AND circuit G
4. It becomes a count clock via the OR circuit G6.

カウンタCTR2は停電期間中に1分クロックをアップ
カウントし、停電回復゛により高速クロックをダウンカ
ウントし、ボロー信号kが出力されると7リツプフロツ
プFF2はリセットされ、Q端子出力gは@0#となυ
、フリップフロップFF1モリノ セット状態であるから、アンド回路G1は開かれ、アン
ド回路02〜G4は閉じられて、1分クロックbが時刻
カウンタCTR1のカウントクロックdとなる。即ち停
電期間中にカウンタCTR2に加えられた1分りロック
bの数だけの高速クロックが時刻カウンタCTR1に停
電回復と同時に加えられるので、時刻カウンタCTR1
の内容は再び正常な時刻データを示すものとなる。
Counter CTR2 counts up the 1-minute clock during the power outage period, and downcounts the high-speed clock when the power is restored. When the borrow signal k is output, the 7-lip-flop FF2 is reset, and the Q terminal output g becomes @0#. Naυ
Since the flip-flop FF1 is in the Morino set state, the AND circuit G1 is opened, the AND circuits 02 to G4 are closed, and the one-minute clock b becomes the count clock d of the time counter CTR1. That is, as many high-speed clocks as the number of 1-minute locks b added to the counter CTR2 during the power outage period are added to the time counter CTR1 at the same time as the power is restored, the time counter CTR1
The contents of will again indicate normal time data.

以上説明したように、不発明社、1分りロックb4のク
ロックをカウント計て時刻データを出力する時刻カラ/
りCTR1と、停電検出によって時刻カウンタCTR1
のクロックのカウントを停止して、時刻カウンタCTR
1の代わシに1分りロックb等のクロックをカウントす
るカウンタCTR2とを備え、停電回復時に時刻カウン
タCTR1に保持された停電時刻データを処理部で読取
り、且つカウンタCTR2のカウント内容だけ高速クロ
ックを時刻カウンタCTR1に加えるもので、時刻カウ
ンタcrrt11d、通常の時刻データを出力すること
ができると共に、停電時は、クロックのカウントを停止
することにより停電時刻データを保持することができる
ものとなシ、又停電回復により停電期間に相当するクロ
ック数の高速クロックをカウントして正常の時刻を示す
内容に復帰することができる0例えば時刻カウンタCT
R1が1分クロックをカウントすることによシ時刻デー
タを出力する場合、高速クロックを例えば100f#z
 とすれば、10時間停電の場合でも、時刻カウンタC
TR1が高速クロックのカウントによシ正常の時刻を示
すように復帰するのJrl、6mSで済むことになり、
1分クロックの11i!i1期内で正常の時刻に復帰す
ることができる。又本発明は、第4図に示すS成のみに
限定されるものではなく、種々の論理構成を採用するこ
とができる。
As explained above, Fujuisha, a time clock/clock that counts the clock of 1-minute lock b4 and outputs time data.
CTR1 and time counter CTR1 when a power outage is detected.
Stop counting the clock and set the time counter CTR.
In place of 1, it is equipped with a counter CTR2 that counts a clock such as a 1-minute lock b, and when the power is restored, the processing unit reads the power outage time data held in the time counter CTR1, and the high-speed clock is activated by the count content of the counter CTR2. In addition to the time counter CTR1, the time counter crrt11d can output normal time data, and at the time of a power outage, can hold the power outage time data by stopping the clock count. In addition, upon recovery from a power outage, it is possible to return to the normal time by counting high-speed clocks corresponding to the number of clocks corresponding to the power outage period. For example, time counter CT
When R1 outputs time data by counting 1-minute clocks, the high-speed clock is set to 100f#z, for example.
Then, even in the case of a 10-hour power outage, the time counter C
It only takes 6 mS for TR1 to return to the normal time according to the high-speed clock count.
11i of 1 minute clock! It is possible to return to normal time within the i1 period. Further, the present invention is not limited to only the S configuration shown in FIG. 4, and various logical configurations can be adopted.

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

第1図、第2図、第6図は従来の時計部を備えたデータ
収集装置の要部ブロック線図、第4図は本発明の実施例
のブロック線図、第5図は動作説明図である。 CTR1は時刻カウンタ、Gはゲート回路、O20は発
振器、Drは分周回路、CTR2はカウンタ、FF1.
FF2は7リツプフロツプ、I)ETは停電検出部であ
る。 特許出願人富士通株式会社
1, 2, and 6 are block diagrams of main parts of a data collection device equipped with a conventional clock section, FIG. 4 is a block diagram of an embodiment of the present invention, and FIG. 5 is an operation explanatory diagram. It is. CTR1 is a time counter, G is a gate circuit, O20 is an oscillator, Dr is a frequency dividing circuit, CTR2 is a counter, FF1.
FF2 is a 7-lip flop, and I)ET is a power failure detection section. Patent applicant Fujitsu Limited

Claims (1)

【特許請求の範囲】[Claims] 停電時刻を保持して停電回復時に該停電時刻を処理部で
読取る方式に於いて、クロックをカウントして時刻デー
タを出力する時刻カウンタと、停電検出により前記時刻
カウンタのクロックのカウントを停止して停電時刻デー
タを保持し、且つ該時刻カウンタの代わりに前記クロッ
クをカウントするカウンタとを備え、停電回復時に前記
時刻カウンタに保持された停電時刻データを前記処理部
で読取り、且つ前記カウンタのカウント内容だけ高速ク
ロックを前記時刻カウンタに加えることを特許とする停
電時刻読取方式。
In a system in which a power outage time is held and the power outage time is read by a processing unit when the power outage is recovered, there is provided a time counter that counts a clock and outputs time data, and a time counter that stops counting the clock of the time counter upon detection of a power outage. a counter that holds power outage time data and counts the clock instead of the time counter; the processor reads the power outage time data held in the time counter when the power outage is recovered; and the count contents of the counter A patented power outage time reading method that adds a high-speed clock to the time counter.
JP56204029A 1981-12-17 1981-12-17 Reading system of service interuption time Pending JPS58105376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56204029A JPS58105376A (en) 1981-12-17 1981-12-17 Reading system of service interuption time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56204029A JPS58105376A (en) 1981-12-17 1981-12-17 Reading system of service interuption time

Publications (1)

Publication Number Publication Date
JPS58105376A true JPS58105376A (en) 1983-06-23

Family

ID=16483574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56204029A Pending JPS58105376A (en) 1981-12-17 1981-12-17 Reading system of service interuption time

Country Status (1)

Country Link
JP (1) JPS58105376A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5195025A (en) * 1991-02-21 1993-03-16 Texas Instruments Incorporated System and method for dynamic change of computer system and subsystem time-of-day clocks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5195025A (en) * 1991-02-21 1993-03-16 Texas Instruments Incorporated System and method for dynamic change of computer system and subsystem time-of-day clocks

Similar Documents

Publication Publication Date Title
JPH0290308A (en) Clock switching circuit
JPS6049354B2 (en) Event occurrence recording method
US4646167A (en) Time code decoder
JPS58105376A (en) Reading system of service interuption time
EP0225512A1 (en) Digital free-running clock synchronizer
JPH0321928B2 (en)
US4468133A (en) Electronic timepiece
US4189910A (en) Electronic watch with alarm mechanism
JPS62189520A (en) Clock count system for microcomputer
JP3484660B2 (en) Buffer memory capacity shortage detection circuit
SU1179349A1 (en) Device for checking microprograms
SU785866A1 (en) Number comparing device
SU1529290A1 (en) Memory unit
RU1798794C (en) Device for synchronization of two processors having common memory unit
SU1157566A1 (en) Device for magnetic recording of digital information signals
SU1084901A1 (en) Device for checking memory block
US5450602A (en) Two stage register for capturing asynchronous events and subsequently providing them to a processor without loss or duplication of the captured events
JPH0413681Y2 (en)
SU1564621A1 (en) Microprogram control device
JPS6037640Y2 (en) CMT device interface
RU1798792C (en) Device for testing input/output interface
JP3216200B2 (en) Data memory write control circuit
JPS6030873Y2 (en) non-volatile storage
JPH06231087A (en) Multi-cpu system
JPS6251041B2 (en)