JP2017147796A - Electronic apparatus and electric power control program therefor - Google Patents

Electronic apparatus and electric power control program therefor Download PDF

Info

Publication number
JP2017147796A
JP2017147796A JP2016026323A JP2016026323A JP2017147796A JP 2017147796 A JP2017147796 A JP 2017147796A JP 2016026323 A JP2016026323 A JP 2016026323A JP 2016026323 A JP2016026323 A JP 2016026323A JP 2017147796 A JP2017147796 A JP 2017147796A
Authority
JP
Japan
Prior art keywords
mode
electronic device
power
battery
determination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016026323A
Other languages
Japanese (ja)
Other versions
JP6716279B2 (en
Inventor
内山 実
Minoru Uchiyama
実 内山
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 JP2016026323A priority Critical patent/JP6716279B2/en
Publication of JP2017147796A publication Critical patent/JP2017147796A/en
Application granted granted Critical
Publication of JP6716279B2 publication Critical patent/JP6716279B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Details Of Cameras Including Film Mechanisms (AREA)
  • Lens Barrels (AREA)
  • Power Sources (AREA)
  • Direct Current Feeding And Distribution (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic apparatus capable of executing appropriate electric power control suited to a power supply condition.SOLUTION: An electronic apparatus 110 includes: a non-volatile memory 115 controlled by electric power supplied from a battery 112 and stores information showing a result of determination of whether or not an output voltage of the battery 112 is less than a predetermined voltage; and a control part 108 writing the information showing the result of determination into the non-volatile memory 115. The control part 108 prohibits shifting of a standby mode to an active mode corresponding to the fact that the result of determination showing that the output voltage is less than the predetermined voltage is continuously obtained by the number of predetermined frequencies with an electric power mode set to the standby mode.SELECTED DRAWING: Figure 2

Description

本発明は、電源を内蔵し、電源から供給される電力により制御される電子機器に関するものである。   The present invention relates to an electronic device that includes a power source and is controlled by power supplied from the power source.

乾電池等の電源を内蔵した電子機器において、電池の消耗により電源の出力電圧が降下することで電子機器の起動を実行できなくなることが知られている。また、電子機器に含まれるアクチュエータ等のモータを駆動させるために必要な電力は、電子機器の起動のために必要な電力よりも大きくなることが一般的である。   2. Description of the Related Art It is known that in an electronic device having a built-in power source such as a dry battery, it is impossible to start the electronic device because the output voltage of the power source drops due to battery consumption. In general, the power required to drive a motor such as an actuator included in an electronic device is generally larger than the power required to start the electronic device.

そこで、アクチュエータ等のモータを駆動させるために必要な電力の最大値である駆動電力を記憶させておき、電子機器の起動の際に、駆動電力と電源の出力電力を比較する技術が知られている。特許文献1の電子機器は、電源の出力電力に関する情報を予め記憶しておいて、電子機器の起動の際に駆動電力と電源の出力電圧を比較し、その比較結果に応じて電子機器の起動を許可するか否かを判定している。   Therefore, a technique is known in which driving power, which is the maximum value of power required to drive a motor such as an actuator, is stored, and the driving power is compared with the output power of the power supply when the electronic device is activated. Yes. The electronic device disclosed in Patent Literature 1 stores information related to the output power of the power supply in advance, compares the drive power with the output voltage of the power supply when starting the electronic device, and starts the electronic device according to the comparison result. It is determined whether to allow or not.

特開平2−214424号公報JP-A-2-214424

乾電池等の電池は、大きな負荷がかけられた際に、一時的に電圧降下を生じることが知られている。そのため、特許文献1の電子機器において、大きな電圧降下が生じたタイミングで電源の出力電力に関する情報を取得した場合、出力電力が駆動電力を下回り、電子機器の起動が禁止されてしまう。このとき、本来は電源の出力電力に余裕があるにも関わらず、電子機器の起動を実行できない事態が生じる。   It is known that a battery such as a dry battery temporarily causes a voltage drop when a large load is applied. For this reason, in the electronic device disclosed in Patent Document 1, when information on the output power of the power supply is acquired at the timing when a large voltage drop occurs, the output power falls below the drive power, and the activation of the electronic device is prohibited. At this time, there arises a situation in which the electronic device cannot be activated even though the output power of the power source originally has a margin.

また、このような事態が生じないように電子機器の起動動作を何度も繰り返すと、電池に過度の負荷が加わり、電池に不具合が生じるおそれがある。   In addition, if the start-up operation of the electronic device is repeated many times so that such a situation does not occur, an excessive load is applied to the battery, which may cause a malfunction of the battery.

上述した課題は、電力モードとしてアクティブモードと、アクティブモードよりも消費電力の少ないスタンバイモードを含む電子機器においても生じる。   The above-described problem also occurs in electronic devices including an active mode as a power mode and a standby mode that consumes less power than the active mode.

本発明は、電源の状態に応じた適切な電力制御を実行することができる電子機器を得ることを目的とする。   It is an object of the present invention to obtain an electronic device that can execute appropriate power control according to the state of a power source.

本発明の電子機器は、電池から供給される電力によって制御される電子機器であって、前記電池の出力電圧が所定の電圧を下回った否かの判定の結果を示す情報を記憶する不揮発性メモリと、前記判定の結果を示す情報の前記不揮発性メモリへの書き込みを行う制御部を有し、前記制御部は、前記電子機器の電力モードを、アクティブモードと、該アクティブモードよりも消費電力の少ないスタンバイモードの間で切り替え可能であり、前記制御部は、前記電力モードが前記スタンバイモードに設定された状態で、前記出力電圧が前記所定の電圧を下回ったことを示す判定結果が所定回数続けて得られたことに応じて、前記スタンバイモードから前記アクティブモードへの切り替えを禁止することを特徴とする。   An electronic device according to the present invention is an electronic device controlled by electric power supplied from a battery, and stores information indicating a result of determination as to whether or not an output voltage of the battery is lower than a predetermined voltage And a controller that writes information indicating the result of the determination to the nonvolatile memory, the controller configured to change the power mode of the electronic device to an active mode and a power consumption that is higher than that of the active mode. It is possible to switch between the few standby modes, and the control unit continues the determination result indicating that the output voltage has fallen below the predetermined voltage while the power mode is set to the standby mode for a predetermined number of times. The switching from the standby mode to the active mode is prohibited according to what is obtained.

また、本発明のプログラムは、電池から供給される電力によって制御され、電力モードを、アクティブモードと、該アクティブモードよりも消費電力の少ないスタンバイモードの間で切り替え可能な電子機器のコンピュータに電力制御処理を実行させるプログラムであって、前記電池の出力電圧が所定の電圧を下回ったか否かの判定を行うステップと、前記電力モードが前記スタンバイモードに設定された状態で、前記出力電圧が前記所定の電圧を下回ったことを示す判定結果が所定回数続けて得られたことに応じて、前記スタンバイモードから前記アクティブモードへの切り替えを禁止するステップを含むことを特徴とする。   The program of the present invention is controlled by the power supplied from the battery, and the power mode is controlled by the computer of the electronic device that can switch the power mode between the active mode and the standby mode that consumes less power than the active mode. A program for executing a process, the step of determining whether or not the output voltage of the battery is lower than a predetermined voltage; and the output voltage is set to the predetermined mode when the power mode is set to the standby mode. And a step of prohibiting switching from the standby mode to the active mode in response to obtaining a determination result indicating that the voltage has fallen below a predetermined number of times continuously.

本発明によれば、電源の状態に応じた適切な電力制御を実行することができる電子機器が得られる。   ADVANTAGE OF THE INVENTION According to this invention, the electronic device which can perform appropriate electric power control according to the state of a power supply is obtained.

本発明のカメラ本体、交換レンズ及びドライブユニットを含むカメラシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the camera system containing the camera main body of this invention, an interchangeable lens, and a drive unit. ドライブユニットにおける電力制御処理を実行するフローを説明するフローチャートである。It is a flowchart explaining the flow which performs the power control process in a drive unit. 電力モードの切り換え禁止を解除するフローを説明するフローチャートである。It is a flowchart explaining the flow which cancels | releases prohibition of switching of electric power mode.

以下、本発明の電子機器及び電子機器の電力制御処理について、添付の図面に基づいて詳細に説明する。図1は、カメラ本体102と、カメラ本体102に取り付けられる交換レンズ101と、交換レンズ101に対して取り付け可能な電子機器としてのドライブユニット110を含むカメラシステムの構成を示す図である。   Hereinafter, an electronic device and power control processing of the electronic device of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a diagram illustrating a configuration of a camera system including a camera body 102, an interchangeable lens 101 attached to the camera body 102, and a drive unit 110 as an electronic device that can be attached to the interchangeable lens 101.

カメラ本体102は交換レンズ101と通信可能であり、ドライブユニット110は交換レンズ101と通信可能である。カメラ本体102は、カメラマイコン105を含み、交換レンズ101は、レンズマイコン104を含む。カメラマイコン105は、レンズマイコン104との間で通信を行うことができるように構成されている。   The camera body 102 can communicate with the interchangeable lens 101, and the drive unit 110 can communicate with the interchangeable lens 101. The camera body 102 includes a camera microcomputer 105, and the interchangeable lens 101 includes a lens microcomputer 104. The camera microcomputer 105 is configured to be able to communicate with the lens microcomputer 104.

ドライブユニット110は、ドライブユニット110内の各部の制御を司る制御部としてのドライブユニットマイコン108を含み、ドライブユニットマイコン108は、レンズマイコン104との間で通信を行うことができるように構成されている。   The drive unit 110 includes a drive unit microcomputer 108 as a control unit that controls each part in the drive unit 110, and the drive unit microcomputer 108 is configured to be able to communicate with the lens microcomputer 104.

交換レンズ101は、不図示の変倍レンズの位置を検出するズームセンサ103をさらに含み、変倍レンズの位置を示すズーム情報が、レンズマイコン104とドライブユニットマイコン108の間で通信される。また、不図示のズームリングを回転させることにより、ユーザは変倍レンズを移動させることができる。ズームセンサ103は、ズームリングの回転量または回転位置に基づいて変倍レンズの位置情報を取得する。   The interchangeable lens 101 further includes a zoom sensor 103 that detects the position of a variable magnification lens (not shown), and zoom information indicating the position of the variable magnification lens is communicated between the lens microcomputer 104 and the drive unit microcomputer 108. The user can move the zoom lens by rotating a zoom ring (not shown). The zoom sensor 103 acquires position information of the zoom lens based on the rotation amount or the rotation position of the zoom ring.

ドライブユニット110は、前述したドライブユニットマイコン108の他に、ギア106、モータ107、取り外し検出部109、抵抗負荷111、電池112、ズーム操作スイッチ113、LEDランプ114を含む。また、ドライブユニット110は、不揮発性メモリ115、揮発性メモリ116、電池取付け検出部117を有する。   In addition to the drive unit microcomputer 108 described above, the drive unit 110 includes a gear 106, a motor 107, a removal detection unit 109, a resistance load 111, a battery 112, a zoom operation switch 113, and an LED lamp 114. The drive unit 110 also includes a nonvolatile memory 115, a volatile memory 116, and a battery attachment detection unit 117.

ギア106は、ドライブユニット110が交換レンズ101に装着された状態で、交換レンズ101に含まれるズームリングにかみ合うように構成されている。モータ107は電池112から電力の供給を受けて駆動され、ギア106を回転させるように構成されている。取り外し検出部109は、ドライブユニット110に交換レンズ101が取り付けられたか否かを検出し、検出結果をドライブユニットマイコン108に通知する。   The gear 106 is configured to engage with a zoom ring included in the interchangeable lens 101 in a state where the drive unit 110 is attached to the interchangeable lens 101. The motor 107 is driven by power supplied from the battery 112 and is configured to rotate the gear 106. The removal detection unit 109 detects whether or not the interchangeable lens 101 is attached to the drive unit 110 and notifies the drive unit microcomputer 108 of the detection result.

抵抗負荷111は、電池112の残量が、モータ107を駆動させるために十分であるか否かを確認するための電源チェックに用いられる。電源チェックの具体的な手順としては、まず、モータ107を駆動させるときの負荷に相当する負荷を抵抗負荷111に与えて、不図示のトランジスタを用いたスイッチングにより抵抗負荷111に電流を流す。そのときの電池112の出力電圧を測定し、この電圧値が後述する終止電圧を下回るか否かに応じて、電池112からモータ107への電力供給の可否をドライブユニットマイコン108が決定する。   The resistance load 111 is used for a power supply check for confirming whether or not the remaining amount of the battery 112 is sufficient to drive the motor 107. As a specific procedure of the power supply check, first, a load corresponding to a load for driving the motor 107 is given to the resistance load 111, and a current is passed through the resistance load 111 by switching using a transistor (not shown). The output voltage of the battery 112 at that time is measured, and the drive unit microcomputer 108 determines whether or not power can be supplied from the battery 112 to the motor 107 according to whether or not this voltage value falls below a final voltage described later.

ドライブユニット110は、ドライブユニット110に装着可能な乾電池等の電池112から電力の供給を受けて起動する。一般的な乾電池は未使用時に1.5V程度の出力電圧を有する。電池の使用とともに電池の内部抵抗が上昇し、出力電圧が低下する。出力電圧が低下した乾電池に対して、大きな電流を流すと乾電池に不具合が生じるおそれがあるため、乾電池には終止電圧という乾電池の使用を制限するためのパラメータが設定されている。つまり、乾電池の出力電圧が終止電圧を下回ったときには、乾電池の使用を制限することが好ましい。例えば、終止電圧は0.9Vに設定される。   The drive unit 110 is activated by receiving power from a battery 112 such as a dry battery that can be attached to the drive unit 110. A typical dry battery has an output voltage of about 1.5 V when not in use. As the battery is used, the internal resistance of the battery increases and the output voltage decreases. A parameter for restricting the use of the dry cell, which is the end voltage, is set in the dry battery because a problem may occur in the dry cell when a large current is passed through the dry battery having a lowered output voltage. That is, it is preferable to limit the use of the dry battery when the output voltage of the dry battery is lower than the end voltage. For example, the end voltage is set to 0.9V.

ズーム操作スイッチ113は、ユーザが操作できるように構成されており、ズーム操作スイッチ113が操作されたことを示す情報は、ドライブユニットマイコン108に送信される。ズーム操作スイッチ113が操作されると、ドライブユニットマイコン108はモータ107を駆動させる。   The zoom operation switch 113 is configured to be operated by the user, and information indicating that the zoom operation switch 113 has been operated is transmitted to the drive unit microcomputer 108. When the zoom operation switch 113 is operated, the drive unit microcomputer 108 drives the motor 107.

LEDランプ114は、ユーザがドライブユニット110の電力モードを認識するために用いられるものであり、例えば、ドライブユニット110が動作可能であるときにはLEDランプ114が点灯し、動作不可能であるときには消灯するように構成される。ドライブユニット110が動作可能か否かはドライブユニットマイコン108が判断する。電池112の出力電圧が終止電圧以上であること、ドライブユニット110が交換レンズ101に正しく装着されていること等の条件を満足しているときに、ドライブユニットマイコン108はLEDランプ114を点灯させる。なお、LEDランプに限らずその他のランプを用いてもよい。   The LED lamp 114 is used for the user to recognize the power mode of the drive unit 110. For example, the LED lamp 114 is turned on when the drive unit 110 is operable, and is turned off when the drive unit 110 is not operable. Composed. The drive unit microcomputer 108 determines whether or not the drive unit 110 is operable. The drive unit microcomputer 108 turns on the LED lamp 114 when conditions such as the output voltage of the battery 112 being equal to or higher than the end voltage and the drive unit 110 being correctly attached to the interchangeable lens 101 are satisfied. In addition, you may use not only an LED lamp but another lamp.

不揮発性メモリ115には、電池112の出力電圧が終止電圧を下回った否かの判定結果を示す情報が記憶され、ドライブユニットマイコン108は不揮発性メモリ115に記憶された情報に基づいて電力モードの制御を行う。揮発性メモリ116には、上述した電源チェックを行うか否かを示す情報が記憶される。電池取付け検出部117は、ドライブユニット110に電池が取り付けられたことを検出するためのスイッチであり、検出結果をドライブユニットマイコン108に送付する。   The non-volatile memory 115 stores information indicating the determination result as to whether or not the output voltage of the battery 112 is lower than the end voltage, and the drive unit microcomputer 108 controls the power mode based on the information stored in the non-volatile memory 115. I do. The volatile memory 116 stores information indicating whether or not to perform the power check described above. The battery attachment detection unit 117 is a switch for detecting that a battery is attached to the drive unit 110, and sends the detection result to the drive unit microcomputer 108.

次に、ドライブユニット110がとり得る電力モードと、各電力モードにおけるLEDランプ114の点灯状態について説明する。ドライブユニット110は、電力モードとして、アクティブモード、スタンバイモード、電源オフモードをとり得る。アクティブモードでは、ドライブユニットマイコン108の種々の機能がオン状態となり、モータ107の駆動が行われる。   Next, the power modes that the drive unit 110 can take and the lighting state of the LED lamp 114 in each power mode will be described. The drive unit 110 can take an active mode, a standby mode, and a power-off mode as a power mode. In the active mode, various functions of the drive unit microcomputer 108 are turned on, and the motor 107 is driven.

スタンバイモードでは、ドライブユニットマイコン108の最低限の機能のみをオン状態にすることで消費電力の低減を図る。電源オフモードでは、ドライブユニットマイコン108の全ての機能がオフ状態となる。電力モードがアクティブモードのときにはLEDランプ114は点灯状態となる。一方、電療モードがスタンバイモードまたは電源オフモードのときにはLEDランプ114は消灯状態となる。   In the standby mode, power consumption is reduced by turning on only the minimum functions of the drive unit microcomputer 108. In the power off mode, all the functions of the drive unit microcomputer 108 are turned off. When the power mode is the active mode, the LED lamp 114 is turned on. On the other hand, when the electrotherapy mode is the standby mode or the power-off mode, the LED lamp 114 is turned off.

スタンバイモードでは、レンズマイコン104からドライブユニットマイコン108に対して通信要求が行われたことに応じて、電源チェックを行い、スタンバイモードからアクティブモードへの切り替えができるように構成されている。また、ドライブユニット110が交換レンズ101に取り付けられたことによっても電源チェックが行われる。   In the standby mode, a power supply check is performed in response to a request for communication from the lens microcomputer 104 to the drive unit microcomputer 108, and the standby mode can be switched to the active mode. The power supply check is also performed when the drive unit 110 is attached to the interchangeable lens 101.

電源オフモードは、ドライブユニット110から電池112が取り外されたときや、電池112の残量が、ドライブユニットマイコン108を起動させることができない程度に低下したときに設定されるモードである。   The power-off mode is a mode that is set when the battery 112 is removed from the drive unit 110 or when the remaining amount of the battery 112 has decreased to such an extent that the drive unit microcomputer 108 cannot be activated.

以下、各モード間のモード切り替えについて説明する。モード切り替えは、ドライブユニットマイコン108によって制御される。ドライブユニットマイコン108は、所定のタイミングで電源チェックを行い、チェック結果に応じて電力モードを適宜変更する。   Hereinafter, mode switching between the modes will be described. Mode switching is controlled by the drive unit microcomputer 108. The drive unit microcomputer 108 performs a power supply check at a predetermined timing, and appropriately changes the power mode according to the check result.

電池112の残量が十分にある場合には、電力モードはアクティブモードに設定される。電力モードがアクティブモードのときには、所定の間隔で電源チェックが行われ、電池112の出力電圧が終止電圧を下回っているか否かの判定が行われる。出力電圧が終止電圧を下回ったときには、電力モードがスタンバイモードに切り替えられる。ここで、電池112がドライブユニット110から取り外されたときには、電力モードがアクティブモードから電源オフモードに切り替えられる。また、ドライブユニット110が交換レンズ101から取り外されたときにも、スタンバイモードへの切り替えが行われる。   When the remaining amount of the battery 112 is sufficient, the power mode is set to the active mode. When the power mode is the active mode, a power supply check is performed at a predetermined interval, and it is determined whether or not the output voltage of the battery 112 is lower than the end voltage. When the output voltage falls below the end voltage, the power mode is switched to the standby mode. Here, when the battery 112 is removed from the drive unit 110, the power mode is switched from the active mode to the power-off mode. In addition, when the drive unit 110 is detached from the interchangeable lens 101, switching to the standby mode is performed.

続いてスタンバイモードから他のモードへのモード切り替えについて説明する。電池112がドライブユニット110から取り外されたときには、電力モードが電源オフモードに切り替えられる。一方、上述したように、レンズマイコン104からの通信要求を受信したときや、ドライブユニット110が交換レンズ101に取り付けられたときには電源チェックが行われる。電源チェックの結果、アクティブモードへの切り替え条件を満足していれば、アクティブモードへの切り替えが行われる。   Next, mode switching from the standby mode to another mode will be described. When the battery 112 is removed from the drive unit 110, the power mode is switched to the power-off mode. On the other hand, as described above, when a communication request from the lens microcomputer 104 is received or when the drive unit 110 is attached to the interchangeable lens 101, a power supply check is performed. As a result of the power check, if the condition for switching to the active mode is satisfied, switching to the active mode is performed.

次に、電力オフモードから他の電力モードへの切り替えについて説明する。電力オフモードにおいて、電池112の交換が行われたときには電源チェックが行われ、電源チェックの結果に応じて、アクティブモードやスタンバイモードへの切り替えが行われる。   Next, switching from the power off mode to another power mode will be described. When the battery 112 is replaced in the power off mode, a power check is performed, and switching to the active mode or the standby mode is performed according to the result of the power check.

次に、図2を用いて本発明の電力モードの制御フローについて説明する。図2におけるドライブユニット110の電力制御処理は、コンピュータとしてのドライブユニットマイコン108がコンピュータプログラムに従って実行するものである。   Next, the control flow of the power mode of the present invention will be described using FIG. The power control processing of the drive unit 110 in FIG. 2 is executed by the drive unit microcomputer 108 as a computer according to the computer program.

本発明の電力モード制御では、電力モードがスタンバイモードに設定された状態において、所定回数連続して終止電圧を下回ったことに応じて、スタンバイモードからアクティブモードへの切り替えが禁止される。本実施例では、スタンバイモードに設定された状態で3回連続して終止電圧を下回ったことに応じて、スタンバイモードからアクティブモードへの切り換えを禁止している。   In the power mode control of the present invention, in the state where the power mode is set to the standby mode, switching from the standby mode to the active mode is prohibited in response to the voltage being continuously lower than the end voltage for a predetermined number of times. In the present embodiment, switching from the standby mode to the active mode is prohibited in response to the voltage falling below the end voltage three times in a state where the standby mode is set.

電源チェック値は、電池112がモータ107を駆動させるために十分な電力を有しているか否かの判定を行うためのパラメータであり、電源チェックの結果、終止電圧を下回っていると判定されるたびに電源チェック値に1が加えられる。以降、図2における電力モード制御の詳細について記載する。   The power check value is a parameter for determining whether or not the battery 112 has sufficient power to drive the motor 107, and is determined to be lower than the end voltage as a result of the power check. Each time, 1 is added to the power check value. Hereinafter, the details of the power mode control in FIG. 2 will be described.

ステップS201において制御を開始し、ステップS202で、揮発性メモリのNGフラグの状態を確認する。NGフラグがオフのときにはステップS203に進み、不揮発性メモリの書き込み情報を確認する。   Control is started in step S201, and the state of the NG flag of the volatile memory is confirmed in step S202. When the NG flag is off, the process proceeds to step S203, and the write information in the nonvolatile memory is confirmed.

不揮発性メモリとしては、フラッシュメモリやEEPROM(Electrically Erasable Programmable Read−Only Memory)を用いることができる。本実施形態では、不揮発性メモリとしてフラッシュメモリを用いたときの制御方法について説明する。一般に、フラッシュメモリはEEPROMと比較してメモリの書き換え可能回数が少ない。それゆえ、メモリの書き換え回数の制限を超えないように、複数のフラッシュメモリを用いてメモリの記憶領域をずらしている。   As the nonvolatile memory, a flash memory or an EEPROM (Electrically Erasable Programmable Read-Only Memory) can be used. In the present embodiment, a control method when a flash memory is used as a nonvolatile memory will be described. In general, a flash memory has a smaller number of times of rewritable memory than an EEPROM. Therefore, the storage area of the memory is shifted using a plurality of flash memories so as not to exceed the limit of the number of times of rewriting of the memory.

本実施形態では、メモリの記憶領域としてBLOCK1とBLOCK2の2つの領域を用意して、まずBLOCK1内の領域にデータを書き込み、BLOCK1の最後のアドレスまで書き込みを行う。その後、BLOCK2内のデータが消去されていることを確認して、BLOCK2内の領域へのデータ書き込みを開始する。BLOCK2の最後のアドレスまで書き込みが行われると、今度はBLOCK1内のデータが消去されていることを確認して、BLOCK1内の領域へのデータ書き込みを開始する。このように、メモリの記憶領域をずらしながらデータの書き込みを行うことで、メモリの書き換え回数の制限を超えないようにしている。   In the present embodiment, two areas BLOCK1 and BLOCK2 are prepared as storage areas of the memory, data is first written to the area in BLOCK1, and writing is performed up to the last address of BLOCK1. After that, it is confirmed that the data in BLOCK 2 has been erased, and data writing to the area in BLOCK 2 is started. When writing is performed up to the last address of BLOCK2, it is confirmed that the data in BLOCK1 is erased, and data writing to the area in BLOCK1 is started. Thus, by writing data while shifting the storage area of the memory, the limit on the number of rewrites of the memory is not exceeded.

ステップS203では、BLOCK1、BLOCK2の全ての領域のデータ読み出しを行う。次に、ステップS204で、読み出した全てのメモリがブランクであるか否かの判定を行う。全てのメモリがブランクの場合はステップS205に進み、電源チェック値を1に設定する。   In step S203, data is read from all areas of BLOCK1 and BLOCK2. Next, in step S204, it is determined whether or not all the read memories are blank. If all the memories are blank, the process proceeds to step S205, and the power check value is set to 1.

ステップS204で読み出したメモリの中にブランクではない領域が存在する場合には、ステップS206に進み、電源チェック値の最新の書き込み値がBLOCK1内に書き込まれているか否かを判定する。BLOCK1内に書き込まれているときは、ステップS207に進み、BLOCK2内のメモリが消去されていないときにはメモリの消去を実行し、ステップS209に進む。電源チェック値の最新の書き込み値がBLOCK2内に書き込まれているときは、ステップS208に進み、BLOCK1内のメモリが消去されていないときにはメモリの消去を実行し、ステップS209に進む。   If there is a non-blank area in the memory read in step S204, the process proceeds to step S206 to determine whether or not the latest write value of the power check value is written in BLOCK1. If it is written in BLOCK1, the process proceeds to step S207. If the memory in BLOCK2 is not erased, the memory is erased, and the process proceeds to step S209. When the latest written value of the power check value is written in BLOCK2, the process proceeds to step S208. When the memory in BLOCK1 is not erased, the memory is erased, and the process proceeds to step S209.

ステップS209では、電源チェック値の最新の書き込み値が4であるか否かの判定を行う。電源チェック値が4のときにはステップS211に進み、電源チェック値を4に設定する。そして、ステップS212では、電力モードをスタンバイモードに設定するとともに、スタンバイモードからアクティブモードへの切り替えを禁止する。   In step S209, it is determined whether or not the latest write value of the power check value is 4. When the power check value is 4, the process proceeds to step S211 and the power check value is set to 4. In step S212, the power mode is set to the standby mode, and switching from the standby mode to the active mode is prohibited.

さらに、ステップS213において、揮発性メモリのNGフラグをオンにして、ステップS201に戻る。このとき、NGフラグはオンに設定されているため、ステップS202を経てステップS225に進み、スタンバイモードが維持され、図3のステップS301に進む。図3で示した制御フローは、スタンバイモードからアクティブモードへの切り替え禁止状態を解除するときの制御内容を表している。図3の制御フローの詳細については後述する。   Further, in step S213, the NG flag of the volatile memory is turned on, and the process returns to step S201. At this time, since the NG flag is set to ON, the process proceeds to step S225 through step S202, the standby mode is maintained, and the process proceeds to step S301 in FIG. The control flow shown in FIG. 3 represents the contents of control when canceling the switching prohibition state from the standby mode to the active mode. Details of the control flow of FIG. 3 will be described later.

ステップS209において、電源チェック値の最新の書き込み値が4でない場合にはステップS210に進み、最新の書き込み値がAAhであるか否かの判定を行う。「AAh」は、電池112の出力電圧が終止電圧以上である状態を示し、電力モードをアクティブモードに設定可能な状態であることを示す。最新の書き込み値がAAhのときはステップS215に進み、電源チェック値を1に設定する。一方、最新の書き込み値がAAhでないときはステップS216に進み、現在の電源チェック値に1を加える。   In step S209, if the latest write value of the power check value is not 4, the process proceeds to step S210, and it is determined whether or not the latest write value is AAh. “AAh” indicates a state where the output voltage of the battery 112 is equal to or higher than the end voltage, and indicates that the power mode can be set to the active mode. When the latest write value is AAh, the process proceeds to step S215, and the power check value is set to 1. On the other hand, when the latest write value is not AAh, the process proceeds to step S216, and 1 is added to the current power check value.

ステップS217では、ステップS205、ステップS215、ステップS216のいずれかのステップで設定された電源チェック値の書き込みを行う。そして、ステップS218において電源チェックを行う。   In step S217, the power check value set in any of step S205, step S215, and step S216 is written. In step S218, a power check is performed.

次に、ステップS219において、電源チェックの結果に基づいて電池の出力電圧が終止電圧以上か否かの判定を行う。終止電圧を下回っている場合にはステップS220に進み、電力モードをスタンバイモードに設定する。ステップS221では、交換レンズから通信要求が送信されたこと等の電源チェック条件が成立したか否かの判定を行う。電源チェック条件が成立しない場合は、ステップS221の判定を繰り返し行う。電源チェック条件が成立した場合にはステップS201に戻り、電力制御処理を続行する。   Next, in step S219, it is determined whether the output voltage of the battery is equal to or higher than the end voltage based on the result of the power check. If it is below the end voltage, the process proceeds to step S220, and the power mode is set to the standby mode. In step S221, it is determined whether a power check condition such as a communication request transmitted from the interchangeable lens is satisfied. If the power check condition is not satisfied, the determination in step S221 is repeated. If the power check condition is satisfied, the process returns to step S201 to continue the power control process.

ステップS219において、電池の出力電圧が終止電圧以上であると判定された場合にはステップS223に進み、電源チェック値としてAAhを書き込む。そして、ステップS224において、現在の電力モードがアクティブモードであればアクティブモードを維持し、現在の電力モードがスタンバイモードであればアクティブモードへの切り替えを行う。続いてステップS225において、アクティブモードからスタンバイモードへの切り替え条件が成立した否かの判定を行う。例えば、ドライブユニット110が交換レンズ101から取り外されたことを切り替え条件とすることができる。切り替え条件が成立した場合は、ステップS220に移行し、電力モードをスタンバイモードに移行する。切り替え条件が成立しない場合は、ステップS225の判定を繰り返し行い、アクティブモードを維持する。   If it is determined in step S219 that the output voltage of the battery is equal to or higher than the end voltage, the process proceeds to step S223, and AAh is written as the power check value. In step S224, if the current power mode is the active mode, the active mode is maintained, and if the current power mode is the standby mode, switching to the active mode is performed. Subsequently, in step S225, it is determined whether or not a condition for switching from the active mode to the standby mode is satisfied. For example, the switching condition can be that the drive unit 110 is detached from the interchangeable lens 101. When the switching condition is satisfied, the process proceeds to step S220, and the power mode is shifted to the standby mode. If the switching condition is not satisfied, the determination in step S225 is repeated and the active mode is maintained.

次に、図3を用いて、スタンバイモードからアクティブモードへの切り替え禁止状態を解除するときの制御フローについて説明する。ステップS301では、電力モードがスタンバイモードに設定され、アクティブモードへの切り替えが禁止されている。ステップS302では、電池の交換が行われた否かの判定を行う。電池の交換が行われた場合にはステップS303に進み、電池の交換が行われていない場合にはステップS302の判定を繰り返し行う。なお、電池の交換が行われると揮発性メモリがクリアされ、NGフラグがオフになる。   Next, a control flow for canceling the switching prohibition state from the standby mode to the active mode will be described with reference to FIG. In step S301, the power mode is set to the standby mode, and switching to the active mode is prohibited. In step S302, it is determined whether or not the battery has been replaced. If the battery has been replaced, the process proceeds to step S303. If the battery has not been replaced, the determination in step S302 is repeated. When the battery is replaced, the volatile memory is cleared and the NG flag is turned off.

ステップS303では、取り付けられた電池の出力電圧が終止電圧以上か否かの判定を行う。このとき、上述した電源チェックが行われる。出力電圧が終止電圧以上の場合はステップS304に進み、出力電圧が終止電圧以上でない場合はステップS303の判定を繰り返し行う。ステップS304では、不揮発性メモリ116に書き込まれた情報をクリアし、図2のステップS201に戻る。ここで、電池の交換により揮発性メモリがクリアされてNGフラグがオフになっているため、図2のステップS202からステップS203に移行し、電力モードを適切に制御することができる。   In step S303, it is determined whether or not the output voltage of the attached battery is equal to or higher than the end voltage. At this time, the power check described above is performed. If the output voltage is equal to or higher than the end voltage, the process proceeds to step S304. If the output voltage is not equal to or higher than the end voltage, the determination in step S303 is repeated. In step S304, the information written in the nonvolatile memory 116 is cleared, and the process returns to step S201 in FIG. Here, since the volatile memory is cleared by replacing the battery and the NG flag is turned off, the process proceeds from step S202 in FIG. 2 to step S203, and the power mode can be appropriately controlled.

以上説明したように、本発明では、電源チェックを複数回行い、電池112の出力電圧が継続して終止電圧を下回ったことに応じて、電力モードをスタンバイモードに設定するとともに、スタンバイモードからアクティブモードへの切り替えを禁止している。これにより、一時的な電圧降下により出力電圧が終止電圧を下回ったときには、スタンバイモードからアクティブモードへの切り替えが禁止されないようにすることができる。つまり、電池112の残量が十分であるにも関わらず、電子機器を動作させられないという事態を回避することができる。   As described above, in the present invention, the power check is performed a plurality of times, and the power mode is set to the standby mode in response to the output voltage of the battery 112 continuously lowering the end voltage, and the standby mode is activated from the standby mode. Switching to the mode is prohibited. As a result, when the output voltage falls below the end voltage due to a temporary voltage drop, switching from the standby mode to the active mode is not prohibited. That is, it is possible to avoid a situation in which the electronic device cannot be operated even though the remaining amount of the battery 112 is sufficient.

また、電源チェックの回数に制限を設けることにより、電池112に過度な負担がかかり続けないようにすることができる。   In addition, by setting a limit on the number of power checks, it is possible to prevent the battery 112 from being overloaded.

以上説明した各実施例は代表的な例に過ぎず、本発明の実施に際しては、各実施例に対して種々の変形や変更が可能である。   Each embodiment described above is only a representative example, and various modifications and changes can be made to each embodiment when the present invention is implemented.

例えば、本実施例では、電源チェック値の最終書き込み値が4であることを条件にスタンバイモードからアクティブモードへの切り替えを禁止しているが、最終書き込み値としての設定値を3や5等の任意の数字に設定することができる。つまり、電源チェックの結果、出力電圧が所定回数続けて終止電圧を下回ったときに、スタンバイモードからアクティブモードへの切り替えを禁止するように設定することができる。   For example, in this embodiment, switching from the standby mode to the active mode is prohibited on condition that the final write value of the power check value is 4, but the set value as the final write value is 3 or 5 or the like. Can be set to any number. That is, as a result of the power check, when the output voltage continues to fall below the end voltage for a predetermined number of times, the switching from the standby mode to the active mode can be prohibited.

108 ドライブユニットマイコン
110 電子機器(ドライブユニット)
112 電池
115 不揮発性メモリ
108 Drive unit microcomputer 110 Electronic equipment (drive unit)
112 battery 115 nonvolatile memory

Claims (7)

電池から供給される電力によって制御される電子機器であって、
前記電池の出力電圧が所定の電圧を下回った否かの判定の結果を示す情報を記憶する不揮発性メモリと、
前記判定の結果を示す情報の前記不揮発性メモリへの書き込みを行う制御部を有し、
前記制御部は、前記電子機器の電力モードを、アクティブモードと、該アクティブモードよりも消費電力の少ないスタンバイモードの間で切り替え可能であり、
前記制御部は、前記電力モードが前記スタンバイモードに設定された状態で、前記出力電圧が前記所定の電圧を下回ったことを示す判定結果が所定回数続けて得られたことに応じて、前記スタンバイモードから前記アクティブモードへの切り替えを禁止することを特徴とする電子機器。
An electronic device controlled by power supplied from a battery,
A non-volatile memory that stores information indicating a result of the determination as to whether or not the output voltage of the battery has fallen below a predetermined voltage;
A controller that writes information indicating the result of the determination to the nonvolatile memory;
The control unit can switch the power mode of the electronic device between an active mode and a standby mode with less power consumption than the active mode,
In response to the determination result indicating that the output voltage has fallen below the predetermined voltage in a state where the power mode is set to the standby mode, the control unit is continuously obtained a predetermined number of times. An electronic device that prohibits switching from a mode to the active mode.
前記判定を行うか否かを示す情報を記憶する揮発性メモリをさらに有し、
前記制御部は、前記出力電圧が前記所定の電圧を下回ったことを示す判定結果が、所定回数続けて得られたことに応じて、前記判定を行わないことを示す情報を前記揮発性メモリに書き込むことを特徴とする請求項1に記載の電子機器。
A volatile memory for storing information indicating whether to perform the determination;
The control unit stores information indicating that the determination is not performed in the volatile memory in response to a determination result indicating that the output voltage is lower than the predetermined voltage continuously for a predetermined number of times. The electronic device according to claim 1, wherein writing is performed.
前記電子機器に電池が取り付けられたことを検出する検出部を有し、
前記スタンバイモードから前記アクティブモードへの切り替えが禁止された状態で電池が交換され、該交換された電池の出力電圧が前記所定の電圧以上であることを示す判定結果が得られたことに応じて、前記制御部は、前記不揮発性メモリをクリアすることを特徴とする請求項1または2に記載の電子機器。
A detection unit for detecting that a battery is attached to the electronic device;
The battery is replaced in a state where switching from the standby mode to the active mode is prohibited, and a determination result indicating that the output voltage of the replaced battery is equal to or higher than the predetermined voltage is obtained. The electronic device according to claim 1, wherein the control unit clears the nonvolatile memory.
前記電子機器は、レンズ装置に対して取り外し可能であり、
前記制御部は、前記電子機器が前記レンズ装置に取り付けられたことに応じて前記判定を行うことを特徴とする請求項1乃至3のいずれか1項に記載の電子機器。
The electronic device is removable from the lens device;
The electronic device according to claim 1, wherein the control unit performs the determination in response to the electronic device being attached to the lens device.
前記電子機器は、レンズ装置に対して取り外し可能であり、
前記制御部は、前記レンズ装置と通信可能であり、
前記制御部は、前記レンズ装置からの通信要求を受信したことに応じて前記判定を行うことを特徴とする請求項1乃至3のいずれか1項に記載の電子機器。
The electronic device is removable from the lens device;
The control unit can communicate with the lens device,
The electronic device according to claim 1, wherein the control unit performs the determination in response to reception of a communication request from the lens device.
前記電子機器の電力モードに応じて点灯するランプをさらに有し、
前記制御部は、前記電子機器が前記アクティブモードのときには前記ランプを点灯させ、前記電子機器が前記スタンバイモードのときには前記ランプを消灯させることを特徴とする請求項1乃至5のいずれか1項に記載の電子機器。
A lamp that is turned on according to the power mode of the electronic device;
6. The control unit according to claim 1, wherein the control unit turns on the lamp when the electronic device is in the active mode, and turns off the lamp when the electronic device is in the standby mode. The electronic device described.
電池から供給される電力によって制御され、電力モードを、アクティブモードと、該アクティブモードよりも消費電力の少ないスタンバイモードの間で切り替え可能な電子機器のコンピュータに電力制御処理を実行させるプログラムであって、
前記電池の出力電圧が所定の電圧を下回ったか否かの判定を行うステップと、
前記電力モードが前記スタンバイモードに設定された状態で、前記出力電圧が前記所定の電圧を下回ったことを示す判定結果が所定回数続けて得られたことに応じて、前記スタンバイモードから前記アクティブモードへの切り替えを禁止するステップを含むことを特徴とするプログラム。
A program for controlling a power mode to be executed by a computer of an electronic device that is controlled by power supplied from a battery and that can switch a power mode between an active mode and a standby mode that consumes less power than the active mode. ,
Determining whether the output voltage of the battery has fallen below a predetermined voltage; and
In the state where the power mode is set to the standby mode, the active mode is changed from the standby mode to the active mode in response to a determination result indicating that the output voltage is lower than the predetermined voltage. The program characterized by including the step which prohibits the switch to.
JP2016026323A 2016-02-15 2016-02-15 Electronic device and power control program for electronic device Active JP6716279B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016026323A JP6716279B2 (en) 2016-02-15 2016-02-15 Electronic device and power control program for electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016026323A JP6716279B2 (en) 2016-02-15 2016-02-15 Electronic device and power control program for electronic device

Publications (2)

Publication Number Publication Date
JP2017147796A true JP2017147796A (en) 2017-08-24
JP6716279B2 JP6716279B2 (en) 2020-07-01

Family

ID=59683305

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016026323A Active JP6716279B2 (en) 2016-02-15 2016-02-15 Electronic device and power control program for electronic device

Country Status (1)

Country Link
JP (1) JP6716279B2 (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03253828A (en) * 1990-03-05 1991-11-12 Minolta Camera Co Ltd Battery check device for camera
JPH08227731A (en) * 1995-02-21 1996-09-03 Yamaha Motor Co Ltd Over-discharge preventing device for secondary battery
JP2000284353A (en) * 1999-03-30 2000-10-13 Olympus Optical Co Ltd Camera
JP2001186675A (en) * 1999-12-24 2001-07-06 Canon Inc Electronic apparatus, and camera
JP2001339630A (en) * 2000-05-25 2001-12-07 Canon Inc Image pickup device, control means and medium
JP2003169239A (en) * 2001-11-30 2003-06-13 Ricoh Co Ltd Digital camera
JP2005192383A (en) * 2003-12-05 2005-07-14 Matsushita Electric Ind Co Ltd Charging controller
JP2007128674A (en) * 2005-11-01 2007-05-24 Matsushita Electric Ind Co Ltd Battery pack
JP2011229306A (en) * 2010-04-21 2011-11-10 Sony Corp Battery control device, battery control method and program
JP2012073521A (en) * 2010-09-29 2012-04-12 Casio Comput Co Ltd Electronic apparatus, notification control method, and program
JP2013130688A (en) * 2011-12-21 2013-07-04 Nikon Corp Lens barrel and imaging device
JP2013158190A (en) * 2012-01-31 2013-08-15 Toyota Industries Corp Equalization device
JP2017225262A (en) * 2016-06-16 2017-12-21 人吉アサノ電機株式会社 Power demand remote management system, demand controller, demand controller master unit, and power demand remote management method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03253828A (en) * 1990-03-05 1991-11-12 Minolta Camera Co Ltd Battery check device for camera
JPH08227731A (en) * 1995-02-21 1996-09-03 Yamaha Motor Co Ltd Over-discharge preventing device for secondary battery
JP2000284353A (en) * 1999-03-30 2000-10-13 Olympus Optical Co Ltd Camera
JP2001186675A (en) * 1999-12-24 2001-07-06 Canon Inc Electronic apparatus, and camera
JP2001339630A (en) * 2000-05-25 2001-12-07 Canon Inc Image pickup device, control means and medium
JP2003169239A (en) * 2001-11-30 2003-06-13 Ricoh Co Ltd Digital camera
JP2005192383A (en) * 2003-12-05 2005-07-14 Matsushita Electric Ind Co Ltd Charging controller
JP2007128674A (en) * 2005-11-01 2007-05-24 Matsushita Electric Ind Co Ltd Battery pack
JP2011229306A (en) * 2010-04-21 2011-11-10 Sony Corp Battery control device, battery control method and program
JP2012073521A (en) * 2010-09-29 2012-04-12 Casio Comput Co Ltd Electronic apparatus, notification control method, and program
JP2013130688A (en) * 2011-12-21 2013-07-04 Nikon Corp Lens barrel and imaging device
JP2013158190A (en) * 2012-01-31 2013-08-15 Toyota Industries Corp Equalization device
JP2017225262A (en) * 2016-06-16 2017-12-21 人吉アサノ電機株式会社 Power demand remote management system, demand controller, demand controller master unit, and power demand remote management method

Also Published As

Publication number Publication date
JP6716279B2 (en) 2020-07-01

Similar Documents

Publication Publication Date Title
JP4548601B2 (en) Automotive control unit
JP2008192266A (en) Memory controller
US9110842B2 (en) Control device for vehicle and error processing method in control device for vehicle
EP2850615A1 (en) Memory chip power management
KR20150001671A (en) Information processing apparatus, method for controlling the same, and storage medium
US20100299023A1 (en) Electronic control unit and vehicle control system
JP6028670B2 (en) Data storage
JP2016126699A (en) Electronic control unit for vehicle
JP6716279B2 (en) Electronic device and power control program for electronic device
KR101601751B1 (en) Ecu of vehicle and boot software re-programming method thereof
JP4978476B2 (en) Power supply status detection device
TWI608487B (en) Memory device and method of managing throughput in the same based on a power supply voltage
JP2007162586A (en) On-vehicle control device
US11314634B2 (en) Electronic control unit and data protection method therefor
JP2013171600A (en) Nonvolatile memory device
JP2009116521A (en) Data rewriting method for memory
JP5516509B2 (en) Program writing system
JP6409677B2 (en) Information processing apparatus and information processing method
JP2002342147A (en) Nonvolatile memory device and memory control method thereof
JP4910402B2 (en) Nonvolatile memory rewriting device and rewriting method
JP4717043B2 (en) Load drive circuit
JP2008196531A (en) Action controller of controller for automatic transmission
JP5458507B2 (en) Image processing apparatus, image forming apparatus, and data protection method
JP4170133B2 (en) Information processing device
WO2014069253A1 (en) Electronic control device for vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200207

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200512

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200610

R151 Written notification of patent or utility model registration

Ref document number: 6716279

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151