JP2008140234A - Electronic device, control method therefor and program therefor - Google Patents
Electronic device, control method therefor and program therefor Download PDFInfo
- Publication number
- JP2008140234A JP2008140234A JP2006326907A JP2006326907A JP2008140234A JP 2008140234 A JP2008140234 A JP 2008140234A JP 2006326907 A JP2006326907 A JP 2006326907A JP 2006326907 A JP2006326907 A JP 2006326907A JP 2008140234 A JP2008140234 A JP 2008140234A
- Authority
- JP
- Japan
- Prior art keywords
- voltage
- power
- power supply
- predetermined
- capacitor
- 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
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Power Sources (AREA)
Abstract
Description
本発明は、電子機器、その制御方法及びそのプログラムに関する。 The present invention relates to an electronic device, a control method thereof, and a program thereof.
従来より、休止処理を行うコンピュータが知られている。例えば、特許文献1に記載のコンピュータは、停電時に用いられる簡易バックアップ電源及び補助電源を備え、停電が発生すると、簡易バックアップ電源からの電源供給によりプログラムの終了処理と主記憶部のデータを高速バッファに書き込む処理とを実行する一方、補助電源からの電源供給により高速バッファに書き込まれたデータを不揮発性記憶装置に書き込む処理を実行する。そして、プログラムの終了処理や高速バッファに書き込む処理が終了したときに簡易バックアップ電源からの電源供給を停止し、また、不揮発性記憶装置に書き込む処理が終了したときに、補助電源からの電源供給を停止する。なお、電源バックアップ時間及び消費電流が少なければ、簡易バックアップ電源や補助電源として大容量のコンデンサが使用されることもある。
ところで、このようなコンピュータにCD−Rドライブ等の電力消費装置を接続することが考えられる。 By the way, it is conceivable to connect a power consuming device such as a CD-R drive to such a computer.
しかしながら、簡易バックアップ電源として、例えば大容量のコンデンサを用いているとき、電力消費装置を接続しこの電力消費装置が停電時にコンデンサに蓄えられたエネルギを消費する場合には、コンデンサに蓄えられているエネルギのみでは不足する場合が生じる。この場合、主記憶部のデータを高速バッファに書き込む処理等を正常に実行することができないこととなる。また、接続される電力消費装置のために無停電電源装置のような十分な容量の電源装置やより大容量のコンデンサを使用するとなれば、装置の大型化やコストの上昇等を招くこととなる。 However, as a simple backup power source, for example, when a large-capacity capacitor is used, when a power consuming device is connected and the power consuming device consumes energy stored in the capacitor at the time of a power failure, it is stored in the capacitor In some cases, energy alone is insufficient. In this case, the process of writing the data in the main storage unit into the high-speed buffer cannot be executed normally. Further, if a power supply device having a sufficient capacity such as an uninterruptible power supply device or a capacitor with a larger capacity is used for the connected power consuming device, the size of the device and the cost increase will be caused. .
本発明は、上述した課題に鑑みなされたものであり、装置の大型化やコストの上昇を抑えつつ、自らに接続される電力消費装置が消費する電力にかかわらず、電源の異常が発生したときにはバックアップすべきデータを保存することが可能な電子機器、その制御方法及びそのプログラムを提供することを目的とする。 The present invention has been made in view of the above-described problems, and when a power supply abnormality occurs regardless of the power consumed by the power consuming device connected to itself while suppressing the increase in size and cost of the device. An object is to provide an electronic device capable of storing data to be backed up, a control method thereof, and a program thereof.
本発明の電子機器、その制御方法及びそのプログラムは、上述の目的の少なくとも一部を達成するために以下の手段を採った。 The electronic device, the control method thereof, and the program thereof of the present invention employ the following means in order to achieve at least a part of the above-described object.
本発明の電子機器は、
データを保存可能な不揮発性メモリと、
電源から直接又は間接的に所定の直流電圧を入力して第1の直流電圧に変換して出力する第1直流電圧生成手段と、
該第1直流電圧生成手段から出力された前記第1の直流電圧により駆動される制御手段と、
前記電源と前記第1直流電圧生成手段との間に接続され、前記所定の直流電圧が印加されることにより蓄電されるコンデンサと、
前記電源と前記第1直流電圧生成手段との間に前記コンデンサに対して並列に接続され、電力消費装置へ電力を供給可能な接続手段と、
前記電源と前記第1直流電圧生成手段との間から前記接続手段までの電気配線を接続・切断可能なスイッチング手段と、
を備え、
前記電源に異常が発生したときには、前記制御手段は、前記コンデンサに蓄えられた電気エネルギを前記第1直流電圧生成手段を介して使用して、前記電気配線が切断されるよう前記スイッチング手段を制御すると共にバックアップすべきデータを前記不揮発性メモリに記憶するものである。
The electronic device of the present invention is
Non-volatile memory that can store data,
First DC voltage generating means for inputting a predetermined DC voltage directly or indirectly from a power supply, converting it to a first DC voltage, and outputting the first DC voltage;
Control means driven by the first DC voltage output from the first DC voltage generating means;
A capacitor connected between the power source and the first DC voltage generating means and charged by applying the predetermined DC voltage;
Connecting means connected in parallel to the capacitor between the power source and the first DC voltage generating means, and capable of supplying power to a power consuming device;
Switching means capable of connecting / disconnecting electrical wiring between the power source and the first DC voltage generating means to the connecting means;
With
When an abnormality occurs in the power source, the control means uses the electric energy stored in the capacitor via the first DC voltage generating means to control the switching means so that the electric wiring is disconnected. In addition, data to be backed up is stored in the nonvolatile memory.
この電子機器では、電源に異常が発生したときには、制御手段は、コンデンサに蓄えられた電気エネルギを第1直流電圧生成手段を介して使用して、電気配線が切断されるようスイッチング手段を制御すると共にバックアップすべきデータを不揮発性メモリに記憶する。このように、電気配線が切断された後は接続手段に接続された電力消費装置が電力を消費することはない。このため、コンデンサは、バックアップすべきデータを不揮発性メモリに記憶することが可能な電気エネルギを蓄積していれば足りる。したがって、装置の大型化やコストの上昇を抑えつつ、自らに接続される電力消費装置が消費する電力にかかわらず、電源の異常が発生したときにはバックアップすべきデータを保存することができる。 In this electronic apparatus, when an abnormality occurs in the power supply, the control means uses the electrical energy stored in the capacitor via the first DC voltage generating means to control the switching means so that the electric wiring is disconnected. At the same time, data to be backed up is stored in a nonvolatile memory. Thus, after the electrical wiring is cut, the power consuming device connected to the connection means does not consume power. For this reason, the capacitor only needs to store electrical energy that can store data to be backed up in the nonvolatile memory. Therefore, it is possible to save data to be backed up when a power supply abnormality occurs regardless of the power consumed by the power consuming device connected to the device while suppressing the increase in size and cost of the device.
本発明の電子機器において、前記制御手段は、前記所定の直流電圧が所定の第1下限値を下回ったとき前記電源に異常が発生したとしてもよい。こうすれば、電源に異常が発生したことを確実に検出することができる。なお、所定の第1下限値は、例えば電源からの電力供給が継続しているときには取り得ない値に設定してもよい。 In the electronic apparatus of the present invention, the control means may be configured such that an abnormality has occurred in the power supply when the predetermined DC voltage falls below a predetermined first lower limit value. In this way, it is possible to reliably detect that an abnormality has occurred in the power supply. The predetermined first lower limit value may be set to a value that cannot be taken when the power supply from the power source is continued, for example.
本発明の電子機器は、前記電源と前記第1直流電圧生成手段との間に設けられ、前記電源から前記所定の直流電圧より低い第2の直流電圧を入力し前記所定の直流電圧に昇圧して前記第1直流電圧生成手段へ出力する所定電圧生成手段を備え、前記制御手段は、前記第2の直流電圧が所定の第2下限値を下回ったとき前記電源に異常が発生したとしてもよい。電源に異常が発生して第2の直流電圧が変化する場合、所定の直流電圧も変化するが、所定電圧生成手段の出力側には異常発生まで所定の直流電圧が印加され電荷を蓄えていたコンデンサが接続されているため、所定の直流電圧の変化の速度は第2の直流電圧の変化の速度よりも遅い。したがって、所定の直流電圧に基づいて電源の異常を検出する場合に比べて、電源に異常が発生したことを早く確実に検出することができる。なお、所定の第2下限値は、例えば電源からの電力供給が継続しているときには取り得ない値に設定してもよい。 The electronic device of the present invention is provided between the power source and the first DC voltage generating means, and receives a second DC voltage lower than the predetermined DC voltage from the power source and boosts the predetermined DC voltage to the predetermined DC voltage. Predetermined voltage generating means for outputting to the first DC voltage generating means, and the control means may have an abnormality in the power supply when the second DC voltage falls below a predetermined second lower limit value. . When an abnormality occurs in the power supply and the second DC voltage changes, the predetermined DC voltage also changes, but the predetermined DC voltage is applied to the output side of the predetermined voltage generating means until the abnormality occurs, and charges are stored. Since the capacitor is connected, the rate of change of the predetermined DC voltage is slower than the rate of change of the second DC voltage. Therefore, it is possible to quickly and surely detect that an abnormality has occurred in the power supply, as compared with the case where an abnormality in the power supply is detected based on a predetermined DC voltage. The predetermined second lower limit value may be set to a value that cannot be taken when the power supply from the power source is continued, for example.
本発明の電子機器において、前記スイッチング手段はトランジスタを用いたスイッチであるとしてもよい。こうすれば、機械的なリレーを用いる場合に比べて電源の異常発生時に早く電気配線を切断することができる。 In the electronic apparatus of the present invention, the switching means may be a switch using a transistor. In this way, the electrical wiring can be disconnected earlier when a power supply abnormality occurs than when a mechanical relay is used.
本発明の電子機器は、印刷を行う印刷手段を備え、前記印刷手段は、該印刷手段の電力ラインが前記スイッチング手段と前記電力消費装置との間に前記電力消費装置に対して並列に接続されている手段であるとしてもよい。こうすれば、電源の異常発生時において、スイッチング手段により電気配線を切断するときに併せて印刷手段への電力供給も停止することができる。 The electronic apparatus of the present invention includes a printing unit that performs printing, and the printing unit includes a power line of the printing unit that is connected in parallel to the power consuming device between the switching unit and the power consuming device. It may be a means. In this way, when an abnormality occurs in the power source, the power supply to the printing unit can be stopped when the electrical wiring is cut by the switching unit.
本発明の制御方法は、電源から直接又は間接的に印加される所定の直流電圧により蓄電されるコンデンサを備えた電子機器のコンピュータソフトウェアによる制御方法であって、
(a)電源に異常が発生したか否かを判定するステップと、
(b)前記ステップ(a)で、前記電源の異常が発生したと判定したときには、前記コンデンサに蓄えられている電気エネルギを前記所定の直流電圧より低い第1の直流電圧に変換された状態で使用しつつ、前記電子機器に接続された電力消費装置へ電力を供給する電気的な接続を切断すると共にバックアップすべきデータを不揮発的に記憶するステップと、
を含むものである。
The control method of the present invention is a control method by computer software of an electronic device including a capacitor that is charged by a predetermined DC voltage applied directly or indirectly from a power source,
(A) determining whether an abnormality has occurred in the power source;
(B) When it is determined in step (a) that an abnormality has occurred in the power source, the electrical energy stored in the capacitor is converted into a first DC voltage lower than the predetermined DC voltage. Disconnecting the electrical connection for supplying power to the power consuming device connected to the electronic device while using it and storing the data to be backed up in a nonvolatile manner;
Is included.
この電子機器の制御方法では、電源に異常が発生したか否かを判定し、電源の異常が発生したと判定したときには、コンデンサに蓄えられている電気エネルギを所定の直流電圧より低い第1の直流電圧に変換された状態で使用しつつ、電子機器に接続された電力消費装置へ電力を供給する電気的な接続を切断すると共にバックアップすべきデータを不揮発的に記憶する。このように、電気的な接続が切断された後は電子機器に接続された電力消費装置が電力を消費することはない。このため、コンデンサは、バックアップすべきデータを不揮発的に記憶することが可能な電気エネルギを蓄積していれば足りる。したがって、装置の大型化やコストの上昇を抑えつつ、電子機器に接続される電力消費装置が消費する電力にかかわらず、電源の異常が発生したときにはバックアップすべきデータを保存することができる。なお、上述した本発明の電子機器が備える各種の構成によって奏される作用・機能を実現するためのステップを追加してもよい。 In this electronic device control method, it is determined whether or not an abnormality has occurred in the power source. When it is determined that an abnormality in the power source has occurred, the electric energy stored in the capacitor is a first voltage lower than a predetermined DC voltage. While being used in the state of being converted into a DC voltage, the electrical connection for supplying power to the power consuming device connected to the electronic device is disconnected and the data to be backed up is stored in a nonvolatile manner. Thus, after the electrical connection is cut, the power consuming device connected to the electronic device does not consume power. For this reason, the capacitor only needs to store electrical energy that can store data to be backed up in a nonvolatile manner. Therefore, it is possible to save data to be backed up when a power supply abnormality occurs regardless of the power consumed by the power consuming device connected to the electronic device, while suppressing the increase in size and cost of the device. In addition, you may add the step for implement | achieving the effect | action and function show | played by the various structures with which the electronic device of this invention mentioned above is equipped.
本発明のプログラムは、上述した制御方法の各ステップを1又は複数のコンピュータに実行させるためのものである。このプログラムは、コンピュータが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピュータから別のコンピュータへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピュータに実行させるか複数のコンピュータに分散して実行させれば、上述した制御方法の各ステップが実行されるため、上述した制御方法と同様の作用効果が得られる。 The program of the present invention is for causing one or more computers to execute each step of the control method described above. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.), or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by one computer or distributed to a plurality of computers, each step of the above-described control method is executed, so that the same effect as that of the above-described control method can be obtained.
次に、本発明の実施の形態を図面に基づいて説明する。図1は、本発明の電子機器の一実施形態であるプリンタ10の構成の概略を示す構成図である。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing an outline of a configuration of a
本実施形態のプリンタ10は、図1に示すように、商用交流電源13に接続される電源ユニット12とプリント機構50を内蔵するプリンタ本体18とを備えている。
As shown in FIG. 1, the
電源ユニット12は、商用交流電源13からの交流電圧をAC/DCコンバータ14により20Vの直流電圧に変換し、更にDC/DCコンバータ15により42Vの直流電圧へと昇圧し、その42Vの直流電圧を電源供給線16を介してプリンタ本体18に供給するものである。この電源ユニット12の内部には、電圧波形の余計な振動を除去して滑らかな波形にするためのコンデンサ17が電源供給線16に接続されている。このコンデンサ17は、商用交流電源13から電力が供給されているときは電源供給線16に印加される電圧により蓄電される。そして、例えば商用交流電源13からの電力供給が停止したときはこのコンデンサ17に蓄えられている電気エネルギが電源供給線16を介してプリンタ本体18へ供給されることによりコンデンサ17は放電し、その両極間の電圧は時間と共に低下する。このコンデンサ17の容量は、後述するメインコントローラ20がEEPROM36,58にバックアップすべきデータを書き込むのに要する時間やその時の消費電流を考慮して決定されている。ここでは、例えば、300msの間メインコントローラ20やEEPROM36,58が動作可能な程度の容量に決定されている。なお、商用交流電源13の交流電圧は100Vや200Vである。
The
プリンタ本体18は、電源供給線16を介して42Vの直流電圧が供給されて駆動するプリント機構50と、5Vの直流電圧が供給されて駆動する内蔵CD/DVDドライブ装置32へ42Vの直流電圧を5Vの直流電圧へ変換して供給するDC/DCコンバータ33と、電源供給線16の分岐点Aから分岐しDC/DCコンバータ33及びプリント機構50へ直流電圧を送電する電気配線34と、この電気配線34を接続・切断可能なスイッチ35と、不揮発性メモリであるEEPROM36,58へのデータ書き込みやスイッチ35のオン・オフ等を3.3Vの直流電圧が供給されて行うメインコントローラ20と、このメインコントローラ20やEEPROM36,58等へ42Vの直流電圧を3.3Vの直流電圧へ変換して供給するDC/DCコンバータ37とを備えている。
The printer
プリント機構50は、プリンタ本体18の内部に配置され、左右方向にループ状に架け渡されたタイミングベルト51により駆動されガイド52に沿って左右に往復動するキャリッジ53と、このキャリッジ53に搭載されシアン・マゼンタ・イエロー・ブラック等の各色のインクを個別に収容したインクカートリッジ54と、各インクカートリッジ54から供給された各インクに圧力をかけてノズルから用紙Pに向かってインクを吐出する印刷ヘッド55と、給紙された用紙Pを手前側の排紙トレイ(図示せず)へ送り出す搬送ローラ56とを備えている。印刷ヘッド55は、ここでは圧電素子に電圧をかけることによりこの圧電素子を変形させてインクを加圧する方式を採用しているが、発熱抵抗体(例えばヒータなど)に電圧をかけインクを加熱して発生した気泡によりインクを加圧する方式を採用してもよい。このプリント機構50のうち、搬送ローラ56を回転させるモータやタイミングベルト51を回転させるモータ、印刷ヘッド55を駆動する駆動回路などには、電気配線34からの42Vの直流電圧が供給される。
The
DC/DCコンバータ33は、電気配線34から42Vの直流電圧を入力し5Vの直流電圧に降圧して内蔵CD/DVDドライブ装置32へ出力する。内蔵CD/DVDドライブ装置32は、この内蔵CD/DVDドライブ装置に挿入された例えばCD−RやDVD−R等の書き込み可能な媒体へデータを書き込むことが可能なものである。この内蔵CD/DVDドライブ装置32は、例えばプリンタ10に搭載された図示しないメモリカードリーダライタに挿入したメモリカードに保存されているファイルを、内蔵CD/DVDドライブ装置32に挿入されたCD−RやDVD−R等の記録媒体にバックアップするときなどに利用される。
The DC /
スイッチ35は、電気配線34の配線上に設けられ、そのオン・オフがメインコントローラ20によって制御されている。このスイッチ35は、例えばFETを使用したものであり、そのゲート電極にメインコントローラからの制御信号の電圧が印加されるとスイッチがオフとなって電流が流れず、DC/DCコンバータ33やプリント機構50への直流電圧の供給が停止される。なお、スイッチ35は、機械的なリレーを用いる時よりも早くオフにすることができ、その時間はおおよそ40μsから50μs程度である。
The switch 35 is provided on the wiring of the
DC/DCコンバータ37は、電源供給線16の分岐点Aで分岐した電気配線から42Vの直流電圧を入力し3.3Vの直流電圧に降圧してメインコントローラ20やEEPROM36,58へ出力するものである。EEPROM36は、プリンタ本体18の内部に搭載された不揮発性メモリであり、また、EEPROM58は、プリンタ機構50のインクカートリッジ54のICチップ57に搭載された不揮発性メモリであり、それぞれバックアップすべきデータが書き込まれる。
The DC /
メインコントローラ20は、CPU22を中心とするマイクロプロセッサとして構成されており、各種処理プログラムや各種データなどを記憶したROM24と、一時的にデータを記憶するRAM26と、電源供給線16の電圧低下時に停電発生信号を出力する電源異常検出センサ28とを備えている。この電源異常検出センサ28は、電源供給線16の直流電圧を図示しないA/D変換回路を介して入力し所定の下限電圧Vrefと比較する。そして、電源供給線16の直流電圧が下限電圧Vrefを下回ったのをトリガとして割込信号(NMI(Non Maskable Interrupt))である停電発生信号を出力する。メインコントローラ20は、プリンタ本体18に搭載されたEEPROM36にバックアップすべきデータを書き込んだり、インクカートリッジ54のICチップ57に搭載されたEEPROM58にそのデータの一部であるインク残量を書き込んだり、スイッチ35を制御して電気配線34を接続・切断したりする。なお、このメインコントローラ20は、CPU22等を1つのチップに混載することによりSOC(システム・オン・ア・チップ)としてもよい。また、下限電圧Vrefは、電源ユニット12が正常なときには取り得ない値に設定してもよく、例えば37Vや38Vとしてもよい。
The
次に、こうして構成された本実施形態のプリンタ10の動作について説明する。
Next, the operation of the
図2は、プリンタ10のCPU22により実行される電源管理処理ルーチンの一例を示すフローチャートである。このルーチンは、プリンタ10のROM24に記憶されている。また、このルーチンは、プリンタ10の電源が投入された時に実行される。このルーチンが実行されると、プリンタ10のCPU22は、まず、電源異常検出センサ28から停電発生信号が出力されたか否かを判定する(ステップS100)。停電発生信号が出力されていないときは、商用交流電源13から電力が正常に供給されているため、再びステップS100の処理を実行する。
FIG. 2 is a flowchart illustrating an example of a power management process routine executed by the
一方、ステップS100で停電発生信号が出力されたと判定されたときは、電気配線34が切断されるようスイッチ35を制御し(ステップS110)、バックアップすべきデータをRAM26から読み出してEEPROM36,58に書き込む(ステップS120)。RAM26からEEPROM36,58へのデータ転送は、例えば、バースト転送などのデータ転送に時間のかからない方法によって行うものとする。その後、本ルーチンを終了する。実際は、割込信号NMIとは、トリガがかかると必ず発生する割込信号なので、停電を検出した直後にCPU22は、ステップS100で肯定判定しステップS110の処理を実行する。ここで、電気配線34が切断されるようスイッチ35を制御するのは、電気配線34が接続されたままだと、コンデンサ17に蓄えられた電気エネルギがDC/DCコンバータ33を介して内蔵CD/DVDドライブ装置32によって消費されてしまうからである。このように電気配線34を切断することで、コンデンサ17に蓄えられた電気エネルギは、DC/DCコンバータ37を介してメインコントローラ20及びEEPROM36,58によってのみ消費されることとなり、バックアップすべきデータをEEPROM36,58に書き込むのに必要な電気エネルギーが不足するという事態を回避することができる。ここで、バックアップすべきデータとは、RAM26に一時的に記憶されているためにメインコントローラ20への電力供給が停止すると失われてしまうデータをいう。また、EEPROM36に書き込まれるデータとしては、例えば、プリント機構50の各部における発熱状況、プリンタ10の通電時間、プリント機構50のメカの固有情報、印刷ヘッド55の固有情報、エラーコードなどが挙げられ、EEPROM58に書き込まれるデータとしては、インクカートリッジ54のインク残量などが挙げられる。なお、CPU22は、図2に示す電源管理処理ルーチンを実行しステップS100の処理を繰り返し実行しているときであっても、印刷を実行する処理など他の処理を実行することが可能である。
On the other hand, when it is determined in step S100 that a power failure occurrence signal has been output, the switch 35 is controlled so that the
図2の電源管理処理ルーチの実行中に、商用交流電源13からの電力供給が停止した場合について図3を用いて説明する。図3は、電源供給線16の直流電圧の時間変化の一例を表すグラフである。商用交流電源13からの電力供給が停止つまり停電が発生すると、コンデンサ17に蓄えられた電気エネルギがプリンタ本体18で消費されることにより、電源供給線16の直流電圧がコンデンサ17の放電に伴って減少する。そして、所定の下限電圧Vrefを下回ったときに停電の発生が電源異常検出センサ28によって検出される。すると、割込み信号である停電発生信号が電源異常検出センサ28から出力され、CPU22は、電気配線34が切断されるようスイッチ35を制御する。こうすると、プリント機構50や内蔵CD/DVDドライブ装置32などで電力を消費されなくなるため、電源供給線16の直流電圧の減少の時定数が変わり(図3の点B参照)、電源供給線16の直流電圧がより緩やかに減少するようになる。そのため、メインコントローラ20等の動作可能な時間が延びる。そして、CPU22は、この間に保存すべきデータをバックアップする。
A case where the power supply from the commercial
ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のEEPROM36,58が本発明の不揮発性メモリに相当し、DC/DCコンバータ37が第1直流電圧生成手段に相当し、メインコントローラ20が制御手段に相当し、コンデンサ17がコンデンサに相当し、電気配線34が接続手段に相当し、スイッチ35がスイッチング手段に相当する。また、DC/DCコンバータ15が所定直流電圧生成手段に相当し、プリント機構50が印刷手段に相当する。更に、商用交流電源13が電源に相当し、42Vの直流電圧が所定電圧に相当し、3.3Vの直流電圧が第1の直流電圧に相当し、20Vの直流電圧が第2の直流電圧に相当する。なお、本実施形態では、プリンタ10の動作を説明することにより本発明の電子機器の制御方法の一例も明らかにしている。
Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The
以上詳述した本実施形態のプリンタ10によれば、商用交流電源13からの電力の供給が停止して電源異常検出センサ28から停電発生信号が出力されたときには、メインコントローラ20は、コンデンサ17に蓄えられた電気エネルギをDC/DCコンバータ37を介して使用して、電気配線34が切断されるようスイッチ35を制御すると共にバックアップすべきデータをEEPROM36,58に保存する。このように、電気配線34が切断された後は電気配線34を介して接続された内蔵CD/DVDドライブ装置32やプリント機構50が電力を消費することはない。このため、コンデンサ17は、バックアップすべきデータをEEPROM36,58に保存することが可能な電気エネルギを蓄積していれば足りる。したがって、プリンタ10の大型化やコストの上昇を抑えつつ、プリンタ10に接続される内蔵CD/DVDドライブ装置32やプリント機構50が消費する電力にかかわらず、商用交流電源13の異常が発生したときにはバックアップすべきデータをEEPROM36,58に保存することができる。
According to the
また、メインコントローラ20は、電源供給線16の直流電圧が所定の下限値を下回ったとき商用交流電源13からの電力供給が停止したと判定するため、商用交流電源13に異常が発生したことを確実に検出することができる。更に、スイッチ35は、FETを用いたスイッチであるため、機械的なリレーを用いる場合に比べて商用交流電源13の異常発生時に早く電気配線34を切断することができる。
Further, since the
なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。 It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.
例えば、上述した実施形態では、メインコントローラ20は、電源供給線16の直流電圧が所定の下限値を下回ったとき電力供給が停止したと判定するものとしたが、それに代えて又は加えてDC/DCコンバータ15の入力側の直流電圧が所定の閾値を下回ったとき電力供給が停止したと判定するものとしてもよい。商用交流電源13の電力供給が停止してDC/DCコンバータ15の入力側の電圧が低下する場合、電源供給線16の電圧も低下するが、DC/DCコンバータ15の出力側には電力供給停止まで直流電圧が印加され電荷を蓄えていたコンデンサ17が接続されているため、電源供給線16の直流電圧の低下の速度はDC/DCコンバータ15の入力側の直流電圧の低下の速度よりも遅い。したがって、電源供給線16の電圧に基づいて商用交流電源13の電力供給停止を検出する場合に比べて、商用交流電源13の電力供給が停止したことを早く確実に検出することができる。なお、所定の閾値は、例えば商用交流電源13からの電力供給が継続しているときには取り得ない値(例えば17Vや18Vなど)に設定してもよい。ここで、所定の閾値は本発明の第2下限値に相当する。
For example, in the above-described embodiment, the
上述した実施形態では、スイッチ35の下流に内蔵CD/DVDドライブ装置32やプリンタ機構50が接続されているものとしたが、それらに加えて又はそれらの代わりにそれら以外の機器が接続されているものとしてもよい。例えば、電気配線34のうちスイッチ35とDC/DCコンバータ33との間から分岐された電気配線から適切なDC/DCコンバータにより降圧された直流電圧を用いて接続されるUSB機器が電力を消費するものとしてもよい。こうした場合でも、メインコントローラ20により電気配線34の電気的な接続が切断されたときには、このUSB機器が電力を消費しないため、このUSB機器が消費する電力にかかわらず、メインコントローラ20はバックアップすべきデータをEEPROM36,58に書き込むことができる。この場合USB機器を接続するUSBポートやUSBコントローラ等を備えることとなる。
In the above-described embodiment, the built-in CD /
上述した実施形態では、商用交流電源13から電力が供給されるものとしたが、電力を供給するものは商用交流電源13に限られない。例えば、20Vの直流電圧を出力可能な1又は複数のバッテリであってもよい。この場合、AC/DCコンバータ14は必要がない。
In the above-described embodiment, power is supplied from the commercial
上述した実施形態では、FETを用いたスイッチを用いるものとしたが、電気配線34を接続・切断可能なものであれば、如何なるものを用いてもよい。例えば、FET以外のトランジスタを用いてもよい。
In the above-described embodiment, the switch using the FET is used. However, any switch may be used as long as the
上述した実施形態では、インクジェット方式を採用し着色剤としてインクを利用するフルカラーのプリンタ10としたが、電子写真方式を採用し着色剤としてトナーを利用しトナーカートリッジに備えた記憶素子にデータを書き込むカラーレーザプリンタや、熱転写方式を採用し着色剤としてインクリボンを利用し同様に記憶素子を備えたカラープリンタとしてもよい。また、FAX機やコピー機などの印刷装置としてもよい。
In the above-described embodiment, the full-
10 マルチファンクションプリンタ、12 電源ユニット、13 商用交流電源、14 AC/DCコンバータ、15 DC/DCコンバータ、16 電源供給線、17 コンデンサ、18 プリンタ本体、20 メインコントローラ、22 CPU、24 ROM、26 RAM、28 電源異常検出センサ、32 内蔵CD/DVDドライブ装置、33 DC/DCコンバータ、34 電気配線、35 スイッチ、36 EEPROM、37 DC/DCコンバータ、50 プリント機構、51 タイミングベルト、52 ガイド、53 キャリッジ、54 インクカートリッジ、55 印刷ヘッド、56 搬送ローラ、57 ICチップ、58 EEPROM、P 用紙。
10 Multifunction Printer, 12 Power Supply Unit, 13 Commercial AC Power Supply, 14 AC / DC Converter, 15 DC / DC Converter, 16 Power Supply Line, 17 Capacitor, 18 Printer Main Body, 20 Main Controller, 22 CPU, 24 ROM, 26
Claims (7)
電源から直接又は間接的に所定の直流電圧を入力して第1の直流電圧に変換して出力する第1直流電圧生成手段と、
該第1直流電圧生成手段から出力された前記第1の直流電圧により駆動される制御手段と、
前記電源と前記第1直流電圧生成手段との間に接続され、前記所定の直流電圧が印加されることにより蓄電されるコンデンサと、
前記電源と前記第1直流電圧生成手段との間に前記コンデンサに対して並列に接続され、電力消費装置へ電力を供給可能な接続手段と、
前記電源と前記第1直流電圧生成手段との間から前記接続手段までの電気配線を接続・切断可能なスイッチング手段と、
を備え、
前記電源に異常が発生したときには、前記制御手段は、前記コンデンサに蓄えられた電気エネルギを前記第1直流電圧生成手段を介して使用して、前記電気配線が切断されるよう前記スイッチング手段を制御すると共にバックアップすべきデータを前記不揮発性メモリに記憶する、
電子機器。 Non-volatile memory that can store data,
First DC voltage generating means for inputting a predetermined DC voltage directly or indirectly from a power supply, converting it to a first DC voltage, and outputting the first DC voltage;
Control means driven by the first DC voltage output from the first DC voltage generating means;
A capacitor connected between the power source and the first DC voltage generating means and charged by applying the predetermined DC voltage;
Connecting means connected in parallel to the capacitor between the power source and the first DC voltage generating means, and capable of supplying power to a power consuming device;
Switching means capable of connecting / disconnecting electrical wiring between the power source and the first DC voltage generating means to the connecting means;
With
When an abnormality occurs in the power source, the control means uses the electric energy stored in the capacitor via the first DC voltage generating means to control the switching means so that the electric wiring is disconnected. And storing data to be backed up in the nonvolatile memory,
Electronics.
請求項1に記載の電子機器。 When the predetermined DC voltage falls below a predetermined first lower limit value, the control means has an abnormality in the power supply.
The electronic device according to claim 1.
前記電源と前記第1直流電圧生成手段との間に設けられ、前記電源から前記所定の直流電圧より低い第2の直流電圧を入力し前記所定の直流電圧に昇圧して前記第1直流電圧生成手段へ出力する所定電圧生成手段を備え、
前記制御手段は、前記第2の直流電圧が所定の第2下限値を下回ったとき前記電源に異常が発生したとする、
電子機器。 The electronic device according to claim 1,
Provided between the power supply and the first DC voltage generation means, and inputs a second DC voltage lower than the predetermined DC voltage from the power supply and boosts the DC voltage to the predetermined DC voltage to generate the first DC voltage A predetermined voltage generating means for outputting to the means,
The control means has an abnormality in the power supply when the second DC voltage falls below a predetermined second lower limit value.
Electronics.
請求項1〜3のいずれかに記載の電子機器。 The switching means is a switch using a transistor,
The electronic device in any one of Claims 1-3.
印刷を行う印刷手段を備え、
前記印刷手段は、該印刷手段の電力ラインが前記スイッチング手段と前記電力消費装置との間に前記電力消費装置に対して並列に接続されている手段である、
電子機器。 The electronic device according to claim 1,
Printing means for performing printing,
The printing unit is a unit in which a power line of the printing unit is connected in parallel to the power consuming device between the switching unit and the power consuming device.
Electronics.
(a)電源に異常が発生したか否かを判定するステップと、
(b)前記ステップ(a)で、前記電源の異常が発生したと判定したときには、前記コンデンサに蓄えられている電気エネルギを前記所定の直流電圧より低い第1の直流電圧に変換された状態で使用しつつ、前記電子機器に接続された電力消費装置へ電力を供給する電気的な接続を切断すると共にバックアップすべきデータを不揮発的に記憶するステップと、
を含む制御方法。 A control method by computer software of an electronic device including a capacitor that is charged by a predetermined DC voltage applied directly or indirectly from a power source,
(A) determining whether an abnormality has occurred in the power source;
(B) When it is determined in step (a) that an abnormality has occurred in the power source, the electrical energy stored in the capacitor is converted into a first DC voltage lower than the predetermined DC voltage. Disconnecting the electrical connection for supplying power to the power consuming device connected to the electronic device while using it and storing the data to be backed up in a nonvolatile manner;
Control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006326907A JP2008140234A (en) | 2006-12-04 | 2006-12-04 | Electronic device, control method therefor and program therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006326907A JP2008140234A (en) | 2006-12-04 | 2006-12-04 | Electronic device, control method therefor and program therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008140234A true JP2008140234A (en) | 2008-06-19 |
Family
ID=39601600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006326907A Pending JP2008140234A (en) | 2006-12-04 | 2006-12-04 | Electronic device, control method therefor and program therefor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008140234A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017126130A1 (en) * | 2016-01-22 | 2017-07-27 | 株式会社日立製作所 | Computer device and computer-readable storage medium |
CN109367249A (en) * | 2018-09-18 | 2019-02-22 | 深圳市思乐数据技术有限公司 | Lottery ticket printing terminal |
-
2006
- 2006-12-04 JP JP2006326907A patent/JP2008140234A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017126130A1 (en) * | 2016-01-22 | 2017-07-27 | 株式会社日立製作所 | Computer device and computer-readable storage medium |
US10514740B2 (en) | 2016-01-22 | 2019-12-24 | Hitachi, Ltd. | Computer device and computer-readable storage medium |
CN109367249A (en) * | 2018-09-18 | 2019-02-22 | 深圳市思乐数据技术有限公司 | Lottery ticket printing terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2006025575A1 (en) | Printer | |
US9186889B2 (en) | Image forming apparatus | |
US20150195417A1 (en) | Information processing apparatus and control method | |
JP3652274B2 (en) | Ink jet recording apparatus and recording apparatus control method | |
US7557463B2 (en) | Image forming apparatus having power supply apparatus | |
US7052105B2 (en) | Battery residual capacity detection method and printing apparatus using the method | |
US6412900B2 (en) | Recording apparatus having a charging function, and charging method | |
JP2008140234A (en) | Electronic device, control method therefor and program therefor | |
JP4612867B2 (en) | Power supply circuit, motor driver circuit, electronic device, and recording apparatus | |
CN112824105B (en) | Data processing method of consumable chip, consumable and imaging equipment | |
JP2008046857A (en) | Information processor, information processing method, and its program | |
JP4835323B2 (en) | Information processing apparatus, printing apparatus, information processing method, and program | |
JP2009213042A (en) | Image processing apparatus, method of controlling the same, and its program | |
US8664799B2 (en) | Apparatus including power supply circuit | |
JP2004358963A (en) | Power management controlling method and recording apparatus | |
JP2005250739A (en) | Electronic device | |
JP2008140233A (en) | Electronic equipment | |
JP6070129B2 (en) | Printer and printer control method | |
JP2006018466A (en) | Electronic apparatus and power supply control method therefor | |
JP4759869B2 (en) | Printing apparatus, voltage management apparatus, and voltage management method | |
JP4018514B2 (en) | Recording apparatus, power supply control method, storage medium storing computer-readable program, and program | |
JP2006352978A (en) | Motor driver circuit, control method of circuit, electronic apparatus, and motor lock detection method of electronic apparatus | |
JP2005074945A (en) | Recording device and method | |
JP2006184715A (en) | Image forming apparatus | |
US20190047303A1 (en) | Printer apparatus and printing method |