JPH0571925U - Automatic power off device - Google Patents

Automatic power off device

Info

Publication number
JPH0571925U
JPH0571925U JP2033492U JP2033492U JPH0571925U JP H0571925 U JPH0571925 U JP H0571925U JP 2033492 U JP2033492 U JP 2033492U JP 2033492 U JP2033492 U JP 2033492U JP H0571925 U JPH0571925 U JP H0571925U
Authority
JP
Japan
Prior art keywords
cpu
power
clock
turned
alarm
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
JP2033492U
Other languages
Japanese (ja)
Inventor
徹 菊池
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.)
Shinko Mechatrotech Co Ltd
Original Assignee
Shinko Mechatrotech 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 Shinko Mechatrotech Co Ltd filed Critical Shinko Mechatrotech Co Ltd
Priority to JP2033492U priority Critical patent/JPH0571925U/en
Publication of JPH0571925U publication Critical patent/JPH0571925U/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

(57)【要約】 【目的】 電池の消耗を抑えながらCPU暴走時の安全
性の確保を図る。 【構成】 時計IC12のアラーム機能を利用し、バッ
テリ電源11のオン時、CPU1により、現在時刻デー
タに所定時間を加えた警報時刻データを時計IC12に
設定し(警報時刻データ設定処理を行い)、この警報時
刻になると、バッテリ電源11をオフするための警報信
号を時計IC12より出力するようにした。
(57) [Abstract] [Purpose] To ensure the safety of CPU runaway while suppressing battery consumption. [Configuration] Using the alarm function of the clock IC 12, when the battery power supply 11 is turned on, the CPU 1 sets alarm time data obtained by adding a predetermined time to the current time data to the clock IC 12 (performs alarm time data setting processing), At this alarm time, the alarm signal for turning off the battery power supply 11 is output from the timepiece IC 12.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、電源スイッチの投入によりバッテリ電源がオンして起動されるCP Uを備え、このCPUにより所定の処理動作を行った後、前記CPUからの電源 オフ指令で電源を自動的にオフする電源自動オフ装置に関する。 The present invention includes a CPU that is activated by turning on a battery power when a power switch is turned on. After performing a predetermined processing operation by this CPU, the power is automatically turned off by a power off command from the CPU. The present invention relates to a power-off device.

【0002】[0002]

【従来の技術】[Prior Art]

オペレータの操作により、あるいは磁気カードなどの媒体の挿入により投入( 閉成)される電源スイッチによりバッテリ電源をオンしてCPUを起動させ、こ のCPUにより所定の処理を行い、その後、CPUからの電源オフ指令によりバ ッテリ電源をオフする電源自動オフ装置が各種の民生機器やシステムに採用され ている。 The battery power is turned on by the power switch that is turned on (closed) by the operator's operation or by inserting a medium such as a magnetic card, and the CPU is started, and the CPU performs predetermined processing. An automatic power-off device that turns off battery power in response to a power-off command is used in various consumer devices and systems.

【0003】 ところで、CPUを搭載したこの種の装置においては、CPUが暴走すると制 御が不能となり、トラブルを生じるので、これを防止するための対策が講じられ ている。By the way, in a device of this type having a CPU, if the CPU runs out of control, the control becomes impossible and a trouble occurs. Therefore, measures are taken to prevent this.

【0004】 図1に従来例に係る電源自動オフ装置のブロック図を示す。1はCPU、2は ROMであるが、この回路ではCPU1が暴走した場合の検出および安全対策の ために、ウォッチドッグタイマICをCPU1の外部に設けている。FIG. 1 shows a block diagram of an automatic power-off device according to a conventional example. Reference numeral 1 is a CPU, and 2 is a ROM. In this circuit, a watchdog timer IC is provided outside the CPU 1 for detection and safety measures when the CPU 1 runs out of control.

【0005】 図2はCPU1からのリフレッシュ信号とウォッチドッグタイマICの出力信 号を示す波形図であり、ウォッチドッグタイマIC3を、CPU1から供給され る(a)に示す定期的なリフレッシュ信号で繰り返しリフレッシュし、これによ りウォッチドッグタイマIC3から(b)に示すような“1”レベル信号を出力 し続ける。FIG. 2 is a waveform diagram showing the refresh signal from the CPU 1 and the output signal of the watchdog timer IC, and the watchdog timer IC 3 is repeated with the periodic refresh signal shown in (a) supplied from the CPU 1. After refreshing, the watchdog timer IC3 continues to output the "1" level signal as shown in (b).

【0006】 そして、リフレッシュが途絶えた時にウォッシュドッダタイマIC3の出力信 号が“0”レベルに立ち下がることから、CPU1が暴走したと判断し、ウォッ チドッグタイマIC3の“0”レベル信号により、電源断処理やCPU1のリセ ットなどの処理を行っていた。Since the output signal of the wash dodder timer IC3 falls to the "0" level when the refresh is stopped, it is determined that the CPU1 has runaway, and the watchdog timer IC3 outputs the "0" level signal to supply power. Processing such as disconnection processing and reset of the CPU 1 was performed.

【0007】[0007]

【発明が解決しようとする課題】[Problems to be Solved by the Invention]

しかしながら、電源にバッテリを使用する装置においては、ウォッチドッグタ イマICを設けると電池の消耗が激しく、電池を頻繁に取り替えないと装置が作 動しないという不都合があった。また、容量の大きい電池は、本装置が組み込ま れる機器やシステム系によってはスペース的に装備することができないという問 題もあった。 However, in a device using a battery as a power source, the provision of a watchdog timer IC causes the battery to be drastically consumed, and the device does not operate unless the battery is frequently replaced. Another problem was that batteries with large capacities could not be installed in space depending on the equipment and system in which this device was installed.

【0008】 本考案は、上記従来装置の欠点を解消し、電池の消耗を抑えながらCPU暴走 時の安全性の確保を図ることができる電源自動オフ装置を提供することを目的と する。It is an object of the present invention to solve the above-mentioned drawbacks of the conventional device, and to provide an automatic power-off device capable of ensuring the safety during CPU runaway while suppressing battery consumption.

【0009】[0009]

【課題を解決するための手段】[Means for Solving the Problems]

上記目的を達成するため、本考案では、時計ICのアラーム機能を利用し、バ ッテリ電源のオン時に、CPUにより、現在時刻データに所定時間を加えた警報 時刻データを時計ICに設定し(警報時刻データ設定処理を行い)、この警報時 刻になると、バッテリ電源をオフするための警報信号を時計ICより出力するよ うにしたものである。 In order to achieve the above object, the present invention utilizes the alarm function of a clock IC, and when the battery power is turned on, the CPU sets an alarm time data obtained by adding a predetermined time to the current time data to the clock IC (alarm). When the alarm time comes, the alarm signal for turning off the battery power is output from the clock IC.

【0010】 この場合、CPUに異常がなければ、CPUからの電源オフ信号によりバッテ リ電源はオフされるが、CPUが暴走した場合は前記警報信号によりバッテリ電 源がオフされる。In this case, if there is no abnormality in the CPU, the battery power supply is turned off by the power supply off signal from the CPU, but if the CPU runs away, the battery power supply is turned off by the alarm signal.

【0011】[0011]

【作用】[Action]

オペレータの操作により、あるいは媒体が媒体挿入口から挿入されると、電源 スイッチが投入されてバッテリ電源がオンしCPUが起動する。そしてCPUに より時計ICに対して、現在の時刻データに所定時間を加算する警報時刻データ 設定処理を行い、時計ICからの警報信号とCPUの電源オフ信号とのオア(論 理和)をとってバッテリ電源をオフする。 When an operator operates or a medium is inserted from the medium insertion port, the power switch is turned on, the battery power is turned on, and the CPU is activated. Then, the CPU performs alarm time data setting processing for adding a predetermined time to the current time data to the clock IC, and obtains an OR between the alarm signal from the clock IC and the power-off signal of the CPU. To turn off the battery power.

【0012】[0012]

【実施例】【Example】

以下、本考案の実施例を図面に基づいて説明する。図3は実施例に係る電源自 動オフ装置のブロック図、図4はその制御内容を示すフローチャートである。 Embodiments of the present invention will be described below with reference to the drawings. FIG. 3 is a block diagram of an automatic power-off device according to the embodiment, and FIG. 4 is a flowchart showing the control contents.

【0013】 図3において、1はCPU、11はバッテリ電源、12は時計IC、13はR AMであり、時計IC12とRAM13はバスラインでCPU1に接続されてい る。また14はCPU1からの指令で動作するドライバであり、動作体15を駆 動する。16はCPU1の信号線17と時計IC12の信号線18を入力するオ ア回路、19はオア回路16の出力線20がクリア端子(リセット端子)に接続 されるD−フリップフロップ、21はフリップフロップ19のクロック端子に接 続された電子スイッチ、22はフリップフロップ19のQ出力がベースに入力す ると導通し、バッテリ電源11の電圧VD D をCPU1に印加するトランジスタ 、23は動作体15によって開閉される動作終了検知スイッチである。In FIG. 3, 1 is a CPU, 11 is a battery power source, 12 is a clock IC, and 13 is a RAM, and the clock IC 12 and the RAM 13 are connected to the CPU 1 by a bus line. Reference numeral 14 is a driver that operates according to a command from the CPU 1, and drives the operating body 15. 16 is an OR circuit for inputting the signal line 17 of the CPU 1 and the signal line 18 of the clock IC 12, 19 is a D-flip flop to which the output line 20 of the OR circuit 16 is connected to the clear terminal (reset terminal), and 21 is a flip flop An electronic switch connected to the clock terminal of 19, a transistor 22 that conducts when the Q output of the flip-flop 19 is input to the base, and a transistor 23 that applies the voltage V DD of the battery power supply 11 to the CPU 1 It is an operation end detection switch that is opened and closed.

【0014】 図から明らかなように、時計IC12、RAM13、フリップフロップ19は バッテリ電源11により駆動電圧VF F を以て常にバックアップされているが、 動作時の消費電流が大きいCPU1は前述したように、フリップフロップ19か ら電源オン信号が出てトランジスタ22がオンした時のみ、バッテリ電源11に より駆動電圧VD D で駆動されるようになっている。As is apparent from the figure, the timepiece IC 12, the RAM 13, and the flip-flop 19 are always backed up by the battery power supply 11 with the drive voltage V F F. However, the CPU 1 which consumes a large amount of current during operation has the flip-flop as described above. The battery power supply 11 drives the battery 22 at the drive voltage V D D only when the power-on signal is output from the battery pack 19 and the transistor 22 is turned on.

【0015】 次に図4に示すフローチャートに基づいて本実施例の制御内容を説明する。こ のフローは媒体挿入あるいはオペレータの手動操作により電源スイッチ21が投 入され、CPU1にバッテリ電源11から駆動電圧VD D が印加されるとスター トする。Next, the control contents of the present embodiment will be explained based on the flow chart shown in FIG. This flow starts when the power switch 21 is turned on by inserting a medium or manually by the operator and the drive voltage V DD is applied to the CPU 1 from the battery power source 11.

【0016】 まず、時計IC12内の現在時刻データT(年、月、日、時、分、秒)を読み 取ってRAM13内に記録する(S1)。次にこのTに、所定の監視時間データ tを加算し、時計IC12に設定し(S2)、各種の処理を開始する(S3)。 そして動作終了検知スイッチ23の状態から動作が終了したかどうか判断し、動 作が終了していれば(S4でY)、処理終了となり(S5)、信号線17に電源 オフ信号を出力し、これによりフリップフロップ19がリセットされ、トランジ スタ22がオフとなるからバッテリ電源11の駆動電源VD D はオフされる(S 6)。First, the current time data T (year, month, day, hour, minute, second) in the clock IC 12 is read and recorded in the RAM 13 (S1). Next, a predetermined monitoring time data t is added to this T and set in the clock IC 12 (S2), and various processes are started (S3). Then, it is judged from the state of the operation end detection switch 23 whether or not the operation is completed, and if the operation is completed (Y in S4), the processing is completed (S5), and a power-off signal is output to the signal line 17, As a result, the flip-flop 19 is reset and the transistor 22 is turned off, so that the drive power source V DD of the battery power source 11 is turned off (S6).

【0017】 ここで、CPU1が暴走した場合(S0)、時計IC12から、前記tのタイ ムアップ後に、警報信号が信号線18に出力され、これにより前述と同様にフリ ップフロップ19がリセットされて電源がオフされる。Here, when the CPU 1 runs out of control (S0), an alarm signal is output from the clock IC 12 to the signal line 18 after the above-mentioned time-up of t, whereby the flip-flop 19 is reset and the power supply is turned on as described above. Is turned off.

【0018】 即ち、CPU1が正常に作動している時は電源オフ信号で、またCPU1が暴 走した時は警報信号で電源をオフすることで、CPU制御の誤動作とバッテリの 消耗に対するフェールセーフ機能を果たすことができる。なお、警報信号の出力 タイミングは電源オフ信号より若干遅くなるように設定されている。That is, when the CPU 1 is operating normally, the power is turned off by the power-off signal, and when the CPU 1 runs out of control, the power is turned off by the alarm signal, thereby providing a fail-safe function for malfunction of CPU control and battery consumption. Can be fulfilled. The alarm signal output timing is set to be slightly later than the power-off signal.

【0019】[0019]

【考案の効果】[Effect of the device]

以上説明したように、本考案によれば、時計ICのアラーム機能を利用して、 CPUが暴走しても時計ICからの警報信号によってバッテリ電源をオフするよ うにしたので、CPUの誤動作によるトラブルを未然に防止し、かつ、電源オフ 制御を精度よく行ってバッテリの消耗を最小限に抑えることができる。 As described above, according to the present invention, the alarm function of the clock IC is used to turn off the battery power by the alarm signal from the clock IC even if the CPU runs out of control. It is possible to prevent the above-mentioned problem and to accurately control the power-off to minimize the consumption of the battery.

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

【図1】従来例に係る電源自動オフ装置のブロック図で
ある。
FIG. 1 is a block diagram of an automatic power-off device according to a conventional example.

【図2】そのタイミングチャートである。FIG. 2 is a timing chart thereof.

【図3】本考案の実施例に係る電源自動オフ装置のブロ
ック図である。
FIG. 3 is a block diagram of an automatic power-off device according to an embodiment of the present invention.

【図4】その制御内容を示すフローチャートである。FIG. 4 is a flowchart showing the control contents.

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

1 CPU 11 バッテリ電源 12 時計IC 13 RAM 16 オアゲート回路 17,18 信号線 19 フリップフロップ 21 電源スイッチ 1 CPU 11 Battery Power 12 Clock IC 13 RAM 16 OR Gate Circuit 17, 18 Signal Line 19 Flip Flop 21 Power Switch

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 電源スイッチの投入によりバッテリ電源
がオンして起動されるCPUを備え、このCPUにより
所定の処理動作を行った後、前記CPUからの電源オフ
指令で電源を自動的にオフする電源自動オフ装置におい
て、時計ICとRAMを設け、前記電源スイッチの投入
時に前記時計IC内の現在時刻データを読み取って前記
RAMに記録すると共に、前記現在時刻データに所定時
間tを加えた警報時刻データを前記時計ICに設定し、
この警報時刻になると出力される前記時計ICからの警
報信号の信号線を、前記CPUの電源オフ信号の信号線
と共に、オアゲート回路の入力側に接続し、このオアゲ
ート回路の出力により前記バッテリ電源をオフするよう
にしたことを特徴とする電源自動オフ装置。
1. A CPU provided with a CPU that is activated by turning on a battery power supply by turning on a power switch, and after the CPU performs a predetermined processing operation, the power is automatically turned off by a power-off command from the CPU. In the automatic power-off device, a clock IC and a RAM are provided, and when the power switch is turned on, the current time data in the clock IC is read and recorded in the RAM, and an alarm time obtained by adding a predetermined time t to the current time data. Set the data in the clock IC,
The signal line of the alarm signal from the timepiece IC that is output at this alarm time is connected to the input side of the OR gate circuit together with the signal line of the power OFF signal of the CPU, and the battery power is supplied by the output of the OR gate circuit. An automatic power-off device characterized by being turned off.
JP2033492U 1992-03-04 1992-03-04 Automatic power off device Pending JPH0571925U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2033492U JPH0571925U (en) 1992-03-04 1992-03-04 Automatic power off device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2033492U JPH0571925U (en) 1992-03-04 1992-03-04 Automatic power off device

Publications (1)

Publication Number Publication Date
JPH0571925U true JPH0571925U (en) 1993-09-28

Family

ID=12024243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2033492U Pending JPH0571925U (en) 1992-03-04 1992-03-04 Automatic power off device

Country Status (1)

Country Link
JP (1) JPH0571925U (en)

Similar Documents

Publication Publication Date Title
US7149915B2 (en) Microcomputer using a shared counter
US11175720B2 (en) Power control device, computer system, and power control method thereof
JPH08339308A (en) Digital processor
US6888267B2 (en) Battery backed memory with low battery voltage trip, disconnect and lockout
JPH081578B2 (en) Power supply switching control device
JP2679093B2 (en) IC memory card
JPH0336125Y2 (en)
JP2539094B2 (en) Information card
JPS5933539U (en) programmable controller
JP3053270B2 (en) Power supply backup method and device
JP2548626Y2 (en) Power control device for computer built-in equipment
JPS5850409Y2 (en) information processing equipment
JPS585130U (en) programmable logic controller
JP2001203324A (en) Integrated circuit and method for controlling its operation
JPS6016980Y2 (en) 1 chip integrated circuit device
JP2694865B2 (en) Camera power control circuit
JPH0571951U (en) Memory backup error detection and holding device
JPH0534040Y2 (en)
JPH0219868Y2 (en)
JPH04123443U (en) data storage device
JPH04127308A (en) Automatic resetting circuit of electronic device
JPH01173817U (en)
JPH01307854A (en) Memory device
JPS59139190A (en) Electronic instrument
JPH0619573A (en) Judging device of oscillated clock of microcomputer