JPH07160375A - Data processor - Google Patents

Data processor

Info

Publication number
JPH07160375A
JPH07160375A JP5340259A JP34025993A JPH07160375A JP H07160375 A JPH07160375 A JP H07160375A JP 5340259 A JP5340259 A JP 5340259A JP 34025993 A JP34025993 A JP 34025993A JP H07160375 A JPH07160375 A JP H07160375A
Authority
JP
Japan
Prior art keywords
power supply
backup
power
secondary battery
power failure
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
JP5340259A
Other languages
Japanese (ja)
Inventor
Toru Sakai
徹 境井
Kazuhiro Oishi
和弘 大石
Hideo Shimizu
英生 清水
Mitsuo Iwatani
充男 岩谷
Masanori Kunii
正徳 国井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP5340259A priority Critical patent/JPH07160375A/en
Publication of JPH07160375A publication Critical patent/JPH07160375A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To guarantee an operation similar to a usual operation for a fixed time even at the time of service interruption of the AC power supply by using a secondary battery as a back-up power supply. CONSTITUTION:A UPS 1 has a secondary battery BP which is charged by an AC power supply and supplies the power of the battery BP as the back-up power when the AC power supply has a service interruption. At the same time, the UPS 1 outputs an AC power interruption signal ACINT. When the signal ACINT is supplied, a key input part 5, a display part 6, a printing part 7, etc., are set in an operable state respectively for a fixed with the battery BP used as a back-up power supply.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、パーソナルコンピュ
ータや電子式キャッシュレジスタ等において、特にAC
停電時に二次電池をバックアップ電源として動作可能な
データ処理装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a personal computer, an electronic cash register, etc.
The present invention relates to a data processing device that can operate with a secondary battery as a backup power source during a power failure.

【0002】[0002]

【従来の技術】従来、パーソナルコンピュータや電子式
キャッシュレジスタ等のデータ処理装置においては、A
C電源オン時に充電される二次電池(リチウム電池やニ
ッケルカドミウム電池)が備えられており、AC電源オ
フ時に二次電池からの電力供給によってメモリバックア
ップや時計バックアップを保持している。つまり、従来
の二次電池は小容量電池であり、メモリや時計のバック
アップ用として使用されていた。
2. Description of the Related Art Conventionally, in a data processing device such as a personal computer or an electronic cash register, A
A secondary battery (a lithium battery or a nickel-cadmium battery) that is charged when the C power is turned on is provided, and a memory backup or a clock backup is held by the power supply from the secondary battery when the AC power is turned off. That is, the conventional secondary battery is a small-capacity battery and has been used as a backup memory or a clock.

【0003】[0003]

【発明が解決しようとする課題】ところで、AC電源の
停電時にはどのような動作状態にあるかにかかわらず、
システム全体が停止状態となり、全ての処理が瞬間的に
動作不能状態となる。したがって、例えば、電子式キャ
ッシュレジスタにおいて、登録動作中に停電になると、
AC電源が復帰するまで待ち、AC電源復帰後に中断し
た登録操作を最初からやり直さなければならないという
欠点があった。この発明の課題は、AC電源の停電時で
も二次電池をバックアップ電源として通常と同様の動作
を一定時間内保障できるようにすることである。
By the way, irrespective of the operating state during a power failure of the AC power source,
The entire system is stopped, and all processing is momentarily disabled. Therefore, for example, in an electronic cash register, if a power failure occurs during the registration operation,
There is a drawback that it is necessary to wait until the AC power is restored and restart the registration operation that is interrupted after the AC power is restored. An object of the present invention is to make it possible to guarantee an operation similar to a normal operation within a fixed time by using a secondary battery as a backup power source even when the AC power source fails.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。 (1)、バックアップ電源部はAC電源によって充電さ
れる二次電池を有し、AC電源の停電時に前記二次電池
からの電力をバックアップ電源として供給すると共に、
AC停電割り込み信号を出力する。なお、二次電池とし
ては例えば大容量の鉛蓄電池等である。 (2)、動作制御手段は前記AC停電割り込み信号が入
力された場合に、一定時間が経過するまでの間、前記二
次電池をバックアップ電源として各種の周辺デバイスを
動作可能状態に設定する。なお、更に、前記AC停電割
り込み信号が入力された場合にその旨を報知する報知手
段を設けるようにしてもよい。また、動作制御手段は前
記一定時間経過後に各種のデータを外部記憶装置に書き
込むと共に前記バックアップ電源部からの電力供給を停
止させるバックアップ処理を行うようにしてもよい。ま
た、更に前記バックアップ電源部はバックアップに必要
な前記二次電池の容量低下を検出してローバッテリ割り
込み信号を出力し、前記動作制御手段は前記ローバッテ
リ割り込み信号が入力された際に各種のデータを外部記
憶装置に書き込むと共に、前記バックアップ電源部から
の電力供給を停止させるバックアップ処理を行うように
してもよい。
The means of the present invention are as follows. (1) The backup power supply unit has a secondary battery that is charged by an AC power supply, and supplies power from the secondary battery as a backup power supply when the AC power supply fails.
Output AC power interruption signal. The secondary battery is, for example, a large capacity lead storage battery or the like. (2) When the AC power interruption interrupt signal is input, the operation control means sets various peripheral devices in an operable state by using the secondary battery as a backup power supply until a predetermined time elapses. In addition, when the AC power interruption interrupt signal is input, a notification means for notifying the fact may be provided. Further, the operation control means may write various data to the external storage device after the lapse of the predetermined time and perform a backup process of stopping the power supply from the backup power supply unit. Further, the backup power supply unit further detects a decrease in the capacity of the secondary battery necessary for backup and outputs a low battery interrupt signal, and the operation control means outputs various data when the low battery interrupt signal is input. May be written in the external storage device and a backup process for stopping the power supply from the backup power supply unit may be performed.

【0005】[0005]

【作用】この発明の手段の作用は次の通りである。い
ま、AC電源オン時にはシステム全体がAC電源によっ
て動作していると共に、二次電池への充電が行われてい
るが、AC電源が停電すると、二次電池の電力がバック
アップ電源として供給されると共に、バックアップ電源
部からAC停電割り込み信号が出力される。このAC停
電割り込み信号が入力されると、それに伴って各種周辺
デバイス、例えば、キーボード、表示装置、プリンタ等
は一定時間が経過するまでの間、二次電池をバックアッ
プ電源として動作可能状態に設定される。したがって、
AC電源の停電時でも二次電池をバックアップ電源とし
て通常と同様の動作を一定時間内保障することができ
る。
The operation of the means of the present invention is as follows. Now, when the AC power is turned on, the entire system is being operated by the AC power and the secondary battery is being charged. However, when the AC power fails, the power of the secondary battery is supplied as the backup power. An AC power interruption interrupt signal is output from the backup power supply unit. When this AC power interruption signal is input, various peripheral devices such as a keyboard, a display device, a printer, etc. are correspondingly set to an operable state using the secondary battery as a backup power source until a predetermined time elapses. It Therefore,
Even when the AC power supply fails, the secondary battery can be used as a backup power supply to guarantee the same operation as a normal operation within a certain period of time.

【0006】[0006]

【実施例】以下、図1〜図7を参照して一実施例を説明
する。図1は電子式キャッシュレジスタ(ECR)仕様
のパーソナルコンピュータを示したブロック構成図であ
る。このECR仕様のパーソナルコンピュータにはその
電源装置として本実施例特有の無停電電源装置(Uni
versal Power Supply:以下UPS
と称する)が組み込まれている。このUPS1は通常と
同様に整流回路や安定化電源回路等を有する他、二次電
池として大容量の鉛蓄電池を有し、AC電源オン時に二
次電池への充電が行われ、またAC電源の停電時にこの
二次電池の電力がバックアップ電源として供給されるよ
うになっている。また、UPS1はAC電源を監視し、
AC電源の停電状態を検出している間、AC停電割り込
み信号ACINTを出力し、UPSコントローラ2を介
してCPU3に与える。またUPS1は、二次電池の容
量低下を監視し、バックアップに必要な最低容量まで低
下したことを検出すると、その間、ローバッテリ割り込
み信号LBINTを出力し、UPSコントローラ2を介
してCPU3に与える。つまり、UPS1はAC電源の
停電監視回路とローバッテリ監視回路を有し、その検出
結果に応じて割り込み信号ACINT、LBINTをU
PSコントローラ2に対して出力する構成となってい
る。また、UPS1はCPU3からUPSコントローラ
2を介して電源オフ信号PWOFFが入力されると、バ
ックアップ電源の供給を停止する構成となっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram showing a personal computer with an electronic cash register (ECR) specification. This ECR specification personal computer has an uninterruptible power supply (Uni) unique to this embodiment as its power supply.
Versal Power Supply: Below UPS
Called) is incorporated. The UPS 1 has a rectifier circuit, a stabilized power supply circuit, and the like as usual, and also has a large-capacity lead-acid battery as a secondary battery. The secondary battery is charged when the AC power supply is turned on. The power of this secondary battery is supplied as a backup power source in case of a power failure. UPS1 also monitors AC power,
While detecting the power failure state of the AC power supply, the AC power failure interrupt signal ACINT is output and given to the CPU 3 via the UPS controller 2. Further, the UPS 1 monitors the decrease in the capacity of the secondary battery, and when detecting that the capacity has decreased to the minimum capacity required for backup, during that time, the low battery interrupt signal LBINT is output and given to the CPU 3 via the UPS controller 2. That is, the UPS 1 has a power failure monitoring circuit for AC power supply and a low battery monitoring circuit, and outputs the interrupt signals ACINT and LBINT according to the detection result.
It is configured to output to the PS controller 2. In addition, the UPS 1 is configured to stop the supply of backup power when the power off signal PWOFF is input from the CPU 3 via the UPS controller 2.

【0007】ここで、図2を参照してUPS1の回路構
成を詳細に説明する。商用交流電源ACは整流回路1−
1、トランス1−2、平滑回路1−3を介して二次電池
BPに充電電流を供給する他に、DC側のトランス1−
4、平滑回路1−5を介して直流電圧DCとして電源供
給される。ここで、二次電池BPは鉛蓄電池によって構
成されたバックアップ電源で、そのマイナス側は抵抗R
を介して接地されている。
Here, the circuit configuration of the UPS 1 will be described in detail with reference to FIG. The commercial AC power supply AC is a rectifier circuit 1-
In addition to supplying a charging current to the secondary battery BP via the transformer 1, the transformer 1-2, and the smoothing circuit 1-3, the transformer 1 on the DC side 1-
4, power is supplied as a DC voltage DC through the smoothing circuit 1-5. Here, the secondary battery BP is a backup power supply composed of a lead storage battery, and the negative side thereof has a resistance R.
Grounded through.

【0008】AC側のPWM(パルス・ワイド・モジュ
レーション)1−6はAC側トランス1−2の一次側に
接続されたパワートランジスタTr1をオン/オフさせ
ることにより、交流電源の変動に対する電力制御を行う
他、本実施例においては、平滑回路1−3の出力側電位
(二次電池BP側の電位)が、抵抗Rに並列接続された
ツェナーダイオードZの基準電圧以下に低下したことを
検出すると、スイッチングトランジスタTr2をオフさ
せる。つまり、スイッチングトランジスタTr2はAC
電源の停電時において、本体側でのプログラム暴走等に
よって電源オフ信号PWOFFがCPU3から送られて
来なくなったような場合に、二次電池BPの過放電を防
止するために設けられたもので、このスイッチングトラ
ンジスタTr2はトランス1−4の一次側にパワートラ
ンジスタTr3を介して接続されており、このスイッチ
ングトランジスタTr2を強制的にオフさせると、トラ
ンス1−4に電流が流れなくなり、これによって二次電
池BPの過放電を防止する。
A PWM (pulse wide modulation) 1-6 on the AC side turns on / off the power transistor Tr1 connected to the primary side of the transformer 1-2 on the AC side to control the power with respect to fluctuations in the AC power supply. In addition to this, in the present embodiment, when it is detected that the output side potential of the smoothing circuit 1-3 (potential on the secondary battery BP side) has dropped below the reference voltage of the Zener diode Z connected in parallel with the resistor R. , The switching transistor Tr2 is turned off. That is, the switching transistor Tr2 is AC
This is provided to prevent over-discharge of the secondary battery BP when the power off signal PWOFF is not sent from the CPU 3 due to a program runaway on the main body side at the time of power failure of the power source. The switching transistor Tr2 is connected to the primary side of the transformer 1-4 via the power transistor Tr3. When the switching transistor Tr2 is forcibly turned off, no current flows in the transformer 1-4, which causes the secondary current. Prevent over-discharge of the battery BP.

【0009】DC側のPWMコントローラ1−7はトラ
ンス1−4の一次側に接続されたパワートランジスタT
r3をオン/オフさせて負荷の変動に対する電力制御を
行う他、本実施例においては、平滑回路1−5の出力側
電位差が所定値(例えば4.75V)以下に達すると、
二次電池BPの容量不足を示すローバッテリ割り込み信
号LBINTを出力し、またAC電源側での停電を検出
すると、AC停電割り込み信号ACINTを出力し、更
に、CPU3からUPSコントローラ2を介して電源オ
フ信号PWOFFが入力されると、パワートランジスタ
Tr3をオフさせてバックアップ電源の供給を停止させ
る。なお、二次電池BPの容量不足を示すローバッテリ
割り込み信号LBINTを出力されるのは、二次電池B
Pの残容量が後述するバックアップ処理をハーソナルコ
ンピュータ側で実行するのに必要な所要量に達する前に
出力される。
The PWM controller 1-7 on the DC side is a power transistor T connected to the primary side of the transformer 1-4.
In addition to turning on / off r3 to control power for load variations, in the present embodiment, when the output-side potential difference of the smoothing circuit 1-5 reaches a predetermined value (for example, 4.75 V) or less,
The low battery interrupt signal LBINT indicating the capacity shortage of the secondary battery BP is output, and when a power failure on the AC power supply side is detected, the AC power failure interrupt signal ACINT is output, and the power is turned off from the CPU 3 via the UPS controller 2. When the signal PWOFF is input, the power transistor Tr3 is turned off to stop the backup power supply. The low battery interrupt signal LBINT indicating that the capacity of the secondary battery BP is insufficient is output by the secondary battery B.
It is output before the remaining capacity of P reaches the required amount required to execute the backup process described later on the personal computer side.

【0010】一方、CPU3はROM4内の入出力制御
プログラムにしたがってその周辺デバイスであるキー入
力部5、表示部6、印字部7、ドロア8、ハードディス
ク9に対する入出力動作を制御する。キー入力部5はE
CR仕様として金額、部門No等を置数する置数キーA
K、部門別登録時に操作される部門キーBK、一取引の
登録を終了させる現金キー等の締めキーCK等の他、登
録モード、電源OFFモード、点検モード、精算モード
等に切り替えるモードキーDKが設けられている。この
キー入力部5から入力された売上データは表示部6から
表示出力されたり、印字部7から印字出力され、更には
RAM10内の各種合計器に登録される。
On the other hand, the CPU 3 controls the input / output operations for the peripheral devices such as the key input unit 5, the display unit 6, the printing unit 7, the drawer 8 and the hard disk 9 in accordance with the input / output control program in the ROM 4. Key input section 5 is E
Numerical key A for registering the amount of money, department number, etc. as CR specifications
K, a department key BK operated at the time of registration by department, a closing key CK such as a cash key for ending the registration of one transaction, and a mode key DK for switching to a registration mode, a power OFF mode, an inspection mode, a payment mode, etc. It is provided. The sales data input from the key input unit 5 is displayed and output from the display unit 6, printed out from the printing unit 7, and registered in various totalizers in the RAM 10.

【0011】RAM10は図3に示すようにECRアプ
リケーションプログラム等の各種プログラムを記憶する
プログラムメモリ10−1と、売上データを部門別、取
引別等に分類して記憶する売上合計器10−2の他、本
実施例においては特にフラグレジスタ10−3、10−
4、タイマ時間レジスタ10−5を有する構成となって
いる。フラグレジスタ10−3はUPS1からAC停電
割り込み信号ACINTが入力されてから一定時間(3
秒)経過後にオンされるAC停電フラグを記憶するレジ
スタである。ここで、AC停電フラグはAC電源が停電
状態にあるか否かを示すもので、AC停電が発生してか
ら3秒後にAC停電フラグをオンさせるのは、瞬時停電
を無視するためであり、3秒程度の停電であれば、二次
電池BPをバックアップ電源としてシステム全体を通常
通り動作させるようにしている。
As shown in FIG. 3, the RAM 10 includes a program memory 10-1 for storing various programs such as an ECR application program, and a sales totalizer 10-2 for storing sales data by classifying the sales data into departments and transactions. Besides, in the present embodiment, particularly, the flag registers 10-3, 10-
4. The timer time register 10-5 is provided. The flag register 10-3 has a certain time (3) after the AC power interruption signal ACINT is input from the UPS 1.
This register stores an AC power failure flag that is turned on after the elapse of seconds. Here, the AC power failure flag indicates whether or not the AC power source is in a power failure state, and the reason why the AC power failure flag is turned on 3 seconds after the AC power failure occurs is to ignore the instantaneous power failure. If there is a power failure for about 3 seconds, the secondary battery BP is used as a backup power source to operate the entire system as usual.

【0012】フラグレジスタ10−4はバックアップ処
理要求フラグを記憶するレジスタであり、UPS1から
AC停電割り込み信号ACINTが入力されてから一定
時間(30秒)経過した際、あるいはUPS1からロッ
バッテリ割り込み信号LBINTが入力された際にバッ
クアップ処理要求フラグがオンされる。このバックアッ
プ処理要求フラグは、RAM10や印字バッファ12等
の内容をハードディスク9に書き込んで登録保存した
り、UPS1に対して電源オフ信号PWOFFを出力し
てUPS1からのバックアップ電源の供給を停止させる
バックアップ処理の実行を要求するためのフラグであ
る。ここで、AC停電発生後、30秒経過してからバッ
クアップ処理要求フラグをオンさせるのはUPS1内の
二次電池BPがバックアップ電源として供給されている
際に、その容量を考慮したもので、二次電池BPがフル
充電されている状態から30秒以上経過すると、バック
アップに必要な容量不足となるおそれがあり、その手前
で強制的にバックアップ処理を実行させるためである。
The flag register 10-4 is a register for storing a backup processing request flag, and when a certain time (30 seconds) has passed after the AC power interruption interrupt signal ACINT is input from the UPS 1, or the UPS battery 1 interrupts the low battery interrupt signal LBINT. When is input, the backup processing request flag is turned on. The backup processing request flag is a backup processing for writing the contents of the RAM 10, the print buffer 12, etc. to the hard disk 9 for registration and storage, or outputting a power-off signal PWOFF to the UPS 1 to stop the supply of backup power from the UPS 1. Is a flag for requesting the execution of. Here, the reason why the backup processing request flag is turned on after 30 seconds have elapsed after the occurrence of the AC power failure is to consider the capacity of the secondary battery BP in the UPS 1 when it is supplied as the backup power source. This is because if 30 seconds or more has passed from the state where the secondary battery BP is fully charged, the capacity required for backup may be insufficient, and the backup process may be forcibly executed before that.

【0013】タイマ時間レジスタ10−5は停電タイマ
時間の計時動作に伴ってその内容が更新されるもので、
AC停電割り込み信号ACINTが入力された際に、停
電タイマの計時動作が開始され、そのタイマ時間にした
がってCPU3はAC停電フラグをオンさせたり、バッ
クアップ処理要求フラグをオンさせるために停電タイマ
時間を監視する。
The contents of the timer time register 10-5 are updated with the operation of measuring the power failure timer time.
When the AC power failure interrupt signal ACINT is input, the time-out operation of the power failure timer is started, and the CPU 3 monitors the power failure timer time in order to turn on the AC power failure flag or the backup processing request flag according to the timer time. To do.

【0014】次に、本実施例の動作を図4〜図7に示す
フローチャートにしたがって説明する。図4は売上デー
タを登録する登録モード下での動作を示したフローチャ
ートである。なお、図5は図4で示したUPS処理(ス
テップA1)を詳細に示したフローチャート、また図6
はバックアップ処理(ステップA13)を詳細に示した
フローチャートである。図7はAC停電が正常に復帰し
た際の停電復帰処理を示したフローチャートである。以
下、本実施例の動作を(1)、AC電源が正常の場合、
(2)、AC停電発生から3秒経過前、(3)、AC停
電発生後3秒経過してから3分経過前、(4)、AC停
電発生から3分経過した場合、(5)、AC電源が正常
状態に復帰した場合、にそれぞれ分けて説明するものと
する。
The operation of this embodiment will be described below with reference to the flow charts shown in FIGS. FIG. 4 is a flowchart showing the operation in the registration mode for registering sales data. Note that FIG. 5 is a flowchart showing in detail the UPS process (step A1) shown in FIG.
Is a flow chart showing the backup process (step A13) in detail. FIG. 7 is a flowchart showing a power failure recovery process when the AC power failure is normally recovered. Hereinafter, the operation of the present embodiment (1), if the AC power supply is normal,
(2), 3 seconds before the AC power failure occurs, (3), 3 seconds after the AC power failure occurs, and 3 minutes before the AC power failure occurs, (4), when 3 minutes have elapsed since the AC power failure occurred, (5), When the AC power supply returns to the normal state, each will be described separately.

【0015】(1)、AC電源が正常の場合。 先ず、図2の登録モードにおいて、UPS処理(ステッ
プA1)に入ると、図5に示すように先ず、UPS1か
らローバッテリ割り込み信号LBINTが入力されたか
否かのチェックを行う(ステップB1)。ここで、AC
電源オン時においても二次電池BPの容量が不足し、U
PS1からローバッテリ割り込み信号LBINTが入力
されると、フラグレジスタ10−4内のバックアップ処
理要求フラグをオンさせるが(ステップB6)、ローバ
ッテリ割り込み信号LBINTが無ければ、次のステッ
プB2に進み、UPS1からAC停電割り込み信号AC
INTが入力されたかをチェックする。この場合、AC
電源は正常で割り込み無しが検出されるので、この時点
で、UPS処理から抜け、図4に示す次のステップA2
に移る。
(1) When the AC power supply is normal. First, in the registration mode of FIG. 2, when the UPS process (step A1) is entered, first, as shown in FIG. 5, it is checked whether or not the low battery interrupt signal LBINT is input from the UPS 1 (step B1). Where AC
Even when the power is turned on, the capacity of the secondary battery BP is insufficient and U
When the low battery interrupt signal LBINT is input from PS1, the backup processing request flag in the flag register 10-4 is turned on (step B6), but if the low battery interrupt signal LBINT is not present, the process proceeds to the next step B2 and UPS1 To AC power interruption signal AC
Check if INT is input. In this case, AC
Since the power supply is normal and no interrupt is detected, at this point the UPS process is exited and the next step A2 shown in FIG.
Move on to.

【0016】ここでは、フラグレジスタ10−3をアク
セスしてAC停電フラグのON/OFF状態をチェック
する。いま、AC停電の正常時にはAC停電フラグはO
FFされているので、ステップA4進み、通常と同様、
登録操作が行われた場合には、それに応じて登録処理が
行われ、また一取引を終了させる締めキーが操作された
場合にはそれに応じて締め処理が行われる。次に、ステ
ップA5に進み、バックアップ処理要求フラグのON/
OFF状態をチェックし、フラグOFFが検出されれ
ば、ステップA1に戻るが、フラグONが検出される
と、後述のバックアップ処理(ステップA6)に移る。
このようにAC電源が正常時の場合でも二次電池BPが
容量不足となると、バックアップ処理に強制的に移行さ
せるようにしている。
Here, the flag register 10-3 is accessed to check the ON / OFF state of the AC power failure flag. Now, when the AC power failure is normal, the AC power failure flag is O.
Since it has been FF, proceed to step A4, as usual
When the registration operation is performed, the registration processing is performed accordingly, and when the closing key for ending one transaction is operated, the closing processing is performed accordingly. Next, in step A5, the backup processing request flag is set to ON /
The OFF state is checked, and if the flag OFF is detected, the process returns to step A1, but if the flag ON is detected, the backup process (step A6) described later is started.
In this way, even when the AC power supply is normal, if the secondary battery BP becomes insufficient in capacity, the backup process is forcibly shifted.

【0017】(2)、AC停電発生から3秒経過する
前。 AC停電が発生すると、UPS1はUPSコントローラ
2を介してCPU3にAC停電割り込み信号ACINT
を出力すると共に二次電池BPの電力がバックアップ電
源として供給される。これによってAC停電時でもシス
テム全体が二次電池BPを電源として動作可能となる。
一方、ステップA1のUPS処理において、図5に示す
ステップB2でAC停電割り込み信号ACINT有りが
検出されると、ステップB3に進み、タイマ時間レジス
タ10−5をアクセスして停電タイマ時間が3秒経過し
たかをチェックするが、AC停電発生時にはタイマ時間
レジスタ10−5はクリアされているので、タイマの計
時動作をスタートさせると共に(ステップB7)、表示
部6に停電メッセージデータを表示出力させ、オペレー
タにその旨を報知する(ステップB8)。この場合、オ
ペレータは停電メッセージ表示を確認し、登録作業を急
ぐか、締めキーCKを操作するか、そのまま登録作業を
続行するか等を判断することができる。そして、このU
PS処理から抜け、図4のステップA2に移る。この場
合、停電発生から3秒経過する前においても、AC停電
フラグはOFF状態にあるので、上述したAC電源正常
時の場合と同様の動作が行われる。つまり、AC停電発
生から3秒程度の瞬時停電については二次電池BPをバ
ックアップ電源としてシステム全体が通常通り動作し、
瞬時停電が起きなかったものとして動作する。ここで、
二次電池BPの容量が不足し、UPS1からローバッテ
リ割り込み信号が出力された場合には、図5のUPS処
理において、ステップB1でローバッテリ割り込み有り
が検出されてバックアップ処理要求フラグがONされ
(ステップB6)、これによってバックアップ処理に移
ることはAC電源正常時の場合と同様である。
(2) Before the elapse of 3 seconds from the occurrence of the AC power failure. When an AC power failure occurs, the UPS 1 sends an AC power failure interrupt signal ACINT to the CPU 3 via the UPS controller 2.
And the power of the secondary battery BP is supplied as a backup power source. This allows the entire system to operate using the secondary battery BP as a power source even during AC power failure.
On the other hand, in the UPS processing of step A1, when the presence of the AC power failure interrupt signal ACINT is detected in step B2 shown in FIG. 5, the process proceeds to step B3, the timer time register 10-5 is accessed, and the power failure timer time is 3 seconds. When the AC power failure occurs, the timer time register 10-5 is cleared. Therefore, the timer timing operation is started (step B7), and the power failure message data is displayed and output on the display unit 6, and the operator To that effect (step B8). In this case, the operator can confirm the power failure message display and judge whether to hurry the registration work, operate the closing key CK, continue the registration work, or the like. And this U
The PS processing is exited, and the process proceeds to step A2 in FIG. In this case, since the AC power failure flag is in the OFF state even 3 seconds after the occurrence of the power failure, the same operation as in the case of the normal AC power supply is performed. In other words, for an instantaneous power failure of about 3 seconds after the AC power failure, the entire system operates normally with the secondary battery BP as the backup power source,
It operates as if no momentary power failure occurred. here,
When the capacity of the secondary battery BP is insufficient and the low battery interrupt signal is output from the UPS 1, the presence of the low battery interrupt is detected in step B1 in the UPS processing of FIG. 5, and the backup processing request flag is turned on ( Step B6), by which the backup processing is the same as in the case of normal AC power supply.

【0018】(3)、AC停電発生から3秒経過した場
合(30秒経過前)。 この場合、UPS処理に入ると、図5のステップB3で
停電タイマ時間の3秒経過が検出されるので、ステップ
B4に進み、フラグレジスタ10−3内のAC停電フラ
グをONさせる。そして、再び停電タイマ時間を呼び出
し、AC停電から30秒経過したかをチェックするが
(ステップB5)、この場合、30秒経過前であるから
そのままUPS処理から抜ける。このようにUPS処理
においては、AC停電発生から3秒経過すると、AC停
電フラグをONさせる。なお、30秒経過前であっても
バックアップ処理要求フラグはUPS1内の二次電池B
Pの容量が低下し、UPS1からローバッテリ割り込み
信号LBINTが出力された際にONされることは上述
の場合と同様である。次にUPS処理後、図4のステッ
プA2に進むが、この場合、AC停電フラグのONが検
出されるので、ステップA3に進み、緊急メッセージ表
示(30秒程度でバックアップ電源を停止させる旨のメ
ッセージ表示)が行われる。これによってオペレータは
直ちに登録作業を中断して締めキーを操作したり、登録
作業を急ぐ等の対策を講じることができる。このように
AC停電から3秒経過すると、AC停電フラグがオンさ
れて緊急メッセージ表示が行われる。
(3) When 3 seconds have passed since the AC power failure occurred (30 seconds before). In this case, when the UPS process is started, it is detected in step B3 of FIG. 5 that the power failure timer time of 3 seconds has elapsed, so the process proceeds to step B4, and the AC power failure flag in the flag register 10-3 is turned ON. Then, the power failure timer time is called again to check whether 30 seconds have elapsed from the AC power failure (step B5). In this case, since 30 seconds have not elapsed, the UPS processing is exited. As described above, in the UPS process, the AC power failure flag is turned on after 3 seconds have elapsed from the occurrence of the AC power failure. Even before 30 seconds have passed, the backup processing request flag indicates that the secondary battery B in the UPS 1
It is similar to the above case that the capacity of P is reduced and turned on when the low battery interrupt signal LBINT is output from the UPS 1. Next, after the UPS processing, the process proceeds to step A2 in FIG. 4, but in this case, since the AC power failure flag is detected to be ON, the process proceeds to step A3, and an emergency message is displayed (a message to stop the backup power supply in about 30 seconds). Display) is performed. As a result, the operator can immediately take a measure such as interrupting the registration work and operating the closing key or rushing the registration work. Thus, when 3 seconds have elapsed from the AC power failure, the AC power failure flag is turned on and the emergency message is displayed.

【0019】(4)、AC停電後30秒経過した場合。 この場合、UPS処理において、ステップB5で30秒
経過が検出されると、フラグレジスタ10−4内のバッ
クアップ処理要求フラグをONさせる。これによって図
4のステップA5で要求フラグONが検出されるので、
バックアップ処理に移る(ステップA6)。つまり、二
次電池BPの容量不足が検出されなくてもその後、確実
に要量不足となることが明らかであるので、30秒経過
後もバックアップ処理に移行する。
(4) When 30 seconds have passed after the AC power failure. In this case, in the UPS process, when 30 seconds have been detected in step B5, the backup process request flag in the flag register 10-4 is turned on. As a result, the request flag ON is detected in step A5 of FIG.
The process moves to the backup process (step A6). In other words, it is clear that the required amount is surely insufficient thereafter even if the insufficient capacity of the secondary battery BP is not detected, and therefore the backup process is started even after 30 seconds have elapsed.

【0020】このバックアップ処理は図6に示すよう
に、先ず、タイマ時間レジスタ12−5内の停電タイマ
時間をクリアしておくと共に(ステップC1)、フラグ
レジスタ10−3内のAC停電フラグおよびフラグレジ
スタ10−4内のバックアップ処理要求フラグをそれぞ
れOFFさせておく(ステップC2)。その後、RAM
10、印字バッファ12等の内容を全て読み出してハー
ドディスク9に書き込み、全データをハードディスク9
に登録保存しておく(ステップC3)。次に、CPU3
は電源オフ信号PWOFFをUPSコントローラ2を介
してUPS1に与え、バックアップ電源の供給を強制的
に停止させる(ステップC4)。
In this backup processing, as shown in FIG. 6, first, the power failure timer time in the timer time register 12-5 is cleared (step C1), and the AC power failure flag and flag in the flag register 10-3 are also cleared. The backup processing request flags in the register 10-4 are turned off (step C2). Then RAM
10, all contents of the print buffer 12 and the like are read out and written to the hard disk 9, and all the data is written to the hard disk 9.
It is registered and saved in (step C3). Next, CPU3
Applies a power-off signal PWOFF to UPS1 via the UPS controller 2 to forcibly stop the supply of backup power (step C4).

【0021】(5)、AC電源が正常状態に復帰した場
合。 この場合には図7に示すフローチャートにしたがって停
電復帰処理が行われる。先ず、ハードディスク9内にデ
ータが登録保存されているか、つまり、バックアップ処
理の実行後かをチェックする(ステップD1)。ここ
で、AC停電から30秒経過する前にAC電源が正常復
帰した場合やその間に二次電池BPのローバッテリが検
出されなかった場合には、システム全体が二次電池BP
によってバックアップされて通常通りに動作しているた
め、ハードディスク9への登録保存は行われない。した
がって、このような場合には、ステップSD1でデータ
無しが検出されてそのままこの停電復帰処理から抜け
る。一方、AC停電から30秒経過した場合や二次電池
BPのローバッテリが検出された場合には、上述のバッ
クアップ処理によってAC停電中の登録データ等はハー
ドディスク9内に保存されているので、ハードディスク
9の内容を読み出して元のRAM10、印字バッファ1
2等に復帰させたのち(ステップD2)、ハードディス
ク9の内容を全てクリアしておく(ステップD3)。
(5) When the AC power supply returns to the normal state. In this case, the power failure recovery process is performed according to the flowchart shown in FIG. First, it is checked whether or not the data is registered and stored in the hard disk 9, that is, whether or not the backup processing has been executed (step D1). Here, if the AC power supply returns to normal before 30 seconds have passed from the AC power failure, or if a low battery of the secondary battery BP is not detected during that period, the entire system is rechargeable.
Since it is backed up by and is operating normally, the registration and storage in the hard disk 9 is not performed. Therefore, in such a case, the absence of data is detected in step SD1 and the power failure recovery process is exited. On the other hand, when 30 seconds have elapsed from the AC power failure or when the low battery of the secondary battery BP is detected, the registration data and the like during the AC power failure are stored in the hard disk 9 by the above-described backup process, so the hard disk The contents of 9 are read and the original RAM 10 and print buffer 1
After returning to 2 or the like (step D2), the contents of the hard disk 9 are all cleared (step D3).

【0022】以上のように本実施例において、UPS1
はAC電源が起きたことをその割り込み信号ACINT
によってCPU3に通知することができる。この場合、
3秒程度の瞬時停電についてはそれを無視し、停電が起
らなかった場合と同様の動作状態のままとなる。また、
AC電源が停電したとしても二次電池をバックアップ電
源としてシステム全体を一定時間、通常通りに動作させ
ることができるので、AC停電時に登録中であってもそ
の取引の登録作業をそのまま続行することができる。ま
た、AC電源から3秒経過後に緊急メッセージ表示を行
うため、オペレータはそのメッセージ表示によって登録
作業を急ぐか、そのまま終了させるか等の対策を講じる
ことができる。また、AC停電から30秒経過後、AC
停電中の処理内容をバックアップ処理時にハードディス
ク9に書き込んで登録保存するようにしたから、AC電
源復帰後、ハードディスク9の内容を復元することで、
AC停電が起らなかったと同様の動作状態に戻すことが
できる。また、この場合バックアップ処理BPによる電
力供給を強制的に停止させたから、バックアップ処理B
Pの無駄な電力消費を避けることができ、その長寿命化
を図ることが可能となる。このようなバックアップ処理
はバックアップ処理BPのローバッテリが検出されたと
きにも同様に行われる。
As described above, in this embodiment, UPS1
Indicates that AC power has occurred, its interrupt signal ACINT
Can be notified to the CPU 3. in this case,
The momentary power failure of about 3 seconds is ignored, and the operation state remains the same as when the power failure did not occur. Also,
Even if the AC power supply fails, the entire system can be operated normally for a certain period of time by using the secondary battery as a backup power supply. Therefore, even when the AC power supply is being registered, the registration work of the transaction can be continued as it is. it can. Further, since the emergency message is displayed after 3 seconds have passed from the AC power source, the operator can take a measure such as hurrying the registration work or terminating the registration work by the message display. In addition, 30 seconds after AC power failure, AC
Since the processing contents during a power failure are written and stored in the hard disk 9 during backup processing, by restoring the contents of the hard disk 9 after the AC power is restored,
It is possible to return to the same operating state as if the AC power failure did not occur. Further, in this case, since the power supply by the backup process BP is forcibly stopped, the backup process B
It is possible to avoid wasteful power consumption of P and prolong its life. Such backup processing is also performed when the low battery of the backup processing BP is detected.

【0023】なお、上記実施例はAC停電中原則的に3
0秒経過するまでの間、システム全体を通常通りに動作
させたが、例えば、重負荷回路であるプリンタについて
のみその動作を制御するようにしてもよい。図8はこの
場合の動作制御を説明するための図で、サーマルプリン
タでレシート/ジャーナル印字を行う場合、AC電源が
正常であれば、図8(1)に示すようにドット密度を高
めて高品位印字を行うが、AC停電中は図8(2)に示
すようにドット密度を粗くしてレシート/ジャーナル印
字を行うようにすれば、二次電池BPの消費電力が少な
くなり、AC停電から30秒以上、例えば、1分程度の
バックアップが可能となる。また、上記上記実施例はA
C停電中のバックアップ期間中において、キー入力が行
われる毎にそのキーに応じた処理を行うようにしたが、
例えば、特定のキーを操作することによって予め任意に
設定した一連の処理(アレンジメント処理)を実行する
ようにしてもよい。なお、このようなアレンジメント処
理機能を付加することで一連の処理を効率良く行うこと
ができるため、二次電池BPの消費電力の点で有効であ
る。
In the above embodiment, 3 is in principle during the AC power failure.
The entire system was operated as usual until 0 seconds passed, but the operation may be controlled only for the printer which is a heavy load circuit, for example. FIG. 8 is a diagram for explaining the operation control in this case. When the receipt / journal printing is performed by the thermal printer, if the AC power supply is normal, as shown in FIG. Although the quality printing is performed, if the dot density is roughened and the receipt / journal printing is performed during the AC power failure as shown in FIG. 8 (2), the power consumption of the secondary battery BP is reduced and the power failure from the AC power failure occurs. It is possible to back up for 30 seconds or more, for example, about 1 minute. Further, the above-mentioned embodiment is
C During the backup period during a power outage, each time a key is input, the processing corresponding to that key is performed.
For example, a series of processes (arrangement process) set in advance may be executed by operating a specific key. A series of processing can be efficiently performed by adding such an arrangement processing function, which is effective in terms of power consumption of the secondary battery BP.

【0024】[0024]

【発明の効果】この発明によれば、AC電源の停電時で
も二次電池をバックアップ電源として通常と同様の動作
を一定時間内保障することができるので、例えば、EC
Rにおいて売上データの登録中に停電してもそのまま登
録作業を続行することができる。
According to the present invention, even when the AC power supply is interrupted, the secondary battery can be used as a backup power supply to guarantee the same operation as a normal operation within a certain period of time.
Even if a power failure occurs during registration of sales data at R, the registration work can be continued.

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

【図1】電子式キャッシャレジスタ仕様のパーソナルコ
ンピュータの構成を示したブロック図。
FIG. 1 is a block diagram showing the configuration of a personal computer with an electronic cash register specification.

【図2】UPS1の構成を示した回路構成図。FIG. 2 is a circuit configuration diagram showing a configuration of UPS1.

【図3】RAM10の構成を示した図。FIG. 3 is a diagram showing a configuration of a RAM 10.

【図4】登録モード下での動作を示したフローチャー
ト。
FIG. 4 is a flowchart showing an operation under a registration mode.

【図5】図4で示したUPS処理を説明するためのフロ
ーチャート。
FIG. 5 is a flowchart for explaining the UPS processing shown in FIG.

【図6】図4で示したバックアップ処理を説明するため
のフローチャート。
6 is a flowchart for explaining the backup processing shown in FIG.

【図7】停電復帰処理を示したフローチャート。FIG. 7 is a flowchart showing a power failure recovery process.

【図8】AC電源の正常時と停電時において、印字ドッ
ト密度を異ならしめて印字する他の例を示した図。
FIG. 8 is a diagram showing another example of printing with different print dot densities when the AC power supply is normal and when there is a power failure.

【符号の説明】 1 UPS 2 UPSコントローラ 3 CPU 4 ROM 5 キー入力部 6 表示部 7 印字部 8 ドロア 9 ハードディスク 10−3、10−4 フラグレジスタ 10−5 タイマ時間レジスタ BP 二次電池[Explanation of Codes] 1 UPS 2 UPS Controller 3 CPU 4 ROM 5 Key Input Section 6 Display Section 7 Printing Section 8 Drawer 9 Hard Disk 10-3, 10-4 Flag Register 10-5 Timer Time Register BP Secondary Battery

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岩谷 充男 東京都羽村市栄町3丁目2番1号 カシオ 計算機株式会社羽村技術センター内 (72)発明者 国井 正徳 東京都羽村市栄町3丁目2番1号 カシオ 計算機株式会社羽村技術センター内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Mitsuo Iwatani 3-2-1 Sakaemachi, Hamura-shi, Tokyo Casio Computer Co., Ltd. Hamura Technical Center (72) Inventor Masanori Kunii 3-2-1 Sakaemachi, Hamura-shi, Tokyo No. Casio Computer Co., Ltd. Hamura Technical Center

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】AC電源によって充電される二次電池を有
し、AC電源の停電時に前記二次電池からの電力をバッ
クアップ電源として供給すると共に、AC停電割り込み
信号を出力するバックアップ電源部と、 前記AC停電割り込み信号が入力された場合に、一定時
間が経過するまでの間、前記二次電池をバックアップ電
源として各種の周辺デバイスを動作可能状態に設定する
動作制御手段と、 を具備したことを特徴とするデータ処理装置。
1. A backup power supply unit that has a secondary battery charged by an AC power supply, supplies power from the secondary battery as a backup power supply when the AC power supply fails, and outputs an AC power failure interrupt signal. When the AC power interruption signal is input, an operation control unit that sets various peripheral devices to an operable state by using the secondary battery as a backup power supply until a predetermined time has elapsed, is provided. Characteristic data processing device.
【請求項2】更に、前記AC停電割り込み信号が入力さ
れた場合にその旨を報知する報知手段を設けたことを特
徴とする請求項(1)記載のデータ処理装置。
2. The data processing apparatus according to claim 1, further comprising an informing means for informing that the AC power interruption interrupt signal has been input.
【請求項3】前記動作制御手段は前記一定時間経過後に
各種のデータを外部記憶装置に書き込むと共に前記バッ
クアップ電源部からの電力供給を停止させるバックアッ
プ処理を行うようにしたことを特徴とする請求項(1)
記載のデータ処理装置。
3. The operation control means writes various data in the external storage device after the lapse of the predetermined time and performs a backup process for stopping the power supply from the backup power supply section. (1)
The described data processing device.
【請求項4】更に前記バックアップ電源部はバックアッ
プに必要な前記二次電池の容量低下を検出してローバッ
テリ割り込み信号を出力し、 前記動作制御手段は前記ローバッテリ割り込み信号が入
力された際に各種のデータを外部記憶装置に書き込むと
共に、前記バックアップ電源部からの電力供給を停止さ
せるバックアップ処理を行うようにしたことを特徴とす
る請求項(1)記載のデータ処理装置。
4. The backup power supply unit further detects a capacity decrease of the secondary battery necessary for backup and outputs a low battery interrupt signal, and the operation control means outputs the low battery interrupt signal when the low battery interrupt signal is input. The data processing device according to claim 1, wherein various data are written in an external storage device, and a backup process for stopping power supply from the backup power supply unit is performed.
JP5340259A 1993-12-08 1993-12-08 Data processor Pending JPH07160375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5340259A JPH07160375A (en) 1993-12-08 1993-12-08 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5340259A JPH07160375A (en) 1993-12-08 1993-12-08 Data processor

Publications (1)

Publication Number Publication Date
JPH07160375A true JPH07160375A (en) 1995-06-23

Family

ID=18335231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5340259A Pending JPH07160375A (en) 1993-12-08 1993-12-08 Data processor

Country Status (1)

Country Link
JP (1) JPH07160375A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101506675B1 (en) * 2008-12-09 2015-03-30 삼성전자주식회사 User device comprising auxiliary power supply
US9626259B2 (en) 2008-12-09 2017-04-18 Samsung Electronics Co., Ltd. Auxiliary power supply and user device including the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101506675B1 (en) * 2008-12-09 2015-03-30 삼성전자주식회사 User device comprising auxiliary power supply
US9626259B2 (en) 2008-12-09 2017-04-18 Samsung Electronics Co., Ltd. Auxiliary power supply and user device including the same

Similar Documents

Publication Publication Date Title
JP4401954B2 (en) Power supply control device and power supply control program
US5835780A (en) Apparatus and method for controlling power supply for computer system during service interruption
US5825100A (en) Intelligent battery power system
JP2001178018A (en) Power supply controller, method of controlling power supply, and storage medium
JPH0683491A (en) Electric-power-distribution control system of portable computer
JPH0546289A (en) Power failure restoring device for electronic equipment
JPH11155243A (en) Uninterruptible power equipment and computer system with the uninterruptible power equipment
JPH0612153A (en) Programmable controller
JPH07160375A (en) Data processor
US20040103343A1 (en) Method and related computer for processing suspend to ram during power failure
JPH07248858A (en) Electronic apparatus with power interruption function
JPH07160374A (en) Data processor
KR950013264B1 (en) Automatic back-up and recovery device and method in computer systems
JPH07160596A (en) Data processor
JP3120195B2 (en) Battery control device
JPH10225009A (en) Device for processing data with function protecting secondary cell and program for the device
JPH0930084A (en) Printer device
JPH07225721A (en) Power failure processor for data processing system
JPS63217455A (en) Ram back-up system
JPH06335172A (en) Information processor
JP2003039794A (en) Printing apparatus, voltage controlling apparatus, and voltage controlling method
JPH1091297A (en) Data processor
JP2816748B2 (en) Power failure compensation type time clock
JP2754106B2 (en) Portable electronic devices
JPH04115315A (en) Power supply control system