JPH04302090A - Electronic device provided with backup memory - Google Patents

Electronic device provided with backup memory

Info

Publication number
JPH04302090A
JPH04302090A JP3089868A JP8986891A JPH04302090A JP H04302090 A JPH04302090 A JP H04302090A JP 3089868 A JP3089868 A JP 3089868A JP 8986891 A JP8986891 A JP 8986891A JP H04302090 A JPH04302090 A JP H04302090A
Authority
JP
Japan
Prior art keywords
power
ram
memory
time data
period
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
JP3089868A
Other languages
Japanese (ja)
Other versions
JP2665410B2 (en
Inventor
Keisuke Ichihashi
市橋 啓介
Hirokazu Asaga
弘和 浅賀
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 JP3089868A priority Critical patent/JP2665410B2/en
Publication of JPH04302090A publication Critical patent/JPH04302090A/en
Application granted granted Critical
Publication of JP2665410B2 publication Critical patent/JP2665410B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To display the destruction of a RAM and a defect of the RAM due to the voltage reduction of a backup battery as messages by measuring the stop period of a main power source and counting the frequency in destruction of the RAM. CONSTITUTION:The power stop period is calculated based on time data stored in a hard disk for turning-on or turning-off of the main power source by execution of a power-on/off time logging program and is stored in the hard disk. If the destruction of the RAM is detected by RAM check, it is discriminated whether the power stop period exceeds a prescribed number of days or not, and a message A indicating the voltage reduction of the backup battery is displayed if it exceeds the prescribed number of days, and the counter of the frequency in destruction of the RAM which is formed on the hard disk is checked, and a message B indicating a defect of the RAM is displayed if the frequency in destruction of the RAM exceeds a prescribed value.

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 equipped with a random access memory backed up by a battery.

【0002】0002

【従来の技術】電子機器、例えばPOS(販売時点情報
管理)端末装置は、RAM(ランダム・アクセス・メモ
リ)を設け、各種の販売管理データを記憶させるように
なっている。このためRAMはバッテリにより電源バッ
クアップされ記憶されている各種の販売管理データが破
壊されないようにしている。
2. Description of the Related Art Electronic equipment, such as a POS (point of sale) terminal device, is equipped with a RAM (random access memory) to store various sales management data. For this reason, the RAM is backed up by a battery to prevent the various sales management data stored therein from being destroyed.

【0003】しかしバッテリによる電源バックアップに
はバッテリ容量により制限があり、このため長期間メイ
ン電源をOFFしているとバッテリの電圧が降下して、
RAM破壊と呼ばれる現象が引き起こされることがあっ
た。
However, power backup using a battery is limited by the battery capacity, and for this reason, if the main power is turned off for a long period of time, the battery voltage will drop.
A phenomenon called RAM destruction may occur.

【0004】このため従来では端末装置の制御部本体を
構成するCPU(中央処理装置)により図4に示す処理
を行うようになっていた。すなわちメイン電源がONさ
れると、先ずRAMチェックが行われ、このRAMチェ
ックにおいてはRAMに破壊が発生していないか否かが
検査される。そしてもしRAMに破壊が発生していると
、POS端末装置に設けられている電源バックアップさ
れないRAMにRAM破壊が発生したことを示すフラグ
を立てる。
[0004] Conventionally, therefore, a CPU (central processing unit) constituting the main body of the control unit of the terminal device performs the processing shown in FIG. That is, when the main power is turned on, a RAM check is first performed, and in this RAM check, it is examined whether or not the RAM has been damaged. If the RAM is damaged, a flag is set on the RAM provided in the POS terminal device, which is not backed up by power, to indicate that the RAM has been destroyed.

【0005】続いて基本OS(オペレーティング・シス
テム)をロードし、続いて標準POS用ドライバをロー
ドし、さらに標準POS用ドライバにより使用するデー
タを格納する領域を確保するための共通テーブル領域確
保を行う。
Next, the basic OS (operating system) is loaded, the standard POS driver is loaded, and a common table area is secured to store the data used by the standard POS driver. .

【0006】続いて前述の電源バックアップされないR
AMのフラグをチェックし、そのRAM破壊の発生を示
すフラグが立てられているときは、RAM破壊が発生し
たと判断して「システム異常(RAM)、サービス技術
員に連絡して下さい。」というメッセージを表示する。 その後システムを起動させる。
[0006] Next, the above-mentioned R without power backup
Check the AM flag, and if the flag indicating that RAM corruption has occurred, it is determined that RAM corruption has occurred, and a message will be displayed saying "System error (RAM). Please contact a service engineer." Display. Then start the system.

【0007】なお、RAM破壊の発生を示すフラグが立
てられていないときには直ちにシステムを起動させる。
Note that if the flag indicating the occurrence of RAM destruction is not set, the system is started immediately.

【0008】このように従来ではRAM破壊が発生した
か否かを単に表示するに過ぎなかった。
[0008] In this way, conventional methods have merely displayed whether or not RAM destruction has occurred.

【0009】[0009]

【発明が解決しようとする課題】ところでRAM破壊の
原因の主な1つに、長期間停電であったために電源バッ
クアップ用のバッテリの電圧低下がある。しかし従来装
置では、RAM破壊があったか否かを知らせるのみであ
るため、RAM破壊についての原因が分からないという
問題があった。
By the way, one of the main causes of RAM destruction is a drop in the voltage of the power backup battery due to a long-term power outage. However, in the conventional device, the problem is that the cause of the RAM destruction cannot be determined because it only informs whether or not the RAM has been destroyed.

【0010】また、バッテリの電圧低下によるRAM破
壊が1回程度ではデータ管理上ほとんど問題にはならな
いが、このようなRAM破壊が数回発生するとRAMを
使用する上で例えばプログラムの暴走が起こる等不都合
が生じる問題があった。
[0010]Furthermore, if the RAM is destroyed due to battery voltage drop only once, it hardly poses a problem in terms of data management, but if such RAM destruction occurs several times, problems may arise when using the RAM, such as program runaway. There was a problem that caused some inconvenience.

【0011】そこでこの発明は、メイン電源の停止期間
を計測できて、RAM破壊の原因がバックアップバッテ
リの電圧低下であることを検証できるバックアップメモ
リを備えた電子機器を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an electronic device equipped with a backup memory that can measure the main power supply stop period and verify that the cause of RAM destruction is a voltage drop in the backup battery.

【0012】また、メイン電源の停止期間を計測できて
RAM破壊を原因がバックアップバッテリの電圧低下で
あることをメッセージ表示できると共に、RAM破壊の
回数をカウントできてRAMの不良をメッセージ表示で
きるバックアップメモリを備えた電子機器を提供するこ
とを目的とする。
[0012] Also, a backup memory that can measure the main power supply stop period and display a message indicating that the cause of RAM destruction is a voltage drop in the backup battery, as well as be able to count the number of RAM destructions and display a message indicating that the RAM is defective. The purpose is to provide electronic devices with

【0013】[0013]

【課題を解決するための手段】請求項1対応の発明は、
電源バックアップされた時計回路およびバッテリにより
電源バックアップされたランダム・アクセス・メモリを
備えた電子機器において、不揮発性メモリと、メイン電
源のオフ時、時計回路からの時刻データを電源停止時刻
データとして不揮発性メモリに記憶させる電源停止時刻
記録手段と、メイン電源のオン時、時計回路からの時刻
データと不揮発性メモリに記憶された電源停止時刻デー
タとから電源停止期間を算出して不揮発性メモリに記憶
させる電源停止期間記憶手段とを設けたものである。
[Means for solving the problem] The invention corresponding to claim 1 is:
In electronic equipment equipped with a power-backed clock circuit and battery-backed random access memory, when the main power is turned off, the time data from the clock circuit is stored in non-volatile memory as power-off time data. A power-off time recording means to be stored in the memory, a power-off period calculated from time data from a clock circuit when the main power is turned on, and power-off time data stored in the non-volatile memory, and stored in the non-volatile memory. A power-off period storage means is provided.

【0014】請求項2対応の発明は、電源バックアップ
された時計回路およびバッテリにより電源バックアップ
されたランダム・アクセス・メモリを備えた電子機器に
おいて、不揮発性メモリと、各種の情報を表示する表示
手段と、メイン電源のオフ時、時計回路からの時刻デー
タを電源停止時刻データとして不揮発性メモリに記憶さ
せる電源停止時刻記録手段と、メイン電源のオン時、ラ
ンダム・アクセス・メモリの状態を検査する検査手段と
、メイン電源のオン時、時計回路からの時刻データと不
揮発性メモリに記憶された電源停止時刻データとから電
源停止期間を算出して不揮発性メモリに記憶する電源停
止期間記憶手段と、検査手段によりランダム・アクセス
・メモリの破壊が検出され、かつ電源停止期間記憶手段
により不揮発性メモリに記憶された電源停止期間が予め
設定された規定期間以上のときランダム・アクセス・メ
モリの電源バックアップ用バッテリの電圧が低下したこ
とを表示手段にメッセージ表示させる第1のメッセージ
表示制御手段と、電源停止期間が予め設定された規定期
間以上のとき不揮発性メモリにランダム・アクセス・メ
モリの破壊回数を累積記憶させる破壊回数記憶手段と、
この破壊回数記憶手段により累積された破壊の回数が予
め設定された規定回数以上のときランダム・アクセス・
メモリの不良を表示手段にメッセージ表示させる第2の
メッセージ表示制御手段とを設けたものである。
The invention corresponding to claim 2 is an electronic device equipped with a power-backed clock circuit and a battery-backed random access memory, which includes a non-volatile memory and a display means for displaying various information. , a power-off time recording means for storing time data from a clock circuit as power-off time data in a nonvolatile memory when the main power is turned off, and an inspection means for inspecting the state of the random access memory when the main power is turned on. a power-off period storage means for calculating a power-off period from time data from the clock circuit and power-off time data stored in the non-volatile memory when the main power is turned on and storing the result in the non-volatile memory; and an inspection means. When destruction of the random access memory is detected and the power outage period stored in the nonvolatile memory by the power outage period storage means is longer than a preset specified period, the power backup battery for the random access memory is activated. a first message display control means for displaying a message on the display means that the voltage has dropped; and a first message display control means for causing the non-volatile memory to cumulatively store the number of destructions of the random access memory when the power-off period is longer than a preset specified period. A destruction number storage means,
When the number of destructions accumulated by this destruction number storage means exceeds a preset specified number of times, the random access
and second message display control means for displaying a message on the display means indicating a memory failure.

【0015】[0015]

【作用】このような構成の本発明において、メイン電源
のOFF時、時計回路から得られる電源停止時刻データ
が電源停止時刻記録手段により不揮発性メモリに記憶さ
れる。メイン電源のオン時、時計回路から得られる電源
開始時刻データと不揮発性メモリに記憶された電源停止
時刻データとに基づいて、電源停止期間記憶手段により
電源停止期間が算出され不揮発性メモリに記憶される。
[Operation] In the present invention having such a structure, when the main power supply is turned off, the power supply stop time data obtained from the clock circuit is stored in the nonvolatile memory by the power supply stop time recording means. When the main power is turned on, the power-off period is calculated by the power-off period storage means based on the power-on start time data obtained from the clock circuit and the power-off time data stored in the non-volatile memory, and is stored in the non-volatile memory. Ru.

【0016】またメイン電源のオン時、電源バックアッ
プされているランダム・アクセス・メモリの状態が検査
手段により検査され、ランダム・アクセス・メモリの破
壊が検出され、かつ電源停止期間が規定期間以上ならば
電源バックアップ用バッテリの電圧が低下したことを表
示手段を制御してメッセージ表示させる。さらにまた、
メイン電源のオン時、検出手段によりランダム・アクセ
ス・メモリの破壊が検出されたとき、ランダム・アクセ
ス・メモリの破壊回数が破壊回数記憶手段により不揮発
性メモリに累積記憶される。その不揮発性メモリに累積
記憶されたランダム・アクセス・メモリの破壊回数が規
定回数以上のとき、ランダム・アクセス・メモリの不良
を表示手段を制御してメッセージ表示させる。
Furthermore, when the main power is turned on, the state of the random access memory backed up by the power supply is inspected by the inspection means, and if destruction of the random access memory is detected and the power outage period is longer than a specified period, The display means is controlled to display a message indicating that the voltage of the power backup battery has decreased. Furthermore,
When the detection means detects destruction of the random access memory when the main power is turned on, the number of times the random access memory has been destroyed is cumulatively stored in the nonvolatile memory by the destruction number storage means. When the number of destructions of the random access memory cumulatively stored in the nonvolatile memory exceeds a predetermined number, the display means is controlled to display a message indicating that the random access memory is defective.

【0017】[0017]

【実施例】以下、この発明の一実施例を図面を参照して
を説明する。なお、この実施例はこの発明をPOS端末
装置に適用したものについて述べる。
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 will be described as applied to a POS terminal device.

【0018】図1に示すように、制御部本体を構成する
CPU(中央演算処理装置)1を設け、このCPU1に
プログラムデータを記憶したROM(リード・オンリ・
メモリ)2、各種販売管理データを記憶するRAM(ラ
ンダム・アクセス・メモリ)3、RAM破壊があるとフ
ラグが立てられる補助RAM4、および年、月、日、時
、分、秒の時刻をカウントする時計回路5をシステムバ
ス6を介してそれぞれ接続している。
As shown in FIG. 1, a CPU (Central Processing Unit) 1 constituting the main body of the control section is provided, and a ROM (Read Only Memory) storing program data is provided in the CPU 1.
Memory) 2, RAM (Random Access Memory) 3 that stores various sales management data, auxiliary RAM 4 that flags when there is RAM corruption, and counts the time of year, month, day, hour, minute, and second. The clock circuits 5 are connected to each other via a system bus 6.

【0019】なお、前記RAM3は、停電時にはバック
アップバッテリ7により電源がバックアップされるよう
になっており、前記補助RAM4および前記時計回路5
は、長期間の電力保証された電池17から電力が供給さ
れるようになっている。
Note that the RAM 3 is configured to have its power backed up by a backup battery 7 in the event of a power outage, and the auxiliary RAM 4 and the clock circuit 5
Power is supplied from a battery 17 that guarantees long-term power.

【0020】また前記CPU1に、通信I/F8、キー
ボード12を制御するキーボードコントローラ9、表示
器13を表示制御する表示コントローラ10、プリンタ
14を制御するプリンタコントローラ11、ハードディ
スク装置16とデータの交信を行うハードディスクI/
F15を前記システムバス6を介してそれぞれ接続して
いる。
The CPU 1 also has a communication I/F 8, a keyboard controller 9 that controls the keyboard 12, a display controller 10 that controls the display 13, a printer controller 11 that controls the printer 14, and a hard disk device 16 for data communication. Hard disk I/
F15 are connected to each other via the system bus 6.

【0021】前記通信I/F8は回線を介してホストコ
ンピュータに接続されている。
[0021] The communication I/F 8 is connected to the host computer via a line.

【0022】なお、前記ハードディスク16は、不揮発
性メモリとして、電源停止時刻および電源開始時刻を記
憶するメモリ領域が形成されると共に、RAM破壊の回
数を累積記憶するカウンタが形成されている。
The hard disk 16 has a memory area as a non-volatile memory for storing the power stop time and power start time, and also has a counter for cumulatively storing the number of RAM destructions.

【0023】前記CPU1は図2に示す電源OFF時の
処理を行うようになっている。
The CPU 1 is designed to perform the processing shown in FIG. 2 when the power is turned off.

【0024】すなわちメイン電源がOFFされると、R
AM3に記憶されているデータおよび時計回路5からそ
の時点の年、月、日、時、分、秒の電源停止時刻データ
をハードディスク16に記憶させる。(電源停止時刻記
録手段)次にRAM3のデータがハードディスクに記憶
された事を示すセーブフラグをONにして電源OFF時
の処理は終了する。
That is, when the main power is turned off, R
The data stored in the AM 3 and the power-off time data of the year, month, day, hour, minute, and second at that time are stored in the hard disk 16 from the clock circuit 5. (Power-off time recording means) Next, a save flag indicating that the data in the RAM 3 has been stored on the hard disk is turned on, and the processing when the power is turned off is completed.

【0025】これらの処理を行うとしばらくしてメイン
電源が完全にOFFすることになる。
After these processes are completed, the main power supply is completely turned off after a while.

【0026】前記CPU1はまた図3に示す電源ON時
の処理を行うようになっている。
The CPU 1 is also designed to perform the processing shown in FIG. 3 when the power is turned on.

【0027】すなわちメイン電源がONされると、RA
M3に破壊が発生していないか否かを検査して(検査手
段)、補助RAM4のRAM破壊のフラグにRAM破壊
が発生した事を示すビットかまたはRAM破壊無しを示
すビットを立てる。
That is, when the main power is turned on, the RA
It is checked (inspection means) whether or not destruction has occurred in M3, and a bit indicating that RAM destruction has occurred or a bit indicating no RAM destruction is set in the RAM destruction flag of auxiliary RAM 4.

【0028】次に基本OS(オペレーティング・システ
ム)をロードし、標準POS用ドライバをロードし、標
準POS用ドライバにより使用するデータを格納する領
域を確保するための共通テーブル領域確保を行う。
Next, the basic OS (operating system) is loaded, the standard POS driver is loaded, and a common table area is secured for storing the data used by the standard POS driver.

【0029】共通テーブル領域確保が行われると、電源
OFF/ON時間ロギングプログラムを実行して、時計
回路5からそのときの年、月、日、時、分、秒の電源開
始時刻データを読み出してハードディスク16に記憶す
ると共に、すでにハードディスク16に記憶された電源
停止時刻データとその電源開始時刻データから電源停止
期間を算出してハードディスク16に記憶させる。(電
源停止期間記憶手段)次に補助RAM4のRAM破壊の
フラグをチェックして、そのフラグにRAM破壊が発生
した事を示すビットが立てられていなければ、そのまま
システムを起動させる。
When the common table area is secured, the power OFF/ON time logging program is executed to read out the power start time data of the year, month, day, hour, minute, and second from the clock circuit 5. At the same time, the power off period is calculated from the power off time data and the power start time data already stored on the hard disk 16 and is stored on the hard disk 16. (Power-off period storage means) Next, the RAM destruction flag of the auxiliary RAM 4 is checked, and if a bit indicating that RAM destruction has occurred is not set in the flag, the system is started as is.

【0030】また、補助RAM4のRAM破壊のフラグ
にRAM破壊を示すビットが立てられているときは、ハ
ードディスク16に記憶された電源停止期間が規定日数
以上か否かを判断して、規定日数以上ならばメッセージ
Aとして、「数日間電源が切れていたため、バッテリ電
圧が低下しました。連続48時間の通電又は1日10時
間で、連続5日間通電してください。(業務を行うとき
はクリアキーを押してください。)」を表示器13にメ
ッセージ表示させる。(第1のメッセージ表示制御手段
)そして、ハードディスク16に形成されているRAM
破壊回数のカウンタを+1を加算し(破壊回数記憶手段
)てから、システムを起動させるようになっている。
[0030] Furthermore, when the bit indicating RAM destruction is set in the RAM destruction flag of the auxiliary RAM 4, it is determined whether or not the power-off period stored in the hard disk 16 is longer than the specified number of days. If so, the message A will be: ``The battery voltage has dropped because the power has been off for several days. Please turn on the power for 48 consecutive hours or 10 hours a day for 5 consecutive days. (When doing business, please use the clear key. )” is displayed on the display 13. (First message display control means) Then, the RAM formed in the hard disk 16
The system is activated after incrementing the destruction number counter by +1 (destruction number storage means).

【0031】電源停止期間が規定日数以上でなければ、
ハードディスク16のRAM破壊回数のカウンタをチェ
ックして、その回数が規定回数以上か否かを判断し、規
定回数以上ならば、メッセージBとして、「メモリエラ
ーが発生しました。機器の点検が必要です。サービス技
術員に連絡して下さい。」を表示器13にメッセージ表
示させる。(第2のメッセージ表示制御手段)ハードデ
ィスク16のRAM破壊の回数のカウンタに記憶された
回数が規定回数以上でなければ、そのままシステムを起
動させるようになっている。
[0031] If the power outage period is not longer than the specified number of days,
Check the counter for the number of times the RAM has been destroyed on the hard disk 16, and determine whether the number of times has exceeded the specified number. If the number has exceeded the specified number, message B will be displayed, ``A memory error has occurred. Equipment inspection is required. Please contact a service engineer.'' is displayed on the display 13. (Second Message Display Control Means) If the number of times stored in the RAM destruction counter of the hard disk 16 is not a specified number or more, the system is started as is.

【0032】このように本実施例においては、メイン電
源OFF時に時計回路5から電源停止時刻データが読み
出されてハードディスクに記憶され、メイン電源ON時
に時計回路5から電源開始時刻データが読み出されて電
源停止期間が算出され記憶される。
As described above, in this embodiment, power stop time data is read from the clock circuit 5 when the main power is turned off and stored in the hard disk, and power start time data is read from the clock circuit 5 when the main power is turned on. The power outage period is calculated and stored.

【0033】RAM破壊が検出されたとき、この電源停
止期間が規定日数以上かチェックし、規定日数以上なら
ばメッセージAを表示して、RAM破壊の原因としてバ
ックアップバッテリ7の電圧低下をメッセージ表示し、
そのRAM3に発生したRAM破壊の回数が累積記憶さ
れる。
[0033] When RAM destruction is detected, it is checked whether the power supply stop period is longer than a specified number of days, and if it is longer than the specified number of days, message A is displayed, and a message indicating a voltage drop in the backup battery 7 as the cause of RAM destruction is displayed. ,
The number of RAM destructions that have occurred in the RAM 3 is cumulatively stored.

【0034】また、電源停止期間が規定日数以上でなけ
れば、RAM破壊の発生した回数をチェックし、RAM
破壊の回数が規定回数以上ならば、メッセージBを表示
して、RAM3の不良をメッセージ表示する。
[0034] Furthermore, if the power outage period is not longer than the specified number of days, the number of times RAM destruction has occurred is checked, and the RAM
If the number of destructions is equal to or greater than the specified number, message B is displayed to indicate that the RAM 3 is defective.

【0035】このように本実施例によれば、メイン電源
OFF時およびメイン電源ON時にその時の時刻データ
がハードディスクに記憶され、それらの時刻データに基
づいて電源停止期間が算出して記憶できる。
As described above, according to this embodiment, when the main power is turned off and when the main power is turned on, the time data at that time is stored in the hard disk, and the power-off period can be calculated and stored based on these time data.

【0036】その結果、RAM破壊が発生したときに、
RAM破壊の原因についてバックアップバッテリの電圧
の低下を電源停止期間から検証してメッセージ表示でき
、しかも、RAM破壊の回数を累積記憶しているので、
RAM破壊が規定回数以上発生したRAMについて、使
用者にRAMの不良としてメッセージ表示できる。
As a result, when RAM corruption occurs,
As for the cause of RAM destruction, it is possible to verify the voltage drop of the backup battery from the power outage period and display a message. Moreover, since the number of RAM destructions is stored cumulatively,
A message can be displayed to the user indicating that the RAM is defective if the RAM has been destroyed a specified number of times or more.

【0037】従って、RAM破壊の原因でバックアップ
バッテリの電圧の低下によるものについては明確にする
ことができるので、RAM破壊に関係した責任問題でユ
ーザーとトラブルになる虞はなくなる。
[0037] Therefore, it is possible to clarify the cause of the RAM destruction due to a drop in the voltage of the backup battery, so there is no possibility of trouble with the user due to liability issues related to the RAM destruction.

【0038】なお、この実施例においては、ハードディ
スク16に電源停止時刻、電源開始時刻および電源停止
期間を記憶し、RAM破壊回数をカウントするカウンタ
を形成したが、ハードディスクに代えて、長期間の電力
保証された電池から電力が供給される補助RAM4に、
電源停止時刻、電源開始時刻および電源停止期間を記憶
し、RAM破壊回数をカウントするカウンタを形成して
も良い。
In this embodiment, the power stop time, power start time, and power stop period are stored in the hard disk 16, and a counter is formed to count the number of times the RAM is destroyed. Auxiliary RAM4 is supplied with power from a guaranteed battery.
A counter may be formed that stores the power stop time, power start time, and power stop period, and counts the number of RAM destructions.

【0039】[0039]

【発明の効果】以上詳述したようにこの発明によれば、
メイン電源の停止期間を計測できて、RAM破壊の原因
がバックアップバッテリの電圧低下であることを検証で
きるバックアップメモリを備えた電子機器を提供できる
[Effects of the Invention] As detailed above, according to the present invention,
It is possible to provide an electronic device with a backup memory that can measure the main power supply stop period and verify that the cause of RAM destruction is a voltage drop in the backup battery.

【0040】また、メイン電源の停止期間を計測できて
RAM破壊の原因がバックアップバッテリの電圧低下で
あることをメッセージ表示できると共に、RAM破壊の
回数をカウントできてRAMの不良をメッセージ表示で
きるバックアップメモリを備えた電子機器を提供できる
In addition, the backup memory is capable of measuring the main power supply stop period and displaying a message indicating that the cause of RAM destruction is a voltage drop in the backup battery, as well as being able to count the number of RAM destructions and display a message indicating that the RAM is defective. We can provide electronic devices with

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

【図1】この発明の一実施例を示す電源OFF時の処理
の流れ図。
FIG. 1 is a flowchart of processing when power is turned off, showing an embodiment of the present invention.

【図2】同実施例を示す電源ON時の処理の流れ図。FIG. 2 is a flowchart of processing when power is turned on, showing the same embodiment.

【図3】従来例を示す回路構成のブロック図。FIG. 3 is a block diagram of a circuit configuration showing a conventional example.

【図4】従来例を示す電源ON時の処理の流れ図。FIG. 4 is a flowchart of processing when power is turned on, showing a conventional example.

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

1…CPU。3…RAM、5…時計回路、13…表示器
、16…ハードディスク。
1...CPU. 3...RAM, 5...clock circuit, 13...display, 16...hard disk.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  電源バックアップされた時計回路およ
びバッテリにより電源バックアップされたランダム・ア
クセス・メモリを備えた電子機器において、不揮発性メ
モリと、メイン電源のオフ時、前記時計回路からの時刻
データを電源停止時刻データとして前記不揮発性メモリ
に記憶させる電源停止時刻記録手段と、前記メイン電源
のオン時、前記時計回路からの時刻データと前記不揮発
性メモリに記憶された電源停止時刻データとから電源停
止期間を算出して前記不揮発性メモリに記憶させる電源
停止期間記憶手段とを設けたことを特徴とするバックア
ップメモリを備えた電子機器。
Claim 1: An electronic device comprising a power-backed clock circuit and a battery-backed random access memory, wherein time data from the clock circuit is stored in a nonvolatile memory and when the main power is turned off. A power supply stop time recording means is stored in the nonvolatile memory as stop time data, and a power supply stop period is determined from the time data from the clock circuit and the power supply stop time data stored in the nonvolatile memory when the main power is turned on. 1. An electronic device equipped with a backup memory, further comprising: power-off period storage means for calculating and storing the calculated value in the nonvolatile memory.
【請求項2】  電源バックアップされた時計回路およ
びバッテリにより電源バックアップされたランダム・ア
クセス・メモリを備えた電子機器において、不揮発性メ
モリと、各種の情報を表示する表示手段と、メイン電源
のオフ時、前記時計回路からの時刻データを電源停止時
刻データとして前記不揮発性メモリに記憶させる電源停
止時刻記録手段と、前記メイン電源のオン時、前記ラン
ダム・アクセス・メモリの状態を検査する検査手段と、
前記メイン電源のオン時、前記時計回路からの時刻デー
タと前記不揮発性メモリに記憶された電源停止時刻デー
タとから電源停止期間を算出して前記不揮発性メモリに
記憶する電源停止期間記憶手段と、前記検査手段により
前記ランダム・アクセス・メモリの破壊が検出され、か
つ前記電源停止期間記憶手段により前記不揮発性メモリ
に記憶された電源停止期間が予め設定された規定期間以
上のとき前記ランダム・アクセス・メモリの電源バック
アップ用バッテリの電圧が低下したことを前記表示手段
にメッセージ表示させる第1のメッセージ表示制御手段
と、電源停止期間が予め設定された規定期間以上のとき
前記不揮発性メモリに前記ランダム・アクセス・メモリ
の破壊回数を累積記憶させる破壊回数記憶手段と、この
破壊回数記憶手段により累積された破壊の回数が予め設
定された規定回数以上のとき前記ランダム・アクセス・
メモリの不良を前記表示手段にメッセージ表示させる第
2のメッセージ表示制御手段とを設けたことを特徴とす
るバックアップメモリを備えた電子機器。
2. An electronic device equipped with a power-backed clock circuit and a battery-backed random access memory, comprising: a non-volatile memory, a display means for displaying various information, and a display means for displaying various information when the main power is turned off. , power stop time recording means for storing time data from the clock circuit in the nonvolatile memory as power stop time data; and inspection means for checking the state of the random access memory when the main power is turned on;
power-off period storage means for calculating a power-off period from time data from the clock circuit and power-off time data stored in the non-volatile memory when the main power source is turned on, and storing the calculated power-off period in the non-volatile memory; When the inspection means detects destruction of the random access memory, and the power-off period stored in the non-volatile memory by the power-off period storage means is longer than a preset specified period, the random access memory is a first message display control means for displaying a message on the display means indicating that the voltage of a battery for power backup of the memory has decreased; a destruction number storage means for accumulatively storing the number of destructions of the access memory;
An electronic device equipped with a backup memory, further comprising second message display control means for causing the display means to display a message indicating a memory failure.
JP3089868A 1991-03-28 1991-03-28 Electronic devices with backup memory Expired - Fee Related JP2665410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3089868A JP2665410B2 (en) 1991-03-28 1991-03-28 Electronic devices with backup memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3089868A JP2665410B2 (en) 1991-03-28 1991-03-28 Electronic devices with backup memory

Publications (2)

Publication Number Publication Date
JPH04302090A true JPH04302090A (en) 1992-10-26
JP2665410B2 JP2665410B2 (en) 1997-10-22

Family

ID=13982751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3089868A Expired - Fee Related JP2665410B2 (en) 1991-03-28 1991-03-28 Electronic devices with backup memory

Country Status (1)

Country Link
JP (1) JP2665410B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244227A (en) * 2018-03-08 2019-09-17 发那科株式会社 Voltage reduces detection system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02120999A (en) * 1988-10-29 1990-05-08 Omron Tateisi Electron Co Power supply interruption processor for electronic apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02120999A (en) * 1988-10-29 1990-05-08 Omron Tateisi Electron Co Power supply interruption processor for electronic apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244227A (en) * 2018-03-08 2019-09-17 发那科株式会社 Voltage reduces detection system

Also Published As

Publication number Publication date
JP2665410B2 (en) 1997-10-22

Similar Documents

Publication Publication Date Title
US6249838B1 (en) Physical medium information in file system header
US20090150721A1 (en) Utilizing A Potentially Unreliable Memory Module For Memory Mirroring In A Computing System
CN106682162A (en) Log management method and device
US6081892A (en) Initial program load
US5960195A (en) Intelligent volatile memory initialization
JP2008027284A (en) Fault processing system, fault processing method, and fault processing device and program
JPH04302090A (en) Electronic device provided with backup memory
JPH05317505A (en) Data processor at service interruption time
CN113625957B (en) Method, device and equipment for detecting hard disk faults
KR100492793B1 (en) Ferroelectric memory device with bad cell repair
JPH06250866A (en) Memory control device
US10705149B2 (en) Voltage drop detection through data corruption detection
JPH0573435A (en) Storage element monitoring/protecting device
CN2470879Y (en) Voice-sound apparatus with function telling fault reson
JPH0736574A (en) Initializing device and method for electronic equipment
JPH06131892A (en) Flush type eeprom and semiconductor file device
JPH06259337A (en) Data protection system
CN113393891A (en) Nonvolatile memory detection method and device and electric vehicle
JPH0612339A (en) Check system for memory
JP2001350596A (en) Storage device
JPS6180444A (en) Diagnosing device for holding function of memory contents
JP2733596B2 (en) Data erasing method in data storage device
KR0125579Y1 (en) Memory battery backup circuits
DE102021119293A1 (en) MEMORY MODULE AND OPERATING PROCEDURE
JPH0374712A (en) Information processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20080620

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090620

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees