JPH0594238A - Data protection device for electronic equipment - Google Patents

Data protection device for electronic equipment

Info

Publication number
JPH0594238A
JPH0594238A JP3280309A JP28030991A JPH0594238A JP H0594238 A JPH0594238 A JP H0594238A JP 3280309 A JP3280309 A JP 3280309A JP 28030991 A JP28030991 A JP 28030991A JP H0594238 A JPH0594238 A JP H0594238A
Authority
JP
Japan
Prior art keywords
data
power switch
power
relay
turned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3280309A
Other languages
Japanese (ja)
Other versions
JP2761990B2 (en
Inventor
Masaaki Sato
正章 佐藤
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 JP3280309A priority Critical patent/JP2761990B2/en
Publication of JPH0594238A publication Critical patent/JPH0594238A/en
Application granted granted Critical
Publication of JP2761990B2 publication Critical patent/JP2761990B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To provide the data protection device for the electronic equipment which can surely protect the data in a data storage part backed up by a power source and surely turn OFF the power source. CONSTITUTION:When a power switch 8 is turned ON and electric power begins to be supplied, a relay contact 23 connected in parallel to the power switch 8 is made to supply the electric power continuously even after the power switch 8 is turned OFF. When the power switch 8 is turned OFF, the data in the RAM 12 are automatically stored on a disk device 19 and a relay 22 is stopped so as to break the relay contact 23, thereby automatically stopping supplying the electric power.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電源バックアップされ
たRAM(ランダム・アクセス・メモリ)の電源オフ時
におけるデータ破壊等からデータを保護する電子機器の
データ保護装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data protection device for an electronic device that protects data from data destruction of a RAM (random access memory) whose power is backed up when the power is off.

【0002】[0002]

【従来の技術】従来、電源バックアップされたRAMを
有する電子機器においては、前記RAMのデータは、通
常電子機器の主電源がオフされてもバックアップ用電源
であるバッテリーによってバックアップされているが、
バッテリーの容量には限界があるので、限界を超える長
時間のバックアップはできず、場合によってはRAMの
データが破壊され消失することがあった。このため、長
時間にわたって主電源がオフされたままになることを考
慮して、利用者が主電源をオフする前に、所定のキー操
作を行をことによりRAM内のデータをフロッピーディ
スク等の不揮発性の記憶媒体に保存してデータの保護を
するデータ保護装置を有するものがある。そしてデータ
の保存が終了したことを確認した後オペレータは電源を
オフすることになる。このような電子機器では、主電源
投入時、たとえRAM内のデータが破壊され消失してい
たとしても、キー操作等を行い前記記憶媒体に保存され
ているデータを復元させることによって主電源をオフす
る前の状態に戻すことができるものである。
2. Description of the Related Art Conventionally, in an electronic device having a RAM whose power source is backed up, the data in the RAM is normally backed up by a battery which is a backup power source even when the main power source of the electronic device is turned off.
Since the capacity of the battery is limited, it is impossible to back up for a long time exceeding the limit, and in some cases, the data in the RAM may be destroyed and lost. Therefore, in consideration of the fact that the main power supply remains off for a long time, the data in the RAM can be stored in a floppy disk or the like by performing a predetermined key operation before the user turns off the main power supply. Some have a data protection device that protects data by storing it in a non-volatile storage medium. Then, after confirming that the data storage is completed, the operator turns off the power. In such an electronic device, when the main power is turned on, even if the data in the RAM is destroyed and lost, the main power is turned off by performing a key operation or the like to restore the data stored in the storage medium. It is possible to return to the state before doing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
電子機器のデータ保護装置は、主電源をオフする前にデ
ータを記憶媒体に保存させるためのキー操作が必要で煩
雑であった上、そのキー操作を忘れてしまうと、前記バ
ッテリーの容量を超えて上記データが消失した場合に復
元できなかった。また保存が終了したのを確認してから
電源をオフする操作を行うことから電源オフまでに待ち
時間が発生しオペレータには煩わしく、待ち時間の間に
他の作業を行っていると最悪の場合電源スイッチを切り
忘れる恐れがあった。
However, the conventional data protection device for an electronic device is complicated because it requires a key operation for saving data in a storage medium before turning off the main power source. If the operation is forgotten, it cannot be restored when the above data is lost beyond the capacity of the battery. In addition, it is annoying for the operator that waiting time occurs until the power is turned off after confirming that the saving is completed and turning off the power, and in the worst case it is necessary to perform other work during the waiting time. I might forget to turn off the power switch.

【0004】本発明はこのような従来技術の課題に鑑み
成されたもので、電源バックアップされたデータ記憶部
のデータの保護を、煩雑な操作を行うことなく確実には
かり得るとともに確実な電源オフが可能な電子機器のデ
ータ保護装置を提供することを目的とする。
The present invention has been made in view of the problems of the prior art as described above, and can protect the data in the data storage unit backed up by the power supply without performing a complicated operation and surely turn off the power. It is an object of the present invention to provide a data protection device for an electronic device that is capable of

【0005】[0005]

【課題を解決するための手段】本発明の電子機器のデー
タ保護装置は、制御部と、この制御部により制御される
とともにバックアップ電源によりバックアップされたデ
ータ記憶部と、電源回路を介して前記制御部への電源の
供給をオン・オフするための電源スイッチとを備えた電
子機器において、前記制御部に接続された読み書き自在
な不揮発性の記憶媒体と、前記電源スイッチに並列接続
されたリレー接点をオン・オフするリレーと、前記電源
スイッチがオフされた場合この電源スイッチの入力端子
と制御部とを接続する検知回路と、前記制御部に電源の
供給が開始されたことに応じて前記リレーを駆動してリ
レー接点をオン動作させるリレー制御手段と、前記検知
回路を介して電源スイッチのオフ信号の入力に応じて、
前記データ記憶部のデータを前記記憶媒体に記憶させて
データ保存処理を実行した後、前記リレーへの駆動を停
止してリレー接点をオフ動作させるデータ保存制御手段
とを備えた。
A data protection device for an electronic apparatus according to the present invention comprises a control section, a data storage section controlled by the control section and backed up by a backup power source, and the control via a power supply circuit. In an electronic device equipped with a power switch for turning on / off power supply to the unit, a readable / writable nonvolatile storage medium connected to the control unit and a relay contact connected in parallel to the power switch. A relay that turns on and off the power switch, a detection circuit that connects the input terminal of the power switch and the control unit when the power switch is turned off, and the relay in response to the start of power supply to the control unit. In response to the input of the OFF signal of the power switch through the relay control means for driving the relay contact to turn on the relay contact and the detection circuit,
After storing the data of the data storage unit in the storage medium and executing the data storage processing, the data storage control unit is provided to stop the drive to the relay and turn off the relay contact.

【0006】[0006]

【作用】このような構成の本発明であれば、電源スイッ
チがオンされ、制御部に電源の供給が開始されると、リ
レー制御手段により電源スイッチに並列に接続した接点
がオンして電源スイッチがオフされても制御部への電源
の供給を維持する。そして、電源スイッチがオフされる
と、スイッチ検知回路を介して電源スイッチのオフされ
たことを検知し、この検知に応じて、自動的にデータ記
憶部内のデータを不揮発性の記憶媒体に記憶させて、バ
ッテリーの容量を超えて長時間電源スイッチがオンされ
ない場合にも前記データが不揮発性の記憶媒体に保存さ
れる。そしてその後リレーの駆動を停止してリレー接点
がオフして電子機器への電源供給を自動的に停止させ
る。
According to the present invention having such a structure, when the power switch is turned on and the supply of power to the control unit is started, the contacts connected in parallel to the power switch are turned on by the relay control means to turn on the power switch. Even if is turned off, the power supply to the control unit is maintained. When the power switch is turned off, the switch detection circuit detects that the power switch has been turned off, and in response to this detection, the data in the data storage unit is automatically stored in the nonvolatile storage medium. As a result, the data is stored in the non-volatile storage medium even when the capacity of the battery is exceeded and the power switch is not turned on for a long time. Then, after that, the driving of the relay is stopped, the relay contact is turned off, and the power supply to the electronic device is automatically stopped.

【0007】[0007]

【実施例】以下、本発明を電子機器として電子式キャッ
シュレジスタに適用した実施例について図面を参照して
説明する。図2は電子式キャッシュレジスタの外観図で
あって、本体1の前面に販売商品のコードや値段等を入
力するためのキーボード2が設けられており、上面にキ
ー入力された商品の値段や合計金額等を表示するオペレ
ータ用表示器3及び客用表示器4が設けられている。ま
た本体1の内部にレシート用紙及びジャーナル用紙に印
字を行うためのR/Jプリンタ5が設けられている。さ
らに、本体1の下面に現金等を収納するためのドロワ6
が設置されている。図中7は電源プラグ、8は主電源の
電源スイッチである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment in which the present invention is applied to an electronic cash register as an electronic device will be described below with reference to the drawings. FIG. 2 is an external view of an electronic cash register. The main body 1 is provided with a keyboard 2 for inputting codes, prices, etc. of products to be sold, and the price and total of the products keyed in on the upper surface. An operator display 3 and a customer display 4 for displaying the amount of money and the like are provided. An R / J printer 5 for printing on receipt paper and journal paper is provided inside the main body 1. Further, a drawer 6 for storing cash etc. on the lower surface of the main body 1.
Is installed. In the figure, 7 is a power plug, and 8 is a main power switch.

【0008】図1はこの実施例の電子式キャッシュレジ
スタの電気的ハードウェア構成図である。制御部である
CPU9は、キーボード2や不揮発性の記憶媒体である
ディスク装置19から入力された各種データに対して演
算処理を実行する本装置の中枢であり、このCPU9に
はアドレスバス、データバス、制御線からなるバスライ
ン10を介してROM11及びデータ記憶部であるRA
M12の各メモリが接続されている。上記ROM11に
はCPU9が各部を制御するためのプログラムデータや
キャラクタジェネレータデータ等の固定的データが記憶
されている。上記RAM12には印字バッファ、表示バ
ッファの他、販売登録された商品の販売データを累計す
るためのメモリ等、可変的なデータを記憶するための各
種メモリが形成されている。そしてこのRAM12は主
電源オフ時にはバッテリー13によってバックアップさ
れている。
FIG. 1 is an electrical hardware block diagram of the electronic cash register of this embodiment. The CPU 9 which is a control unit is the center of the present device which executes arithmetic processing on various data input from the keyboard 2 and the disk device 19 which is a non-volatile storage medium. The CPU 9 includes an address bus and a data bus. , A ROM 11 and a data storage unit RA via a bus line 10 composed of control lines.
Each memory of M12 is connected. The ROM 11 stores fixed data such as program data and character generator data for the CPU 9 to control each unit. The RAM 12 is provided with various memories for storing variable data such as a print buffer, a display buffer, a memory for accumulating sales data of registered products for sale, and the like. The RAM 12 is backed up by the battery 13 when the main power is off.

【0009】また、前記キーボード2を制御するキーボ
ードコントローラ14、前記各表示器3、4を制御する
表示コントローラ15、前記R/Jプリンタ5を制御す
るプリンタコントーラ16、ドロワ開放装置17に信号
を出力するためのI/Oポート18、ディスク装置19
に対してデータの読み書きを制御するディスクコントロ
ーラ20が前記バスラインを介してCPU9にそれぞれ
接続されている。なおこの実施例でいうディスク装置1
9とはハードディスク装置を意味している。また、この
ディスク装置19には、RAM12のデータをディスク
装置19に控えた否かを識別するための識別データであ
る控えフラグを記憶する控えフラグエリア21が形成さ
れている。さらにCPU9には前記バスライン、I/O
ポート18を介してリレー22が接続されている。この
リレー22のリレー接点23は前記電源スイッチ8に対
して並列に接続されている。前記電源スイッチ8はオン
操作により接点を閉じ、これにより電源プラグ7をコン
セントに差し込んだ状態にあっては電源回路24と商用
交流電源とが電気的に接続される。電源回路24は商用
交流電源と接続されると交流から所望の直流電源を前記
CPU9等に供給する。この電源供給により前記CPU
9をはじめとする各種素子は動作可能となる。また、前
記電源スイッチ8は、電源オフを検出する検出端子25
と信号線26を介してI/Oポート18につながれてい
る。この検知回路により電源オフされるとI/Oポート
18にはそれを示すオフ信号が入り、CPUは一定時間
間隔でその信号をチェックすることで電源スイッチ8が
オフ操作されたことを検知する。
A signal is output to the keyboard controller 14 for controlling the keyboard 2, the display controller 15 for controlling the respective display devices 3, 4, the printer controller 16 for controlling the R / J printer 5, and the drawer opening device 17. I / O port 18 and disk device 19 for
A disk controller 20 for controlling the reading and writing of data is connected to the CPU 9 via the bus line. The disk device 1 referred to in this embodiment
9 means a hard disk device. Further, the disk device 19 is formed with a copy flag area 21 for storing a copy flag which is identification data for identifying whether or not the data in the RAM 12 is saved in the disk device 19. Further, the CPU 9 has the bus line and I / O.
A relay 22 is connected via the port 18. The relay contact 23 of the relay 22 is connected in parallel with the power switch 8. When the power switch 8 is turned on, the contacts are closed, so that the power circuit 24 and the commercial AC power source are electrically connected to each other when the power plug 7 is inserted into the outlet. When connected to a commercial AC power supply, the power supply circuit 24 supplies a desired DC power supply from the AC to the CPU 9 and the like. With this power supply, the CPU
Various elements including 9 become operable. The power switch 8 has a detection terminal 25 for detecting power off.
And a signal line 26 to the I / O port 18. When the power is turned off by this detection circuit, an off signal indicating that is input to the I / O port 18, and the CPU checks that signal at regular time intervals to detect that the power switch 8 has been turned off.

【0010】図3は本実施例の電源立上げ(電源オン)
時の処理を示すフローチャートである。この処理は電源
プラグ7をコンセントに差し込んだ状態で、電源スイッ
チ8をオン操作することにより実行するものである。先
ずステップ100で通常立上げか否かを判別する。これ
は電源スイッチ8を操作したままの状態であれば通常立
上げであるが、特定の操作、例えばディップスイッチの
設定や所定のキーを押下した状態での電源スイッチ8の
操作であるかをディップスイッチやキー信号により判別
する。そして特殊立上げであればステップ101でその
他の処理を実行する。このその他の処理としてはRAM
12の内容をクリアするなどの処理がある。ステップ1
01で通常立上げであると判別した場合は、リレー制御
手段であるステップ102でリレー22を駆動してリレ
ー接点23をオン動作させ、ステップ103でバッテリ
ーでバックアップされていたはずのRAM12のデータ
が破壊されているかいなか調査する。この調査は例えば
RAM12の所定のエリアに予め固定のデータを記憶さ
せておき、そのデータを読み込み、記憶させておいたデ
ータであるか否かによって行う。読み込んだデータが記
憶させていおいたデータでなければRAM12のデータ
は破壊されていると判断できる。ステップ104でその
結果を判別し、破壊されていなければステップ109で
通常のプログラム処理を実行する。
FIG. 3 shows the power-on (power-on) of this embodiment.
It is a flow chart which shows processing at the time. This processing is executed by turning on the power switch 8 with the power plug 7 plugged in the outlet. First, in step 100, it is determined whether or not the startup is normal. This is a normal start-up if the power switch 8 is still being operated, but a specific operation, such as the setting of the DIP switch or the operation of the power switch 8 with a predetermined key pressed, is performed. Distinguish by switch or key signal. If it is a special startup, other processing is executed in step 101. The other processing is RAM
There is processing such as clearing the contents of 12. Step 1
If it is determined in 01 that the startup is normal, the relay 22 is driven in step 102, which is the relay control means, to turn on the relay contact 23, and in step 103, the data in the RAM 12 that should have been backed up by the battery is Investigate if it is destroyed. This investigation is performed, for example, by storing fixed data in a predetermined area of the RAM 12 in advance, reading the data, and checking whether or not the data is the stored data. If the read data is not the stored data, it can be determined that the data in the RAM 12 is destroyed. The result is determined in step 104, and if not destroyed, normal program processing is executed in step 109.

【0011】ステップ104で破壊されていると判別し
た場合は、ステップ105でディスク装置19の控えフ
ラグメモリ21を参照して、RAM12のデータが控え
られているか判別する。この実施例では控えフラグメモ
リ21に1がセットされている場合はRAM12のデー
タが正常にディスク装置19に記憶されているものとす
る。したがって控えフラグメモリ21に1がセットされ
ていなければ、ディスク装置19にもRAM12のデー
タは存在しないのでステップ106で表示器3、4にメ
モリの異常を示すメッセージを表示する。控えフラグメ
モリ21に1がセットされていたなら、RAM12のデ
ータはディスク装置19に記憶されているので、ステッ
プ107でディスク装置19に記憶されているデータを
ディスクコントローラを介して読み込み、RAM12に
転送して記憶させデータの復元を行う。そしてステップ
108でディスク装置19の控えフラグメモリ21のフ
ラグをクリアしてステップ109で通常のプログラム処
理を実行する。
If it is determined in step 104 that the data is destroyed, it is determined in step 105 whether the data in the RAM 12 is reserved by referring to the copy flag memory 21 of the disk device 19. In this embodiment, when 1 is set in the copy flag memory 21, it is assumed that the data in the RAM 12 is normally stored in the disk device 19. Therefore, if 1 is not set in the copy flag memory 21, the data in the RAM 12 does not exist in the disk device 19 either, so that a message indicating an abnormality of the memory is displayed on the display devices 3 and 4 in step 106. If 1 is set in the copy flag memory 21, the data in the RAM 12 is stored in the disk device 19, so in step 107 the data stored in the disk device 19 is read via the disk controller and transferred to the RAM 12. Then, it is stored and the data is restored. Then, in step 108, the flag of the copy flag memory 21 of the disk device 19 is cleared, and in step 109, normal program processing is executed.

【0012】図4は本実施例の電源立下げ(電源オフ)
時の処理を示すフローチャートである。この処理は定期
的に検出端子25、信号線26を介してI/Oポートに
入っている信号から電源スイッチ8の状態を調べ、電源
スイッチ8がオフしていることを検知すると実行するも
のである。ステップ110でタイマーをスタートする。
これはRAM12内に形成されたカウンタによるソフト
ウェアタイマーである。ステップ111でRAM12に
記憶されているデータをディスクコントローラ20を介
してディスク装置19に保存する処理を開始し、ステッ
プ112でRAM12の占めるアドレスの最終番地まで
ディスク装置19に記憶したかを判別して保存が終了し
たか否かを判別する。まだ終了していなければステップ
113でタイマーの値が所定の値に成ったか判別する。
保存が終了するか、タイマー値が所定の値に達するまで
メモリデータ保存の処理は繰り返される。ステップ11
3でタイマーの値が所定の値に達したならばステップ1
15でリレー22の駆動を停止してリレー接点23をオ
フ動作させる。この場合はRAM12のデータがディス
ク装置19に控えられなかったことを意味している。ス
テップ112で保存が終了したことを判別したならステ
ップ114でディスク装置19の控えフラグメモリ21
に1をセットして、ステップ115でリレー22の通電
を停止してリレー接点23をオフ動作させる。この場合
はRAM12のデータがディスク装置19に控えられた
ことを意味している。上記のリレー接点23のオフによ
り、電源回路24は交流電源と切り離され、CPU9等
に対する直流電源の供給が停止され、CPU9は動作不
能となる。なおステップ111、112、115がデー
タ保存制御手段である。
FIG. 4 shows the power supply shutdown (power off) of this embodiment.
It is a flow chart which shows processing at the time. This process is executed by periodically checking the state of the power switch 8 from the signal input to the I / O port via the detection terminal 25 and the signal line 26 and detecting that the power switch 8 is off. is there. In step 110, the timer is started.
This is a software timer with a counter formed in the RAM 12. In step 111, the process of storing the data stored in the RAM 12 in the disk device 19 via the disk controller 20 is started, and in step 112 it is determined whether or not the final address of the address occupied by the RAM 12 has been stored in the disk device 19. It is determined whether the saving is completed. If it has not ended, it is determined in step 113 whether the timer value has reached a predetermined value.
The memory data saving process is repeated until the saving ends or the timer value reaches a predetermined value. Step 11
If the timer value reaches the specified value in step 3, step 1
At 15 the drive of the relay 22 is stopped and the relay contact 23 is turned off. In this case, it means that the data in the RAM 12 cannot be saved in the disk device 19. If it is determined in step 112 that the storage has been completed, in step 114 the copy flag memory 21 of the disk device 19 is stored.
Is set to 1, and in step 115, the energization of the relay 22 is stopped and the relay contact 23 is turned off. In this case, it means that the data in the RAM 12 has been saved in the disk device 19. When the relay contact 23 is turned off, the power supply circuit 24 is disconnected from the AC power supply, the DC power supply to the CPU 9 and the like is stopped, and the CPU 9 becomes inoperable. Note that steps 111, 112, and 115 are data storage control means.

【0013】次に本実施例の動作を説明する。電源プラ
グ7をコンセントに差し込んだ状態で電源スイッチ8を
オン操作すると、スイッチの接点が閉じ、電源回路24
から電源供給が行われてCPU9等が動作可能となる。
通常の場合であればCPU9の制御によりリレー22に
通電されリレー接点23がオン動作する。またバッテリ
ーによってバックアップされているはずのRAM12の
データが破壊されているか否かが自動的にチェックされ
る。そして、破壊されていなければ通常の処理が開始さ
れる。例えばキーボード2のキー操作によって販売登録
された各販売商品の売上データがRAM12に累計され
る。また販売商品の値段や合計金額等が表示器3、4に
表示され、レシートが発行される。例えばバッテリーの
容量不足などによりRAM12のデータが破壊されてい
た場合には、ディスク装置19の控えフラグメモリ21
からディスク装置19にRAM12のデータが記憶され
ているかチェックし、ディスク装置19に記憶されてい
ない場合は、無駄なデータ復元処理をせずにメモリ異常
を表示器3、4に表示する。この場合は一旦電源をオフ
し、RAM12クリア等の特殊立上げをしたのちジャー
ナル用紙に印字されているデータをもとにキー入力等で
復元処理を実行することになる。またディスク装置19
に記憶されている場合には、ディスク装置19に記憶さ
れているデータが自動的にRAM12に転送されRAM
12のデータは復元される。
Next, the operation of this embodiment will be described. When the power switch 8 is turned on while the power plug 7 is plugged into the outlet, the switch contacts are closed and the power circuit 24
The power is supplied from the CPU 9 to enable the CPU 9 and the like to operate.
In the normal case, the relay 22 is energized by the control of the CPU 9 and the relay contact 23 is turned on. Further, it is automatically checked whether the data in the RAM 12 that should have been backed up by the battery is destroyed. Then, if not destroyed, normal processing is started. For example, the sales data of each sale product registered for sale by the key operation of the keyboard 2 is accumulated in the RAM 12. Further, the price of the sold product, the total price, etc. are displayed on the display devices 3 and 4, and the receipt is issued. For example, when the data in the RAM 12 is destroyed due to insufficient battery capacity, the copy flag memory 21 of the disk device 19 is stored.
It is checked whether or not the data in the RAM 12 is stored in the disk device 19 and if the data is not stored in the disk device 19, the memory abnormality is displayed on the display devices 3 and 4 without performing unnecessary data restoration processing. In this case, the power is once turned off, special startup such as clearing the RAM 12 is performed, and then restoration processing is executed by key input or the like based on the data printed on the journal paper. In addition, the disk device 19
Data stored in the disk device 19 is automatically transferred to the RAM 12 and stored in the RAM 12.
12 data are restored.

【0014】一日の業務が全て終了して電源スイッチ8
をオフ操作すると電源スイッチ8の接点が開放される。
ただし、リレー接点23はオン動作したままなので電源
回路24からの電源供給は継続される。そして、CPU
9が電源スイッチ8のオフ操作を検知すると、RAM1
2のデータをディスク装置19に記憶する処理が実行さ
れる。またディスクの記録異常を監視するためにタイマ
ー監視を実行する。その後ディスクへの保存が終了した
なら、そのこと示すべく控えフラグメモリ21に1をセ
ットし、タイムアウトであれば控えフラグメモリ21に
1をセットすることなく、リレー22への通電を停止す
る。リレー22への通電を停止することによりリレー接
点23がオフ動作し、電源回路24からの電源供給が停
止されてCPU9等が動作不良となる。
Power switch 8
When is turned off, the contact of the power switch 8 is opened.
However, since the relay contact 23 remains on, the power supply from the power supply circuit 24 is continued. And CPU
When the RAM 9 detects the OFF operation of the power switch 8, the RAM 1
The process of storing the second data in the disk device 19 is executed. Also, timer monitoring is performed to monitor the recording abnormality of the disk. After that, when the storage in the disk is completed, 1 is set in the copy flag memory 21 to indicate this, and if the time is out, the relay 22 is not energized without setting 1 in the copy flag memory 21. By stopping the energization of the relay 22, the relay contact 23 is turned off, the power supply from the power supply circuit 24 is stopped, and the CPU 9 and the like malfunction.

【0015】上述したように今回の発明ではバッテリー
によりバックアップされるRAM12のデータを電源オ
フ操作に応じて自動的にディスク装置19に記憶して保
存するようにしたので、電源オフ時にバッテリーの容量
不足や故障等によりRAM12内のデータが破壊され消
失してしまっても、電源投入時に確実に復元できるよう
になる。またデータの保存、復元が自動的に行われるの
で煩雑なキー操作や、操作を忘れてしまう不都合がな
い。また保存に失敗している場合は復元処理をせず、そ
の旨を報知するので、破壊されたデータのまま通常処理
を実行してしまうような不具合も防止される。
As described above, in the present invention, the data of the RAM 12 backed up by the battery is automatically stored and saved in the disk device 19 in response to the power-off operation, so that the battery capacity is insufficient when the power is turned off. Even if the data in the RAM 12 is destroyed and lost due to a failure or the like, the data can be reliably restored when the power is turned on. In addition, since data is automatically saved and restored, there is no troublesome key operation or inconvenience of forgetting the operation. Further, when the saving fails, the restoration processing is not performed and the fact is notified, so that it is possible to prevent a problem that the normal processing is executed with the destroyed data.

【0016】なお本発明は上記実施例に限定されるもの
ではない。たとえば本実施例では、電子式キャッシュレ
ジスタについて説明したがこれに限定されるものではな
く、電源バックアップされたRAMを有する電子機器全
般に適用できるものである。
The present invention is not limited to the above embodiment. For example, although the electronic cash register has been described in the present embodiment, the present invention is not limited to this, and can be applied to all electronic devices having a RAM whose power is backed up.

【0017】[0017]

【発明の効果】上述したように本発明によれば、電源バ
ックアップされたメモリのデータ保護を電源スイッチの
オフ操作で自動的に実行できるので煩雑な操作の省略、
操作ミスの防止が実現でき、またデータ保存処理の実行
後は確実に電源オフも実行できる信頼性の高い電子機器
のデータ保護装置を提供することができる。
As described above, according to the present invention, since the data protection of the memory whose power is backed up can be automatically executed by turning off the power switch, complicated operation can be omitted.
It is possible to provide a highly reliable data protection device for an electronic device that can prevent operation mistakes and can surely turn off the power after executing the data storage process.

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

【図1】本発明の一実施例を示す電子式キャッシュレジ
スタのハードウェア構成図である。
FIG. 1 is a hardware configuration diagram of an electronic cash register showing an embodiment of the present invention.

【図2】同実施例における電子式キャッシュレジスタの
外観図である。
FIG. 2 is an external view of an electronic cash register in the embodiment.

【図3】同実施例における電源立上げ時の処理を示すフ
ローチャートである。
FIG. 3 is a flowchart showing a process at power-on in the embodiment.

【図4】同実施例における電源立下げ時の処理を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a process when the power supply is turned off in the embodiment.

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

9 CPU 12 RAM 13 バッテリー 19 ディスク装置 21 控えフラグメモリ 22 リレー 23 リレー接点 9 CPU 12 RAM 13 Battery 19 Disk device 21 Copy flag memory 22 Relay 23 Relay contact

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 制御部と、この制御部により制御される
とともにバックアップ電源によりバックアップされたデ
ータ記憶部と、電源回路を介して前記制御部への電源の
供給をオン・オフするための電源スイッチとを備えた電
子機器において、 前記制御部に接続された読み書き自在な不揮発性の記憶
媒体と、 前記電源スイッチに並列接続されたリレー接点をオン・
オフするリレーと、 前記電源スイッチがオフされた場合この電源スイッチの
入力端子と制御部とを接続する検知回路と、 前記制御部に電源の供給が開始されたことに応じて前記
リレーを駆動してリレー接点をオン動作させるリレー制
御手段と、 前記検知回路を介して電源スイッチのオフ信号の入力に
応じて、前記データ記憶部のデータを前記記憶媒体に記
憶させてデータ保存処理を実行した後、前記リレーへの
駆動を停止してリレー接点をオフ動作させるデータ保存
制御手段とを備えたことを特徴とする電子機器のデータ
保護装置。
1. A control unit, a data storage unit controlled by the control unit and backed up by a backup power supply, and a power switch for turning on / off power supply to the control unit via a power supply circuit. An electronic device comprising: a read / write non-volatile storage medium connected to the control unit, and a relay contact connected in parallel to the power switch to turn on / off.
A relay that turns off, a detection circuit that connects an input terminal of the power switch and a control unit when the power switch is turned off, and the relay is driven in response to the start of power supply to the control unit. Relay control means for turning on the relay contact by means of an electric power switch, and after storing the data of the data storage unit in the storage medium and executing a data saving process in response to the input of an off signal of the power switch via the detection circuit. A data protection device for electronic equipment, comprising: data storage control means for stopping driving of the relay and turning off a relay contact.
JP3280309A 1991-10-02 1991-10-02 Data protection device for electronic equipment Expired - Fee Related JP2761990B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3280309A JP2761990B2 (en) 1991-10-02 1991-10-02 Data protection device for electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3280309A JP2761990B2 (en) 1991-10-02 1991-10-02 Data protection device for electronic equipment

Publications (2)

Publication Number Publication Date
JPH0594238A true JPH0594238A (en) 1993-04-16
JP2761990B2 JP2761990B2 (en) 1998-06-04

Family

ID=17623201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3280309A Expired - Fee Related JP2761990B2 (en) 1991-10-02 1991-10-02 Data protection device for electronic equipment

Country Status (1)

Country Link
JP (1) JP2761990B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981280A (en) * 1995-09-19 1997-03-28 Nippon Denki Ido Tsushin Kk Power supply disconnection delay circuit
WO2005096690A3 (en) * 2004-04-07 2006-04-13 Zeiss Carl Meditec Ag Arrangement and method for safeguarding data
JP2009020572A (en) * 2007-07-10 2009-01-29 Hitachi Industrial Equipment Systems Co Ltd Programmable logic controller
JP2010198178A (en) * 2009-02-24 2010-09-09 Fuji Xerox Co Ltd Power supply device
JP2015172973A (en) * 2015-06-24 2015-10-01 キヤノン株式会社 Information processing device and method of controlling the same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02100118A (en) * 1988-10-07 1990-04-12 Nec Eng Ltd Information processor
JPH02210555A (en) * 1989-02-10 1990-08-21 Nec Corp Computer system
JP3037522U (en) * 1996-11-07 1997-05-20 アンネル株式会社 Duvet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02100118A (en) * 1988-10-07 1990-04-12 Nec Eng Ltd Information processor
JPH02210555A (en) * 1989-02-10 1990-08-21 Nec Corp Computer system
JP3037522U (en) * 1996-11-07 1997-05-20 アンネル株式会社 Duvet

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981280A (en) * 1995-09-19 1997-03-28 Nippon Denki Ido Tsushin Kk Power supply disconnection delay circuit
WO2005096690A3 (en) * 2004-04-07 2006-04-13 Zeiss Carl Meditec Ag Arrangement and method for safeguarding data
JP2009020572A (en) * 2007-07-10 2009-01-29 Hitachi Industrial Equipment Systems Co Ltd Programmable logic controller
JP2010198178A (en) * 2009-02-24 2010-09-09 Fuji Xerox Co Ltd Power supply device
JP2015172973A (en) * 2015-06-24 2015-10-01 キヤノン株式会社 Information processing device and method of controlling the same

Also Published As

Publication number Publication date
JP2761990B2 (en) 1998-06-04

Similar Documents

Publication Publication Date Title
JP2761990B2 (en) Data protection device for electronic equipment
JPH07175373A (en) Electronic device
JPH07248858A (en) Electronic apparatus with power interruption function
JP5367032B2 (en) Electronic device and method for driving electronic device
JP2917381B2 (en) Power interruption processing device
JP4336159B2 (en) Printing device
JPH0481955A (en) Data protecting device of electronic apparatus
JP2579690B2 (en) Electronics
JPS6271685A (en) Printer
JPH05241970A (en) Data protective device for electronic equipment
JPH0433031A (en) Electronic equipment with picture memory
JPH0546495A (en) Data processor
JPH05233474A (en) Storage contents protection system
JPH0720967A (en) Information processor
JP2878293B2 (en) Printer extended font supply device
JP2003223620A (en) Device and method for preventing skimming
JPH01109416A (en) Power source turning-off system for automatic machine
JPH03189885A (en) Card reader/writer
JPH01281595A (en) Electronic cash register
JPH06161908A (en) Memory controller
JPH096887A (en) Card reader writer and card system
JPH0738148B2 (en) Memory card monitoring device
JPH04105136A (en) Electronic equipment
JPH05325037A (en) Electronic equipment capable of carrying on operation after power failure recovery
JPH06195271A (en) Data processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20080327

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090327

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees