JP2000163323A - Electronic device, control method therefor, memory medium and printer - Google Patents

Electronic device, control method therefor, memory medium and printer

Info

Publication number
JP2000163323A
JP2000163323A JP10336137A JP33613798A JP2000163323A JP 2000163323 A JP2000163323 A JP 2000163323A JP 10336137 A JP10336137 A JP 10336137A JP 33613798 A JP33613798 A JP 33613798A JP 2000163323 A JP2000163323 A JP 2000163323A
Authority
JP
Japan
Prior art keywords
power supply
battery power
rewriting
battery
electronic device
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.)
Withdrawn
Application number
JP10336137A
Other languages
Japanese (ja)
Inventor
Takehiko Kasamatsu
健彦 笠松
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 JP10336137A priority Critical patent/JP2000163323A/en
Publication of JP2000163323A publication Critical patent/JP2000163323A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To surely execute the reload of information recorded in a non-volatile memory concerning electronic device having the non-volatile memory. SOLUTION: This equipment is provided with a flash memory 27 with which information can be reloaded, battery voltage detecting circuit 23 for detecting the output voltage of a battery power source 21 and CPU 24 for detecting the remaining power of the battery power source 21 from the output voltage of the power source 21 and only when the remaining power of the battery power source 21 is sufficient, the reload of an operating program 272 in the flash memory 271 is permitted.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電子機器及びその
制御方法、メモリ媒体、並びにプリンタに係り、特に、
電池電源から電源の供給を受ける機能を有する電子機器
及びその制御方法、該制御方法の実施に供するメモリ媒
体、並びにプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic apparatus, a control method therefor, a memory medium, and a printer.
The present invention relates to an electronic device having a function of receiving power supply from a battery power source, a control method thereof, a memory medium for performing the control method, and a printer.

【0002】[0002]

【従来の技術】動作プログラムやデータ等を保持するメ
モリとしてフラッシュメモリ等の不揮発性メモリを搭載
しており、該動作プログラムやデータを書き換えること
が可能な電子機器がある。
2. Description of the Related Art There is an electronic device which is equipped with a nonvolatile memory such as a flash memory as a memory for holding an operation program and data and can rewrite the operation program and data.

【0003】このような電子機器において、不揮発性メ
モリに記録されたデータの消去や、書込みに長時間を要
する場合、例えば、動作プログラムやデータの書き換え
途中で電源電圧が不十分となり、書き換えに失敗する可
能性がある。この場合、必要不可欠な動作プログラムや
データが不揮発性メモリ内に準備されないため、電子機
器を起動できない事態も発生し得る。
In such an electronic device, when erasing or writing of data recorded in a nonvolatile memory takes a long time, for example, a power supply voltage becomes insufficient during rewriting of an operation program or data and rewriting fails. there's a possibility that. In this case, since an indispensable operation program and data are not prepared in the non-volatile memory, a situation in which the electronic device cannot be started may occur.

【0004】従来、このような事態を回避するための方
法として、バックアップ用の二次電源を備える方法や、
予備の不揮発性メモリを備え、書き換えに失敗した場合
には、書き換え前の動作プログラムやデータを利用して
正常状態に復帰させる方法がある。
Conventionally, as a method for avoiding such a situation, there is provided a method of providing a secondary power supply for backup,
There is a method in which a spare nonvolatile memory is provided, and when rewriting fails, a normal state is restored by using an operation program or data before rewriting.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、バック
アップ用の電源や不揮発性メモリを別に備える方法は、
コストアップや電子機器の大型化を齎し不利益が大き
い。
However, a method of separately providing a power source for backup and a nonvolatile memory is as follows.
The disadvantages are large because the cost is increased and the size of the electronic device is increased.

【0006】また、外部電源と電池電源の双方で動作す
る電子機器においては、電池電源をバックアップ用とし
て利用することも可能であるが、その場合においても、
電池電源の残量が不足していると、バックアップ用の電
源としての機能を果たさない可能性がある。
In an electronic device that operates on both an external power supply and a battery power supply, it is possible to use the battery power supply for backup.
If the remaining amount of the battery power is insufficient, the battery may not function as a backup power supply.

【0007】本発明は、上記の背景に鑑みてなされたも
のであり、例えば、不揮発性メモリを有する電子機器に
おいて、該不揮発性メモリに記録された情報の書き換え
を確実に実行することを可能にすることを目的とする。
The present invention has been made in view of the above background. For example, in an electronic device having a nonvolatile memory, it is possible to reliably execute rewriting of information recorded in the nonvolatile memory. The purpose is to do.

【0008】[0008]

【課題を解決するための手段】本発明に係る電子機器
は、電池電源から電源の供給を受ける機能を有する電子
機器であって、情報を書き換え可能な不揮発性メモリ
と、前記電池電源の残量を検知する検知手段と、前記電
池電源の残量が十分な場合にのみ前記不揮発性メモリに
記録された情報の書き換えを許可する許可手段とを備
え、前記許可手段により許可されている場合にのみ、前
記電池電源から供給される電源を利用して、必要に応じ
て、前記不揮発性メモリに記録された情報の書き換えを
実行することを特徴とする。
An electronic apparatus according to the present invention is an electronic apparatus having a function of receiving power supply from a battery power supply, comprising a nonvolatile memory capable of rewriting information, and a remaining power of the battery power supply. And a permission unit for permitting rewriting of information recorded in the non-volatile memory only when the remaining amount of the battery power is sufficient, and only when the permission unit permits the rewriting. And rewriting information recorded in the non-volatile memory as necessary by using a power supply supplied from the battery power supply.

【0009】上記の電子機器において、前記検知手段
は、例えば、前記電池電源の出力電圧を検出することに
より、前記電池電源の残量を検知することが好ましい。
In the above electronic apparatus, it is preferable that the detecting means detects the remaining amount of the battery power, for example, by detecting an output voltage of the battery power.

【0010】上記の電子機器において、例えば、前記不
揮発性メモリに記録された情報の書き換え要求を入力す
る入力手段を更に備えることが好ましい。
In the above electronic apparatus, it is preferable that the electronic apparatus further includes an input unit for inputting a request for rewriting information recorded in the nonvolatile memory.

【0011】上記の電子機器において、例えば、前記不
揮発性メモリに記録された情報を書き換えるための情報
を外部装置から取得するための通信手段を更に備えるこ
とが好ましい。
In the above electronic apparatus, it is preferable that the electronic apparatus further includes a communication unit for acquiring information for rewriting information recorded in the nonvolatile memory from an external device.

【0012】上記の電子機器において、例えば、前記許
可手段が、前記不揮発性メモリに記録された情報の書き
換えを許可したか否かに関する情報をユーザに認識させ
るための出力手段を更に備えることが好ましい。
In the above electronic apparatus, it is preferable that, for example, the permission means further include an output means for allowing a user to recognize information on whether or not rewriting of information recorded in the nonvolatile memory is permitted. .

【0013】上記の電子機器において、例えば、通常動
作時に外部電源から電源の供給を受けるための機能と、
前記不揮発性メモリに記録された情報の書き換え要求に
応じて、電源の供給源を前記外部電源から前記電池電源
に切り換える切り換え手段とを更に備えることが好まし
い。
In the above electronic apparatus, for example, a function for receiving power supply from an external power supply during normal operation;
It is preferable that the power supply further includes switching means for switching a power supply source from the external power supply to the battery power supply in response to a request for rewriting information recorded in the nonvolatile memory.

【0014】本発明に係る電子機器の制御方法は、電池
電源から電源の供給を受ける機能と、情報を書き換え可
能な不揮発性メモリとを有する電子機器の制御方法であ
って、前記電池電源の残量を検知する検知工程と、前記
電池電源の残量が十分な場合にのみ前記不揮発性メモリ
に記録された情報の書き換えを許可する許可工程と、を
有し、前記許可工程により許可されている場合にのみ、
前記電池電源から供給される電源を利用して、必要に応
じて、前記不揮発性メモリに記録された情報の書き換え
を実行することを特徴とする。
An electronic device control method according to the present invention is a method for controlling an electronic device having a function of receiving power supply from a battery power supply and a nonvolatile memory capable of rewriting information, wherein the remaining power of the battery power supply is provided. And a permission step of permitting rewriting of information recorded in the non-volatile memory only when the remaining amount of the battery power is sufficient, and is permitted by the permission step. Only if
The information recorded in the non-volatile memory is rewritten as needed using a power supplied from the battery power.

【0015】本発明に係るメモリ媒体は、電池電源から
電源の供給を受ける機能と、情報を書き換え可能な不揮
発性メモリとを有する電子機器を制御するためのプログ
ラムを格納したメモリ媒体であって、前記電子機器を、
前記電池電源の残量を検知する検知工程と、前記電池電
源の残量が十分な場合にのみ前記不揮発性メモリに記録
された情報の書き換えを許可する許可工程とを有し、前
記許可工程により許可されている場合にのみ、前記電池
電源から供給される電源を利用して、必要に応じて、前
記不揮発性メモリに記録された情報の書き換えを実行す
る電子機器として動作させることを特徴とする。
A memory medium according to the present invention is a memory medium storing a program for controlling an electronic device having a function of receiving power supply from a battery power supply and a nonvolatile memory capable of rewriting information, The electronic device,
A detecting step of detecting a remaining amount of the battery power, and a permission step of permitting rewriting of information recorded in the nonvolatile memory only when the remaining amount of the battery power is sufficient, Only when permitted, it operates as an electronic device that rewrites information recorded in the non-volatile memory as needed by using power supplied from the battery power supply. .

【0016】本発明に係るプリンタは、電池電源から電
源の供給を受ける機能を有するプリンタであって、情報
を書き換え可能な不揮発性メモリと、前記電池電源の残
量を検知する検知手段と、前記電池電源の残量が十分な
場合にのみ前記不揮発性メモリに記録された情報の書き
換えを許可する許可手段とを備え、前記許可手段により
許可されている場合にのみ、前記電池電源から供給され
る電源を利用して、必要に応じて、前記不揮発性メモリ
に記録された情報の書き換えを実行することを特徴とす
る。
A printer according to the present invention is a printer having a function of receiving power supply from a battery power supply, comprising a nonvolatile memory capable of rewriting information, a detecting means for detecting the remaining amount of the battery power supply, Permission means for permitting rewriting of information recorded in the non-volatile memory only when the remaining amount of the battery power is sufficient, and the power is supplied from the battery power only when permitted by the permission means. The information recorded in the non-volatile memory is rewritten as needed using a power supply.

【0017】[0017]

【発明の実施の形態】以下、添付図面を参照しながら本
発明の好適な実施の形態を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0018】まず、本発明に係る電子機器の好適な適用
例としてインクジェットプリンタについて説明する。図
1は、本発明の好適な適用例に係るインクジェットプリ
ンタ(IJRA)の構成の概要を示す外観斜視図であ
る。
First, an ink jet printer will be described as a preferred application example of the electronic apparatus according to the present invention. FIG. 1 is an external perspective view showing an outline of the configuration of an inkjet printer (IJRA) according to a preferred application example of the present invention.

【0019】図1において、キャリッジHCは、駆動モ
ータ5013の正逆回転に連動して駆動力伝達ギア50
09〜5011を介して回転するリードスクリュー50
05の螺旋溝5004に係合するピン(不図示)を有す
る。キャリッジHCは、ガイドレール5003に支持さ
れており、リードスクリュー5005の回転に伴って矢
印a及びb方向に往復移動する。キャリッジHCには、
記録ヘッドIJHとインクタンクITとを内蔵した一体
型インクジェットカートリッジIJCが搭載されてい
る。
In FIG. 1, a carriage HC is driven by a driving force transmitting gear 50 in conjunction with forward and reverse rotation of a driving motor 5013.
Lead screw 50 rotating through 09-5011
05 has a pin (not shown) that engages with the spiral groove 5004. The carriage HC is supported by a guide rail 5003, and reciprocates in the directions of arrows a and b with the rotation of the lead screw 5005. In the carriage HC,
An integrated ink-jet cartridge IJC containing a print head IJH and an ink tank IT is mounted.

【0020】5002は、紙押え板であり、キャリッジ
HCの移動方向に亙って記録用紙Pをプラテン5000
に対して押圧する。5007,5008はフォトカプラ
であり、キャリッジHCのレバー5006の到達を確認
して、駆動モータ5013の回転方向の切り換え等を行
うためのホームポジション検知器である。5016は、
記録ヘッドIJHの前面をキャップするキャップ部材5
022を支持する部材であり、5015は、このキャッ
プ内を吸引する吸引器で、キャップ内の開口5023を
介して記録ヘッドの吸引回復を行う。
Reference numeral 5002 denotes a paper holding plate, which applies a platen 5000 to the recording paper P in the moving direction of the carriage HC.
Press against Photocouplers 5007 and 5008 are home position detectors for checking the arrival of the lever 5006 of the carriage HC and switching the rotation direction of the drive motor 5013 and the like. 5016 is
Cap member 5 for capping the front surface of recording head IJH
Reference numeral 5015 denotes a member for supporting the inside of the cap 5015. The suction unit 5015 sucks the inside of the cap, and recovers the suction of the recording head through the opening 5023 in the cap.

【0021】5017は、クリーニングブレードで、5
019は、このブレードを前後方向に移動可能にする部
材であり、本体支持板5018にこれらが支持されてい
る。ブレードは、この形態の他、他の周知のクリーニン
グブレードを採用することができる。
Reference numeral 5017 denotes a cleaning blade.
Reference numeral 019 denotes a member which enables the blade to move in the front-rear direction, and these members are supported by the main body support plate 5018. As the blade, other well-known cleaning blades besides this form can be adopted.

【0022】5021は、吸引回復の吸引を開始するた
めのレバーであり、キャリッジHCと係合するカム50
20の移動に伴って移動し、駆動モータ5013からの
駆動力がクラッチ切り換え等の公知の伝達機構で移動が
制御される。
Reference numeral 5021 denotes a lever for starting suction for recovery from suction, and a cam 50 which engages with the carriage HC.
It moves with the movement of 20, and the movement of the driving force from the drive motor 5013 is controlled by a known transmission mechanism such as clutch switching.

【0023】これらのキャッピング、クリーニング、吸
引回復は、キャリッジHCがホームポジション側の領域
に到達した時に、リードスクリュー5005の作用によ
ってそれらの対応位置で所望の処理が行えるように構成
されているが、所定のタイミングで所望の動作を行うよ
うにすれば、他の構成を採用することもできる。
The capping, cleaning, and suction recovery are configured such that when the carriage HC reaches the area on the home position side, desired processing can be performed at the corresponding positions by the action of the lead screw 5005. If a desired operation is performed at a predetermined timing, another configuration can be adopted.

【0024】以下、本発明の好適な実施の形態を説明す
る。
Hereinafter, a preferred embodiment of the present invention will be described.

【0025】[第1の実施の形態]図2は、図1に示す
インクジェットプリンタ(電子機器)の制御部の第1の
実施の形態を示す図である。このインクジェットプリン
タ100は、制御部2と電池21とを備える。電池21
としては、例えば、リチウムイオン電池等が好適であ
る。
[First Embodiment] FIG. 2 is a diagram showing a first embodiment of a control section of the ink jet printer (electronic device) shown in FIG. The inkjet printer 100 includes a control unit 2 and a battery 21. Battery 21
For example, a lithium ion battery or the like is suitable.

【0026】この実施の形態では、インクジェットプリ
ンタ100は、電池21のみから電源の供給を受ける。
電池21の残量が不足した場合には、不図示の充電器に
より電池21を充電する必要がある。電池21と制御部
2とは、コネクタ22を介して着脱可能に接続されてい
る。
In this embodiment, the ink jet printer 100 receives power from only the battery 21.
When the remaining amount of the battery 21 is insufficient, the battery 21 needs to be charged by a charger (not shown). The battery 21 and the control unit 2 are detachably connected via a connector 22.

【0027】電池21から制御部2に入力される電池電
圧Vppは、例えば制御部2内の不図示のDC−DCコ
ンバータ等(図示せず)を用いて、インクジェットプリ
ンタ100内の各部に適合した電圧(例えば、Vcc)
に変換される。
The battery voltage Vpp input from the battery 21 to the control unit 2 is adapted to each unit in the ink jet printer 100 by using, for example, a DC-DC converter (not shown) or the like (not shown) in the control unit 2. Voltage (eg, Vcc)
Is converted to

【0028】電池電圧Vppは、電池電圧検出回路23
に入力される。この電池電圧検出回路23は、負荷回路
231と、スイッチ232と、電圧変換器233とを有
する。
The battery voltage Vpp is calculated by the battery voltage detection circuit 23.
Is input to The battery voltage detection circuit 23 has a load circuit 231, a switch 232, and a voltage converter 233.

【0029】CPU24は、入力ポートとしてAD変換
器241を有し、電池電圧検出回路23の電圧変換器2
33から供給される電圧を該AD変換器241でデジタ
ル化して内部に取り込む。そして、CPU24は、AD
変換器241を介して取り込んだ電圧の値に基づいて電
池21の残量を認識し、電池21がフラッシュメモリ
(不揮発性メモリ)27の書き換えに十分な残量を有す
るか否かを判定する。
The CPU 24 has an AD converter 241 as an input port, and the voltage converter 2 of the battery voltage detection circuit 23
The voltage supplied from 33 is digitized by the AD converter 241 and taken in. Then, the CPU 24
The remaining amount of the battery 21 is recognized based on the value of the voltage taken in through the converter 241, and it is determined whether or not the battery 21 has a sufficient remaining amount for rewriting the flash memory (non-volatile memory) 27.

【0030】また、CPU24は、出力ポート242を
有し、該出力ポート242を介して電池電圧検出回路2
3のスイッチ232を制御する。即ち、CPU24は、
電池21の残量を検出する場合は、スイッチ232を閉
じて、負荷231を有効にし、電池21の残量を検出し
ない場合は、スイッチ232を開いて、負荷231を無
効にする。
The CPU 24 has an output port 242, and the battery voltage detection circuit 2 is connected through the output port 242.
3 switch 232 is controlled. That is, the CPU 24
When detecting the remaining amount of the battery 21, the switch 232 is closed to enable the load 231. When not detecting the remaining amount of the battery 21, the switch 232 is opened to disable the load 231.

【0031】インターフェース25は、パーソナルコン
ピュータ等の情報処理装置10と接続するためのインタ
ーフェース回路である。通常は、インターフェース25
は、プリントデータや制御情報等を情報処理装置10と
インクジェットプリンタ100との間でやり取りするた
めに使用される。一方、フラッシュメモリ27に記録さ
れている動作プログラムやデータ(以下、動作プログラ
ム等)272を書き換える場合は、インターフェース2
5は、情報処理装置10から書き換えデータを受信する
ために使用される。
The interface 25 is an interface circuit for connecting to the information processing device 10 such as a personal computer. Usually, the interface 25
Is used for exchanging print data, control information, and the like between the information processing apparatus 10 and the inkjet printer 100. On the other hand, when rewriting the operation program or data (hereinafter, operation program etc.) 272 recorded in the flash memory 27, the interface 2
Reference numeral 5 is used to receive rewrite data from the information processing device 10.

【0032】フラッシュメモリ27には、書き換えの対
象となる動作プログラム等272や、書き換え動作を制
御するための書き換えプログラム271が格納されてい
る。RAM26は、例えば、プリント時の受信バッファ
や、画像メモリ、ワーク領域等として使用される。
The flash memory 27 stores an operation program 272 to be rewritten and a rewrite program 271 for controlling the rewrite operation. The RAM 26 is used, for example, as a reception buffer during printing, an image memory, a work area, and the like.

【0033】スイッチ28は、インクジェットプリンタ
100に対してユーザが電源のオン又はオフを指示する
ためのスイッチである。電源がオフの状態でスイッチ2
8が閉じられると、CPU24は、装置内の各部に供給
する電源をオン状態にし、電源がオン状態でスイッチ2
8が閉じられると、CPU24は、装置の各部に供給す
る電源をオフ状態にする。
The switch 28 is a switch for the user to instruct the inkjet printer 100 to turn on or off the power. Switch 2 with power off
8 is closed, the CPU 24 turns on the power to be supplied to each unit in the apparatus, and turns on the switch 2 when the power is on.
When the shutter 8 is closed, the CPU 24 turns off the power supplied to each unit of the apparatus.

【0034】スイッチ29は、ユーザが、フラッシュメ
モリ27内の動作プログラム等272の書き換えを指示
するためのスイッチである。この実施の形態では、スイ
ッチ29を閉じた状態で、スイッチ28を操作してパワ
ーオン状態にした場合に、フラッシュメモリ27の書き
換えモードになるものとする。
The switch 29 is a switch for the user to instruct rewriting of the operation program and the like 272 in the flash memory 27. In this embodiment, it is assumed that when the switch 28 is operated and the power is turned on while the switch 29 is closed, the flash memory 27 enters the rewrite mode.

【0035】スイッチ28及び29は、例えば不図示の
操作パネル内に配置される。
The switches 28 and 29 are arranged, for example, in an operation panel (not shown).

【0036】表示部30は、インクジェットプリンタ1
00の動作状態や動作モード等を表示するために使用さ
れる。
The display unit 30 is provided with the ink jet printer 1
It is used to display an operation state, an operation mode, and the like of 00.

【0037】なお、図2では、プリント動作の制御用の
素子や回路等は省略されている。
In FIG. 2, elements, circuits and the like for controlling the printing operation are omitted.

【0038】図3は、図2に示すインクジェットプリン
タ100の概略的な動作を示すフローチャートである。
まず、ステップS31で、スイッチ28が操作されてイ
ンクジェットプリンタ100のパワーオンが指示される
と、ステップS32において、CPU24は、スイッチ
29が閉じられているか否か、即ち、書き換えモードの
実行が指示されているか否かを確認する。この実施の形
態では、ステップS31の直後にステップS32が実行
されるため、結果として、スイッチ29を閉じた状態で
パワーオンが指示された場合に、書き換えモードを実行
することになる。
FIG. 3 is a flowchart showing a schematic operation of the ink jet printer 100 shown in FIG.
First, in step S31, when the switch 28 is operated to instruct power-on of the inkjet printer 100, in step S32, the CPU 24 determines whether or not the switch 29 is closed, that is, instructs execution of the rewrite mode. Check whether it is. In this embodiment, since step S32 is executed immediately after step S31, as a result, when power-on is instructed with the switch 29 closed, the rewrite mode is executed.

【0039】書き換えモードの実行が指示された場合
は、ステップS33に進み、書き換えモードの実行が指
示されていない場合は、ステップS41に進む。ステッ
プS41では、インクジェットプリンタ100は、通常
の動作、即ち、プリントデータの受信やプリント等を実
行する。
When execution of the rewrite mode is instructed, the process proceeds to step S33, and when execution of the rewrite mode is not instructed, the process proceeds to step S41. In step S41, the inkjet printer 100 performs a normal operation, that is, receives print data, performs printing, and the like.

【0040】ステップS33では、CPU24は、電池
電圧検出部23のスイッチ232を閉じて、この状態で
電圧変換部233から供給される電圧の値を取り込む。
そして、CPU24は、この電圧の値に基づいて電池2
1の残量を確認する。ステップS34では、電池21の
残量が十分であるあるか否かを判定し、十分であればス
テップS35に進み、十分でなければステップS42に
進む。
In step S33, the CPU 24 closes the switch 232 of the battery voltage detector 23, and takes in the voltage value supplied from the voltage converter 233 in this state.
Then, the CPU 24 determines the battery 2 based on the voltage value.
Check the remaining amount of 1. In step S34, it is determined whether or not the remaining amount of the battery 21 is sufficient. If it is sufficient, the process proceeds to step S35, and if not, the process proceeds to step S42.

【0041】具体例として、電池21としてリチウムイ
オン電池を使用する場合を考える。リチウムイオン電池
の場合、出力電圧と電池残量とは1対1の関係がある。
従って、予め電池電圧と残量との関係を実験的に求め
て、フラッシュメモリ27の動作プログラム等272を
書き換えるために必要な電池残量に対応する電圧Aを例
えば書き換えプログラム271中に記録しておく。そし
て、書き換えモードにおいて、電池21の電圧BをAD
変換器241を介してCPU24に読み込み、電圧Aと
電圧Bとを比較することにより、電池21の残量を確認
することができる。具体的には、電圧B>電圧Aである
場合は、電池21の残量が十分であり、フラッシュメモ
リ27の動作プログラム等272を書き換えることが可
能である。
As a specific example, a case where a lithium ion battery is used as the battery 21 will be considered. In the case of a lithium ion battery, there is a one-to-one relationship between the output voltage and the remaining battery level.
Therefore, the relationship between the battery voltage and the remaining amount is experimentally obtained in advance, and the voltage A corresponding to the remaining battery amount necessary for rewriting the operation program 272 of the flash memory 27 is recorded in, for example, the rewriting program 271. deep. Then, in the rewrite mode, the voltage B of the battery 21 is adjusted to AD
By reading into the CPU 24 via the converter 241 and comparing the voltage A with the voltage B, the remaining amount of the battery 21 can be confirmed. Specifically, when the voltage B> the voltage A, the remaining amount of the battery 21 is sufficient, and the operation program and the like 272 of the flash memory 27 can be rewritten.

【0042】ステップS35では、ユーザに対して、フ
ラッシュメモリ27内の動作プログラム等272を書き
換え可能であることを知らせるために、その旨を表示部
30に表示する。一方、ステップS42では、ユーザに
対して、フラッシュメモリ27内の動作プログラム等2
72を書き換え不能であることを知らせるために、その
旨を表示部30に表示する。
In step S35, the fact that the operation program 272 in the flash memory 27 can be rewritten is displayed on the display unit 30 to inform the user. On the other hand, in step S42, the operation program or the like in the flash memory 27 is notified to the user.
In order to inform that 72 cannot be rewritten, the fact is displayed on the display unit 30.

【0043】ステップS36では、動作プログラム等2
72の書き換えを行うか否かについて最終的な確認を行
う。具体的には、この実施の形態では、例えば、所定時
間内にスイッチ29が閉じられることにより、CPU2
4は、動作プログラム等272の書き換えを開始し、所
定時間内にスイッチ29が閉じられない場合には、書き
換えを実行しない。
In step S36, the operation program 2
A final confirmation is made as to whether or not to rewrite 72. Specifically, in this embodiment, for example, when the switch 29 is closed within a predetermined time, the CPU 2
4 starts rewriting of the operation program 272 or the like, and does not execute rewriting if the switch 29 is not closed within a predetermined time.

【0044】ステップS37では、情報処理装置10か
らインターフェース25を介して供給される書き換えデ
ータを受信し、この書き換えデータに基づいて動作プロ
グラム等272を書き換える。この実施の形態では、ス
テップS37は、フラッシュメモリ27中の書き換えプ
ログラム271をRAM26内の所定領域にコピーし、
該コピーに基づいて実行される。
In step S37, rewrite data supplied from the information processing apparatus 10 via the interface 25 is received, and the operation program 272 and the like are rewritten based on the rewrite data. In this embodiment, a step S37 copies the rewriting program 271 in the flash memory 27 to a predetermined area in the RAM 26,
It is executed based on the copy.

【0045】ステップS38では、書き換えに成功した
旨のメッセージを表示部30に表示する。ステップS3
9では、CPU24は、インクジェットプリンタ100
の各部に供給する電源をオフ状態にする。
In step S38, a message that the rewriting has been successful is displayed on the display unit 30. Step S3
9, the CPU 24 operates the inkjet printer 100
Turn off the power supply to each part of

【0046】フラッシュメモリ27の動作プログラム等
272の書き換えが行われた後は、その書き換え後の動
作プログラム等272に基づいて、以降の動作(例え
ば、ステップS41)が制御される。
After the operation program 272 of the flash memory 27 is rewritten, subsequent operations (for example, step S41) are controlled based on the rewritten operation program 272.

【0047】以上のように、この実施の形態によれば、
電池の残量が十分な場合にのみ、フラッシュメモリの内
容の書き換えが可能にされるため、書き換え動作が途中
で中止されることを防止することができる。
As described above, according to this embodiment,
The rewriting of the contents of the flash memory is enabled only when the remaining amount of the battery is sufficient, so that the rewriting operation can be prevented from being interrupted halfway.

【0048】[第2の実施の形態]図4は、図1に示す
インクジェットプリンタ(電子機器)の制御部の第2の
実施の形態を示す図である。この実施の形態は、第1の
実施の形態に対して、外部電源41を利用するための機
能を追加したものである。
[Second Embodiment] FIG. 4 is a diagram showing a second embodiment of the control section of the ink jet printer (electronic device) shown in FIG. This embodiment is obtained by adding a function for using the external power supply 41 to the first embodiment.

【0049】この実施の形態に係るインクジェットプリ
ンタ100の制御部2は、外部電源41と接続するため
のコネクタ42と、外部電源41又は電池21の出力を
選択して電源電圧Vppとして取り込む選択器43とを
備える。また、この実施の形態に係るCPU24は、選
択器43を制御するための出力ポート421を有する。
外部電源41としては、例えば、商用交流電力を直流電
力に変換する電源アダプタ等が好適である。なお、他の
構成要素は、第1の実施の形態と同様であるので説明を
省略する。
The control unit 2 of the ink jet printer 100 according to this embodiment includes a connector 42 for connecting to an external power supply 41 and a selector 43 for selecting the output of the external power supply 41 or the battery 21 and taking in the output as the power supply voltage Vpp. And Further, the CPU 24 according to this embodiment has an output port 421 for controlling the selector 43.
As the external power supply 41, for example, a power adapter that converts commercial AC power into DC power is suitable. The other components are the same as in the first embodiment, and a description thereof will not be repeated.

【0050】図5は、図4に示すインクジェットプリン
タ100の概略的な動作を示すフローチャートである。
このフローチャートは、図3に示すフローチャートに対
して、ステップS51〜S53を付加したものである。
FIG. 5 is a flowchart showing a schematic operation of the ink jet printer 100 shown in FIG.
This flowchart is obtained by adding steps S51 to S53 to the flowchart shown in FIG.

【0051】この実施の形態では、ステップS32にお
いて、書き換えモードの実行が指示されていると判断し
た場合に、ステップS51に進む。ステップS51で
は、CPU24は、スイッチ232を閉じて、この状態
で電圧変換部233から供給される電圧の値を取り込
む。そして、CPU24は、この電圧の値に基づいて電
池21が接続されているか否かを判定し、電池21が装
着されていない場合にはステップS53に進み、装着さ
れている場合にはステップS52に進む。
In this embodiment, if it is determined in step S32 that execution of the rewrite mode has been instructed, the flow proceeds to step S51. In step S51, the CPU 24 closes the switch 232, and takes in the value of the voltage supplied from the voltage converter 233 in this state. Then, the CPU 24 determines whether or not the battery 21 is connected based on the value of the voltage. If the battery 21 is not mounted, the process proceeds to step S53. If the battery 21 is mounted, the process proceeds to step S52. move on.

【0052】ステップS53では、電池21が未装着で
ある旨を示すメッセージを表示部30に表示し、ユーザ
に対して、電池21を装着するように促す。ステップS
51及びS53は、電池21が装着されるまで繰り返し
て実行される。
In step S53, a message indicating that the battery 21 is not installed is displayed on the display unit 30 to urge the user to install the battery 21. Step S
Steps 51 and S53 are repeatedly executed until the battery 21 is mounted.

【0053】ステップS52では、CPU24は、出力
ポート421を介して選択器43を制御して、電源の供
給源を外部電源41から電池21に切り換えて、ステッ
プS33に進む。以降の動作は、第1の実施の形態と同
様である。
In step S52, the CPU 24 controls the selector 43 via the output port 421 to switch the power supply from the external power supply 41 to the battery 21, and proceeds to step S33. Subsequent operations are the same as in the first embodiment.

【0054】この実施の形態によれば、書き換えモード
の実行が指示された場合に、電源の供給源を外部電源4
1から電池21に切り換えることにより、書き換えモー
ドの実行中に外部電源41からの電源供給が遮断された
場合に、書き換え動作が途中で中止されることを防止す
ることができる。
According to this embodiment, when execution of the rewrite mode is instructed, the power supply source is changed to external power supply 4
By switching from 1 to the battery 21, when the power supply from the external power supply 41 is cut off during the execution of the rewrite mode, it is possible to prevent the rewrite operation from being interrupted halfway.

【0055】また、この実施の形態によれば、書き換え
モードの実行が指示された場合に、電源の供給源を外部
電源41から電池21に切り換え、電池21の残量が十
分な場合にのみ、書き換えモードを実行することによ
り、書き換えモードの実行中に外部電源41からの電源
供給が遮断され、かつ、バックアップ用としての電池2
1の残量が不足している場合に、書き換え動作が途中で
中止されることを防止することができる。
According to this embodiment, when the execution of the rewrite mode is instructed, the power supply source is switched from the external power supply 41 to the battery 21, and only when the remaining amount of the battery 21 is sufficient, By executing the rewrite mode, the power supply from the external power supply 41 is cut off during the execution of the rewrite mode, and the battery 2 for backup is used.
When the remaining amount of 1 is insufficient, it is possible to prevent the rewriting operation from being interrupted halfway.

【0056】[他の実施の形態]なお、本発明は、複数
の機器(例えば、ホストコンピュータ,インタフェイス
機器,リーダ,プリンタなど)から構成されるシステム
に適用しても、一つの機器からなる装置(例えば、複写
機,ファクシミリ装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, and the like), the present invention includes one device. The present invention may be applied to an apparatus (for example, a copying machine, a facsimile machine, etc.).

【0057】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
An object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU) of the system or the apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0058】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0059】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0060】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0061】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, It goes without saying that the CPU provided in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0062】[0062]

【発明の効果】本発明によれば、不揮発性メモリに記録
された情報の書き換えを確実に実行することができる。
According to the present invention, the information recorded in the nonvolatile memory can be reliably rewritten.

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

【図1】本発明の好適な適用例に係るインクジェットプ
リンタの構成の概要を示す外観斜視図である。
FIG. 1 is an external perspective view illustrating an outline of a configuration of an ink jet printer according to a preferred application example of the invention.

【0063】[0063]

【図2】図1に示すインクジェットプリンタの制御部の
第1の実施の形態を示す図である。
FIG. 2 is a diagram showing a first embodiment of a control unit of the ink jet printer shown in FIG.

【0064】[0064]

【図3】図2に示すインクジェットプリンタの概略的な
動作を示すフローチャートである。
FIG. 3 is a flowchart showing a schematic operation of the ink jet printer shown in FIG. 2;

【0065】[0065]

【図4】図1に示すインクジェットプリンタの制御部の
第2の実施の形態を示す図である。
FIG. 4 is a diagram showing a second embodiment of the control unit of the ink jet printer shown in FIG.

【0066】[0066]

【図5】図4に示すインクジェットプリンタの概略的な
動作を示すフローチャートである。
FIG. 5 is a flowchart showing a schematic operation of the ink jet printer shown in FIG.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 電池電源から電源の供給を受ける機能を
有する電子機器であって、 情報を書き換え可能な不揮発性メモリと、 前記電池電源の残量を検知する検知手段と、 前記電池電源の残量が十分な場合にのみ前記不揮発性メ
モリに記録された情報の書き換えを許可する許可手段
と、 を備え、前記許可手段により許可されている場合にの
み、前記電池電源から供給される電源を利用して、必要
に応じて、前記不揮発性メモリに記録された情報の書き
換えを実行することを特徴とする電子機器。
1. An electronic device having a function of receiving power supply from a battery power supply, comprising: a nonvolatile memory capable of rewriting information; a detecting unit for detecting a remaining amount of the battery power supply; Permission means for permitting rewriting of information recorded in the non-volatile memory only when the amount is sufficient, and using power supplied from the battery power supply only when permission is given by the permission means. An electronic device that rewrites information recorded in the nonvolatile memory as needed.
【請求項2】 前記検知手段は、前記電池電源の出力電
圧を検出することにより、前記電池電源の残量を検知す
ることを特徴とする請求項1に記載の電子機器。
2. The electronic apparatus according to claim 1, wherein the detection unit detects the remaining amount of the battery power by detecting an output voltage of the battery power.
【請求項3】 前記不揮発性メモリに記録された情報の
書き換え要求を入力する入力手段を更に備えることを特
徴とする請求項1又は請求項2に記載の電子機器。
3. The electronic apparatus according to claim 1, further comprising an input unit configured to input a request for rewriting information recorded in the nonvolatile memory.
【請求項4】 前記不揮発性メモリに記録された情報を
書き換えるための情報を外部装置から取得するための通
信手段を更に備えることを特徴とする請求項1乃至請求
項3のいずれか1項に記載の電子機器。
4. The apparatus according to claim 1, further comprising a communication unit configured to acquire information for rewriting information recorded in the nonvolatile memory from an external device. Electronic device as described.
【請求項5】 前記許可手段が、前記不揮発性メモリに
記録された情報の書き換えを許可したか否かに関する情
報をユーザに認識させるための出力手段を更に備えるこ
とを特徴とする請求項1乃至請求項4のいずれか1項に
記載の電子機器。
5. The apparatus according to claim 1, wherein said permission means further comprises an output means for allowing a user to recognize information on whether or not rewriting of information recorded in said nonvolatile memory is permitted. The electronic device according to claim 4.
【請求項6】 通常動作時に外部電源から電源の供給を
受けるための機能と、 前記不揮発性メモリに記録された情報の書き換え要求に
応じて、電源の供給源を前記外部電源から前記電池電源
に切り換える切り換え手段と、 を更に備えることを特徴とする請求項1乃至請求項5の
いずれか1項に記載の電子機器。
6. A function for receiving power supply from an external power supply during normal operation, and a power supply source is switched from the external power supply to the battery power supply in response to a request for rewriting information recorded in the nonvolatile memory. The electronic device according to claim 1, further comprising: switching means for switching.
【請求項7】 電池電源から電源の供給を受ける機能
と、情報を書き換え可能な不揮発性メモリとを有する電
子機器の制御方法であって、 前記電池電源の残量を検知する検知工程と、 前記電池電源の残量が十分な場合にのみ前記不揮発性メ
モリに記録された情報の書き換えを許可する許可工程
と、 を有し、前記許可工程により許可されている場合にの
み、前記電池電源から供給される電源を利用して、必要
に応じて、前記不揮発性メモリに記録された情報の書き
換えを実行することを特徴とする電子機器の制御方法。
7. A method for controlling an electronic device having a function of receiving power supply from a battery power supply and a nonvolatile memory capable of rewriting information, comprising: a detecting step of detecting a remaining amount of the battery power; A permission step of permitting rewriting of information recorded in the non-volatile memory only when the remaining amount of battery power is sufficient, and supplying the power from the battery power only when permitted by the permission step. A method for controlling an electronic device, wherein information stored in the non-volatile memory is rewritten as necessary using a power supply to be used.
【請求項8】 電池電源から電源の供給を受ける機能
と、情報を書き換え可能な不揮発性メモリとを有する電
子機器を制御するためのプログラムを格納したメモリ媒
体であって、前記電子機器を、 前記電池電源の残量を検知する検知工程と、 前記電池電源の残量が十分な場合にのみ前記不揮発性メ
モリに記録された情報の書き換えを許可する許可工程
と、 を有し、前記許可工程により許可されている場合にの
み、前記電池電源から供給される電源を利用して、必要
に応じて、前記不揮発性メモリに記録された情報の書き
換えを実行する電子機器として動作させることを特徴と
するメモリ媒体。
8. A memory medium storing a program for controlling an electronic device having a function of receiving a power supply from a battery power supply and a nonvolatile memory capable of rewriting information, wherein the electronic device comprises: A detection step of detecting the remaining amount of battery power, and a permission step of permitting rewriting of information recorded in the nonvolatile memory only when the remaining amount of battery power is sufficient, Only when permitted, it operates as an electronic device that rewrites information recorded in the non-volatile memory as needed by using power supplied from the battery power supply. Memory medium.
【請求項9】 電池電源から電源の供給を受ける機能を
有するプリンタであって、 情報を書き換え可能な不揮発性メモリと、 前記電池電源の残量を検知する検知手段と、 前記電池電源の残量が十分な場合にのみ前記不揮発性メ
モリに記録された情報の書き換えを許可する許可手段
と、 を備え、前記許可手段により許可されている場合にの
み、前記電池電源から供給される電源を利用して、必要
に応じて、前記不揮発性メモリに記録された情報の書き
換えを実行することを特徴とするプリンタ。
9. A printer having a function of receiving power supply from a battery power supply, a non-volatile memory capable of rewriting information, detection means for detecting the remaining power of the battery power, and a remaining power of the battery power. Permission means for permitting rewriting of information recorded in the non-volatile memory only when is sufficient, and using a power supplied from the battery power supply only when permitted by the permission means. And rewriting information recorded in the non-volatile memory as needed.
JP10336137A 1998-11-26 1998-11-26 Electronic device, control method therefor, memory medium and printer Withdrawn JP2000163323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10336137A JP2000163323A (en) 1998-11-26 1998-11-26 Electronic device, control method therefor, memory medium and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10336137A JP2000163323A (en) 1998-11-26 1998-11-26 Electronic device, control method therefor, memory medium and printer

Publications (1)

Publication Number Publication Date
JP2000163323A true JP2000163323A (en) 2000-06-16

Family

ID=18296083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10336137A Withdrawn JP2000163323A (en) 1998-11-26 1998-11-26 Electronic device, control method therefor, memory medium and printer

Country Status (1)

Country Link
JP (1) JP2000163323A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1420415A3 (en) * 2002-11-12 2007-02-28 STMicroelectronics S.r.l. A circuit for programming a non-volatile memory device with adaptive program load control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1420415A3 (en) * 2002-11-12 2007-02-28 STMicroelectronics S.r.l. A circuit for programming a non-volatile memory device with adaptive program load control

Similar Documents

Publication Publication Date Title
US6606466B2 (en) Print control apparatus indicating appropriate paper cassette for printing and method of same
EP0526189B1 (en) Print controller with power saving control
US20070097428A1 (en) Print apparatus and printer control method
US20050050371A1 (en) Image sensing apparatus and power managing method
US6622180B2 (en) Information processing apparatus and output apparatus
JPH0781186A (en) Power-saving device for information-processing system
JP2000163323A (en) Electronic device, control method therefor, memory medium and printer
CN113352770B (en) Consumable chip and imaging box
EP0526183B1 (en) Computer-printer data transfer method
JP3492258B2 (en) Recording apparatus and control method thereof
JPH09187964A (en) Image-forming apparatus, information-processing apparatus, system and controlling method therefor
JP4018514B2 (en) Recording apparatus, power supply control method, storage medium storing computer-readable program, and program
JP4233515B2 (en) Data processing device
JPH08212079A (en) Image forming device
JP2005149211A (en) Data recording device and method for rewriting data
JP3647197B2 (en) Printer device, host computer, and information processing method
JPH11175286A (en) System and method for controlling printing and storage medium
JP2000163167A (en) Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program
JP2000118105A (en) Printer and method for controlling it
JP2000321835A (en) Recorder
JPH10222320A (en) Printing controller, printing control method of the same and storage medium storing program reading possible by computer
JPH0816336A (en) Printer and state switching method for the same
JPH06210936A (en) Printing control device of printer
JPH11249971A (en) Data rewriting method for equipment having internal power supply and electronic equipment
JPH079706A (en) Printer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060207