[go: up one dir, main page]

JPS5850029A - Power failure detector - Google Patents

Power failure detector

Info

Publication number
JPS5850029A
JPS5850029A JP56147449A JP14744981A JPS5850029A JP S5850029 A JPS5850029 A JP S5850029A JP 56147449 A JP56147449 A JP 56147449A JP 14744981 A JP14744981 A JP 14744981A JP S5850029 A JPS5850029 A JP S5850029A
Authority
JP
Japan
Prior art keywords
power
ram
turned
switch
contents
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
JP56147449A
Other languages
Japanese (ja)
Other versions
JPS6022367B2 (en
Inventor
Koichi Miyahara
宮原 孝一
Toshikazu Ida
位田 敏和
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.)
Chino Corp
Original Assignee
Chino Works 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 Chino Works Ltd filed Critical Chino Works Ltd
Priority to JP56147449A priority Critical patent/JPS6022367B2/en
Publication of JPS5850029A publication Critical patent/JPS5850029A/en
Publication of JPS6022367B2 publication Critical patent/JPS6022367B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To prevent the malfunction of a device such as a measuring instrument, by writing prescribed data for power failure detection in a prescribed area of a semiconductor memory to be backed-up and reading out this data by a CPU to detect the power failure when power is turned on. CONSTITUTION:If the user of the device turns off a switch SW2 when he turns off a power source 4, an interlocking switch SW1 is turned off. In this case, contents of a RAM are changed because a back-up power source 1 cannot back up the RAM. Meanwhile, if power is not supplied from a power source AC under the state, where the switch SW2 is turned on, because of power failure, the power of the power source 1 is supplied to the RAM. When the power of the device is restored, contents of the RAM are checked to discriminate whether contents of the RAM are changed or not.

Description

【発明の詳細な説明】 (υ発明の技術分野 この発明は、計器等の装置の停電を検出する停電検出回
路に関するものであゐ。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a power outage detection circuit for detecting a power outage in devices such as meters.

儲)従来技術 計器等の装置として、近年マイクロプロセッサのような
中央処理装置および半導体メモリ(ROM。
Prior Art In recent years, central processing units such as microprocessors and semiconductor memories (ROM) have been used as devices such as conventional instruments.

紐1)を用いえものが多い。そして、停電時、メモリ内
容を保護する九め電゛池等の/(ツクアップ電源が使用
されている。
Many items use string 1). A backup power supply such as a rechargeable battery is used to protect the memory contents in the event of a power outage.

そして、電源が入ったとき、停電の丸めバックアップ電
源によ〕メモリがバックアップされた状態から復電した
のか、装置電源が断でバックアップされていなかったか
によってマイクロプロセッサは、停止、復電時刻等を印
字して動作を続行する停電処理を行うか、メモリ内容を
リセットして待機するかのモードを選択しなければなら
ず、停電であり九かどうかを検出する必要がある。
When the power is turned on, the microprocessor determines the stop, power restoration time, etc., depending on whether the power has been restored from a state where the memory was backed up (by the round-up backup power supply due to a power outage) or whether the device was not backed up due to a power outage. It is necessary to select a mode to perform power outage processing that prints and continues operation, or to reset the memory contents and wait, and it is necessary to detect whether there is a power outage or not.

(3)発明の目的 この発明の゛目的は1以上の点に鑑み、容易に停電だっ
たかどうかを検出することができる停電検出装置を提供
することである。
(3) Purpose of the Invention An object of the present invention is to provide a power outage detection device that can easily detect whether or not there has been a power outage in view of one or more points.

(4)発明の実施例 第1図は、この発明の一実施例を示す構成説明図である
。図におaて1は電池等のバックアップ電源、 8WL
は後述する装置電源4の電源スィッチ8W!と連動して
開閉するスイッチ、2は所定の動作プログ2ムが格納さ
れ九ROMおよび一時記憶用のRAMよりなる半導体メ
モリ、3は牛導体メモリ3およびその他の図示し々い印
字器等とのやシとシを行うマイクロプロセッサのような
中央処理装置、4FiスイツチSW2 Kよシ外部よシ
交流の電源ACが供給され、装置各部に電源を供給する
装置電に交流電源ACが供給され2.装置が動作してい
るとき、半導体メモリ30RAMはバックアップされ。
(4) Embodiment of the Invention FIG. 1 is an explanatory diagram showing an embodiment of the invention. In the figure, 1 is a backup power source such as a battery, 8WL
is the power switch 8W of the device power supply 4, which will be described later! 2 is a semiconductor memory which stores a predetermined operating program 2 and is composed of a 9ROM and a RAM for temporary storage; 3 is a semiconductor memory that is connected to a conductor memory 3 and other printing devices not shown; 2. An AC power supply AC is supplied externally to the central processing unit such as a microprocessor that performs the control and the 4Fi switch SW2K, and the AC power supply AC is supplied to the equipment power supply that supplies power to each part of the equipment. When the device is operating, the semiconductor memory 30RAM is backed up.

て書き込まれるようになっている。It is written as follows.

装置使用者が意識的に装置電源4を切断するときは、ス
イッチ8w2をオフにする。このときは非停電の状態と
判断しなくてはならないが、スイッチawlもスイッチ
8w2と連動してオフとなっている丸め、バックアップ
電源1はRAMをパックア。
When the device user intentionally disconnects the device power source 4, he or she turns off the switch 8w2. At this time, it must be determined that there is no power outage, but the switch awl is also turned off in conjunction with the switch 8w2, and the backup power supply 1 packs the RAM.

プできないため、 RAMの内容は変化してしまう。Since it cannot be copied, the contents of RAM will change.

又、停電等によシスイッチ8w2がオンのまま電源AC
が供給されなくなった場合、スイッチawlはオンの丸
め、すみやかにバックアップ電源1の電源はスイッチ8
w2を介してRAM K供給され。
Also, in case of a power outage, switch 8w2 remains on and the AC power is turned off.
If the power is no longer supplied, switch awl is turned on, and the power of backup power supply 1 is immediately turned on by switch 8.
RAM K is supplied via w2.

RAMの内容は保持される。The contents of RAM are retained.

そして、装置電源lが復帰し九とき、停電検出用データ
Mが書き込まれたRAMの内容を中央処理装置3によシ
その内容変化を検出する。中央処理装置3はRAMの内
容が既知の停電検出用データMと一致しているかどうか
を判断し、一致していない場合は非停電、一致している
場合は停電と判断する。このようKして停電であったか
どうかが分るわけである。
Then, when the device power source 1 is restored, the contents of the RAM in which the power failure detection data M have been written are sent to the central processing unit 3, and changes in the contents are detected. The central processing unit 3 determines whether the contents of the RAM match the known power failure detection data M, and if they do not match, it is determined that there is no power outage, and if they match, it is determined that there is a power outage. In this way, you can check whether there was a power outage or not.

なお、停電検出用データMの格納場所はできるだけ多い
方が確率的には確実度が向上するが、実験によると8ビ
ツトで16ワード使用して、検出ンスは皆無であっ九。
Incidentally, the more locations the power outage detection data M is stored, the higher the probability will be in terms of reliability, but according to experiments, there was no detection chance when 16 words of 8 bits were used.

・)発明の要約 この発明は、装置電源が入っているときバックアップす
るバックアップ電源によシバツクアップされる半導体メ
モリの所定の領域に所定(既知)の停電検出用データを
書き込んでおき、電源が入ったと龜、このデータを中央
処理装置によシ読み出しその内容変化から停電であり九
かどうかを検出するようK〔九停電検出装置である。
・)Summary of the Invention This invention writes predetermined (known) power failure detection data in a predetermined area of a semiconductor memory that is backed up by a backup power supply when the device power is turned on, and when the power is turned on, The central processing unit reads this data and detects whether it is a power outage or not based on changes in its contents.

(6)発明の効果 従って2%別な装置を必要とせず、確実に停電であり九
かどうかを検出でき、計器等の装置の誤動作を防止でき
、高信頼性のものとすることができる。
(6) Effects of the Invention Therefore, it is possible to reliably detect whether there is a power outage or not without requiring a separate device, prevent malfunctions of devices such as meters, and achieve high reliability.

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

第1図は、この発明の一実施例を示す構成説明図である
。 1・・・バックアップ電源、2・・・半導体メモリ。 3・・・中央処理装置、 8w・・・スイッチ、4・・
・装置電源。 M・・・停電検出用メモリ 特許出願人 株式会社 千野製作所
FIG. 1 is a configuration explanatory diagram showing an embodiment of the present invention. 1...Backup power supply, 2...Semiconductor memory. 3... Central processing unit, 8w... Switch, 4...
・Device power supply. M...Memory for power failure detection patent applicant Chino Seisakusho Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 1、装置電源が入っているときノ(ツクアップするバッ
クアップ電源と、このバックアップ電源によりバックア
ップされ所定の領域に既知の停電検出用データが書き込
まれた半導体メモリと、装置電源が入つ九とき半導体メ
モリの停電検出用データを読み出しその内容変化から停
電であつ九かどうかを検出する中央処理装置とを偏見え
ことを特徴とする停電検出装置。
1. A backup power source that pulls up when the device power is on, a semiconductor memory that is backed up by this backup power source and has known power failure detection data written in a predetermined area, and a semiconductor memory that is backed up when the device power is turned on. A power outage detection device comprising: a central processing unit that reads data for power outage detection and detects whether a power outage has occurred based on a change in the content;
JP56147449A 1981-09-18 1981-09-18 Power outage detection device Expired JPS6022367B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56147449A JPS6022367B2 (en) 1981-09-18 1981-09-18 Power outage detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56147449A JPS6022367B2 (en) 1981-09-18 1981-09-18 Power outage detection device

Publications (2)

Publication Number Publication Date
JPS5850029A true JPS5850029A (en) 1983-03-24
JPS6022367B2 JPS6022367B2 (en) 1985-06-01

Family

ID=15430597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56147449A Expired JPS6022367B2 (en) 1981-09-18 1981-09-18 Power outage detection device

Country Status (1)

Country Link
JP (1) JPS6022367B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59178700A (en) * 1983-03-29 1984-10-09 Shimadzu Corp Data processing device
JPS59178699A (en) * 1983-03-29 1984-10-09 Shimadzu Corp data processing equipment
JPS63131799A (en) * 1986-11-21 1988-06-03 Nec Corp Key telephone system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59178700A (en) * 1983-03-29 1984-10-09 Shimadzu Corp Data processing device
JPS59178699A (en) * 1983-03-29 1984-10-09 Shimadzu Corp data processing equipment
JPS63131799A (en) * 1986-11-21 1988-06-03 Nec Corp Key telephone system

Also Published As

Publication number Publication date
JPS6022367B2 (en) 1985-06-01

Similar Documents

Publication Publication Date Title
US5717936A (en) Data terminal and method of protecting memory items stored in non-persistent memory in a data terminal
CA1315408C (en) Fault tolerant smart card
KR20010022776A (en) Battery-operated device with power failure recovery
US5962930A (en) Method and apparatus for detecting supply power loss
JP3667920B2 (en) IC card
JPS5850029A (en) Power failure detector
JPS6289153A (en) Storage device
JPH06250866A (en) Memory control device
JP3253296B2 (en) Storage device and data processing device
JPH0126086B2 (en)
JPS61141059A (en) Terminal equipment
KR0136864Y1 (en) Memory backup device
JPS6310463B2 (en)
JPH0724917Y2 (en) Backup power supply circuit
JPH02100743A (en) Electronic equipment
JPH1040351A (en) IC memory card
JPS57195395A (en) Memory backup method for power failure
JPH05181573A (en) Fault processing system
JP2579690B2 (en) Electronics
JPH05134940A (en) Static memory device and its memory back-up system
JPH01171050A (en) Reliability deciding device for memory data
JPH0640436B2 (en) Electronic device with memory pack
JPH01102658A (en) File write backup method
JPH0233520A (en) Trouble detection device for combustion equipment and the like
JPH11222365A (en) Elevator control device