JPH0279111A - Electronic apparatus - Google Patents

Electronic apparatus

Info

Publication number
JPH0279111A
JPH0279111A JP63230046A JP23004688A JPH0279111A JP H0279111 A JPH0279111 A JP H0279111A JP 63230046 A JP63230046 A JP 63230046A JP 23004688 A JP23004688 A JP 23004688A JP H0279111 A JPH0279111 A JP H0279111A
Authority
JP
Japan
Prior art keywords
power
power supply
voltage
state
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
JP63230046A
Other languages
Japanese (ja)
Other versions
JP2730735B2 (en
Inventor
Seiji 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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63230046A priority Critical patent/JP2730735B2/en
Publication of JPH0279111A publication Critical patent/JPH0279111A/en
Application granted granted Critical
Publication of JP2730735B2 publication Critical patent/JP2730735B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To restore an apparatus to the state before the power supply to the apparatus is cut off when the power supply is cut off by automatically preserving the state of the apparatus and inputted various data until the power supply is cut off in a nonvolatile memory and reading out the preserved state when the power supply is restarted. CONSTITUTION:In the course of an automatic power supply cutting-off process, whether or not a key input is made from a keyboard 19 is discriminated and, when it is discriminated that a key input is made, the timer 100 of a CPU 10 is cleared and various processes are executed in accordance with the data from the keyboard 19. When no input is made from the keyboard 19 for fixed time, the CPU 10 sets a control signal P23 to a low level and turns off power sources VCC, VD24, and VPP27 (APSO function). However, since the power supply to a RAM 11 is maintained by a voltage VA26 in a power source section 13 and the RAM 11 is not turned off even when the APSO function works, the RAM 11 is preserved in a nonvolatile memory by the voltage VA26. Therefore, this apparatus can be restored to the state before the power supply is cut off.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、その電源に電池を使用し、自動的に機器の電
源を遮断する機能を有する電子機器に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic device that uses a battery as its power source and has a function of automatically shutting off the power to the device.

[従来の技術] 従来より、電源に乾電池あるいはニッカド電池等の電池
を使用した装置では、電池の消費を抑えて電池の寿命を
伸ばすために、例えば一定時間以上キー人力がない時に
、電池から装置内の各素子や回路に供給されている電力
を遮断するという自動電源遮断機能(Auto Pow
er 5hut Off機能=以下APSO機能と称す
る)を備えた装置がある。
[Prior Art] Conventionally, in devices that use batteries such as dry batteries or NiCd batteries as power sources, in order to reduce battery consumption and extend the life of the battery, for example, when there is no key power for a certain period of time, the device can be disconnected from the battery. Automatic power cutoff function (Auto Pow) that cuts off the power supplied to each element and circuit in the
There is a device equipped with an er5hut Off function (hereinafter referred to as an APSO function).

このような装置では、電源遮断のときも装置のRAM部
分を電池等の補助電源装置によりバックアップしておき
、主電源がオンのときにそのRAMに書き込まれた、デ
ータを次に再び主電源がオンされるまで保持するという
方法がとられていた。
In such devices, even when the power is cut off, the RAM portion of the device is backed up by an auxiliary power supply such as a battery, and the data written to the RAM when the main power is on is stored when the main power is turned on again. The method used was to hold it until it was turned on.

[発明が解決しようとする課題] このように従来は、主電源がオフになっている間データ
を保存しておくためには、主電源がオンの時に入力され
たデータ等を、特別なキー操作等により、電力の供給さ
れているRAMに保存するというのが一般的であった。
[Problems to be Solved by the Invention] Conventionally, in order to save data while the main power is off, data input when the main power is on is stored using a special key. It has been common practice to store data in a RAM that is supplied with power, depending on the operation or the like.

しかし、データ入力処理などを一時休止して一定時間以
上装置を離れた場合などは、データ保存のための処理を
実行することなく装置の電源が遮断されてしまい、それ
まで入力したデータが全であるいは一部消滅してしまう
という問題があった。
However, if you temporarily stop data input processing and leave the device for a certain period of time, the power to the device will be shut off without performing any processing to save the data, and all data entered up to that point will be lost. Otherwise, there was a problem that some of them would disappear.

本発明は上記従来例に鑑みてなされたもので、自動的に
機器の電源が遮断されるまでに、それまでの機器の状態
や入力された各種データ等を不揮発なメモリに保存して
おき、機器の電源が再投入されたときにその保存されて
いる状態を読出し、その機器を電源遮断時の状態に復帰
することができる電子機器を提供することを目的とする
The present invention has been made in view of the above-mentioned conventional example, and the present invention saves the state of the device and various input data in a non-volatile memory before the power of the device is automatically cut off. An object of the present invention is to provide an electronic device capable of reading out the saved state when the power of the device is turned on again and returning the device to the state when the power was turned off.

[課題を解決するための手段] 上記目的を達成するために本発明の電子機器は以下の様
な構成からなる。即ち、 電源に電池を使用し、自動的に電源を遮断する機能を備
えた電子機器であって、電源遮断のときにもデータを不
揮発に保存する記憶手段と、自動的に電源を遮断すると
き、その直前の機器状態を前記記憶手段に記憶させる退
避手段と、機器の電源が再投入されたとき、前記記憶手
段より前記機器状態を読出して電子機器を電源遮断の直
前の状態に復帰させる復帰手段とを備える。
[Means for Solving the Problems] In order to achieve the above object, an electronic device of the present invention has the following configuration. In other words, it is an electronic device that uses a battery as a power source and has a function that automatically shuts off the power. , a saving means for storing the immediately previous device state in the storage means; and a recovery means for reading the device state from the storage means when the power to the device is turned on again to return the electronic device to the state immediately before the power was cut off. and means.

[作用] 以上の構成において、記憶手段は電源遮断のときにもデ
ータを不揮発に保存するもので、自動的に電源を遮断す
るとき、その直前の機器状態をその記憶手段に記憶させ
、機器の電源が再投入されたとき、その記憶手段より機
器状態を読出して電子機器な電源遮断の直前の状態に復
帰させるようにしている。
[Function] In the above configuration, the storage means stores data in a non-volatile manner even when the power is cut off, and when the power is automatically cut off, the device state immediately before that is stored in the storage means, and the device status is stored in the storage means. When the power is turned on again, the device status is read from the storage means to restore the electronic device to the state it was in just before the power was turned off.

[実施例コ 以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[ワードプロセッサの説明 (第1図)]第1図は本発
明の一実施例のワードプロセッサの概略構成を示すブロ
ック図であり、このワードプロセッサは液晶等の表示部
やプリンタなどの印字機構を備えている。
[Description of Word Processor (Fig. 1)] Fig. 1 is a block diagram showing a schematic configuration of a word processor according to an embodiment of the present invention, and this word processor is equipped with a display section such as a liquid crystal display and a printing mechanism such as a printer. .

図において、10はCPUバス21を介してワードプロ
セッサ装置全体を制御するマイクロプロセッサ等のcp
u、11はCPUl0のワークエリアとして使用され各
種データの一時保存等を行うRAMで、後述するAPF
フラグ110や、装置の状態を記憶している状態保存部
111などを含んでいる。12は第4図や第5図のフロ
ーチャートで示されたCPU 10の制御プログラムや
文字フォントなどの各種データ等を記憶しているROM
である。
In the figure, 10 is a CPU such as a microprocessor that controls the entire word processor device via a CPU bus 21.
u, 11 is a RAM that is used as a work area for CPU10 and temporarily stores various data, etc.
It includes a flag 110 and a state storage unit 111 that stores the state of the device. 12 is a ROM that stores various data such as the CPU 10 control program and character fonts shown in the flowcharts of FIGS. 4 and 5.
It is.

13は第2図や第3図にその詳細を示す電源部で、後述
するように電池を内蔵しており電子機器全体に電力を供
給している。22はオペレータが機器の電源をオン、オ
フする電源スィッチ、24はデイスプレィ用の電源電圧
VD、25はRAM11の電源電圧であるVA、27は
プリンタ15用の電源電圧VPPである。電源部13は
CPU 10よりのパワーオフ信号23を人力すると、
RAM1l用の電圧VA26以外の電源電圧をオフにし
て自動電源断機能(APSO)を実行する。
Reference numeral 13 denotes a power supply section whose details are shown in FIGS. 2 and 3, which includes a battery as described later and supplies power to the entire electronic device. 22 is a power switch by which an operator turns on and off the power of the device; 24 is a display power supply voltage VD; 25 is a power supply voltage VA for the RAM 11; and 27 is a power supply voltage VPP for the printer 15. When the power supply unit 13 receives the power-off signal 23 from the CPU 10,
The automatic power off function (APSO) is executed by turning off the power supply voltages other than the voltage VA26 for RAM1l.

14はプリンタ15を制御して、キーボード19などよ
り入力された文書データや図形データをプリント出力す
るプリンタ制御部、15はサーマルプリンタやレーザビ
ームプリンタなどのプリンタである。16は表示器17
への表示制御を行う表示制御部、17は文字や図形等を
パターンデータで表示する液晶やCRTなどの表示器で
ある。
14 is a printer control unit that controls the printer 15 and prints out document data and graphic data input from a keyboard 19, etc.; 15 is a printer such as a thermal printer or a laser beam printer; 16 is the display 17
A display control unit 17 is a display device such as a liquid crystal or CRT that displays characters, figures, etc. as pattern data.

18はキーボード15より入力されたキーデータをコー
ドデータに変換してCPUバス21に出力するはキーボ
ード制御部である。
A keyboard control section 18 converts key data input from the keyboard 15 into code data and outputs the code data to the CPU bus 21.

以上の構成をもとに、この機器の動作を説明すると、キ
ーボード19より入力されたキーに対応するコードが、
キーボード制御部18によりCPUバス21に出力され
ると、CPUl0がそのコードを読取って判断し、その
キーデータに応じた処理を実行する。このとき例えば、
キーデータが文字コードであればRAMIIに書き込む
とともに、表示制御部16へそれに対応したデータを送
る。これにより表示制御部16はそのデータに応じた表
示フォントをROM12より読み出し、表示器17に表
示する。このとき同時に表示データとRAMIIへ書き
込んでいる。また必要に応じて、キーボード19より入
力されたデータをROM12内の印字フォントによりパ
ターン展開し、プリンタ制御部14を介してプリンタ1
5に出力させて記録することができる。
To explain the operation of this device based on the above configuration, the code corresponding to the key input from the keyboard 19 is
When the key data is output to the CPU bus 21 by the keyboard control unit 18, the CPU 10 reads and judges the code, and executes processing according to the key data. At this time, for example,
If the key data is a character code, it is written to RAMII and the corresponding data is sent to the display control unit 16. Thereby, the display control section 16 reads out a display font corresponding to the data from the ROM 12 and displays it on the display 17. At this time, display data and RAM II are written simultaneously. Further, if necessary, the data input from the keyboard 19 is developed into a pattern using the printing font in the ROM 12, and the data is sent to the printer via the printer control unit 14.
5 can be output and recorded.

前述したように機器の各部には、電源部13より電力が
供給されており、Vcc25はCPU 10、ROM1
2、表示制御部16、キーボード制御部18、プリンタ
制御部14へ供給されており、これは一般的に+5■で
汎用ICを駆動している。またVD24は表示制御部1
6へ供給されており、例えば最近表示器として普及して
いるLCD等のドライバ駆動電圧である。Vpp27は
プリンタ15内のモータ、あるいはサーマルヘッド等を
駆動する電圧であり、一般的にVCCより高い電圧であ
り、消費電力も大きい。
As mentioned above, power is supplied to each part of the device from the power supply unit 13, and Vcc25 is applied to the CPU 10, ROM1
2. It is supplied to the display control section 16, keyboard control section 18, and printer control section 14, which generally drives a general-purpose IC at +5■. In addition, the VD24 is the display control unit 1
6, and is, for example, a driver drive voltage for LCDs, etc., which have recently become popular as display devices. Vpp27 is a voltage for driving a motor or a thermal head in the printer 15, and is generally a higher voltage than VCC, and consumes a large amount of power.

この実施例では、上記例のような電源構成の機器の電源
部13の主電源に電池を使用し、その電池電圧から上記
した各種電圧に変換する装置を備えた機器に有効である
。このように電圧変換を行うと、変換回路では必ず電力
が消費されるため変換効率が低下し、電池の消費が多く
なるという欠点があるが、この実施例ではこの電池の消
費を最小唄に抑えることを目的にしている。
This embodiment is effective for equipment that uses a battery as the main power source of the power supply unit 13 of equipment with the power supply configuration as in the above example, and is equipped with a device that converts the battery voltage into the various voltages described above. When performing voltage conversion in this way, the conversion circuit always consumes power, which reduces conversion efficiency and increases battery consumption, but in this example, this battery consumption is kept to a minimum. The purpose is to

この実施例では以上のような構成において、例えばキー
ボード19より入力が一定時間入力がなければ、CPU
l0は制御信号P23をロウレベルにすることによって
、V、c24.vo 24゜■PP27をオフにする(
A P S 0機能)。但し、このときRAMIIへの
電源は、電源部13内の電圧VA26により供給・され
ている。この電源電圧VA26はAPSO機能が働いて
もオフされることかないため、RAMIIはこの電圧V
A26によりメモリ内容が保持されて、不揮発メモリと
して機能するようになっている。
In this embodiment, in the above-described configuration, if there is no input from the keyboard 19 for a certain period of time, the CPU
l0 is set to V, c24 . vo 24゜■Turn off PP27 (
APSO function). However, at this time, the power to RAMII is supplied by the voltage VA26 in the power supply unit 13. Since this power supply voltage VA26 is never turned off even if the APSO function is activated, RAMII
A26 holds the memory contents and functions as a non-volatile memory.

[電源部の説明 (第2図)] 第2図は電源部13の回路例を示す図である。[Description of power supply section (Fig. 2)] FIG. 2 is a diagram showing an example of the circuit of the power supply section 13.

まず、電源スィッチ22が端子(a)側に接続されるこ
とによりオンになると、電池31から電流が流れ出し、
抵抗38.37とさらにトランジスタ39のエミッタ・
ベース間を通ってコンデンサ36に電荷が蓄積される。
First, when the power switch 22 is turned on by being connected to the terminal (a) side, current starts flowing from the battery 31.
Resistor 38, 37 and also the emitter of transistor 39.
Charge is stored in capacitor 36 through the base.

この時、信号P23はCPU 10の出力で不確定であ
り、抵抗34が接地レベルに落ちているのでトランジス
タ51はオフされている。さらに、前述したコンデンサ
36が充電し始めてから(電源スィッチ22がオンされ
てから)一定時間は、コンデンサ36の+側の電圧は低
いレベルにあるため、トランジスタ39を十分オン状態
に保つことができる。
At this time, the signal P23 is the output of the CPU 10 and is indeterminate, and the resistor 34 has fallen to the ground level, so the transistor 51 is turned off. Furthermore, since the voltage on the + side of the capacitor 36 is at a low level for a certain period of time after the aforementioned capacitor 36 starts charging (after the power switch 22 is turned on), the transistor 39 can be kept sufficiently turned on. .

このようにして、トランジスタ39がオンしているとき
は電池31から゛電圧レベル変換器41の制御端子40
に電流が流れ込むことにより、電圧レベル変換器41が
作動を開始する。これによって、電圧レベル変換器41
の出力には、電池電圧から変換された電圧Vcc25が
出力される。
In this way, when the transistor 39 is on, the battery 31 is connected to the control terminal 40 of the voltage level converter 41.
When current flows into the voltage level converter 41, the voltage level converter 41 starts operating. As a result, the voltage level converter 41
A voltage Vcc25 converted from the battery voltage is output.

このVcc25が出力されると、第1図に示すように、
Vcc25により電力が供給されているCPu i o
、表示制御部16、ROM12、キーボード制御部18
、プリンタ制御部14が動作を開始し、CPU I O
は動作開始後すぐに信号P23をハイレベルにして出力
する。この信号P23により抵抗33を介してトランジ
スタ51がオンされる。これにより、コンデンサ36に
蓄積されていた電荷はダイオード32、抵抗35を介し
てグランドへ放電されて、トランジスタ39はオン状態
を保持し続けることができるようになり、電圧レベル変
換器41では変換動作が連続して実行される。
When this Vcc25 is output, as shown in FIG.
CPU i o powered by Vcc25
, display control section 16, ROM 12, keyboard control section 18
, the printer control unit 14 starts operating, and the CPU I/O
Immediately after starting the operation, the signal P23 is set to high level and output. This signal P23 turns on the transistor 51 via the resistor 33. As a result, the charge accumulated in the capacitor 36 is discharged to the ground via the diode 32 and the resistor 35, and the transistor 39 can continue to be in the on state, and the voltage level converter 41 performs a conversion operation. are executed continuously.

またこのとき同時に、トランジスタ46は、抵抗45、
抵抗44、ダイオード43を介してトランジスタ51側
へ引き込み電流が流れるのためオン状態を保持すること
ができる。これにより、電圧レベル変換器41と同様に
、電圧レベル変換器47.49の各制御端子56.52
に電流が流れ込む。これにより電圧レベル変換器47と
49が動作を開始し、それぞれの出力にはV。24゜V
pp27が出力される。これにより第1図の表示器11
.プリンタ13に電源が供給され、それらが動作できる
ようになる。
At the same time, the transistor 46 also connects the resistor 45,
Since a current flows toward the transistor 51 via the resistor 44 and the diode 43, the on state can be maintained. As a result, each control terminal 56.52 of the voltage level converter 47.49, similar to the voltage level converter 41,
current flows into. As a result, the voltage level converters 47 and 49 start operating, and each output has V. 24°V
pp27 is output. As a result, the display 11 in FIG.
.. Power is supplied to the printers 13, allowing them to operate.

ここで、Vcc25 、 Vo 24、Vpp27の出
力端子に接続されている電解コンデンサのそれぞれは、
各出力電圧を安定させるためのものである。
Here, each of the electrolytic capacitors connected to the output terminals of Vcc25, Vo24, and Vpp27 is
This is to stabilize each output voltage.

また、この例ではVC,25、VP、27は十電圧であ
り、VD24は一電圧である。またRAMIIに供給さ
れる電圧VA26は、電池31の電圧が高いときにはツ
ェナーダイオード28により定まり、また電池31の電
圧レベルがダイオード28のツェナー電圧よりさがった
場合には、VA26は電池31の電圧と等しくなる。ま
た、VA26は電源スィッチ22がオンしていてVcc
25が出力されているときは、ダイオード3oの作用に
よりVcC25の電圧レベルと等しくなる。
Further, in this example, VC, 25, VP, 27 are ten voltages, and VD24 is one voltage. Further, the voltage VA26 supplied to RAMII is determined by the Zener diode 28 when the voltage of the battery 31 is high, and when the voltage level of the battery 31 is lower than the Zener voltage of the diode 28, VA26 is equal to the voltage of the battery 31. Become. Also, VA26 is Vcc when the power switch 22 is on.
25 is output, the voltage level becomes equal to that of VcC25 due to the action of diode 3o.

また、コンデンサ53は電池31よりダイオード54.
抵抗55を通して充電される。このコンデンサ53は、
電池31を交換するときにRAM11の内容を保持する
のに有効である。よって第2図に示されている電源部1
3の回路では、電源スィッチ22の状態、および自動的
に電源を遮断状態であるにもかかわらず電圧VA26は
出力されたままなので、RAMIIの内容は保持された
ままとなる。
Further, the capacitor 53 is connected to the diode 54 from the battery 31.
It is charged through the resistor 55. This capacitor 53 is
This is effective for retaining the contents of the RAM 11 when replacing the battery 31. Therefore, the power supply section 1 shown in FIG.
In the circuit No. 3, the voltage VA26 remains output despite the state of the power switch 22 and the power is automatically cut off, so the contents of RAMII remain retained.

[動作説明 (第4図〜第6図)] 第4図は実施例の機器における自動電源遮断処理を示す
フローチャートで、この処理を実施するCPUl0の制
御プログラムはROM12に格納されている。
[Operation Description (FIGS. 4 to 6)] FIG. 4 is a flowchart showing automatic power-off processing in the device of the embodiment, and a control program for the CPU 10 that executes this processing is stored in the ROM 12.

この処理は、電源スィッチ22がオンになって各部に供
給される電圧が立ち上がり、各部が動作しているときの
処理を示し、まず、ステップS1ではキーボード19よ
りキー人力があったかどうかを判断し、キー人力があっ
たと判別されるとステップS2に進み、CPUのタイマ
100をクリアしてステップS3に進む。このステップ
S3では、キーボード19より入力されたデータに応じ
た各fffl処理を実行する。
This process shows the process when the power switch 22 is turned on, the voltage supplied to each part rises, and each part is operating. First, in step S1, it is determined whether there is any key force on the keyboard 19, If it is determined that there is key human power, the process proceeds to step S2, where the CPU timer 100 is cleared and the process proceeds to step S3. In this step S3, each fffl process is executed according to the data input from the keyboard 19.

この処理は、例えばキー人力データを表示器17に表示
するとともに、RAMIIに入力されたデータおよび表
示するデータなどを書き込み、あるいは必要に応じてプ
リンタ15に入力データの全部あるいは一部を出力する
等、その機器が備えている機能を実行するものである。
This processing includes, for example, displaying key manual data on the display 17, writing input data and display data to RAMII, or outputting all or part of the input data to the printer 15 as necessary. , which executes the functions provided by the device.

その処理が終了するとステップSlへもどる。このよう
に、以上の処理をステップ81〜ステツプS3の間で繰
り返し行うと、RAMIIには様々なデータが書き込ま
れたことになる。
When the process is completed, the process returns to step Sl. In this way, if the above processing is repeated between step 81 and step S3, various data will be written to RAM II.

また、ステップS1でキー人力がないと判別された場合
にはステップS4に移り、時間を計時するタイマ100
をスタートさせる。ステップS5ではそのタイマの計時
値が所定値を越えたかどうか判別し、越えていなければ
またステップS1にもどる。
Further, if it is determined in step S1 that there is no key human power, the process moves to step S4, and the timer 100 for measuring time is activated.
Start. In step S5, it is determined whether the timed value of the timer exceeds a predetermined value, and if it does not, the process returns to step S1.

ステップS5で計時値が所定値を越えていればステップ
S6へ進み、現在その機器の状態の各パラメータをRA
MIIの状態保存部111に書き込む。ここでいう記憶
されるパラメータとして、キーの入力モードあるいは、
プリンタ15の印字を行うキャリッジの位置や改行位置
、更には表示器17に表示する表示データ等が含まれる
If the clock value exceeds the predetermined value in step S5, the process advances to step S6, and each parameter of the current state of the device is RA
Write to the MII state storage unit 111. The parameters to be remembered here include the key input mode or
It includes the position of the carriage for printing by the printer 15, the line feed position, and display data to be displayed on the display 17.

次にステップS7では、この機器がAPSO機能が働い
たことを示ずAPFフラグ110をオンにし、ステップ
S8で信号P23をロウレベルにして、電源部13から
出力される■A26以外のずべての電源電圧をオフにす
る。
Next, in step S7, this device turns on the APF flag 110 indicating that the APSO function has been activated, and in step S8, the signal P23 is set to low level, and all power supplies other than A26 output from the power supply section 13 are turned on. Turn off the voltage.

第5図は電源の投入(電源スイツチ22オン)直後の動
作を示すフローチャートで、この処理を実行する制御プ
ログラムはROM12に格納されている。
FIG. 5 is a flowchart showing the operation immediately after the power is turned on (power switch 22 is turned on), and a control program for executing this process is stored in the ROM 12.

この第5図で説明されている部分については、第4図で
説明される部分より先に実行されるべきものであるが、
説明の都合上後回しにした。
The part explained in FIG. 5 should be executed before the part explained in FIG.
I postponed it for the sake of explanation.

まずステップSllで電源スィッチ22を才ンにする。First, in step Sll, the power switch 22 is turned on.

ここで電源スィッチ22の投入状態には2通り考えられ
る。第1の状態は通常通り電源ス・イツチ22がオフの
状態にあり、その後オンされる場合で、第2の方法は自
動電源断の後に、−度才フされてからオンされる場合で
ある。
Here, there are two possible states of the power switch 22 being turned on. The first state is when the power switch 22 is normally off and then turned on, and the second method is when the power switch 22 is automatically turned off and then turned on after being turned off. .

ステップS12ではCPUl0は機器の様々な初期化を
行う。次にステップS13ではAPFフラグ110を書
き込んだ特定番地を読み出し、そのフラグ110がオン
かどうかにより、電源スイヅチ22がオンされる以前に
APSO機能が働いたかどうかチエツクする。働いてい
なければ(APFフラグ110がオフならば)ステップ
S19に移り、この機器の通常の処理ルーチンを実行す
る。
In step S12, the CPU 10 performs various initializations of the device. Next, in step S13, the specific address where the APF flag 110 was written is read out, and depending on whether the flag 110 is on, it is checked whether the APSO function was activated before the power switch 22 was turned on. If it is not working (if the APF flag 110 is off), the process moves to step S19 and the normal processing routine of this device is executed.

一方、ステップS13においてAPFフラグ110がオ
フさればステップS14に進み、以前にAPSO機能が
働いたことを表示器11に表示する。次にステップS1
5ではAPSO機能が働く以前の状態をその機器に設定
するかどうかを表示し、APSO機能が動作する以前の
状態から動作を開始するか、あるいは通常どうりの状態
にするかを選択できる様にしている。
On the other hand, if the APF flag 110 is turned off in step S13, the process advances to step S14, and the display 11 displays that the APSO function was previously activated. Next step S1
5 displays whether to set the state before the APSO function worked on the device, and allows you to select whether to start operation from the state before the APSO function worked or to return to the normal state. ing.

ステップS15で以前の状態をセットしないように設定
されていればステップS18に移り、RAMII内のA
PFフラグ110をオフにし、ステップS19の通常処
理ルーチンに進む。また、ステップS15において以前
の状態を設定するときはステップS16に進み、RAM
IIの状態保存部111に記憶されている、電源遮断の
直前の機器状態に関する情報を読み出し、ステップS1
7でその機器を、その情報に応じた状態に設定する。そ
の後ステップS18でAPFフラグをオフにして、ステ
ップS19へ移る。
If it is set not to set the previous state in step S15, the process moves to step S18, and A
The PF flag 110 is turned off and the process proceeds to the normal processing routine of step S19. Further, when setting the previous state in step S15, the process advances to step S16, and the RAM
In step S1, information regarding the device state immediately before power cutoff, which is stored in the state storage unit 111 of II, is read out.
Step 7 sets the device to a state according to the information. After that, the APF flag is turned off in step S18, and the process moves to step S19.

第6図は電源の自動遮断機能を実行するまでの時間(t
w )の設定を示すフローチャートで、このフローチャ
ートはROM12に記憶されている。
Figure 6 shows the time (t) until the automatic power cutoff function is executed.
w) This flowchart is stored in the ROM 12.

ステップS21でキーボード19よりキー人力があった
かどうかを調べ、キー人力があるとステップS22に移
り、CPU 10のタイマ100をクリアする。ステッ
プS23ではキー人力のデータが時間twを設定するモ
ードであるかどうかを判別し、このモードでなければス
テップS24に進み、入力データに応じた各種処理を行
ってステップS21にもどる。
In step S21, it is checked whether there is any key force on the keyboard 19, and if there is any key force, the process moves to step S22 and the timer 100 of the CPU 10 is cleared. In step S23, it is determined whether the key manual data is in a mode for setting time tw, and if it is not in this mode, the process proceeds to step S24, where various processes are performed according to the input data, and the process returns to step S21.

時間twの設定モードであればステップS25に進み、
その時間twの値をキーボード19より入力して設定し
、ステップS26でその値をRAM11の時間メモリ1
12に書き込む。その後またステップS2Lにもどり、
キー人力があるか判別する。
If it is the time tw setting mode, the process advances to step S25;
The value of the time tw is entered and set from the keyboard 19, and in step S26, the value is stored in the time memory 1 of the RAM 11.
Write to 12. After that, return to step S2L again,
Determine if you have key human resources.

一方、ステップS21でキー人力がないと判別されると
ステップS27に進み、CPU 10のタイマ100に
よる計時を開始する。次に、ステップS28ではタイマ
100の計時値と時間メモリ112の値twとを比較し
、タイマ100の計時値のほうが大きくなると、第4図
で説明したステップS6の処理へ移る。またタイマ10
0の計時値のほうが小さいときには、ステップS21へ
戻り前述した動作を実行する。
On the other hand, if it is determined in step S21 that there is no key power, the process proceeds to step S27, and time measurement by the timer 100 of the CPU 10 is started. Next, in step S28, the time value of the timer 100 and the value tw of the time memory 112 are compared, and if the time value of the timer 100 is larger, the process moves to step S6 described in FIG. 4. Also timer 10
If the measured value of 0 is smaller, the process returns to step S21 and the above-described operation is executed.

[他の電源部の構成の説明 (第3図)]第3図は電源
部13の他の構成例を示す図で、第2図と共通な部分は
同一記号で示している。
[Description of other configurations of power supply section (FIG. 3)] FIG. 3 is a diagram showing another configuration example of the power supply section 13, and parts common to those in FIG. 2 are indicated by the same symbols.

まず、電源スィッチ22を図のようにオンにすると、電
池31から抵抗61.62及びトランジスタ63のニジ
ツタ・ベース間を介してコンデンサ64に充電される。
First, when the power switch 22 is turned on as shown in the figure, the capacitor 64 is charged from the battery 31 through the resistor 61, 62 and between the transistor 63 and its base.

このときトランジスタ65は、第2図のトランジスタ5
1と同様にしてオフ状態にある。そして、トランジスタ
63のコレクタの電圧が立ち上がっていると、基準電圧
発生器66は所定の基準電圧を出力する。
At this time, the transistor 65 is the transistor 5 in FIG.
It is in the off state as in 1. Then, when the voltage at the collector of the transistor 63 rises, the reference voltage generator 66 outputs a predetermined reference voltage.

この電圧は67〜69の電圧比較器に入力され、例えば
電圧比較器74は電圧出力Vpp27を抵抗71と72
で分割した電圧と基準電圧73とを比較して電圧変換器
67を制御している。このようにして、出力電圧VPP
27を一定電圧に保つようにしている。他の比較器75
と電圧比較器68、比較器76と電圧比較器69との関
係も同様である。
This voltage is input to voltage comparators 67 to 69. For example, voltage comparator 74 outputs voltage output Vpp27 to resistors 71 and 72.
The voltage converter 67 is controlled by comparing the divided voltage with a reference voltage 73. In this way, the output voltage VPP
27 is kept at a constant voltage. Other comparators 75
The relationship between the voltage comparator 68 and the comparator 76 and the voltage comparator 69 is also similar.

また、電圧Vcc25が発生していない時は、電圧■8
は電池85より抵抗84.ダイオード83を介して出力
される。一方、Vcc25が発生している場合にはVA
26は、VCC25よりダイオード82を介して供給さ
れる。ここで、電池85の電圧な■、とすると、■CC
>VI]の関係にあるのが一般的である。その他、コン
デンサ91〜94は、各電圧を安定させるものである。
In addition, when voltage Vcc25 is not generated, voltage ■8
is the resistance 84. from the battery 85. It is output via diode 83. On the other hand, when Vcc25 is generated, VA
26 is supplied from VCC 25 through a diode 82. Here, if the voltage of the battery 85 is ■, then ■CC
>VI]. In addition, capacitors 91 to 94 stabilize each voltage.

また抵抗95はコンデンサ96の放電用抵抗である。ヒ
ユーズ97は電池31より供給される電流値が、所定値
以」二になったときに遮断されるもので、機器を保護す
るだめのものである。
Further, the resistor 95 is a resistor for discharging the capacitor 96. The fuse 97 is cut off when the current value supplied from the battery 31 becomes less than a predetermined value, and is intended to protect the equipment.

このように他の実施例では、電池31と85を有してい
て、電池31は機器全体に供給される主電源であり、電
池85はVA26のみに供給される電池で、電池31か
らの電源供給が遮断された場合でも、VA26によりR
AMIIのメモリ内容と保持することができる。
In this way, other embodiments include batteries 31 and 85, where battery 31 is the main power supplied to the entire device, and battery 85 is the battery supplied only to VA 26, and the power from battery 31 is supplied. Even if the supply is cut off, VA26 allows R
The memory contents of AMII can be retained.

以上説明したようにこの実施例によれば、自動的に電源
を遮断する機能が働いた時でも、過去に入力した情報は
失われず、再度電源スィッチをオンすることにより、必
要に応じてその情報を呼び出して遮断前の状態に機器を
設定できる。
As explained above, according to this embodiment, even when the power is automatically cut off, the information input in the past is not lost, and by turning on the power switch again, the information can be saved as needed. You can set the device to the state it was in before the shutdown by calling .

これにより、ユーザは自動的に電源が遮断される機能が
働くことを特に意識することなく、その機器を使用でき
る。
This allows the user to use the device without being particularly aware of the automatic power-off function.

また、電源を遮断するための待ち時間を任意の値に設定
できる効果がある。
Another advantage is that the waiting time for shutting off the power can be set to an arbitrary value.

[発明の効果] 以上説明したようにこの発明によれば、自動的に機器の
電源が遮断されるまでに、それまでの機器の状態や入力
された各種データ等を不揮発なメモリに保存しておき、
機器の電源が再投入されたときにその保存されている状
態を読出し、その機器を電源遮断時の状態に復帰できる
効果がある。
[Effects of the Invention] As explained above, according to the present invention, before the power to the device is automatically cut off, the state of the device and various input data can be saved in a non-volatile memory. Ok,
This has the effect that when the power to the device is turned on again, the saved state can be read out and the device can be restored to the state it was in when the power was turned off.

【図面の簡単な説明】 第1図はこの実施例のワードプロセッサの概略構成を示
すブロック図図、 第2図は電源部の第1の実施例を示す回路構成図、 第3図は電源部の第2の実施例を示す回路構成図、 第4図は実施例の電源断処理を示すフローチャート、 第5図は電源投入後の初期処理を示すフローチャート、
そして 第6図は電源断処理の他の実施例を示すフローチャート
である。 図中、10・・・CPU、11・・・RAM、12・・
・R0M、13・・・電源部、14・・・プリンタ制御
部、15・・・プリンタ、16・・・表示制御部、I7
・・・表示器、18・・・キーボード制御部、1つ・・
・キーボード、21・・・電池、22・・・電源スィッ
チ、23・・・信号P、24・・・電源電圧VD、25
・・・電源電圧VCC526・・・電源電圧VA、27
・・・電源電圧Vpp、85・・・電池、100・・・
タイマ、110・・・APFフラグ、111・・・状態
保存部、112・・・時間メモリである。 第4図
[Brief Description of the Drawings] Figure 1 is a block diagram showing the schematic configuration of the word processor of this embodiment, Figure 2 is a circuit diagram showing the first embodiment of the power supply section, and Figure 3 is the power supply section of the first embodiment. A circuit configuration diagram showing the second embodiment; FIG. 4 is a flowchart showing power-off processing in the embodiment; FIG. 5 is a flowchart showing initial processing after power-on;
FIG. 6 is a flowchart showing another embodiment of the power-off process. In the figure, 10...CPU, 11...RAM, 12...
・R0M, 13...Power supply unit, 14...Printer control unit, 15...Printer, 16...Display control unit, I7
...Display unit, 18...Keyboard control section, 1...
・Keyboard, 21...Battery, 22...Power switch, 23...Signal P, 24...Power supply voltage VD, 25
...Power supply voltage VCC526...Power supply voltage VA, 27
...Power supply voltage Vpp, 85...Battery, 100...
Timer, 110... APF flag, 111... State storage section, 112... Time memory. Figure 4

Claims (2)

【特許請求の範囲】[Claims] (1)電源に電池を使用し、自動的に電源を遮断する機
能を備えた電子機器であつて、 電源遮断のときにもデータを不揮発に保存する記憶手段
と、 自動的に電源を遮断するとき、その直前の機器状態を前
記記憶手段に記憶させる退避手段と、機器の電源が再投
入されたとき、前記記憶手段より前記機器状態を読出し
て電子機器を電源遮断の直前の状態に復帰させる復帰手
段とを備えることを特徴とする電子機器。
(1) An electronic device that uses a battery as a power source and has a function that automatically shuts off the power, including a storage means that stores data in a non-volatile manner even when the power is cut off, and that automatically shuts off the power. save means for storing the immediately previous device state in the storage means; and when the power to the device is turned on again, the device state is read from the storage means to restore the electronic device to the state immediately before the power was cut off. An electronic device comprising a return means.
(2)機器の電源投入時、前記復帰手段を作動させるか
どうかを選択する選択手段を更に含むことを特徴とする
請求項第1項に記載の電子機器。
(2) The electronic device according to claim 1, further comprising selection means for selecting whether or not to activate the recovery means when the power of the device is turned on.
JP63230046A 1988-09-16 1988-09-16 Electronics Expired - Lifetime JP2730735B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63230046A JP2730735B2 (en) 1988-09-16 1988-09-16 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63230046A JP2730735B2 (en) 1988-09-16 1988-09-16 Electronics

Publications (2)

Publication Number Publication Date
JPH0279111A true JPH0279111A (en) 1990-03-19
JP2730735B2 JP2730735B2 (en) 1998-03-25

Family

ID=16901714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63230046A Expired - Lifetime JP2730735B2 (en) 1988-09-16 1988-09-16 Electronics

Country Status (1)

Country Link
JP (1) JP2730735B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03202912A (en) * 1989-12-28 1991-09-04 Toshiba Corp Portable electronic device
JPH04362718A (en) * 1991-06-10 1992-12-15 Matsushita Electric Ind Co Ltd Method and device for restart of system
JP2006350930A (en) * 2005-06-20 2006-12-28 Fuji Xerox Co Ltd Control circuit and information processor
US7366950B2 (en) 1992-01-08 2008-04-29 Hitachi, Ltd. Information processing apparatus with resume function and information processing system
CN112579484A (en) * 2019-09-29 2021-03-30 北京声智科技有限公司 Power-down state protection method and device for intelligent sound box and main board power supply circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62169218A (en) * 1986-01-17 1987-07-25 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Application suspension restarter for information processing system
JPS62179636U (en) * 1986-04-28 1987-11-14

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62169218A (en) * 1986-01-17 1987-07-25 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Application suspension restarter for information processing system
JPS62179636U (en) * 1986-04-28 1987-11-14

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03202912A (en) * 1989-12-28 1991-09-04 Toshiba Corp Portable electronic device
JPH04362718A (en) * 1991-06-10 1992-12-15 Matsushita Electric Ind Co Ltd Method and device for restart of system
US7366950B2 (en) 1992-01-08 2008-04-29 Hitachi, Ltd. Information processing apparatus with resume function and information processing system
US7661029B2 (en) 1992-01-08 2010-02-09 Hitachi, Ltd. Information processing apparatus with resume function and information processing system
US7908517B2 (en) 1992-01-08 2011-03-15 Hitachi, Ltd. Information processing apparatus with resume function and information processing system
JP2006350930A (en) * 2005-06-20 2006-12-28 Fuji Xerox Co Ltd Control circuit and information processor
CN112579484A (en) * 2019-09-29 2021-03-30 北京声智科技有限公司 Power-down state protection method and device for intelligent sound box and main board power supply circuit

Also Published As

Publication number Publication date
JP2730735B2 (en) 1998-03-25

Similar Documents

Publication Publication Date Title
EP0834796B1 (en) A computer system and control method for saving power
US5469565A (en) Personal computer for disabling resume mode upon replacement of HDD
US6049884A (en) Information processing apparatus with hibernation function
JPH0279111A (en) Electronic apparatus
JPH0895682A (en) Electronic equipment
EP2312419A1 (en) Power supply control device, image forming apparatus, and method of controlling power supply
JPH05204781A (en) Control information storage device for electronic equipment
JP3190564B2 (en) Electronic equipment with battery power
JP2859755B2 (en) Recording device
JPH07114401A (en) Ram backup circuit
JPH04205122A (en) Portable terminal equipment
JPH0142002B2 (en)
JPH0276021A (en) Recovery processing system for power source of information processor
JPH09213088A (en) Engine controller
JP2881047B2 (en) Electronics
JP2000324719A (en) Electronic apparatus, control method therefor, and storage medium
JP2002359931A (en) Electronic apparatus, control method thereof, and computer-readable storage medium stored with control program therefor
JPH0456329B2 (en)
JP3768285B2 (en) Electronics
JPH05119879A (en) Document processing device
KR890004512B1 (en) Printing control method for memory typewriter
JPH0728566A (en) Backup power supply device and power supply method
JPH0511874A (en) Information processor
JPH037963B2 (en)
JP2881046B2 (en) Electronics

Legal Events

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

Free format text: PAYMENT UNTIL: 20081219

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081219

Year of fee payment: 11