JP2008090592A - Electronic device - Google Patents

Electronic device Download PDF

Info

Publication number
JP2008090592A
JP2008090592A JP2006270657A JP2006270657A JP2008090592A JP 2008090592 A JP2008090592 A JP 2008090592A JP 2006270657 A JP2006270657 A JP 2006270657A JP 2006270657 A JP2006270657 A JP 2006270657A JP 2008090592 A JP2008090592 A JP 2008090592A
Authority
JP
Japan
Prior art keywords
cpu
reset
power supply
control unit
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006270657A
Other languages
Japanese (ja)
Inventor
Keita Sonoda
啓太 園田
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 JP2006270657A priority Critical patent/JP2008090592A/en
Publication of JP2008090592A publication Critical patent/JP2008090592A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve a problem that a state of the power control means just before a reset operation by a control means cannot be maintained after the reset operation and that a user is required to turn on power again at every time of the reset operation. <P>SOLUTION: An electronic device comprises a retention means, driven by a second power supply different from a first power supply upon a reset operation by the control means, for retaining the state of the power control means just before the reset operation by the control means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、電子機器に関し、特にリセット動作の可能なCPUを有する電子機器に関するものである。   The present invention relates to an electronic device, and more particularly to an electronic device having a CPU that can be reset.

図9を用いて、従来例に係るデジタルカメラの構成について説明する。1はデジタルカメラ全体を制御するCPUである。2はCPU1が動作するためのプログラムが記録されているROMである。3は撮影した画像データを一時記憶しておいたり、CPU1の動作に必要なデータを一時記憶しておく作業用メモリのRAMである。4は電源制御部であり、電源5の電圧からデジタルカメラの各部に必要な電圧を夫々生成し、各部に電力を供給している。   The configuration of the digital camera according to the conventional example will be described with reference to FIG. Reference numeral 1 denotes a CPU that controls the entire digital camera. Reference numeral 2 denotes a ROM in which a program for operating the CPU 1 is recorded. Reference numeral 3 denotes a working memory RAM that temporarily stores captured image data or temporarily stores data necessary for the operation of the CPU 1. Reference numeral 4 denotes a power supply control unit, which generates necessary voltages for each part of the digital camera from the voltage of the power supply 5 and supplies power to each part.

6はパワースイッチであり、電源制御部4とCPU1に接続されている。7はパワースイッチ6からの出力信号とCPU1からの出力信号を受け、これら2入力信号の論理和を電源制御部4に出力し、電源制御部4の起動、動作停止を制御する論理回路部である。パワースイッチ6はユーザーから押下されることによりクローズ状態となる。そして、パワースイッチ6の出力信号がCPU1へ入力されるとともに、論理回路部7を介して電源制御部4へ入力されて、電源制御部4が起動する。   A power switch 6 is connected to the power supply control unit 4 and the CPU 1. A logic circuit unit 7 receives an output signal from the power switch 6 and an output signal from the CPU 1, outputs a logical sum of these two input signals to the power supply control unit 4, and controls activation and operation stop of the power supply control unit 4. is there. The power switch 6 is closed when pressed by the user. Then, an output signal of the power switch 6 is input to the CPU 1 and also input to the power supply control unit 4 via the logic circuit unit 7, and the power supply control unit 4 is activated.

さらに、CPU1がパワースイッチ6からの1度目の出力信号を認識し、論理回路7を介して電源制御部4へ制御信号を出力して、電源制御部4の動作状態を保持する。   Further, the CPU 1 recognizes the first output signal from the power switch 6, outputs a control signal to the power supply control unit 4 via the logic circuit 7, and holds the operation state of the power supply control unit 4.

また、パワースイッチ6が再度押下されて、出力信号がCPU1へ入力されると、CPU1がパワースイッチ6からの2度目の出力信号を認識する。2度目の出力信号を認識すると、論理回路7を介した電源制御部4へ制御信号の出力を停止し、電源制御部4の動作を停止して、デジタルカメラの電源をOFFする。   When the power switch 6 is pressed again and an output signal is input to the CPU 1, the CPU 1 recognizes the second output signal from the power switch 6. When the second output signal is recognized, the control signal output to the power control unit 4 via the logic circuit 7 is stopped, the operation of the power control unit 4 is stopped, and the power of the digital camera is turned off.

8はCPU1をリセットするリセットICである。CPU1には、レンズ駆動部、防振制御部(IS)、撮像素子やタイミングジェネレータからなる撮像部、LCD等からなる画像表示部、マイクやスピーカー等からなる音声制御部、記録メディア等の周辺デバイス9が接続されている。これらのレンズ駆動部〜記録メディア等の周辺デバイスは、CPU1により制御され目的の処理を行うように構成されており、夫々の状態をCPUが検知できるように通信手段によって接続されている。   Reference numeral 8 denotes a reset IC for resetting the CPU 1. The CPU 1 includes a lens driving unit, an image stabilization control unit (IS), an imaging unit including an imaging device and a timing generator, an image display unit including an LCD, an audio control unit including a microphone and a speaker, and peripheral devices such as a recording medium. 9 is connected. The peripheral devices such as the lens driving unit to the recording medium are configured to be controlled by the CPU 1 and perform a target process, and are connected by communication means so that the CPU can detect each state.

また、CPUが継続して処理できないようなエラーの発生を検出して、検出したエラーの種類に応じてシステム全体あるいはCPU以外の個々の素子のうち必要なものを個別にリセットすることが知られている。(特許文献1参照)
さらに、システム動作中においてリセット動作が必要となる場合に、制御手段内に設けられたリセット信号出力手段からリセット信号が出力され、システムのリセット動作が行われることも知られている。(特許文献2参照)
特開平6−230993号公報 特開平9−44201号公報
It is also known to detect the occurrence of an error that cannot be processed continuously by the CPU, and individually reset necessary elements of the entire system or individual elements other than the CPU according to the type of detected error. ing. (See Patent Document 1)
Further, it is also known that when a reset operation is required during system operation, a reset signal is output from reset signal output means provided in the control means, and the system reset operation is performed. (See Patent Document 2)
JP-A-6-230993 JP-A-9-44201

図9の従来例において、周辺デバイス9からCPU1に通信が返ってこない、もしくは異常な値を返してくる場合に、CPU1が周辺デバイスのエラーを検知する。CPU1が周辺デバイスのエラーを検知すると、CPU1は強制的にアクセスを終了させて、所定のエラー処理を行い、画像表示部を介してエラー表示を行った後で、内部リセット動作を行う。この場合、従来例のような構成においては、CPU1が内部リセット動作を行うと、電源制御部4の動作状態を保持できなくなってしまい、デジタルカメラとしての電源がOFF状態となってしまう。したがって、再度ユーザーが操作系6を押下することによりデジタルカメラの電源を再度入れなおす必要があった。これよって、例えば、静電気印加などのCPU内部リセットのみで修復できる簡易エラーが発生した場合でも、ユーザがデジタルカメラの電源を入れなおさなければいけないという問題があった。   In the conventional example of FIG. 9, when communication is not returned from the peripheral device 9 to the CPU 1 or an abnormal value is returned, the CPU 1 detects an error in the peripheral device. When the CPU 1 detects an error in the peripheral device, the CPU 1 forcibly terminates the access, performs predetermined error processing, displays an error via the image display unit, and then performs an internal reset operation. In this case, in the configuration as in the conventional example, when the CPU 1 performs an internal reset operation, the operation state of the power supply control unit 4 cannot be maintained, and the power supply as the digital camera is turned off. Therefore, it is necessary to turn the digital camera on again by pressing the operation system 6 again. Therefore, for example, even when a simple error that can be repaired only by resetting the CPU, such as application of static electricity, has occurred, the user has to turn the digital camera on again.

本発明はこのような問題点を解決するためのもので、CPUが周辺デバイスのエラーを検知した場合でも、CPUのリセット動作で修復するエラーであれば、ユーザーが電源を入れ直す必要のない電子機器を提供することを目的とする。   The present invention is intended to solve such a problem, and even when the CPU detects an error of a peripheral device, if the error is repaired by the reset operation of the CPU, the electronic device does not require the user to turn on the power again. The purpose is to provide.

上記目的を達成するために、本発明は第1の電源と、前記第1の電源とは異なる第2の電源と、前記第1の電源を制御する電源制御手段と、前記電源制御手段を制御する制御手段と、前記制御手段がリセット動作を行ったときに、前記第2の電源により駆動され、前記制御手段のリセット動作の直前の前記電源制御手段の状態を保持する保持手段とを有することを特徴とする。   In order to achieve the above object, the present invention controls a first power source, a second power source different from the first power source, a power source control unit for controlling the first power source, and the power source control unit. And a holding unit that is driven by the second power source and holds the state of the power control unit immediately before the reset operation of the control unit when the control unit performs a reset operation. It is characterized by.

制御手段がリセット動作を行ったとしても、リセット動作の直前の前記電源制御手段の状態を保持することができるので、リセット動作のたびに電源を入れなおす必要のない電子機器を提供することができる。   Even if the control means performs a reset operation, the state of the power supply control means immediately before the reset operation can be maintained, so that it is possible to provide an electronic device that does not need to be turned on again at every reset operation. .

以下、図面を参照して本発明の実施の形態を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は本発明におけるデジタルカメラの構成を示す。   FIG. 1 shows the configuration of a digital camera according to the present invention.

CPU1はデジタルカメラ全体の制御を司る中央処理装置である。CPU1は各部への電源の制御動作、操作部6における操作キーの入力の検出動作、および操作キーの入力に基づくデジタルカメラ各部の動作を制御する。   The CPU 1 is a central processing unit that controls the entire digital camera. The CPU 1 controls the control operation of the power supply to each unit, the detection operation of the input of the operation key in the operation unit 6, and the operation of each unit of the digital camera based on the input of the operation key.

2はCPU1が動作するためのプログラムが記録されているROMである。3は撮影した画像データを一時記憶しておいたり、CPU1の動作に必要なデータを一時記憶しておく作業用メモリのRAMである。   Reference numeral 2 denotes a ROM in which a program for operating the CPU 1 is recorded. Reference numeral 3 denotes a working memory RAM that temporarily stores captured image data or temporarily stores data necessary for the operation of the CPU 1.

4は電源制御部であり、電源5に接続され、電源検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等から構成されている。電源制御部4は、CPU1の制御に基づいて、電源5の電圧からデジタルカメラの各部に必要な電圧を夫々生成し、必要な期間だけ各部に電力を供給している。   A power control unit 4 is connected to the power source 5 and includes a power detection circuit, a DC-DC converter, a switch circuit that switches blocks to be energized, and the like. Based on the control of the CPU 1, the power supply control unit 4 generates necessary voltages for each unit of the digital camera from the voltage of the power supply 5, and supplies power to each unit for a necessary period.

6はパワースイッチからなる操作系で電源制御部4とCPU1に接続されている。パワースイッチ6のオン・オフによりカメラの電源のオン・オフを切り替える。   Reference numeral 6 denotes an operation system including a power switch, which is connected to the power control unit 4 and the CPU 1. The power of the camera is turned on / off by turning on / off the power switch 6.

10は補助電源であり、コイン電池等で構成されており、メイン電源5からの電源供給がない時に常時電源を供給しなくてはならないリセット補助ブロックに電源を供給する。補助電源10が2次電池である場合は、メイン電源5からの電源が供給されているときに補助電源10に充電する場合もある。   Reference numeral 10 denotes an auxiliary power source, which is composed of a coin battery or the like, and supplies power to a reset auxiliary block that must be constantly supplied when no power is supplied from the main power source 5. When the auxiliary power source 10 is a secondary battery, the auxiliary power source 10 may be charged when the power from the main power source 5 is supplied.

メイン電源5は、アルカリ電池やリチウム電池等の1次電池、NiCd電池やNiMH電池やLi電池等の2次電池、ACアダプタ等から構成される。   The main power source 5 includes a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like.

リセット補助ブロック8は、メイン電源5と補助電源10に接続されているので、カメラ本体が電源オフ状態でも常に補助電源10から電源が供給されるよう構成されている。   Since the reset auxiliary block 8 is connected to the main power supply 5 and the auxiliary power supply 10, power is always supplied from the auxiliary power supply 10 even when the camera body is turned off.

リセット補助ブロック8は、CPU1とSPIの信号ラインで通信接続されている。また、リセット補助ブロック8は、汎用ポートの出力(ResetDET)がCPU1に接続されるとともに、論理回路部7を介して電源制御部4に接続されている。上記構成によりCPU1からの通信により電源制御部4の起動、停止を制御する。なお、リセット補助ブロック8は、カメラ電源オフ状態でも補助電源10から電源が供給されているので、電源制御用の汎用ポートの出力極性は保持することが出来る。   The reset auxiliary block 8 is communicatively connected to the CPU 1 through an SPI signal line. In addition, the reset auxiliary block 8 is connected to the output of the general-purpose port (ResetDET) to the CPU 1 and to the power supply control unit 4 via the logic circuit unit 7. With the above configuration, the activation and stop of the power supply control unit 4 are controlled by communication from the CPU 1. Since the reset auxiliary block 8 is supplied with power from the auxiliary power supply 10 even when the camera power is off, the output polarity of the general-purpose port for power control can be maintained.

論理回路部7は、入力側にCPU1、リセット補助ブロック8、操作系6の出力が接続され、出力側が電源制御部4に接続されており、前記各々のブロックからの信号を受けて、電源制御部4の起動、動作停止、動作保持を制御する。   The logic circuit unit 7 is connected to the CPU 1 on the input side, the reset auxiliary block 8, and the output of the operation system 6, and the output side is connected to the power supply control unit 4. Controls start-up, operation stop, and operation holding of the unit 4.

CPU1には、レンズ駆動部、防振制御部(IS)、撮像素子やタイミングジェネレータからなる撮像部、LCD等からなる画像表示部、マイクやスピーカー等からなる音声制御部、記録メディア等の周辺デバイス9が接続されている。   The CPU 1 includes a lens driving unit, an image stabilization control unit (IS), an imaging unit including an imaging device and a timing generator, an image display unit including an LCD, an audio control unit including a microphone and a speaker, and peripheral devices such as a recording medium. 9 is connected.

これらのレンズ駆動部〜記録メディア等の周辺デバイスは、CPU1により制御され目的の処理を行うように構成されており、夫々の状態をCPUが検知できるように通信手段によって接続されている。   The peripheral devices such as the lens driving unit to the recording medium are configured to be controlled by the CPU 1 and perform a target process, and are connected by communication means so that the CPU can detect each state.

なお、SPIはシリアル通信ライン、DETは駆動電源検出ライン、CLKは駆動クロックライン、DATAはデータライン、READYは周辺デバイスからの応答信号ライン、/RESETはリセットラインとなる。上記信号群は一例となるが、周辺デバイスの制御・駆動系を司る信号群となる。   Note that SPI is a serial communication line, DET is a drive power supply detection line, CLK is a drive clock line, DATA is a data line, READY is a response signal line from a peripheral device, and / RESET is a reset line. Although the above signal group is an example, it is a signal group that controls a peripheral device control / drive system.

次に本実施例のリセット補助ブロックの構成について図4を参照して説明する。   Next, the configuration of the auxiliary reset block according to the present embodiment will be described with reference to FIG.

本実施例においては上記したリセット補助ブロック8の機能をRTC(Real Time Clock)による構成としている。   In this embodiment, the function of the reset auxiliary block 8 described above is configured by RTC (Real Time Clock).

リセット補助ブロック8はデジタルカメラ内部の時刻を管理する時刻管理手段であるが、汎用ポートをもっていて、CPU1はシリアル通信を介してRTCの汎用ポートの制御可能である。   The reset auxiliary block 8 is a time management means for managing the time inside the digital camera, but has a general-purpose port, and the CPU 1 can control the general-purpose port of the RTC via serial communication.

図4はリセット補助ブロック8の構成を示すブロック図である。図4において、リセット補助ブロック8は、コントローラ13、タイマ14、レジスタ15、バスインターフェース16、内部バス17、クロック供給部18を備えている。   FIG. 4 is a block diagram showing the configuration of the reset auxiliary block 8. In FIG. 4, the reset auxiliary block 8 includes a controller 13, a timer 14, a register 15, a bus interface 16, an internal bus 17, and a clock supply unit 18.

コントローラ13は、リセット補助ブロック8全体の制御を司るものであり、レジスタ15に記憶されている設定値に基づいてリセット補助ブロック8全体の制御を決定している。   The controller 13 controls the entire reset auxiliary block 8 and determines the control of the entire reset auxiliary block 8 based on the set value stored in the register 15.

レジスタ15は、CPU1からバスインターフェース17を介して読み出し/書き込み可能に構成されている。これによりCPU1は、リセット補助ブロック8を制御することが可能である。リセット補助ブロック8は補助電源10も接続されているのでメイン電源5からの電力供給がない場合でも駆動が可能である。   The register 15 is configured to be readable / writable from the CPU 1 via the bus interface 17. Thereby, the CPU 1 can control the reset auxiliary block 8. Since the reset auxiliary block 8 is also connected to the auxiliary power supply 10, it can be driven even when no power is supplied from the main power supply 5.

これにより、CPU1からの制御内容がレジスタ15に書き込まれたら、メイン電源5が切断されてCPUが停止しても、再びCPUが起動して制御内容を解除するまでリセット補助ブロック8は実行し続ける。   Thus, when the control content from the CPU 1 is written to the register 15, even if the main power supply 5 is disconnected and the CPU stops, the reset auxiliary block 8 continues to be executed until the CPU is activated again to release the control content. .

次に本実施例の論理回路部の構成について図1を参照して説明する。   Next, the configuration of the logic circuit unit of this embodiment will be described with reference to FIG.

本実施例においては上記した論理回路部の機能をダイオードにより実現する構成としてもよい。入力信号数に対して1対となるダイオードを並列接続し、CPU1、リセット補助ブロック8、操作系6からの夫々の信号の論理和が電源制御部4に入力される。   In this embodiment, the function of the logic circuit unit described above may be realized by a diode. A pair of diodes is connected in parallel to the number of input signals, and the logical sum of the signals from the CPU 1, the reset auxiliary block 8, and the operation system 6 is input to the power supply control unit 4.

CPU1、リセット補助ブロック8、操作系6からの出力信号の何れかの出力がHighレベルであれば論理回路としての出力もHighレベルとなる。   If any one of the output signals from the CPU 1, the reset auxiliary block 8, and the operation system 6 is at a high level, the output as a logic circuit is also at a high level.

次に本実施例における各ブロックの動作について図1、図3、図5〜図7を参照して説明する。図1は本発明におけるデジタルカメラの実施例の構成を示している。図3は本発明におけるデジタルカメラの実施例の動作タイミングを示している。図5は本発明におけるデジタルカメラの実施例の周辺デバイスのエラー検知動作を示している。図6は本発明におけるデジタルカメラの実施例のCPUとリセット補助ブロックとの通信動作を示している。図7は本発明におけるデジタルカメラの実施例の論理回路に入力される信号の動作を示している。   Next, the operation of each block in the present embodiment will be described with reference to FIGS. 1, 3, and 5 to 7. FIG. FIG. 1 shows the configuration of an embodiment of a digital camera according to the present invention. FIG. 3 shows the operation timing of the embodiment of the digital camera according to the present invention. FIG. 5 shows the error detection operation of the peripheral device of the embodiment of the digital camera according to the present invention. FIG. 6 shows a communication operation between the CPU and the reset auxiliary block in the embodiment of the digital camera of the present invention. FIG. 7 shows the operation of signals input to the logic circuit of the embodiment of the digital camera according to the present invention.

周辺デバイスは、SPI、DET、CLK、DATA、READY、/RESETでCPU1と接続され、CPU1により制御され目的の処理を行い、又エラー検知を行う。エラー検知の一例を図5を参照して説明する。   The peripheral device is connected to the CPU 1 through SPI, DET, CLK, DATA, READY, and / RESET, and is controlled by the CPU 1 to perform a target process and detect an error. An example of error detection will be described with reference to FIG.

周辺デバイスはTxの周期でReady信号をHighからLowにする。CPUはReady信号がHighからLowになったことを検知して1byte分のClkを送る。周辺デバイスはCPUから1byte分のCLKが送られたことを検知してReady信号をLowからHighにする。   The peripheral device changes the Ready signal from High to Low at a period of Tx. The CPU detects that the Ready signal has changed from High to Low and sends 1 byte of Clk. The peripheral device detects that 1-byte CLK has been sent from the CPU, and changes the Ready signal from Low to High.

通常はこのような制御を繰り返すが、周辺デバイスが静電気等の不具合によりフリーズし、Ready信号を制御できなくなった場合には、CPUはReady信号を検知してエラーを返す。   Normally, such control is repeated. However, when the peripheral device freezes due to a problem such as static electricity and the Ready signal cannot be controlled, the CPU detects the Ready signal and returns an error.

CPUはT1でエラー検知後、T2で/RESET信号をHighからLowにして周辺デバイスをリセットする。そして、T3で再度前述の通信を実施する。   After detecting an error at T1, the CPU changes the / RESET signal from High to Low at T2 to reset the peripheral device. Then, the above-described communication is performed again at T3.

リセット補助ブロック8は、CPU1とSPIで接続されており、論理回路部を介して電源制御部に接続される汎用ポート(RESET_DET信号)をCPUにより制御する。CPUはT3でエラー対象デバイスと通信後実施後、再度エラー検知した場合、T4でリセット補助ブロックと通信開始し、T5でCSがLowからHighレベルとなって汎用ポート(RESET_DET信号)がHighレベルに確定する。   The reset auxiliary block 8 is connected to the CPU 1 through the SPI, and controls a general-purpose port (RESET_DET signal) connected to the power supply control unit via the logic circuit unit. If the CPU detects an error again after communicating with the error target device at T3, it starts communication with the reset auxiliary block at T4. At T5, CS changes from Low to High level and the general-purpose port (RESET_DET signal) changes to High level. Determine.

CPU1、リセット補助ブロック8、操作系6からの出力信号夫々、E1LAT信号,Reset_DET信号,Power_DET信号は、論理回路部を介して電源制御部に入力され、Highレベルで起動、Lowレベルで動作停止として制御する。   The output signals from the CPU 1, the reset auxiliary block 8, and the operation system 6, respectively, the E1LAT signal, the Reset_DET signal, and the Power_DET signal are input to the power supply control unit through the logic circuit unit, and are activated at the high level and stopped at the low level. Control.

またReset_DET信号は論理回路部からCPUに接続されていて、Reset_DETの状態を検知している。CPUはReset_DET信号がHighレベルになったのをT6で検知して、電源制御部の動作状態が保持されていることを確認した後、T7でシステム全体を内部リセットする。CPUは内部リセットによりE1_LATの極性を保持できなくなりT8でE1_LATがHighレベルからLowレベルになる。   The Reset_DET signal is connected from the logic circuit unit to the CPU, and detects the Reset_DET state. The CPU detects that the Reset_DET signal has become high level at T6, confirms that the operating state of the power supply control unit is maintained, and then internally resets the entire system at T7. The CPU cannot maintain the polarity of E1_LAT due to the internal reset, and E1_LAT is changed from the High level to the Low level at T8.

図7のように、論理回路部の構成により、CのE1_DETがLowレベルとなってもBのReset_DETがHighレベルで保持されているので、論理回路部の出力DはHighレベルに保持され、電源制御部の動作状態は保持されている。   As shown in FIG. 7, due to the configuration of the logic circuit portion, even if C E1_DET becomes Low level, B Reset_DET is held at High level, so the output D of the logic circuit portion is held at High level, and the power supply The operation state of the control unit is maintained.

CPUはT9でシステム内部リセットによりLowレベルとなったE1LATをHighレベルにして、電源制御部の動作状態を保持する。T10でReset_DET信号がHighレベルになっているのを検知し、T11でリセット補助ブロックと通信開始し、T12でCSがLowからHighレベルとなってRESET_DET信号がLowレベルに確定する。CPUはT13で周辺デバイスに対し前記通信を行いエラーチェックを開始する。T15で通信エラー未検知であれば、T16から通常起動を開始する。   The CPU sets E1LAT, which has become Low level due to system internal reset at T9, to High level, and maintains the operation state of the power supply control unit. At T10, it is detected that the Reset_DET signal is at a high level. At T11, communication with the reset auxiliary block is started. At T12, CS is changed from low to high level, and the RESET_DET signal is fixed at low level. At T13, the CPU communicates with the peripheral device to start an error check. If a communication error is not detected at T15, normal activation is started from T16.

次に図2を用いて動作シーケンスを説明する。図2は本実施例の動作シーケンスを示す。   Next, an operation sequence will be described with reference to FIG. FIG. 2 shows an operation sequence of this embodiment.

CPU1が周辺デバイス9に対して通信した時、もしくはリセット動作を行う(S101)。このとき、DETが所定のレベルに達せず周辺デバイスの電源電圧が検知できなかったか、もしくは所定時間READY等の応答信号が返って来なかったか、DATA等の出力値が異常な値を返してきたかを確認する(S102)。このような場合には、CPU1は周辺デバイスのエラーと認識し、/ResetをLowにしてエラー対象デバイスをリセットする(S103)。   When the CPU 1 communicates with the peripheral device 9, or performs a reset operation (S101). At this time, DET did not reach a predetermined level and the power supply voltage of the peripheral device could not be detected, or a response signal such as READY did not return for a predetermined time, or an output value such as DATA returned an abnormal value Is confirmed (S102). In such a case, the CPU 1 recognizes an error in the peripheral device, sets / Reset to Low, and resets the error target device (S103).

再度エラー対象デバイスに対して通信を行い、所定時間内に応答信号が返ってきて且つ出力値も正常値であれば、エラー対象デバイスは通常動作シーケンスを続行する(S105)。   Communication with the error target device is performed again, and if the response signal is returned within a predetermined time and the output value is also a normal value, the error target device continues the normal operation sequence (S105).

逆に、所定時間内に応答信号が返って来なかった場合や、出力値が異常な値を返してきた場合、CPU1はリセット補助ブロック8にSPIで通信する(S106)。そして、リセット補助ブロック8はCPUからの通信を受けて論理回路7に対しReset_DETをHighにして電源制御部4の動作状態の保持を行い、またCPU1に対してもHighを出力する(S107)。   Conversely, if no response signal is returned within a predetermined time or if the output value returns an abnormal value, the CPU 1 communicates with the reset auxiliary block 8 via the SPI (S106). Then, in response to communication from the CPU, the reset auxiliary block 8 sets Reset_DET to High for the logic circuit 7 to hold the operation state of the power supply control unit 4, and also outputs High to the CPU 1 (S107).

CPU1は、リセット補助ブロック8からのReset_DET High出力を受けて電源制御部4の動作状態が保持されていることを認識する(S108)。そして、システム全体を内部リセットする(S109)。   The CPU 1 receives the Reset_DET High output from the reset auxiliary block 8 and recognizes that the operation state of the power supply control unit 4 is held (S108). Then, the entire system is internally reset (S109).

リセット動作によりE1LATがLowになりCPUからの電源動作保持が一度解除されてしまうので、CPU起動後、再度E1LATをHighにして電源制御部4の動作状態を保持する(S110)。その後、ResetDETの出力を検出してカメラの起動要因がリセット補助ブロック要因であることを確認し(S111)、エラー修復シーケンスに入る。   Since E1LAT becomes Low due to the reset operation and the power supply operation holding from the CPU is once released, after the CPU is activated, E1LAT is set to High again to hold the operation state of the power supply control unit 4 (S110). Thereafter, the output of ResetDET is detected to confirm that the activation factor of the camera is a reset auxiliary block factor (S111), and an error repair sequence is entered.

その後、リセット補助ブロック8にSPIで通信し(S112)、リセット補助ブロック8はCPUからの通信を受けて論理回路7に対するReset_DET出力をHighからLowに切り替え、電源制御部4の動作状態の保持を解除する(S113)。   Thereafter, the reset auxiliary block 8 communicates with the SPI (S112), and the reset auxiliary block 8 receives the communication from the CPU and switches the Reset_DET output for the logic circuit 7 from High to Low, and maintains the operation state of the power supply control unit 4. Release (S113).

CPUは、エラー対象デバイスを/ResetをLowにしてリセットした(S114)後、通信する(S115)。このとき、電源電圧が検知できなかった、もしくは所定時間応答信号が返って来なかった場合や、出力値が異常な値を返してきた等、エラーが発生した場合は、エラー対象ブロック・エラー内容のエラーチェックリストを作成(S117)する。作成したエラーチェックリストROMに記録(S118)し、カメラをシャットダウンする(S119)。また、エラーが発生しなかった場合は、各デバイスを通常起動する(S116)。   The CPU communicates after resetting the error target device by setting / Reset to Low (S114) (S115). At this time, if an error occurs, such as when the power supply voltage could not be detected or the response signal did not return for a specified time, or the output value returned an abnormal value, the error target block and error details The error check list is created (S117). The created error checklist ROM is recorded (S118), and the camera is shut down (S119). If no error has occurred, each device is normally activated (S116).

また、本実施例においては、リセット補助ブロックとしてRTC(Real Time Clock)を採用しているが、簡単なDQフリップフロップでも構わない。その場合のブロック図を図8に示す。   In this embodiment, RTC (Real Time Clock) is adopted as the reset auxiliary block, but a simple DQ flip-flop may be used. A block diagram in that case is shown in FIG.

図中、80がRTCでの例に代わりDQフリップフロップの構成となっている。CPU1がDQフリップフロップ80にCLKとLow→High出力を夫々CLK端子、D端子に入力すれば、Q端子の出力がLowからHighに切り替わる。したがって、電源制御部4の動作状態は保持され、デジタルカメラの電源はON状態を保持される。   In the figure, 80 is a DQ flip-flop configuration instead of the RTC example. When the CPU 1 inputs CLK and Low → High output to the DQ flip-flop 80 to the CLK terminal and the D terminal, respectively, the output of the Q terminal is switched from Low to High. Therefore, the operation state of the power supply control unit 4 is maintained, and the power supply of the digital camera is maintained in the ON state.

また、Q端子の出力はHigh→Lowに切り替わり、CPU1が起動要因を認識する。したがって、CPUがシャットダウンしても極性が保持される。CPU1が再度、DQフリップフロップ80にCLKとHigh→Low出力を夫々CLK端子、D端子に入力すれば、Q端子の出力がHighからLowに切り替わり、DQフリップフロップ80からの電源保持が解除される。一方、Q端子の出力はLow→Highに切り替わり、起動要因がノーマルに戻る。   Further, the output of the Q terminal is switched from High to Low, and the CPU 1 recognizes the activation factor. Therefore, the polarity is maintained even when the CPU is shut down. If the CPU 1 again inputs CLK and High → Low output to the DQ flip-flop 80 to the CLK terminal and D terminal, respectively, the output of the Q terminal is switched from High to Low, and the power supply from the DQ flip-flop 80 is released. . On the other hand, the output of the Q terminal is switched from Low to High, and the activation factor returns to normal.

以上、説明したように、CPUが周辺デバイスのエラーを検知した場合でも、リセット動作で修復するエラーであればユーザーがカメラの電源を入れ直す必要がない。   As described above, even when the CPU detects an error in the peripheral device, the user does not need to turn the camera on again if the error is corrected by the reset operation.

本発明における実施形態であるデジタルカメラの構成の示す図である。It is a figure which shows the structure of the digital camera which is embodiment in this invention. 本発明における実施形態であるデジタルカメラの動作シーケンスを示す図である。It is a figure which shows the operation | movement sequence of the digital camera which is embodiment in this invention. 本発明における実施形態であるデジタルカメラの動作タイミングを示す図である。It is a figure which shows the operation timing of the digital camera which is embodiment in this invention. 本発明における実施形態であるデジタルカメラのリセット補助ブロックの構成を示す図である。It is a figure which shows the structure of the reset auxiliary block of the digital camera which is embodiment in this invention. 本発明における実施形態であるデジタルカメラの周辺デバイスのエラー検知動作を示す図である。It is a figure which shows the error detection operation | movement of the peripheral device of the digital camera which is embodiment in this invention. 本発明における実施形態であるデジタルカメラのCPUとリセット補助ブロックとの通信動作を示す図である。It is a figure which shows communication operation | movement with CPU of a digital camera which is embodiment in this invention, and a reset auxiliary block. 本発明における実施形態であるデジタルカメラの論理回路に入力される信号の動作を示す図である。It is a figure which shows operation | movement of the signal input into the logic circuit of the digital camera which is embodiment in this invention. 本発明における実施形態であるデジタルカメラのDQフリップフロップ使用時の構成を示す図である。It is a figure which shows the structure at the time of DQ flip-flop use of the digital camera which is embodiment in this invention. 従来例であるデジタルカメラの構成を示す図である。It is a figure which shows the structure of the digital camera which is a prior art example.

符号の説明Explanation of symbols

1 CPU
4 電源制御部
5 メイン電源
6 パワースイッチ
8 リセット補助ブロック
10 補助電源
1 CPU
4 Power Control Unit 5 Main Power Supply 6 Power Switch 8 Reset Auxiliary Block 10 Auxiliary Power Supply

Claims (3)

第1の電源と、
前記第1の電源とは異なる第2の電源と、
前記第1の電源を制御する電源制御手段と、
前記電源制御手段を制御する制御手段と、
前記制御手段がリセット動作を行ったときに、前記第2の電源により駆動され、前記制御手段のリセット動作の直前の前記電源制御手段の状態を保持する保持手段とを有することを特徴とする電子機器。
A first power source;
A second power source different from the first power source;
Power control means for controlling the first power;
Control means for controlling the power supply control means;
And a holding unit that is driven by the second power source when the control unit performs a reset operation and holds the state of the power source control unit immediately before the reset operation of the control unit. machine.
前記電源制御手段は、前記第1の電源の通電をオン・オフする制御を行うものであって、前記保持手段は前記制御手段のリセット動作の直前に前記電源制御手段が前記第1の電源の通電をオンしているかどうかを保持することを特徴とする請求項1に記載の電子機器。   The power supply control unit performs control to turn on / off the energization of the first power supply, and the holding unit is configured so that the power supply control unit is connected to the first power supply immediately before a reset operation of the control unit. The electronic apparatus according to claim 1, wherein whether or not energization is turned on is held. 前記保持手段はDQフリップフロップ回路であることを特徴とする請求項1に記載の電子機器。   The electronic device according to claim 1, wherein the holding unit is a DQ flip-flop circuit.
JP2006270657A 2006-10-02 2006-10-02 Electronic device Pending JP2008090592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006270657A JP2008090592A (en) 2006-10-02 2006-10-02 Electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006270657A JP2008090592A (en) 2006-10-02 2006-10-02 Electronic device

Publications (1)

Publication Number Publication Date
JP2008090592A true JP2008090592A (en) 2008-04-17

Family

ID=39374667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006270657A Pending JP2008090592A (en) 2006-10-02 2006-10-02 Electronic device

Country Status (1)

Country Link
JP (1) JP2008090592A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60524A (en) * 1983-06-15 1985-01-05 Mitsubishi Electric Corp Microcomputer system
JPH05197451A (en) * 1992-01-17 1993-08-06 Nec Gumma Ltd Information processor
JPH10207742A (en) * 1997-01-24 1998-08-07 Fujitsu Ltd Information processor
JPH11327701A (en) * 1998-05-20 1999-11-30 Nec Corp Microcomputer device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60524A (en) * 1983-06-15 1985-01-05 Mitsubishi Electric Corp Microcomputer system
JPH05197451A (en) * 1992-01-17 1993-08-06 Nec Gumma Ltd Information processor
JPH10207742A (en) * 1997-01-24 1998-08-07 Fujitsu Ltd Information processor
JPH11327701A (en) * 1998-05-20 1999-11-30 Nec Corp Microcomputer device

Similar Documents

Publication Publication Date Title
JP4435258B2 (en) Multi battery pack system and control method, battery pack
US20110156659A1 (en) Rechargeable Device and Power Feeding Control Method
JP2005051935A5 (en)
US20180062218A1 (en) Electronic device, control method therefor and non-transitory computer-readable storage medium
JP2005051935A (en) Uninterruptible power supply unit
KR100433532B1 (en) Apparatus and method for managing power
KR102167429B1 (en) Appratus and method for prevention over-discharge and restarting energy storeage system
JP5067816B2 (en) Portable electronic device and control method thereof
US10691555B2 (en) Electronic Device
JP2008090592A (en) Electronic device
CN105653002B (en) Display method and device for battery electric quantity and electronic equipment
JP2007156864A (en) Data retention unit
JP2002373037A (en) Power source controller
JP2009124883A (en) Secondary battery protection circuit
JP2008154068A (en) Power-receiving equipment, control method for power-receiving equipment, and computer program
CN105573459B (en) Electronic device and signal processing method
JP2018107871A (en) Electronic apparatus
JP6442963B2 (en) Information processing device
JP2006136152A (en) Electronic equipment having backup power supply unit
JP4960674B2 (en) Backup device
JP2002244773A (en) Information processor
JP7278906B2 (en) Power supply control circuit for electronic equipment
JP2007114824A (en) Power source control means
JP7285498B2 (en) Imaging device
JPH10271690A (en) Portable electronic device and battery charging method for the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090929

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110111

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110628