JPH05265606A - Electronic apparatus - Google Patents

Electronic apparatus

Info

Publication number
JPH05265606A
JPH05265606A JP4065095A JP6509592A JPH05265606A JP H05265606 A JPH05265606 A JP H05265606A JP 4065095 A JP4065095 A JP 4065095A JP 6509592 A JP6509592 A JP 6509592A JP H05265606 A JPH05265606 A JP H05265606A
Authority
JP
Japan
Prior art keywords
time
power
set time
circuit
power supply
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
JP4065095A
Other languages
Japanese (ja)
Inventor
Yoshitaka Nakamura
吉孝 中村
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.)
Toshiba TEC Corp
Original Assignee
Tokyo 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP4065095A priority Critical patent/JPH05265606A/en
Publication of JPH05265606A publication Critical patent/JPH05265606A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To make it possible to attain a prescribed function at a set time even if long service interruption is generated by resetting the set time erased by the service interruption. CONSTITUTION:This electronic apparatus is provided with a set time storing means (set time data memory) 5a capable of storing set time even at the time of service interruption, a power restoration detecting means (relay control circuit) 35 for detecting power restoration from service interruption status and a time set control means for controlling a time setting means 44 at the time of detecting power restoration by the means 35 and setting up the set time stored by the means 5a. At the time of restoring the generated service interruption, the means 35 detects power restoration from the service interruption status. When the power restoration is detected, the set time control means controls the means 44 to set up the set time stored in the means 5a. Thereby, when a time counting means counts up the time set up by the means 44, prescribed operation is executed.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、設定された時刻を計
時すると所定の動作を行う電子機器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device that performs a predetermined operation when a set time is measured.

【0002】[0002]

【従来の技術】電子機器、例えばストアコントローラで
統括される端末装置等では、一日の業務開始時には開店
処理が行われ、業務終了時には閉店処理が行われること
になっている。この開店処理及び閉店処理は所要時間を
必要とし、端末装置の使用者は実際の業務開始するため
に開店処理が終了するまで待たなければならず、また電
源をオフするために閉店処理が終了するまで待たなけれ
ばならない。
2. Description of the Related Art In an electronic device, such as a terminal device controlled by a store controller, a store opening process is performed at the start of a day's work, and a store closing process is performed at the end of the work. The opening process and the closing process require a required time, and the user of the terminal device has to wait until the opening process is completed to actually start the business, and the closing process is completed to turn off the power. I have to wait until.

【0003】そこで従来の端末装置においては、APS
装置(自動電源立ち上げ装置)を設けて、機器本体の主
電源のオン/オフを自動的に行うものが知られている。
APS装置は電源の立ち上げ時刻を設定すれば、APS
装置内部に設けられたタイマがその設定された立ち上げ
時刻を計時すると、機器本体の主電源に電力を供給し、
機器本体からの停止信号により機器本体の主電源への電
力供給を停止するものである。
Therefore, in the conventional terminal device, the APS
It is known that a device (automatic power supply startup device) is provided to automatically turn on / off the main power supply of the device body.
If you set the power-on time, the APS device
When the timer provided inside the device measures the set startup time, it supplies power to the main power supply of the device body,
The stop signal from the device body stops the power supply to the main power supply of the device body.

【0004】このような端末装置では、主電源に電力を
供給されることにより電源投入時の処理として開店処理
が行なわれるようにし、一日の業務終了時に行われる閉
店処理が終了すると停止信号をAPS装置に出力するよ
うに設定しておけば、使用者は開店処理及び閉店処理が
終了するまで待つ必要がなくなった。
In such a terminal device, an opening process is performed as a process when the power is turned on by supplying power to the main power source, and a stop signal is given when the closing process performed at the end of the day's work is completed. By setting to output to the APS device, the user does not have to wait until the opening process and the closing process are completed.

【0005】[0005]

【発明が解決しようとする課題】ところで、従来の端末
装置に設けられたAPS装置では、主電源の立ち上げ時
刻が記憶されるメモリはバックアップされていたが、数
分間以上停電に対してはそのメモリに記憶された内容に
ついて保証されなかった。つまり、バックアップ時間よ
り長い停電によりそのメモリの内容が完全に記憶保持で
きないという虞があった。従って、数分間以上の停電が
発生すると、設定した立ち上げ時刻が消失してしまうと
いう虞があった。
By the way, in the APS device provided in the conventional terminal device, the memory for storing the startup time of the main power supply is backed up, but in case of a power failure for several minutes or more, There was no guarantee of what was stored in memory. That is, there is a fear that the contents of the memory cannot be completely stored and held due to a power failure that is longer than the backup time. Therefore, if a power failure occurs for several minutes or more, the set start-up time may be lost.

【0006】すると、端末装置は設定された時刻に主電
源に電力が供給されず、通常の開店処理が所定の時刻に
行われない。
Then, the terminal device does not supply power to the main power source at the set time, and the normal store opening process is not performed at the predetermined time.

【0007】一般に電子機器において、設定時刻を記憶
するメモリは長時間の停電に対しては記憶内容について
は保証されてはいない。すなわち、長時間の停電が発生
したときに、電子機器は設定された時刻にその機能を果
たすことができなくなるという問題があった。
Generally, in an electronic device, the memory for storing the set time is not guaranteed in the stored contents even after a long power failure. That is, there is a problem that the electronic device cannot perform its function at the set time when a long power failure occurs.

【0008】そこでこの発明は、停電により消去した設
定時刻を再設定することができ、長時間の停電が発生し
ても設定時刻に所定の機能を果たすことができる電子機
器を提供することを目的とする。
Therefore, the present invention aims to provide an electronic device capable of resetting a set time erased by a power failure and performing a predetermined function at the set time even if a long power failure occurs. And

【0009】[0009]

【課題を解決するための手段】この発明は、時刻を計時
する時刻計時手段と時刻を設定する時刻設定手段とを備
え、時刻設定手段により設定された時刻を時刻計時手段
が計時すると所定の動作を行う電子機器において、停電
時にも設定時刻を記憶保持する設定時刻記憶手段と、停
電状態から復電したことを検出する復電検出手段と、こ
の復電検出手段により復電を検出すると時刻設定手段を
制御して設定時刻記憶手段により記憶保持された設定時
刻を設定させる時刻設定制御手段とを設けたものであ
る。
SUMMARY OF THE INVENTION The present invention comprises a time measuring means for measuring the time and a time setting means for setting the time, and a predetermined operation is performed when the time measuring means measures the time set by the time setting means. In an electronic device that performs the above, set time storage means that stores and holds the set time even during a power failure, power recovery detection means that detects that power is recovered from the power failure state, and time setting is performed when power recovery is detected by this power recovery detection means. And a time setting control means for controlling the means to set the set time stored and held by the set time storage means.

【0010】[0010]

【作用】このような構成の本発明において、停電が発生
しその後復電すると、復電検出手段により、停電状態か
らの復電が検出される。この復電の検出により、時刻設
定制御手段は時刻設定手段を制御して、設定時刻記憶手
段に記憶保持された設定時刻を設定させる。
In the present invention having such a structure, when a power failure occurs and then the power is restored, the power recovery detecting means detects the power recovery from the power failure state. Upon detection of this power recovery, the time setting control means controls the time setting means to set the set time stored and held in the set time storage means.

【0011】従って時刻計時手段が時刻設定手段により
設定された時刻を計時すると、所定の動作が行われる。
Therefore, when the time measuring means measures the time set by the time setting means, a predetermined operation is performed.

【0012】[0012]

【実施例】以下、この発明の一実施例を図面を参照して
説明する。なおこの実施例は本発明を端末装置に適用し
たもので、1は制御部本体を構成するCPU(central
processing unit )である。このCPU1が行う処理の
プログラムデータが記憶されたROM(read only memo
ry)2、前記CPU1が処理を行うときに使用する各種
メモリのエリアが形成されたRAM(random access me
mory)3、前記CPU1の処理中に停電が発生したとき
に、その時の前記CPU1の状態を記憶するための不揮
発性メモリ4と、電池により電力が供給され、設定時刻
が記憶された設定時刻記憶手段としての設定時刻データ
メモリ5aが内蔵された時計IC5は、システムバス6
を介して前記CPU1と接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. In this embodiment, the present invention is applied to a terminal device, and 1 is a CPU (central
processing unit). A ROM (read only memo) in which program data for processing performed by the CPU 1 is stored
ry) 2, a RAM (random access me) in which areas of various memories used when the CPU 1 performs processing are formed.
3), a non-volatile memory 4 for storing the state of the CPU 1 at the time when a power failure occurs during the processing of the CPU 1, and a set time storage in which power is supplied by a battery and a set time is stored. The clock IC 5 having the set time data memory 5a as means is a system bus 6
It is connected to the CPU 1 via.

【0013】キーボード7を制御するキーボードコント
ローラ8、表示器9を制御する表示コントローラ10、
APS(自動電源立ち上げ)ボード11、インラインマ
スター機とラインにより接続された通信I/F(インタ
ーフェイス)12もまた、前記システムバス6を介して
前記CPU1と接続されている。
A keyboard controller 8 for controlling the keyboard 7, a display controller 10 for controlling the display device 9,
An APS (automatic power supply start-up) board 11 and a communication I / F (interface) 12 connected to the inline master machine via a line are also connected to the CPU 1 via the system bus 6.

【0014】図2に電源回路の要部構成のブロック図を
示す。電源(AC100V)21からの電力は、前記A
PSボード11を介して本体電源部22に供給されるよ
うになっている。なお、前記APSボード11から前記
本体電源22への電力供給ラインには電源スイッチ23
が介挿されているが、この電源スイッチ23は通常オン
状態にされたままになっている。
FIG. 2 shows a block diagram of the main configuration of the power supply circuit. The power from the power source (AC100V) 21 is
The power is supplied to the main body power supply section 22 via the PS board 11. A power switch 23 is provided on the power supply line from the APS board 11 to the main body power supply 22.
However, the power switch 23 is normally kept in the ON state.

【0015】図3に前記APSボード11の要部回路構
成のブロック図を示す。
FIG. 3 shows a block diagram of a circuit configuration of a main part of the APS board 11.

【0016】前記電源21からの交流電流はI入力端子
から入力される。入力された交流電流はトランス31に
より所定の電圧に降圧され、整流回路32及び定電圧回
路33を介して+5Vの直流電流を得る。この+5Vの
直流電流は第1のダイオード34を介して、このAPS
ボード11の制御電源として出力される。
The alternating current from the power source 21 is input from the I input terminal. The input alternating current is stepped down to a predetermined voltage by the transformer 31, and a direct current of +5 V is obtained via the rectifier circuit 32 and the constant voltage circuit 33. This + 5V DC current is transmitted to the APS via the first diode 34.
It is output as the control power supply for the board 11.

【0017】また、この第1のダイオード34のカソー
ド端子からの出力は、復電検出手段としてのリレーコン
トロール回路35に入力され、このリレーコントロール
回路35はこの入力された電圧の立ち上がりを検出する
と、リレー制御用トランジスタ36のベース端子に接続
された出力端子の電圧をハイレベルにする。このトラン
ジスタ36のエミッタ端子はグラウンドに接続され、そ
のコレクタ端子は第2のダイオード37が並列に接続さ
れたリレーの励磁コイル38を介して制御電源+5Vに
接続されている。
The output from the cathode terminal of the first diode 34 is input to a relay control circuit 35 as a power recovery detecting means. When the relay control circuit 35 detects the rising of the input voltage, The voltage of the output terminal connected to the base terminal of the relay control transistor 36 is set to the high level. The emitter terminal of the transistor 36 is connected to the ground, and the collector terminal thereof is connected to the control power source + 5V through the exciting coil 38 of the relay in which the second diode 37 is connected in parallel.

【0018】前記本体電源部22と接続しているO出力
端子は、前記I入力端子と前記リレーの常開接点39を
介して接続されている。従って、前記リレーコントロー
ル回路35の前記トランジスタ36のベース端子と接続
された出力端子の電圧がハイレベルになると、前記トラ
ンジスタ36はオン動作し、前記励磁コイル38が通電
されて前記常開接点39が閉動作して、前記電源21か
らの交流電流がI端子からO出力端子を介して前記本体
電源部22に出力されるようになる。
An O output terminal connected to the main body power source section 22 is connected to the I input terminal through a normally open contact 39 of the relay. Therefore, when the voltage of the output terminal connected to the base terminal of the transistor 36 of the relay control circuit 35 becomes high level, the transistor 36 is turned on, the exciting coil 38 is energized, and the normally open contact 39 is opened. By the closing operation, the alternating current from the power source 21 is output from the I terminal to the main body power source section 22 via the O output terminal.

【0019】端末装置本体から5V入力端子に入力され
た装置本体の+5V電流は、第3のダイオード40を介
して前記制御電源+5Vに接続されている。また、この
入力された+5V電流は本体電源監視回路41に入力さ
れる。この本体電源監視回路41では+5V電流が入力
されるとローレベルを出力し、+5V電流が入力されな
ければハイレベルを出力するようになっている。この本
体電源監視回路41の出力信号はAND回路42の一方
の入力端子に接続され、このAND回路42の残る一方
の入力端子には、公衆回線に接続されたモデム(図示せ
ず)からCI入力端子に入力されたCI信号が入力され
る。前記AND回路42の出力端子から出力される信号
は、前記リレーコントロール回路35に入力される。
The + 5V current of the device body, which is input to the 5V input terminal from the terminal device body, is connected to the control power source + 5V through the third diode 40. The input + 5V current is also input to the main body power supply monitoring circuit 41. The main body power supply monitoring circuit 41 outputs a low level when + 5V current is input and outputs a high level when + 5V current is not input. The output signal of the main body power supply monitoring circuit 41 is connected to one input terminal of the AND circuit 42, and the other input terminal of the AND circuit 42 is CI input from a modem (not shown) connected to a public line. The CI signal input to the terminal is input. The signal output from the output terminal of the AND circuit 42 is input to the relay control circuit 35.

【0020】また、端末装置本体からD0入力端子〜D
7入力端子に入力された設定時刻データは、端末装置本
体からSTB入力端子に入力されたストローブ信号及び
SETEN入力端子に入力されたセットイネーブル信号
が入力されるデータセットコントロール回路43からの
制御信号により、時刻設定手段としてのラッチ回路44
でラッチ(データ保持)される。また、発振回路45か
らの出力される発振パルスは時刻計時手段としてのカウ
ンタ回路46に入力され、このカウンタ回路46はその
入力される発振パルスを計数する事により時刻を計時す
る。前記ラッチ回路43においてラッチされた設定時刻
データ及び前記カウンタ回路46により計時された計時
時刻データはそれぞれ比較回路47に入力され、この比
較回路47により比較して設定時刻データと計時時刻デ
ータが一致すると、前記リレーコントロール回路35に
ローレベルを出力するようになっている。
Further, from the terminal device main body to the D0 input terminals to D
The set time data input to the 7 input terminal is controlled by the control signal from the data set control circuit 43 to which the strobe signal input to the STB input terminal and the set enable signal input to the SETEN input terminal are input from the terminal body. , A latch circuit 44 as time setting means
Is latched by (data retention). Further, the oscillation pulse output from the oscillation circuit 45 is input to a counter circuit 46 serving as time counting means, and this counter circuit 46 counts the time by counting the input oscillation pulse. The set time data latched in the latch circuit 43 and the measured time data counted by the counter circuit 46 are respectively input to a comparison circuit 47, and compared by the comparison circuit 47, when the set time data and the measured time data match. A low level is output to the relay control circuit 35.

【0021】さらに、インラインマスター機からN+入
力端子及びN−入力端子に入力された電源起動信号は、
RPC(リモート・パワー・コントロール)起動電圧セ
ンス回路48に入力される。このRPC起動電圧センス
回路48の出力端子から出力される信号は、バッファ4
9を介して前記リレーコントロール回路35に入力さ
れ、RPC起動電圧センス回路48では、インラインマ
スター機からの電源起動信号により出力端子からの信号
をローレベルにする。
Furthermore, the power supply start signal inputted from the in-line master unit to the N + input terminal and the N- input terminal is
It is input to the RPC (remote power control) starting voltage sense circuit 48. The signal output from the output terminal of the RPC activation voltage sense circuit 48 is the buffer 4
The signal is input to the relay control circuit 35 via 9 and the RPC start voltage sense circuit 48 sets the signal from the output terminal to a low level by the power supply start signal from the inline master machine.

【0022】前記リレーコントロール回路35は、前記
AND回路41、前記比較回路47及びバッファ49か
らの出力信号の立ち下がりを検出すると、前記トランジ
スタ36のベース端子に接続された出力端子からの信号
をハイレベルにするようになっている。
When the relay control circuit 35 detects the fall of the output signals from the AND circuit 41, the comparison circuit 47 and the buffer 49, it outputs a high signal from the output terminal connected to the base terminal of the transistor 36. It is designed to be level.

【0023】図4に、停電が発生した後の復電時に、す
なわち、リレーコントロール回路35により、定電圧回
路33から第1のダイオード34を介して入力された制
御電源+5Vの立ち上がりを検出して、端末装置本体に
電源が投入された時に、前記CPU1が行う復電処理の
流れを示す。
In FIG. 4, when power is restored after a power failure occurs, that is, the relay control circuit 35 detects the rising of the control power source + 5V input from the constant voltage circuit 33 via the first diode 34. The flow of power recovery processing performed by the CPU 1 when the terminal device body is powered on will be described.

【0024】まず、不揮発性メモリ4に記憶された情報
から業務中の停電であったのか否かを判断する。業務中
の停電であったのならば、不揮発性メモリ4に記憶され
た情報に基づいて、停電により中断した時の状態を再現
するリブート処理を行い、残りの業務の処理を開始させ
て、この復電処理を終了するようになっている。
First, it is judged from the information stored in the non-volatile memory 4 whether or not there was a power failure during work. If there was a power outage during work, a reboot process that reproduces the state at the time of interruption due to a power outage is performed based on the information stored in the non-volatile memory 4, and the processing of the remaining work is started. The power recovery process is completed.

【0025】また、業務中の停電でなかったならば、時
計IC5の設定時刻データメモリ5aに記憶された設定
時刻データを読取る。次にAPSボード11に対して、
まずセットイネーブル信号を出力してその読取った設定
時刻データを出力し、最後にストローブ信号を出力し
て、APSボード11のラッチ回路43に設定時刻デー
タをラッチさせる。(時刻設定制御手段)設定時刻デー
タのラッチが終了すると、この復電処理を終了するよう
になっている。
If there is no power outage during work, the set time data stored in the set time data memory 5a of the clock IC 5 is read. Next, for the APS board 11,
First, the set enable signal is output, the read set time data is output, and finally the strobe signal is output to cause the latch circuit 43 of the APS board 11 to latch the set time data. (Time setting control means) When the latching of the set time data is completed, this power recovery process is completed.

【0026】このような構成の本実施例においては、通
常動作においては、電源AC100Vが供給されると、
AC100Vの電流がAPSボード11に供給され、定
電圧回路33から制御電源+5Vが出力される。この制
御電源+5Vの立ち上がりが、リレーコントロール回路
35により検出されて、トランジスタ36がオン動作
し、リレーの常開接点39が閉状態となる。
In the present embodiment having such a configuration, in the normal operation, when the power supply AC100V is supplied,
A current of AC 100V is supplied to the APS board 11, and the constant voltage circuit 33 outputs the control power supply + 5V. The rise of the control power supply + 5V is detected by the relay control circuit 35, the transistor 36 is turned on, and the normally open contact 39 of the relay is closed.

【0027】ここで、図5(a)に示すように、比較回
路47により比較してラッチ回路43に設定された立ち
上げ時刻データとカウンタ回路46による計時時刻デー
タとが一致するか、又はモデムからのCI信号が入力さ
れるか、又はインラインマスター機からの電源起動信号
が入力されると、リレーコントロール回路35により常
開接点39がONされる(A時点)。この時、本体電源
部22にAC100Vが供給され、電源投入によりシス
テムプログラムが起動し、業務アプリケーションプログ
ラムが実行される。この業務アプリケーションプログラ
ムの実行により業務が行われ、さらに一日の業務終了時
には閉店業務処理が行われる。この閉店業務処理が終了
時には、時計IC5の設定時刻データメモリ5aに記憶
された次の立ち上げ時刻データがAPSボード11のラ
ッチ回路43に設定され、そしてリレーコントロール回
路35がCPU1により制御されてトランジスタ36を
オフ動作し、リレーの常開接点39が開状態になる(B
時点)。このとき、本体電源部22へのAC100Vの
電力供給が停止される。
Here, as shown in FIG. 5A, the rise time data set in the latch circuit 43 by comparison by the comparison circuit 47 and the clock time data by the counter circuit 46 match or the modem. When the CI signal is input or the power supply start signal is input from the in-line master machine, the relay control circuit 35 turns on the normally open contact 39 (time A). At this time, AC 100 V is supplied to the main body power supply unit 22, the system program is started by turning on the power supply, and the business application program is executed. Business is performed by executing this business application program, and at the end of the business for one day, closing business processing is performed. At the end of the closing business process, the next start-up time data stored in the set time data memory 5a of the clock IC 5 is set in the latch circuit 43 of the APS board 11, and the relay control circuit 35 is controlled by the CPU 1 to switch the transistor. 36 is turned off, and the normally open contact 39 of the relay is opened (B
Time point). At this time, the AC 100V power supply to the main body power supply unit 22 is stopped.

【0028】APSボード11において、比較回路47
により比較してラッチ回路43に設定された立ち上げ時
刻データとカウンタ回路46による計時時刻データとが
一致するか、又はモデムからのCI信号が入力される
か、又はインラインマスター機からの電源起動信号が入
力されると、リレーコントロール回路35によりトラン
ジスタ36がオン動作して、リレーの常開接点39が閉
状態となり、本体電源部22にAC100Vの電力供給
が再開される(C時点)。この電源投入によりシステム
プログラムが起動し、開店業務処理が行われる。
In the APS board 11, the comparison circuit 47
By comparing the start time data set in the latch circuit 43 with the clock time data by the counter circuit 46, or the CI signal from the modem is input, or the power supply start signal from the inline master machine. When is input, the transistor 36 is turned on by the relay control circuit 35, the normally open contact 39 of the relay is closed, and the power supply of AC 100 V to the main body power supply unit 22 is restarted (time C). When the power is turned on, the system program is activated and the opening business process is performed.

【0029】次に停電が発生した場合は、例えば図5
(b)に示すように、閉店業務処理中に停電が発生した
(D時点)とすると、停電による電圧降下の間にその時
のCPU1の状態が不揮発性メモリ4に記憶される。そ
して復電時(E時点)に、定電圧回路33から出力され
る制御電源+5Vの立ち上がりが、リレーコントロール
回路35により検出されて、トランジスタ36がオン動
作し、リレーの常開接点39が閉状態となる。従って、
本体電源部22にAC100Vの電力が供給されて、リ
ブート機能により不揮発性メモリ4に記憶されたCPU
1の状態のデータに基づいて停電による中断状態が再現
されると共に不揮発性メモリ4がクリア処理される。こ
の再現された中断状態から閉店業務処理の残りが行われ
ることになる。従って、この閉店業務処理の終了時には
時計IC5の設定時刻データメモリ5aに記憶された次
の立ち上げ時刻データがラッチ回路43に設定されるこ
とになる。そしてリレーコントロール回路35がCPU
1により制御されてトランジスタ36がオフ動作し、リ
レーの常開接点39が開状態となる(F時点)。このと
き、本体電源部22へのAC100Vの電力供給が停止
される。
When a power failure occurs next, for example, as shown in FIG.
As shown in (b), if a power failure occurs during the closing operation processing (at time D), the state of the CPU 1 at that time is stored in the non-volatile memory 4 during the voltage drop due to the power failure. Then, at the time of power recovery (time E), the rise of the control power supply + 5V output from the constant voltage circuit 33 is detected by the relay control circuit 35, the transistor 36 is turned on, and the normally open contact 39 of the relay is closed. Becomes Therefore,
100 VAC power is supplied to the main body power supply unit 22, and the CPU is stored in the nonvolatile memory 4 by the reboot function.
The interruption state due to the power failure is reproduced based on the data of the state 1 and the nonvolatile memory 4 is cleared. The rest of the closing business process is performed from the reproduced suspended state. Therefore, at the end of the closing business process, the next rising time data stored in the set time data memory 5a of the clock IC 5 is set in the latch circuit 43. The relay control circuit 35 is the CPU
The transistor 36 is turned off under the control of 1 and the normally open contact 39 of the relay is opened (at the time point F). At this time, the AC 100V power supply to the main body power supply unit 22 is stopped.

【0030】さらに、この本体電源部22へのAC10
0Vの電力供給が停止されている時に停電が発生した
(時点G)とすると、その復電時(H時点)に、定電圧
回路33から出力される制御電源+5Vの立ち上がり
が、リレーコントロール回路35により検出されて、ト
ランジスタ36がオン動作し、リレーの常開接点39が
閉状態となる。従って本体電源部22にAC100Vの
電力が供給される。このとき、不揮発性メモリ4にはC
PU1の状態のデータが記憶されていないため、業務中
の停電ではないと判断され、時計IC5の設定時刻デー
タメモリ5aに記憶された次の立上がり時刻データがラ
ッチ回路43に設定され、再びリレーコントロール回路
35が制御されて常開接点39が閉状態となり(I時
点)、本体電源部22へのAC100Vの電力供給が停
止される。
Further, the AC 10 to the main body power source unit 22 is
If a power failure occurs when the 0V power supply is stopped (time point G), at the time of the power recovery (time point H), the rise of the control power source + 5V output from the constant voltage circuit 33 causes the relay control circuit 35 to rise. Then, the transistor 36 is turned on, and the normally open contact 39 of the relay is closed. Therefore, AC 100V power is supplied to the main body power supply unit 22. At this time, C is stored in the nonvolatile memory 4.
Since the data of the state of PU1 is not stored, it is determined that it is not a power failure during work, the next rising time data stored in the set time data memory 5a of the clock IC 5 is set in the latch circuit 43, and the relay control is performed again. The circuit 35 is controlled so that the normally open contact 39 is closed (at the time point I), and the power supply of 100 V AC to the main body power supply unit 22 is stopped.

【0031】そして、モデムからのCI信号及びインラ
インマスター機からの電源起動信号が入力されなけれ
ば、比較回路47により比較してラッチ回路43に設定
された立ち上げ時刻データとカウンタ回路46による計
時時刻データとが一致すると、リレーコントロール回路
35によりトランジスタ36がオン動作して、本体電源
部22へのAC100Vの電力供給が開始され(時点
J)、開店業務処理が行われることになる。
If the CI signal from the modem and the power activation signal from the in-line master unit are not input, the comparison circuit 47 compares the startup time data set in the latch circuit 43 with the time measured by the counter circuit 46. When the data matches, the transistor 36 is turned on by the relay control circuit 35, the power supply of AC100V to the main body power supply unit 22 is started (time J), and the opening operation processing is performed.

【0032】このように本実施例によれば、停電が発生
しても復電したときの制御電源+5Vの立ち上がりを検
出するリレーコントロール回路35をAPSボード11
に設け、このリレーコントロール回路35からの出力に
より、本体電源部22へのAC100Vの電力供給を行
うようにして本体CPU1の処理により、APSボード
11に設けたラッチ回路43に次の立ち上がり時刻を再
設定させたことにより、停電により設定時刻が消去した
ラッチ回路43に、再び次の立ち上がり時刻を設定する
ことができる。しかもこの処理においては、バックアッ
プバッテリーを必要としないので、長時間の停電が発生
しても復電時には設定時刻を再設定でき、従ってその設
定時刻に本体電源部22に電力を供給して開店業務処理
を行うという機能を確実に果たすことができる。
As described above, according to the present embodiment, the relay control circuit 35 for detecting the rise of the control power source + 5V when the power is restored even if a power failure occurs is provided with the APS board 11.
The AC power is supplied to the main body power supply unit 22 by the output from the relay control circuit 35, and the main CPU 1 processes the latch circuit 43 provided on the APS board 11 to reset the next rising time. By setting it, the next rising time can be set again in the latch circuit 43 whose setting time has been erased due to the power failure. Moreover, in this process, since a backup battery is not required, the set time can be set again when the power is restored even if a long-term power failure occurs. The function of performing processing can be surely fulfilled.

【0033】なお、この実施例においてはインラインマ
スター機により統合される端末装置について説明した
が、この発明はこれに限定されるものではなく、予め動
作時刻が設定され、この設定された時刻に基づいてタイ
マ動作する電子機器には適用可能である。さらに、この
実施例においては電池によりバックアップされた時計I
C5に内蔵された設定時刻データメモリ5aに、設定時
刻を記憶するようになっていたが、この発明はこれに限
定されるものではなく、例えばハードディスク装置等に
設定時刻を記憶するものであって良い。
Although the terminal device integrated by the in-line master machine has been described in this embodiment, the present invention is not limited to this, and the operation time is set in advance and based on the set time. The present invention can be applied to electronic devices that operate with a timer. Further, in this embodiment, a battery-backed watch I
The set time was stored in the set time data memory 5a built in the C5, but the present invention is not limited to this, and the set time is stored in, for example, a hard disk device or the like. good.

【0034】[0034]

【発明の効果】以上詳述したようにこの発明によれば、
停電により消去した設定時刻を再設定することができ、
長時間の停電が発生しても設定時刻に所定の機能を果た
すことができる電子機器を提供できる。
As described in detail above, according to the present invention,
You can reset the set time that was erased due to a power failure,
It is possible to provide an electronic device that can perform a predetermined function at a set time even if a long power failure occurs.

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

【図1】この発明の一実施例の要部回路構成を示すブロ
ック図。
FIG. 1 is a block diagram showing a circuit configuration of essential parts of an embodiment of the present invention.

【図2】同実施例の電源回路の要部構成を示すブロック
図。
FIG. 2 is a block diagram showing a main configuration of a power supply circuit of the embodiment.

【図3】同実施例のAPSボードの要部回路構成を示す
ブロック図。
FIG. 3 is a block diagram showing a circuit configuration of essential parts of the APS board of the embodiment.

【図4】同実施例の復電処理の流れを示す図。FIG. 4 is a diagram showing a flow of a power recovery process of the embodiment.

【図5】同実施例のAC100Vの電力供給状態、本体
電源部への電力入力状態及び常開接点のオン/オフ状態
のタイミングを示す図。
FIG. 5 is a diagram showing timings of an AC100V power supply state, a power input state to a main body power supply unit, and an ON / OFF state of a normally-open contact according to the embodiment.

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

1…CPU、5…時計回路、5a…設定時刻データメモ
リ、11…APSボード、35…リレーコントロール回
路35、36…トランジスタ、38…励磁コイル、39
…常開接点、43…ラッチ回路、46…カウンタ、47
…比較回路。
1 ... CPU, 5 ... Clock circuit, 5a ... Set time data memory, 11 ... APS board, 35 ... Relay control circuit 35, 36 ... Transistor, 38 ... Excitation coil, 39
... Normally open contact, 43 ... Latch circuit, 46 ... Counter, 47
… Comparison circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 時刻を計時する時刻計時手段と時刻を設
定する時刻設定手段とを備え、前記時刻設定手段により
設定された時刻を前記時刻計時手段が計時すると所定の
動作を行う電子機器において、停電時にも設定時刻を記
憶保持する設定時刻記憶手段と、停電状態から復電した
ことを検出する復電検出手段と、この復電検出手段によ
り復電を検出すると前記時刻設定手段を制御して前記設
定時刻記憶手段により記憶保持された設定時刻を設定さ
せる時刻設定制御手段とを設けたことを特徴とする電子
機器。
1. An electronic device comprising a time measuring means for measuring a time and a time setting means for setting a time, and performing a predetermined operation when the time measuring means measures the time set by the time setting means, A set time storage means for storing and holding the set time even during a power failure, a power recovery detection means for detecting a power recovery from a power failure state, and a time setting means is controlled when the power recovery is detected by the power recovery detection means. An electronic device comprising: a time setting control means for setting the set time stored and held by the set time storage means.
JP4065095A 1992-03-23 1992-03-23 Electronic apparatus Pending JPH05265606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4065095A JPH05265606A (en) 1992-03-23 1992-03-23 Electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4065095A JPH05265606A (en) 1992-03-23 1992-03-23 Electronic apparatus

Publications (1)

Publication Number Publication Date
JPH05265606A true JPH05265606A (en) 1993-10-15

Family

ID=13277021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4065095A Pending JPH05265606A (en) 1992-03-23 1992-03-23 Electronic apparatus

Country Status (1)

Country Link
JP (1) JPH05265606A (en)

Similar Documents

Publication Publication Date Title
JPH0556577A (en) Power supply controller
US5237698A (en) Microcomputer
US7085946B2 (en) Backup memory control unit with reduced current consumption having normal self-refresh and unsettled modes of operation
JPH05265606A (en) Electronic apparatus
JPH05265600A (en) Power source controller
JPH05265599A (en) Power source supply device for microcomputer
JP3087650B2 (en) Automatic power recovery method
JP3903716B2 (en) Microcomputer
CN111190371B (en) Power supply control system, method and storage medium of reading kiosk
JP2740685B2 (en) Storage device backup circuit
JPH01255019A (en) Power source circuit for microcomputer
JPH0670769B2 (en) Power control method
JP4655398B2 (en) Vehicle control device with backup function
JP3053270B2 (en) Power supply backup method and device
JPS6128124B2 (en)
JPH05233107A (en) Power source controller
JPH10136575A (en) Electric apparatus and power supply control circuit
JPH0359450B2 (en)
JPH0728566A (en) Backup power supply device and power supply method
JPH0120775B2 (en)
JP2583328B2 (en) Vending machine data holding circuit
CN113391690A (en) FLASH abnormal power failure protection circuit, device and method
JPH11175405A (en) Memory data controller
JPH0253126A (en) Semiconductor file device
JP3477975B2 (en) Power supply for storage device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070917

Year of fee payment: 8

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080917

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

Free format text: PAYMENT UNTIL: 20080917

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090917

Year of fee payment: 10

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

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090917

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100917

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100917

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20110917

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

Free format text: PAYMENT UNTIL: 20110917

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120917

Year of fee payment: 13

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

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20130917

LAPS Cancellation because of no payment of annual fees