JP4114035B2 - Electronic camera - Google Patents
Electronic camera Download PDFInfo
- Publication number
- JP4114035B2 JP4114035B2 JP2000371557A JP2000371557A JP4114035B2 JP 4114035 B2 JP4114035 B2 JP 4114035B2 JP 2000371557 A JP2000371557 A JP 2000371557A JP 2000371557 A JP2000371557 A JP 2000371557A JP 4114035 B2 JP4114035 B2 JP 4114035B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- recording medium
- download
- power supply
- electronic camera
- 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.)
- Expired - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は電子機器に係り、特に、デジタルカメラのようにバッテリー駆動可能な携帯電子機器に適用される制御プログラムの書き換え技術に関する。
【0002】
【従来の技術】
光学静止画像をデジタルデータとして記録メディアに記録する電子スチルカメラにおいて、その制御プログラムを外部からダウンロードすることによって書き換え可能なものが知られている(特開平7−225687号公報)。しかし、プログラムのダウンロード中に電源が停止したり、書き換えに失敗した場合は、書き換え後のプログラムが不正であるため、カメラが正常に動作しなくなる等の問題がある。
【0003】
特開平7−225687号公報では、実施例の一つとして、書き換え可能なプログラムメモリとしてフラッシュROMや常時バックアップ電池に接続されたRAMを用いて、電源電圧遮断時にもプログラムデータが保存されるようにしている。
【0004】
【発明が解決しようとする課題】
しかしながら、上記公報に開示された技術では、プログラムの書き換えに失敗してプログラムが不正となった場合に、カメラを正常に起動することができないという欠点がある。
【0005】
更に、同公報では、書き換え可能なプログラムメモリとしてRAMを用い、カメラ起動時に記録メディア内に記録されているプログラムをダウンロードして、動作を実行する実施例が開示されているが、この方法では、記録メディアが無ければカメラとして機能せず、カメラの起動毎にプログラムのダウンロードを行わなければならないため、起動に時間がかかるなどの問題がある。
【0006】
本発明はこのような事情に鑑みてなされたもので、プログラム書き換え中に電源が停止したり、書き換え処理に失敗するなどして、プログラムが不正に書き換えられた場合に、機器が正常に起動しなくなることを防止できる電子カメラを提供することを目的とする。
【0007】
【課題を解決するための手段】
前記目的を達成するために、請求項1に記載の発明は、光学像を電気信号に変換する撮像手段と、前記撮像手段を介して取得した画像データを所定の記録媒体に記録する記録手段と、を備えた電子カメラであって、当該電子カメラの動作制御を行う制御回路と、前記制御回路の処理工程を規定するプログラムを書き換え可能に保持するプログラムメモリと、当該電子カメラの外部から電力供給が可能な外部電源入力手段と、前記外部電源入力手段から供給される電力に代えて、電力供給源と成り得るバッテリーと、前記記録媒体が着脱可能に装着される記録媒体装着手段と、前記制御回路の処理工程を規定する予備プログラムを格納し、当該予備プログラムの書き換えが禁止されている予備プログラムメモリと、当該電子カメラの外部から電力供給されているか否かを判断するとともに前記記録媒体装着手段に前記記録媒体が装着されているか否かを判断し、外部から電力供給されており且つ前記記録媒体装着手段に前記記録媒体が装着されていると判断した場合には、ファインダーランプ又はセルフタイマーランプを点灯又は点滅させながら、前記記録媒体から、当該記録媒体の記録領域の一部を使用して保存されている前記プログラムを読み出し、当該プログラムを前記プログラムメモリに書き込むダウンロードを行う一方で、前記バッテリーから電力供給されていると判断した場合又は前記記録媒体装着手段に前記記録媒体が装着されていないと判断した場合には、前記ダウンロードを行わないダウンロード手段と、を備え、前記制御回路は、前記ダウンロードに失敗した場合には、前記予備プログラムメモリに書き換えが禁止されて格納されている前記予備プログラムを用いて当該電子カメラを起動することを特徴とする電子カメラを提供する。
請求項2に記載の発明は、請求項1に記載の発明において、前記ダウンロードの開始を指示するための指示手段を備え、前記ダウンロード手段は、前記指示手段から前記ダウンロードの開始が指示されたとき、前記バッテリーから電力供給されている場合には、外部電源の接続を要求する警告を提示する制御を行うことを特徴とする。
【0008】
本発明の電子機器は、電源供給源としてACパワーアダプタなどの外部電源と、機器に装着されるバッテリーを用いることができる。通常の機器動作では、バッテリーのみによる駆動が可能であるが、プログラム提供手段からプログラムメモリにプログラムを書き込む動作(以下、ダウンロードという。)を行う場合には電源の安定供給の観点から、バッテリーの使用を禁止して、外部電源から電力の供給を行う。こうすることで、バッテリー消耗によるダウンロード処理の中断を回避できる。例えば、ダウンロードの開始を指示する指示手段を操作したときに、外部電源が接続されていない場合には、ユーザに対して外部電源の接続を要求する警告を提示する手段を付加する態様が好ましい。
【0009】
制御回路には、中央演算処理装置(CPU)を用いることができ、プログラムメモリには、フラッシュROMなどの不揮発性のメモリが適用される。プログラム提供手段は、メモリカードのようなリムーバブルメディアであってもよいし、通信インターフェースを介して接続されるパソコンなどの外部機器からプログラムデータを受信するという構成も可能である。
【0010】
請求項3に記載の発明は、請求項1又は2に記載の発明において、前記制御回路は、ダウンロード中に、当該電子カメラの電源スイッチからの指示を無効にし、電源供給状態を維持する制御を行うことを特徴としている。
【0011】
請求項4に記載の発明は、請求項1乃至3の何れか1項に記載の発明において、前記外部電源入力手段から供給される電源電圧を監視する電圧監視手段と、ダウンロード中に前記電源電圧が予め定められている規定値よりも降下した場合には、電力供給源を前記バッテリーに切り替える電源切替手段と、を備えたことを特徴としている。
【0012】
本発明によれば、ダウンロード中にACパワーアダプタの接続が切り離されるなどのアクシデントによって外部電源の電圧が急激に降下した場合でも、電子機器にバッテリーが装着されていれば、電力供給源をバッテリー側に切り替えてダウンロード処理を継続させる。これにより、ダウンロードの失敗を回避できる。
【0015】
プログラムメモリと予備用メモリは、それぞれ予め役割が固定されていてもよいし、2つのプログラムメモリ(第1のプログラムメモリと、第2のプログラムメモリ)を用いて役割を切り替えてもよい。
【0017】
【発明の実施の形態】
以下添付図面に従って本発明に係る電子カメラの好ましい実施の形態について説明する。
【0018】
図1は、本発明の実施形態に係るデジタルカメラの斜視図である。同図に示したように、カメラ10の前面には、撮影レンズ12、ファインダー窓14、ストロボ16、ストロボ調光センサ18、マイク19、及びセルフタイマーランプ20が設けられ、撮影レンズ12の後方にCCDイメージセンサ(図1中不図示、図3において符号58として記載)が配置されている。
【0019】
カメラ上面には、シャッターボタン22、電源(パワー)スイッチ24、ダウンロードの開始を指示するダウンロードボタン25、及びストロボ撮影のモードを切り換えるためのストロボボタン26が配設されている。シャッターボタン22は2段階式に構成され、シャッターボタン22を軽く押して止める「半押し」の状態で自動ピント合わせ(AF)及び自動露出制御(AE)が作動してAFとAEをロックし、「半押し」から更に押し込む「全押し」の状態で撮影が実行される。シャッターボタン22は、静止画の記録開始の指示を与える手段であるとともに、動画の録画ボタン(録画のスタート/ストップボタン)として兼用される。
【0020】
グリップ部27と反対側のカメラ側面には、スピーカ28、音声/映像出力端子30、リモコン端子31、デジタル(USB)端子32、及び電源入力端子33が設けられている。電源入力端子33に図示せぬACパワーアダプタのコネクタを接続することにより、カメラ外部から電源を供給することができる。
【0021】
カメラ底面には、記録メディア(図1中不図示、図3中符号78として記載)のスロットカバーを兼ねた電池カバー34が設けられており、電池カバー34の奥には図示せぬメディアスロット及び電池収納室が形成されている。
【0022】
図2は、カメラ10の背面図である。カメラ背面には、ファインダー36、モードダイヤル38、左キー40、右キー42及び上/下レバー44、メニュー/実行キー46、キャンセル/戻るキー48、表示キー50、及び液晶モニタ52等が設けられている。ファインダー36の脇にはファインダーランプ37が配設されており、該ランプの点灯色と点灯状態(点灯/点滅)の組み合わせによってカメラ10の動作状態を表す。
【0023】
ファインダーランプ37は、後述するプログラムの書き換え動作において、ダウンロード中であることを示すアクセスランプとしても兼用される。ファインダーランプ37に代えて、又はこれと併用して図1に示したセルフタイマーランプ20をアクセスランプとして利用してもよいし、別途専用のランプを設けてもよい。
【0024】
図2に示したモードダイヤル38は、カメラの機能(モード)を変更する手段であり、モードダイヤル38を回動操作することにより、スチル撮影を行う撮影モード、撮影した画像を再生する再生モード、又は動画撮影を行うムービーモードに設定できる。
【0025】
左キー40、右キー42及び上/下レバー44は、それぞれ対応する4方向(左、右、上、下)の指示を入力する操作部であり、左キー40及び右キー42は、それぞれ、再生モード時に1コマ逆送りボタン、1コマ順送りボタンとして機能し、上/下レバー44は、再生ズーム機能や撮影時の電子ズーム機能における倍率調整用のズームレバーとして用いられる。
【0026】
また、左キー40、右キー42及び上/下レバー44は、メニュー/実行キー46の押下によって表示されるメニュー画面からメニュー項目を選択したり、各メニューにおける各種設定項目の選択を指示する操作ボタンとして機能する。メニュー/実行キー46は、各モードの通常画面からメニュー画面へ遷移させる時、或いは、選択内容の確定、処理の実行(確認)指示の時などに使用される。キャンセル/戻るキー48は、メニューから選んだ項目の取消(キャンセル)や一つ前の操作状態に戻る時などに使用される。表示キー50は、液晶モニタ52をON/OFF操作したり、再生方法や再生中のコマ番号等の表示/非表示を切り換えるための操作手段である。
【0027】
撮影モード又はムービーモードのときに、表示キー50を押すと、液晶モニタ52のON/OFFを切り換えることができる。また、再生モード時は「1コマ再生(オンスクリーン表示有り)」の状態から、表示キー50を押す毎に「オンスクリーン表示無しの状態」→「マルチ再生」→「1コマ再生(オンスクリーン表示有りの状態)」…と循環する。なお、「マルチ再生」は、一度に複数画面(例えば、3行3列の9画面)を表示する再生方法である。
【0028】
液晶モニタ52は、撮影時に画角確認用の電子ファインダーとして使用できるとともに、撮影した画像のプレビュー画や記録メディア78から読み出した再生画像等を表示することができる。また、左キー40、右キー42及び上/下レバー44を使用したメニューの選択や各メニューにおける各種設定項目の設定も液晶モニタ52の表示画面を用いて行われる。更に、液晶モニタ52には、撮影可能コマ数(動画については撮影可能時間)や再生コマ番号の表示、ストロボ発光の有無、マクロモード表示、記録画質(クオリティー)表示、画素数表示等の情報も表示される。
【0029】
図3は、本実施形態に係るデジタルカメラの構成を示すブロック図である。撮影レンズ12は、1枚又は複数枚のレンズで構成され、単焦点レンズでもよいし、ズームレンズ等の焦点距離可変のものでもよい。撮影レンズ12を通過した光は、図示せぬ絞りによって光量が調節された後、CCDイメージセンサ(以下、CCDという。)58に入射する。CCD58の受光面には、フォトセンサが平面的に配列されており、撮影レンズ12を介してCCD58の受光面に結像された被写体像は、各フォトセンサによって入射光量に応じた量の信号電荷に変換される。なお、CCD58は、シャッターゲートパルスのタイミングによって各フォトセンサの電荷蓄積時間(シャッタースピード)を制御する、いわゆる電子シャッター機能を有している。
【0030】
各フォトセンサに蓄積された信号電荷は、CCDドライバ(不図示)から与えられるパルスに基づいて信号電荷に応じた電圧信号(画像信号)として順次読み出される。CCD58から出力された画像信号は、アナログ信号処理部60に送られる。アナログ信号処理部60は、サンプリングホールド回路、色分離回路、ゲイン調整回路等の信号処理回路を含み、このアナログ信号処理部60において、相関二重サンプリング(CDS)処理並びにR,G,Bの各色信号に色分離処理され、各色信号の信号レベルの調整(プリホワイトバランス処理)が行われる。
【0031】
アナログ信号処理部60から出力された信号は、A/D変換器62によりデジタル信号に変換された後、画像信号処理回路64に加えられる。画像信号処理回路64は、輝度・色差信号生成回路、ガンマ補正回路、シャープネス補正回路、コントラスト補正回路、ホワイトバランス補正回路等を含む画像処理手段であり、CPU66からのコマンドに従って画像信号を処理する。
【0032】
撮影画像を表示出力する場合、画像データが画像信号処理回路64からバス68を介して画像再生処理回路70に転送され、画像再生処理回路70及びビデオエンコード回路72を介してNTSC方式等の所定の映像信号に変換された後、液晶モニタ52に出力される。
【0033】
CCD58から出力される画像信号によって画像データが定期的に書き換えられ、その画像データから生成される映像信号が液晶モニタ52に供給されることにより、CCD58を介して入力する画像がリアルタイムに液晶モニタ52に表示される。撮影者は、液晶モニタ52に映し出される画像(スルー画)、或いはファインダー36によって撮影画角を確認できる。
【0034】
モードダイヤル38により撮影モードが設定され、シャッターボタン22が押されると撮影開始指示(レリーズON)信号が発せられる。CPU66は、このレリーズON信号の受入に応動して、記録用の画像データの取り込みを開始する。画像データを圧縮記録するモードが選択されている場合、CPU66は圧縮伸張処理回路74にコマンドを送る。これにより圧縮伸張処理回路74は、画像データをJPEGその他の所定の形式に従って圧縮する。
【0035】
圧縮された画像データは、メディアコントロール回路76を介して記録メディア78等の記録メディアに記録される。非圧縮の画像データを記録するモード(非圧縮モード)が選択されている場合には、圧縮伸張処理回路74による圧縮処理を実施せずに、非圧縮のまま画像データが記録メディア78に記録される。
【0036】
本例のカメラ10では、画像データを保存する手段として、例えばスマートメディア(Solid-State Floppy Disk Card)が適用される。記録メディアの形態はこれに限定されず、コンパクトフラッシュ、PCカード、磁気ディスク、光ディスク、光磁気ディスク、メモリスティックなどでもよく、電子的、磁気的、若しくは光学的、又はこれらの組み合わせによる方式に従って読み書き可能な種々の媒体を用いることができる。使用される媒体に応じた信号処理手段とインターフェースが適用される。異種、同種の記録メディアを問わず、複数の媒体を装着可能な構成にしてもよい。また、画像ファイルを保存する手段は、カメラ本体に着脱可能なリムーバブルメディアに限らず、カメラ10に内蔵された記録媒体(内部メモリ)であってもよい。
【0037】
モードダイヤル38によってムービーモードが設定されたときには、動画記録が可能となり、シャッターボタン22の押下によって録画動作がスタートし、もう一度シャッターボタン22を押下すると録画動作が停止する。シャッターボタン22を押下継続している期間、録画動作を行い、押下解除により録画を停止するようにしてもよい。1回の撮影で記録できる最長時間、画像サイズ、フレームレート及び記録方式などは予め定められており、例えば、1回の撮影で最長約80秒の音声付きムービーを撮影でき、320 ×240 ピクセル、10フレーム/秒、Motion JPEG 形式によって記録メディア78に記録される。
【0038】
モードダイヤル38によって再生モードが設定されると、メディアコントロール回路84を介して記録メディア78から画像ファイルが読み出される。読み出された画像ファイルの圧縮データは、圧縮伸張処理回路74を介して非圧縮のYC信号に伸張される。
【0039】
伸張されたYC信号は、画像再生処理回路70及びビデオエンコード回路72を介して液晶モニタ52に出力される。これにより、液晶モニタ52には記録メディア78に記録されている最終コマのコマ画像が表示される。
【0040】
その後、右キー42が押されると、順方向にコマ送りされ、左キー40が押されると、逆方向にコマ送りされる。そして、コマ送りされたコマ位置の画像ファイルが記録メディア78から読み出され、上記と同様にしてコマ画像が液晶モニタ52に再生される。再生対象ファイルが動画ファイルの場合には、動画の先頭コマが代表画像として表示され、動画再生開始の指示を受け付ける画面になる。
【0041】
CPU66は、本カメラシステムの撮影レンズ12及びCCD58を含む光学系、各信号処理回路及び記録メディア等を統括制御するための制御部であり、カメラ10にはCPU66のプログラムを書き換え可能に保持することができるフラッシュROM80が設けられている。CPU66は、電源スイッチ24(スイッチSW3に相当)、シャッターボタン22(スイッチSW4に相当)、ダウンロードボタン25(スイッチSW5に相当)その他の操作部から受入する入力信号に基づき、対応する回路の動作を制御し、液晶モニタ52における表示の制御、ファインダーランプ37やセルフタイマーランプ20などの発光ダイオード(LED)82の発光制御、電源制御、オートフォーカス(AF)制御及び自動露出(AE)制御等を行う。
【0042】
フラッシュROM80には、カメラ10の制御プログラムが格納されており、カメラ10の電源をONにし、CPU66に電源供給を行うと、フラッシュROM80内の起動プログラムが実行され、フラッシュROM80内のプログラムがDRAM84に展開される。DRAM84にプログラムを展開後、CPU66は、プログラムカウンタをDRAM84内プログラムに移して、DRAM84上でプログラムを動作させる。なお、DRAM84は、プログラム領域の他、画像データを記憶する画像処理領域を有している。
【0043】
本例のカメラ10は、フラッシュROM80内のプログラムを変更或いは追加することができる。カメラ使用者が予め定められている操作手順(例えば、ACパワーアダプタを接続してダウンロードボタン25を押下する操作)に従って、記録メディア78から変更データ又は追加データを読み出し、これをSDRAM86に展開してから、フラッシュROM80に書き込むことによって、プログラムの変更又は追加が実現可能である。
【0044】
プログラムのダウンロード中にバッテリーが取り出されたり、SDRAM86へのプログラムの書き込み処理に失敗するなどして、プログラムが不正に書き換えられた場合にもカメラ10を正常に動作できるようにするため、カメラ10内には、カメラ10の最低限の動作に必要なプログラムを記憶した予備のフラッシュROM(以下、予備フラッシュROMという。)90が設けられている。何らかの理由でプログラムの書き換え処理に失敗しても、予備フラッシュROM90内のプログラムを用いてカメラを起動できるようになっている。予備フラッシュROM90は書き換えが禁止され、プログラム内容が保護されている。
【0045】
カメラ10の電力源としては、バッテリー又は電源入力端子33に接続される外部電源(以下、AC電源という。)を用いることができる。バッテリーには、一次電池或いは専用の二次電池を使用することが可能である。バッテリー又はAC電源から供給される電力は、DC/DCコンバータを含む電源回路92によって所要の電圧に変換された後、各ブロックに供給される。
【0046】
図4は、電源回路92の構成図である。同図に示すように、AC電源又はバッテリーからDC/DCコンバータ94を介してCPU66に電源が供給される。AC電源の電圧値は電圧監視回路95によって監視され、検出されたAC電源の電圧値の情報はCPU66に入力される。また、バッテリーの電圧値は電圧監視回路96によって監視され、検出されたバッテリーの電圧値の情報はCPU66に入力される。
【0047】
CPU66は、各電圧監視回路95、96から受入する情報に基づいて、スイッチSW1、SW2のON/OFF制御を行う。スイッチSW1は、電源入力端子33とDC/DCコンバータ97の間に配置され、スイッチSW2はバッテリーの正電極端子98とDC/DCコンバータ97の間に配置されている。両スイッチSW1、SW2のON/OFF状態を切り替えることによって各ブロックへの電源供給源(すなわち、DC/DCコンバータ97への電源供給源)を切り替えることが可能である。
【0048】
次に、上記の如く構成されたカメラ10の動作について説明する。図5は、カメラ10の制御手順を示すフローチャートである。バッテリーの交換、若しくは、ACパワーアダプタの接続によってカメラ10に電源が投入されると、CPU66はパワーオンリセット処理を行い(ステップS110)、電源スイッチ24に対応するスイッチSW3がONされるのを待機する(ステップS112)。
【0049】
スイッチSW3がONされると、ACパワーアダプタが接続される電源入力端子33の電圧レベルを判別する(ステップS114)。AC電圧がハイ(H)であれば、図4で説明したスイッチSW1をONしてAC電源を電力源とする(ステップS116)。その一方、図5のステップS114においてAC電圧がロウ(L)であれば、スイッチSW2をONしてバッテリーを電力源としてカメラ10を起動する(ステップS118)。
【0050】
次いで、CPU66は、フラッシュROM80内のプログラムが正常であるか否かの判断を行う(ステップS120)。フラッシュROM80に記憶されるプログラムには、予めサムコードも記録されている。プログラム起動時にフラッシュROM80のプログラムのチェックサム(誤り検出方式の一種)を計算し、記録したサムコードと比較してプログラムが正常であるか否かを判定する。
【0051】
ステップS120においてプログラムが正常であるとの判定を得たとき(YES判定時)、CPU66はフラッシュROM80に記録してあるプログラムをDRAM84に展開・実行した後(ステップS122)、スイッチSW3、SW4、及びSW5の監視状態に入る(ステップS140)。
【0052】
その一方、ステップS120においてプログラムが異常であると判断された場合には、予備フラッシュROM90のプログラムをDRAM84に展開・実行してカメラを起動する(ステップS124)。この場合、液晶モニタ52の画面に「プログラムが異常です。新しいプログラムをダウンロードして下さい」とのメッセージを表示して、新しいプログラムをダウンロードするようにユーザに促す。このメッセージは所定時間(例えば3秒間)表示され(ステップS126)、この間CPU66は処理を待機する(ステップS128)。所定時間経過後、メッセージの表示を消してから(ステップS130)、スイッチSW3、SW4、及びSW5の監視状態に入る(ステップS140)。
【0053】
スイッチSW3、SW4、及びSW5のうち、何れかのスイッチが操作されると、そのスイッチを判断して(ステップS142)、スイッチ毎に定められている処理に移行する。すなわち、スイッチSW3が操作された場合には、パワーOFFしてシャットダウン処理を行い(ステップS144)、ステップS112に戻る。スイッチSW4が操作された場合は、撮影処理を実行し(ステップS146)、ステップS140に戻る。また、スイッチSW5が操作された場合はダウンロード処理を実行して(ステップS148)、ステップS140に戻る。
【0054】
図6は撮影処理のサブルーチンを示すフローチャートである。撮影処理がスタートすると、AE、AFなどの撮影設定が行われ(ステップS210)、その設定に基づいてCCD露光処理が行われる(ステップS212)。
【0055】
CCD露光されると、画像の取り込みを開始し(ステップS214)、得られた画像信号について所定の信号処理を実行する(ステップS216)。次いで、指定されている画質設定に基づいてデータ圧縮処理を行ってから(ステップS218)、そのデータを記録メディア78に記録する(ステップS220)。
【0056】
図7は、ダウンロード処理のサブルーチンを示すフローチャートである。ダウンロード処理がスタートすると、CPU66は、まずスイッチSW1の状態を判定する(ステップS310)。スイッチSW1がOFFの場合、すなわち、電力源がバッテリーである場合には、「ACパワーアダプタを接続して下さい」とのメッセージを液晶モニタ52に表示して(ステップS312)、ダウンロード処理を中止する。メッセージは所定時間(例えば、3秒間)表示され、この間CPU66は処理を待機する(ステップS380)。所定時間経過後、メッセージは非表示となり(ステップS382)、ダウンロード中に点滅させるLED(本例ではファインダーランプ37で兼用)を消灯させて(ステップS384)、本サブルーチンを抜ける。
【0057】
その一方、AC電源が接続され、ステップS310においてスイッチSW1がON状態であることが検出されると、CPU66は記録メディア78の装着有無を判定する(ステップS314)。プログラムのダウンロードは、記録メディア78の記録領域の一部をプログラム領域として使用して保存されているプログラムをSDRAM86に展開してから、フラッシュROM80に書き込むことによって行う。したがって、記録メディア78がカメラ10のメディアスロットに挿入されていない場合(ステップS314においてNO判定時)には、「記録メディアを挿入して下さい」とのメッセージを液晶モニタ52に表示して(ステップS316)、上記ステップS380〜S384を経てダウンロードを中止する。
【0058】
ステップS314で記録メディア78が装着されている場合(YES判定時)は、ステップS318に進む。ステップS318では、記録メディア78内にプログラムデータが存在するか否かの検出を行う。記録メディア78内にプログラムが存在しない場合(NO判定時)には、「記録メディアにプログラムがありません」とのメッセージを液晶モニタ52に表示した後(ステップS320)、上記ステップS380〜S384を経てダウンロードを中止する。この場合、ユーザは、図示せぬパソコンなどを用いて新しいプログラムを記録メディア78に記憶させてから、改めてダウンロードを行う必要がある。
【0059】
ステップS318において記録メディア78内にプログラムが存在する場合(YES判定時)には、ダウンロードが実行される。ダウンロード中には、「プログラムのダウンロード中」というメッセージが液晶モニタ52に表示されるとともに、アクセスランプとして兼用されるファインダーランプ37のLEDを点滅させる(ステップS322)。このメッセージ表示とLED点滅によってユーザにダウンロード中であることを通知する。また、ダウンロード中は、CPU66がスイッチSW3乃至SW5からの入力信号を無効にして、ダウンロード中に電源が停止しないように制御している。
【0060】
そして、記録メディア78からSDRAM86へプログラムを転送し、SDRAM86にプログラムの展開を行う(ステップS324)。プログラムにはサムコードが記録されており、プログラムとともにサムコードもSDRAM86にコピーする。SDRAM86にプログラムを展開後、この展開したプログラムのチェックサムを算出し、予め記録しておいたサムコードと比較することにより、SDRAM86上のプログラムが正常であるか否かの判定を行う(ステップS326)。
【0061】
サムコードが一致しない場合は、「プログラムが異常です」とのメッセージを液晶モニタ52に表示し(ステップS328)、上記ステップS380〜S384を経てダウンロードを中止する。
【0062】
ステップS326において、サムコードが一致し、プログラムが正常であるとの判定を得た場合には、ステップS330へ進み、カウンターのカウント値iを初期化(i=0)した後、SDRAM86からフラッシュROM80へのプログラムの書き込みを実行する(ステップS332)。フラッシュROM80へのプログラムの書き込み終了後に、書き換えたプログラムのチェックサムを算出し、サムコードと照合することにより、フラッシュROM80上のプログラムが正常であるか否かの判定を行う(ステップS334)。
【0063】
ステップS334においてサムコードが一致すれば「ダウンロード完了」と液晶モニタ52に表示し(ステップS336)、上記ステップS380〜S384を経てダウンロード処理を終了する。
【0064】
その一方、ステップS334においてサムコードが一致せず、プログラム異常と判断されると、ステップS338に進み、カウンターを+1だけカウントアップする。次いで、カウント値iが予め設定しておいた規定回数Nを超えたか否かの判定を行い(ステップS340)、規定回数Nを超えていなければ(NO判定時)、ステップS332に戻る。こうして、規定回数Nだけ「書き込み」と「チェック」を繰り返し、その過程でプログラムが正常に書き込まれたら(ステップS334においてYES判定時)、ダウンロードを完了する(ステップS380〜S384)。
【0065】
規定回数Nだけ「書き込み」を試行しても、最後までサムコードの一致を得ないときは、「ダウンロードに失敗しました。修理が必要です」とのメッセージを液晶モニタ52に表示し(ステップS342)、上記ステップS380〜S384を経てダウンロード処理を終了する。この場合は、カメラ10のハードウェアが故障している可能性が高いので、ユーザに対してメーカに修理を依頼することを促す勧告を行う。なお、ダウンロードに失敗しても、予備フラッシュROM90のプログラムを使用することで、カメラ10の起動は可能であり、撮影を行うこともできる。
【0066】
図8は、AC電源の瞬間停止割り込み処理のフローチャートである。図4で説明したとおり、AC電源の電圧は電圧監視回路95によって監視されており、図7のステップS322〜S324で説明したダウンロード中にAC電源の電圧が急激に低下して、予め定められている規定電圧値を下回ると、割り込みが発生する。CPU66が割り込み信号を検出すると図8に示す割り込み処理がスタートする。すなわち、CPU66が割り込み信号を検出すると、バッテリーの電圧をチェックして(ステップS410)、電圧がハイ(H)であれば、図4で説明したスイッチSW1をOFFにするとともに、スイッチSW2をONにして電源供給源をバッテリー側に切り替え、ダウンロード処理を継続する(S412)。
【0067】
その一方、ステップS410においてバッテリー電圧がロウ(L)であれば、シャットダウンして(ステップS414)、プログラムを停止する。ダウンロード時には、ACパワーアダプタの使用を要求するが、万一、ダウンロード中にACパワーアダプタの接続が切り離された場合などには、バッテリーの電圧を確認して、使用可能であれば電力源をバッテリーに切り替えることにより、ダウンロードの失敗を回避するようになっている。
【0068】
次に、上述した実施形態の変形例を説明する。図3では、フラッシュROM80の内容を書き換え可能とし、カメラ10の最低限の動作に必要なプログラムを記憶した予備フラッシュROM90については書き換えを行わないように構成したが、予備フラッシュROM90の内容も更新可能に構成する態様もある。
【0069】
図9は、本発明の他の実施形態を示すブロック図である。同図中図3に示したブロック図と共通する部分には同一の符号を付し、その説明は省略する。図9に示したカメラ10は、制御プログラムを保持する手段としてフラッシュROM(A)81とフラッシュROM(B)91を有しており、両者の役割を切り替えることができるように構成される。
【0070】
フラッシュROM(A)81とフラッシュROM(B)91のうち、どちらのプログラムをDRAM84に展開するかを識別する符号(ビット)をフラッシュROM(A)81に用意しておくものとする。例えば、工場出荷時には、フラッシュROM(B)91が予備のフラッシュROMとして設定される。この場合、フラッシュROM(A)81に「フラッシュROM選択ビット=ON」の情報が書き込まれており、カメラ起動時には、フラッシュROM(A)からプログラムがDRAM84に展開される。なお、予備のフラッシュROMとして割り当てられたフラッシュROM(B)91については、工場出荷時にフラッシュROM(A)81と同等の制御プログラムを格納しておいてもよいし、制御プログラムを格納しておかなくてもよい。
【0071】
当該カメラ10でプログラムの書き換え(ダウンロード)を実行すると、フラッシュROM(B)91に新しいプログラムが書き込まれ、フラッシュROM(A)が旧プログラムを保持したまま、予備のフラッシュROMとして機能する。この時、フラッシュROM選択ビットはOFFに変更される。
【0072】
その後は、カメラ起動時にフラッシュROM(B)91のプログラムがDRAM84に展開されて、カメラ制御が行われる。なお、仮に、ダウンロードに失敗したとしても、フラッシュROM(A)81に保存されている旧プログラム(動作実績のあるプログラム)によってカメラ10を起動させることができる。プログラムの書き換えは、予備側のフラッシュROMについて行われ、書き換え毎に、フラッシュROM(A)81、フラッシュROM(B)91の役割が交互に切り替わる。
【0073】
図9に示したカメラ10の制御に関するフローチャートを図10乃至図12に示す。これらの図面中、図6及び図7図のフローチャートと共通する処理については同一のステップ番号を付してその説明は省略する。
【0074】
図10のステップS116又はS118によって電力源が選択された後、ステップS130に進み、フラッシュROM選択ビットの状態を判定する。フラッシュROM選択ビットがONの場合には、ステップS132に進み、フラッシュROM(A)81のプログラムをDRAM84に展開・実行する。その一方、ステップS130においてフラッシュROM選択ビットがOFFの場合には、フラッシュROM(B)91のプログラムをDRAM84に展開・実行する(ステップS134)。
【0075】
ステップS132又はステップS134の後は、ステップS140に進む。以後の処理は図3で説明した通りである。
【0076】
図10のステップS148で示したダウンロード処理のサブルーチンが図11及び図12に示されている。図12のステップS330でカウンターを初期化(i=0)した後、ステップS342に進む。ステップS342では、フラッシュROM選択ビットの状態を判定する。フラッシュROM選択ビットがON、すなわち、現在、フラッシュROM(A)81のプログラムをDRAM84に展開・実行している場合には、ステップS344に進み、SDRAM86の新プログラムをフラッシュROM(B)91に書き込む処理を実行する。フラッシュROM(B)91へのプログラムの書き込み終了後に、書き換えたプログラムのチェックサムを算出し、サムコードと照合することにより、フラッシュROM(B)91上のプログラムが正常であるか否かの判定を行う(ステップS346)。
【0077】
ステップS346においてサムコードが一致すれば、フラッシュROM選択ビットを反転する(ONならばOFFに、OFFならばONに変更)とともに(ステップS370)、「ダウンロード完了」というメッセージを液晶モニタ52に表示し(ステップS372)、ステップS380〜S384を経てダウンロード処理を終了する。
【0078】
その一方、ステップS346においてサムコードが一致せず、プログラム異常と判断されると、ステップS348に進み、カウンターを+1だけカウントアップする。次いで、カウント値iが予め設定しておいた規定回数Nを超えたか否かの判定を行い(ステップS350)、規定回数Nを超えていなければ(NO判定時)、ステップS344に戻る。こうして、規定回数Nだけ「書き込み」と「チェック」を繰り返し、その過程でプログラムが正常に書き込まれたら(ステップS346においてYES判定時)、ダウンロードを完了する(ステップS370〜S384)。
【0079】
規定回数Nだけ「書き込み」を試行しても、最後までサムコードの一致を得ないときは、「ダウンロードに失敗しました。修理が必要です」とのメッセージを液晶モニタ52に表示し(ステップS352)、ステップS380〜S384を経てダウンロード処理を終了する。なお、ダウンロードに失敗しても、今まで使用していたフラッシュROM(A)81のプログラムを使用することで、カメラ10の起動は可能であり、撮影を行うことができる。
【0080】
ステップS342において、フラッシュROM選択ビットがOFF、すなわち、現在、フラッシュROM(B)91のプログラムをDRAM84に展開・実行している場合には、ステップS354に進み、SDRAM86の新プログラムをフラッシュROM(A)81に書き込む処理を実行する。フラッシュROM(A)81へのプログラムの書き込み終了後に、書き換えたプログラムのチェックサムを算出し、サムコードと照合することにより、フラッシュROM(A)81上のプログラムが正常であるか否かの判定を行う(ステップS356)。
【0081】
ステップS356においてサムコードが一致すれば、フラッシュROM選択ビットを反転するとともに(ステップS370)、「ダウンロード完了」というメッセージを液晶モニタ52に表示し(ステップS372)、ステップS380〜S384を経てダウンロード処理を終了する。
【0082】
その一方、ステップS356においてサムコードが一致せず、プログラム異常と判断されると、ステップS358に進み、カウンターを+1だけカウントアップして、規定回数Nだけ「書き込み」と「チェック」を繰り返す。その過程でプログラムが正常に書き込まれたら(ステップS356においてYES判定時)、ダウンロードを完了する(ステップS370〜S384)。
【0083】
規定回数Nだけ「書き込み」を試行しても、最後までサムコードの一致を得ないときは、「ダウンロードに失敗しました。修理が必要です」とのメッセージを液晶モニタ52に表示し(ステップS362)、ステップS380〜S384を経てダウンロード処理を終了する。なお、ダウンロードに失敗しても、今まで使用していたフラッシュROM(B)91のプログラムを使用することで、カメラ10の起動は可能であり、撮影を行うとができる。
【0084】
従来は予備のプログラムを保存しておく手段が設けられていないため、フラッシュROMへのプログラム書き込みに失敗すると、その時点では、DRAM内プログラムが正常であるため動作不良とならないが、一度電源をOFFして、再びONにした場合には、DRAMに不正なプログラムが展開・実行されるため、カメラの動作が不良となり、プログラムの書き換え(ダウンロードのやり直し)さえも不可能な状況に陥るという欠点があった。
【0085】
これに対し、本発明の実施形態に係るカメラは、ダウンロード時にはACパワーアダプタの使用を要求するとともに、万一、ACパワーアダプタが抜かれても、電力源をバッテリーに自動的に切り替えてダウンロードを継続させるなど、ダウンロードの中断を回避する機能が搭載されているのみならず、仮にプログラムの書き換えに失敗しても、予備のプログラムによってカメラを起動できるように構成されているので、カメラが動作不能になるという事態を避けることができる。これにより、制御プログラムの更新(バージョンアップ)などを容易かつ確実に実施できる。
【0086】
上記実施の形態ではデジタルカメラを例に説明したが、本発明の適用範囲はこれに限定されず、携帯情報端末、オーディオ機器、画像再生装置など様々な電子機器について本発明を適用することが可能である。
【0087】
【発明の効果】
以上説明したように本発明に係る電子カメラによれば、バッテリー駆動時にはプログラムの書き換え動作を禁止したので、書き換え中の電池消耗に起因するダウンロードの失敗を未然に回避できる。また、ダウンロード中は電源スイッチを無効にして電源をOFFできないように構成し、或いは、外部電源の電圧降下時には、電力供給源をバッテリー側に切り替えて給電を確保する構成によって、ダウンロードの中断を回避できる。
【0088】
更に、本発明の電子カメラは、予備のプログラムを保持した予備用メモリを具備しているので、万一、プログラムの書き換えに失敗して、不正なプログラムに変更されても、予備のプログラムによって機器を起動できる。
【図面の簡単な説明】
【図1】本発明の実施形態に係るデジタルカメラの斜視図
【図2】図1に示したカメラの背面図
【図3】本実施形態に係るデジタルカメラの構成を示すブロック図
【図4】図3に示した電源回路の構成図
【図5】本例のカメラの制御手順を示すフローチャート
【図6】撮影処理の制御手順を示すフローチャート
【図7】ダウンロード処理の手順を示すフローチャート
【図8】電源の切り替えに関する割り込み処理を示すフローチャート
【図9】本発明の他の実施形態に係るデジタルカメラの構成を示すブロック図
【図10】図9に示したカメラの制御手順を示すフローチャート
【図11】図9に示したカメラのダウンロード処理の手順を示すフローチャート
【図12】図9に示したカメラのダウンロード処理の手順を示すフローチャート
【符号の説明】
10…カメラ(電子機器、電子カメラ)、12…撮影レンズ、24…電源スイッチ、33…電源入力端子(外部電源入力手段)、58…CCD(撮像手段)、66…CPU(制御回路、禁止手段、電源切替手段、確認手段)、76…メディアコントロール回路(記録手段)、78…記録メディア(プログラム提供手段、記録媒体)、80…フラッシュROM(プログラムメモリ)、90…予備フラッシュROM(予備用メモリ)、95…電圧監視回路(電圧監視手段)、SW1,SW2…スイッチ(電源切替手段)[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic device, and more particularly to a rewriting technique of a control program applied to a portable electronic device that can be driven by a battery such as a digital camera.
[0002]
[Prior art]
An electronic still camera that records an optical still image on a recording medium as digital data is known that can be rewritten by downloading the control program from the outside (Japanese Patent Laid-Open No. 7-225687). However, if the power supply is stopped or the rewriting fails while the program is being downloaded, the rewritten program is invalid and the camera will not operate normally.
[0003]
In Japanese Patent Application Laid-Open No. 7-225687, as one example, a flash ROM or a RAM connected to a backup battery is used as a rewritable program memory so that the program data can be stored even when the power supply voltage is shut off. ing.
[0004]
[Problems to be solved by the invention]
However, the technique disclosed in the above publication has a drawback that the camera cannot be normally started when the program is rewritten and the program becomes invalid.
[0005]
Further, in this publication, an embodiment is disclosed in which a RAM is used as a rewritable program memory, a program recorded in a recording medium is downloaded when the camera is activated, and an operation is executed. If there is no recording medium, it does not function as a camera, and a program must be downloaded every time the camera is activated.
[0006]
The present invention has been made in view of such circumstances, and when a program is rewritten illegally, such as when the power is stopped during program rewriting or the rewriting process fails, the device starts up normally. Electronics that can prevent it from disappearing camera The purpose is to provide.
[0007]
[Means for Solving the Problems]
In order to achieve the object, the invention described in
The invention according to
[0008]
The electronic device of the present invention can use an external power source such as an AC power adapter and a battery attached to the device as a power supply source. In normal equipment operation, it can be driven only by the battery. However, when performing an operation of writing a program to the program memory from the program providing means (hereinafter referred to as downloading), the use of the battery is necessary from the viewpoint of stable power supply. Is prohibited and power is supplied from an external power source. By doing this, interruption of the download process due to battery consumption can be avoided. For example, it is preferable to add a means for presenting a warning requesting the user to connect an external power source when an external power source is not connected when an instruction unit for instructing the start of download is operated.
[0009]
A central processing unit (CPU) can be used as the control circuit, and a nonvolatile memory such as a flash ROM is applied as the program memory. The program providing means may be a removable medium such as a memory card, and may be configured to receive program data from an external device such as a personal computer connected via a communication interface.
[0010]
According to a third aspect of the invention, in the invention of the first or second aspect, the control circuit is configured to download the electronic camera This is characterized in that the control from the power switch is invalidated and the power supply state is maintained.
[0011]
The invention according to
[0012]
According to the present invention, even when the voltage of the external power supply suddenly drops due to an accident such as disconnection of the AC power adapter during the download, if the battery is attached to the electronic device, the power supply source is connected to the battery side. To continue the download process. As a result, download failure can be avoided.
[0015]
The roles of the program memory and the spare memory may be fixed in advance, or the roles may be switched using two program memories (a first program memory and a second program memory).
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, according to the attached drawings, camera A preferred embodiment of the present invention will be described.
[0018]
FIG. 1 is a perspective view of a digital camera according to an embodiment of the present invention. As shown in the figure, on the front surface of the
[0019]
On the upper surface of the camera, a
[0020]
A
[0021]
A
[0022]
FIG. 2 is a rear view of the
[0023]
The
[0024]
The
[0025]
The
[0026]
The
[0027]
When the
[0028]
The liquid crystal monitor 52 can be used as an electronic viewfinder for checking the angle of view at the time of shooting, and can display a preview image of the shot image, a reproduced image read from the
[0029]
FIG. 3 is a block diagram illustrating a configuration of the digital camera according to the present embodiment. The photographing
[0030]
The signal charge accumulated in each photosensor is sequentially read out as a voltage signal (image signal) corresponding to the signal charge based on a pulse given from a CCD driver (not shown). The image signal output from the
[0031]
The signal output from the analog
[0032]
When the captured image is displayed and output, the image data is transferred from the image
[0033]
The image data is periodically rewritten by the image signal output from the
[0034]
When the shooting mode is set by the
[0035]
The compressed image data is recorded on a recording medium such as the
[0036]
In the
[0037]
When the movie mode is set by the
[0038]
When the playback mode is set by the
[0039]
The expanded YC signal is output to the liquid crystal monitor 52 via the image
[0040]
Thereafter, when the
[0041]
The
[0042]
A control program for the
[0043]
The
[0044]
In order to allow the
[0045]
As a power source of the
[0046]
FIG. 4 is a configuration diagram of the
[0047]
The
[0048]
Next, the operation of the
[0049]
When the switch SW3 is turned on, the voltage level of the
[0050]
Next, the
[0051]
When it is determined in step S120 that the program is normal (YES determination), the
[0052]
On the other hand, if it is determined in step S120 that the program is abnormal, the program in the
[0053]
When any one of the switches SW3, SW4, and SW5 is operated, the switch is determined (step S142), and the process proceeds to a process determined for each switch. That is, when the switch SW3 is operated, the power is turned off to perform the shutdown process (step S144), and the process returns to step S112. When the switch SW4 is operated, the photographing process is executed (step S146), and the process returns to step S140. If switch SW5 is operated, a download process is executed (step S148), and the process returns to step S140.
[0054]
FIG. 6 is a flowchart showing a subroutine of the photographing process. When the shooting process starts, shooting settings such as AE and AF are performed (step S210), and the CCD exposure process is performed based on the settings (step S212).
[0055]
When the CCD exposure is performed, image capture is started (step S214), and predetermined signal processing is executed on the obtained image signal (step S216). Next, after performing data compression processing based on the designated image quality setting (step S218), the data is recorded on the recording medium 78 (step S220).
[0056]
FIG. 7 is a flowchart showing a subroutine of download processing. When the download process starts, the
[0057]
On the other hand, when the AC power source is connected and it is detected in step S310 that the switch SW1 is in the ON state, the
[0058]
If the
[0059]
If there is a program in the
[0060]
Then, the program is transferred from the
[0061]
If the sum codes do not match, a message “Program is abnormal” is displayed on the liquid crystal monitor 52 (step S328), and the download is stopped through steps S380 to S384.
[0062]
In step S326, if the thumb codes match and it is determined that the program is normal, the process proceeds to step S330, the counter count value i is initialized (i = 0), and the
[0063]
If the thumb codes match in step S334, “download complete” is displayed on the liquid crystal monitor 52 (step S336), and the download process is terminated through steps S380 to S384.
[0064]
On the other hand, if the sum codes do not match in step S334 and it is determined that the program is abnormal, the process proceeds to step S338, and the counter is incremented by +1. Next, it is determined whether or not the count value i has exceeded a predetermined number of times N set in advance (step S340). If the number of times N has not been exceeded (when NO is determined), the process returns to step S332. In this way, “write” and “check” are repeated for the specified number of times N. If the program is normally written in the process (YES in step S334), the download is completed (steps S380 to S384).
[0065]
If the same number of times N is tried and “write” is attempted, but the sum code does not match until the end, a message “Download failed. Repair is required” is displayed on the LCD monitor 52 (step S342). The download process is terminated through the above steps S380 to S384. In this case, since there is a high possibility that the hardware of the
[0066]
FIG. 8 is a flowchart of the AC power supply instantaneous stop interrupt process. As described in FIG. 4, the voltage of the AC power source is monitored by the
[0067]
On the other hand, if the battery voltage is low (L) in step S410, it is shut down (step S414) and the program is stopped. At the time of download, the AC power adapter is required to be used. If the AC power adapter is disconnected during the download, check the voltage of the battery, and if it is available, use the power source as a battery. By switching to, download failure is avoided.
[0068]
Next, a modified example of the above-described embodiment will be described. In FIG. 3, the contents of the
[0069]
FIG. 9 is a block diagram showing another embodiment of the present invention. In the figure, parts common to those in the block diagram shown in FIG. The
[0070]
It is assumed that a code (bit) for identifying which of the flash ROM (A) 81 and the flash ROM (B) 91 is developed in the
[0071]
When the program is rewritten (downloaded) by the
[0072]
Thereafter, the program of the flash ROM (B) 91 is expanded in the
[0073]
Flow charts relating to the control of the
[0074]
After the power source is selected in step S116 or S118 of FIG. 10, the process proceeds to step S130, and the state of the flash ROM selection bit is determined. If the flash ROM selection bit is ON, the process proceeds to step S132, and the program of the flash ROM (A) 81 is expanded and executed in the
[0075]
After step S132 or step S134, the process proceeds to step S140. Subsequent processing is as described in FIG.
[0076]
The download processing subroutine shown in step S148 of FIG. 10 is shown in FIGS. After the counter is initialized (i = 0) in step S330 in FIG. 12, the process proceeds to step S342. In step S342, the state of the flash ROM selection bit is determined. If the flash ROM selection bit is ON, that is, if the program in the flash ROM (A) 81 is currently being developed and executed in the
[0077]
If the thumb codes match in step S346, the flash ROM selection bit is reversed (OFF if ON, changed to ON if OFF) (step S370), and a message “Download complete” is displayed on the LCD monitor 52 ( After step S372) and steps S380 to S384, the download process is terminated.
[0078]
On the other hand, if the sum codes do not match in step S346 and it is determined that the program is abnormal, the process proceeds to step S348, and the counter is incremented by +1. Next, it is determined whether or not the count value i has exceeded a preset specified number N (step S350). If the count value i has not exceeded the specified number N (NO determination), the process returns to step S344. In this way, “write” and “check” are repeated for the specified number of times N. If the program is normally written in the process (YES in step S346), the download is completed (steps S370 to S384).
[0079]
If the same number of times N is tried and “write” is attempted but the sum code does not match until the end, the message “Download failed. Repair is required” is displayed on the LCD monitor 52 (step S352). The download process is terminated through steps S380 to S384. Even if the download fails, the
[0080]
In step S342, if the flash ROM selection bit is OFF, that is, if the program in the flash ROM (B) 91 is currently expanded and executed in the
[0081]
If the thumb codes match in step S356, the flash ROM selection bit is inverted (step S370), a message “download complete” is displayed on the liquid crystal monitor 52 (step S372), and the download process is terminated through steps S380 to S384. To do.
[0082]
On the other hand, if it is determined in step S356 that the sum codes do not match and it is determined that the program is abnormal, the process proceeds to step S358, the counter is incremented by +1, and “write” and “check” are repeated for the specified number of times N. If the program is normally written in this process (YES in step S356), the download is completed (steps S370 to S384).
[0083]
If the same number of times N is tried and “write” is attempted, but the sum code does not match, the message “Download failed. Repair is required” is displayed on the LCD monitor 52 (step S362). The download process is terminated through steps S380 to S384. Even if the download fails, the
[0084]
Conventionally, since there is no means for storing a spare program, if the program writing to the flash ROM fails, the program in the DRAM is normal and no malfunction occurs, but the power is turned off once. When the power is turned on again, an illegal program is developed and executed in the DRAM, so that the operation of the camera becomes defective and the program cannot be rewritten (re-downloading). there were.
[0085]
In contrast, the camera according to the embodiment of the present invention requires the use of an AC power adapter at the time of download, and even if the AC power adapter is removed, the power source is automatically switched to the battery and the download is continued. In addition to being equipped with functions that prevent download interruptions, the camera can no longer operate because it is configured to be able to start up with a spare program even if program rewriting fails. Can be avoided. Thereby, the control program can be easily and reliably updated (version upgrade).
[0086]
In the above embodiment, the digital camera has been described as an example. However, the scope of application of the present invention is not limited to this, and the present invention can be applied to various electronic devices such as portable information terminals, audio devices, and image playback devices. It is.
[0087]
【The invention's effect】
As described above, the electron according to the present invention camera Since the program rewrite operation is prohibited when the battery is driven, it is possible to avoid a download failure due to battery consumption during rewriting. In addition, the power switch is disabled during download to prevent the power from being turned off, or when the voltage of the external power supply drops, the power supply source is switched to the battery side to ensure power supply to avoid interruption of the download. it can.
[0088]
Further, the electronic of the present invention camera Since it has a spare memory that holds a spare program, the device can be started up by the spare program even if the program rewrite fails and the program is changed to an illegal program.
[Brief description of the drawings]
FIG. 1 is a perspective view of a digital camera according to an embodiment of the present invention.
FIG. 2 is a rear view of the camera shown in FIG.
FIG. 3 is a block diagram showing a configuration of a digital camera according to the present embodiment.
4 is a configuration diagram of the power supply circuit shown in FIG. 3;
FIG. 5 is a flowchart showing a control procedure of the camera of this example.
FIG. 6 is a flowchart showing a control procedure of imaging processing.
FIG. 7 is a flowchart showing the procedure of download processing.
FIG. 8 is a flowchart showing interrupt processing relating to power supply switching;
FIG. 9 is a block diagram showing the configuration of a digital camera according to another embodiment of the present invention.
10 is a flowchart showing a control procedure of the camera shown in FIG. 9;
FIG. 11 is a flowchart showing a procedure of download processing of the camera shown in FIG. 9;
12 is a flowchart showing a procedure of download processing of the camera shown in FIG. 9;
[Explanation of symbols]
DESCRIPTION OF
Claims (4)
当該電子カメラの動作制御を行う制御回路と、
前記制御回路の処理工程を規定するプログラムを書き換え可能に保持するプログラムメモリと、
当該電子カメラの外部から電力供給が可能な外部電源入力手段と、
前記外部電源入力手段から供給される電力に代えて、電力供給源と成り得るバッテリーと、
前記記録媒体が着脱可能に装着される記録媒体装着手段と、
前記制御回路の処理工程を規定する予備プログラムを格納し、当該予備プログラムの書き換えが禁止されている予備プログラムメモリと、
当該電子カメラの外部から電力供給されているか否かを判断するとともに前記記録媒体装着手段に前記記録媒体が装着されているか否かを判断し、外部から電力供給されており且つ前記記録媒体装着手段に前記記録媒体が装着されていると判断した場合には、ファインダーランプ又はセルフタイマーランプを点灯又は点滅させながら、前記記録媒体から、当該記録媒体の記録領域の一部を使用して保存されている前記プログラムを読み出し、当該プログラムを前記プログラムメモリに書き込むダウンロードを行う一方で、前記バッテリーから電力供給されていると判断した場合又は前記記録媒体装着手段に前記記録媒体が装着されていないと判断した場合には、前記ダウンロードを行わないダウンロード手段と、を備え、
前記制御回路は、前記ダウンロードに失敗した場合には、前記予備プログラムメモリに書き換えが禁止されて格納されている前記予備プログラムを用いて当該電子カメラを起動することを特徴とする電子カメラ。 An electronic camera comprising: an imaging unit that converts an optical image into an electrical signal; and a recording unit that records image data acquired via the imaging unit on a predetermined recording medium,
A control circuit for controlling the operation of the electronic camera ;
A program memory for holding a rewritable program that defines the processing steps of the control circuit;
An external power input means capable power supply from the outside of the electronic camera,
Instead of the power supplied from the external power supply input means, a battery that can be a power supply source,
A recording medium mounting means, wherein the recording medium is detachably mounted,
A spare program memory for prescribing the processing steps of the control circuit, and a spare program memory in which rewriting of the spare program is prohibited;
It is determined whether or not electric power is supplied from the outside of the electronic camera , and whether or not the recording medium is mounted on the recording medium mounting means, and is supplied with power from the outside and the recording medium mounting means If it is determined that the recording medium is mounted on the recording medium, the recording medium is stored using a part of the recording area of the recording medium while turning on or blinking the finder lamp or the self-timer lamp The program is read and the program is downloaded to the program memory while downloading is performed, or when it is determined that power is supplied from the battery, or the recording medium mounting means determines that the recording medium is not mounted A download means that does not perform the download,
Wherein said control circuit, when failed in the downloading, an electronic camera, characterized in that to start the electronic camera by using the preliminary program rewritten to the preliminary program memory are stored is prohibited.
前記ダウンロード手段は、前記指示手段から前記ダウンロードの開始が指示されたとき、前記バッテリーから電力供給されている場合には、外部電源の接続を要求する警告を提示する制御を行うことを特徴とする請求項1に記載の電子カメラ。An instruction means for instructing the start of the download;
The download unit performs control to present a warning requesting connection of an external power source when power is supplied from the battery when the start of the download is instructed from the instruction unit. The electronic camera according to claim 1.
前記記録媒体から前記プログラムメモリに前記プログラムを書き込む動作中に前記電源電圧が予め定められている規定値よりも降下した場合には、電力供給源を前記バッテリーに切り替える電源切替手段と、
を備えたことを特徴とする請求項1乃至3の何れか1項に記載の電子カメラ。Voltage monitoring means for monitoring the power supply voltage supplied from the external power input means;
Power supply switching means for switching the power supply source to the battery when the power supply voltage drops below a predetermined value during the operation of writing the program from the recording medium to the program memory;
The electronic camera according to any one of claims 1 to 3, further comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000371557A JP4114035B2 (en) | 2000-12-06 | 2000-12-06 | Electronic camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000371557A JP4114035B2 (en) | 2000-12-06 | 2000-12-06 | Electronic camera |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002176582A JP2002176582A (en) | 2002-06-21 |
JP4114035B2 true JP4114035B2 (en) | 2008-07-09 |
Family
ID=18841262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000371557A Expired - Fee Related JP4114035B2 (en) | 2000-12-06 | 2000-12-06 | Electronic camera |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4114035B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101578320B (en) * | 2006-12-26 | 2011-10-05 | 株式会社钟化 | Novel polyimide precursor composition, use thereof and production method thereof |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7243084B2 (en) * | 2001-04-24 | 2007-07-10 | Sony Corporation | Information processing method and apparatus for billing |
JP2004128954A (en) * | 2002-10-03 | 2004-04-22 | Nikon Corp | Electronic camera having cleaning mode |
JP4208593B2 (en) * | 2003-02-14 | 2009-01-14 | キヤノン株式会社 | Signal processing device |
JP4355849B2 (en) * | 2003-06-06 | 2009-11-04 | カシオ計算機株式会社 | Recording apparatus, power control method for recording apparatus, and program |
JP2006011906A (en) * | 2004-06-28 | 2006-01-12 | Yamaha Corp | Software installation method |
JP2006209528A (en) * | 2005-01-28 | 2006-08-10 | Yokogawa Electric Corp | Integrated control system |
JP2007066060A (en) * | 2005-08-31 | 2007-03-15 | Fujitsu Ltd | Electronic apparatus and computer executable program |
JP2007166364A (en) * | 2005-12-15 | 2007-06-28 | Sony Corp | Display, control method of display, program and recording medium |
DE102006052214B3 (en) * | 2006-11-06 | 2008-02-28 | Siemens Ag | Image playback system has image source, which supplies digital video signals by line pair and communication signal, where communication signal denotes transmission of configuration data or modified data |
JP2008305128A (en) * | 2007-06-07 | 2008-12-18 | Panasonic Corp | Information processing apparatus and alteration verification method |
JP2009053859A (en) * | 2007-08-24 | 2009-03-12 | Fuji Xerox Co Ltd | Device and bootloading program |
JP4972495B2 (en) * | 2007-08-30 | 2012-07-11 | エスアイアイ・データサービス株式会社 | handy terminal |
JP2009087107A (en) * | 2007-10-01 | 2009-04-23 | Hitachi Ltd | Control system for vehicle |
JP5094655B2 (en) * | 2008-09-12 | 2012-12-12 | キヤノン株式会社 | Imaging device |
JP5611648B2 (en) * | 2010-04-21 | 2014-10-22 | 京セラ株式会社 | Electronic equipment and electronic system |
JP5565103B2 (en) * | 2010-05-27 | 2014-08-06 | ソニー株式会社 | Device, imaging apparatus, imaging system, device control method, and program |
JP5204910B2 (en) * | 2012-03-28 | 2013-06-05 | オリンパスイメージング株式会社 | IMAGING DEVICE, IMAGING METHOD, AND INFORMATION DEVICE |
JP6337533B2 (en) | 2013-03-26 | 2018-06-06 | 株式会社リコー | Terminal, terminal system and program |
JP6745586B2 (en) * | 2015-04-28 | 2020-08-26 | 株式会社ソニー・インタラクティブエンタテインメント | Programmable device, information processing apparatus, and control method of processing circuit in programmable device |
JP2018160207A (en) * | 2017-03-24 | 2018-10-11 | 日立オートモティブシステムズ株式会社 | On-vehicle controller and program update software |
US11483473B2 (en) | 2017-03-31 | 2022-10-25 | Sony Corporation | Surgical image processing apparatus, image processing method, and surgery system |
JP7048446B2 (en) * | 2018-07-31 | 2022-04-05 | 日立グローバルライフソリューションズ株式会社 | Refrigerator with rewritable control software |
-
2000
- 2000-12-06 JP JP2000371557A patent/JP4114035B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101578320B (en) * | 2006-12-26 | 2011-10-05 | 株式会社钟化 | Novel polyimide precursor composition, use thereof and production method thereof |
US8754186B2 (en) | 2006-12-26 | 2014-06-17 | Kaneka Corporation | Polyimide precursor composition, use thereof and production method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP2002176582A (en) | 2002-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4114035B2 (en) | Electronic camera | |
US7653304B2 (en) | Digital camera with projector and digital camera system | |
JP2003156790A (en) | Lens interchangeable camera | |
JP2008225763A (en) | Update method for firmware, program and electronic equipment | |
JP4308681B2 (en) | Imaging device | |
JP2004007319A (en) | Photographing equipment | |
JP2002084448A (en) | Image automatic transmission digital camera | |
JP5064686B2 (en) | IMAGING DEVICE, CONTROL METHOD FOR THE DEVICE, CONTROL PROGRAM, AND RECORDING MEDIUM | |
JP5293255B2 (en) | Information recording / reproducing apparatus and digital camera | |
US20120287305A1 (en) | Imaging device, reproduction device and image reproduction program | |
JP2008053774A (en) | Imaging apparatus | |
JP4724511B2 (en) | Imaging apparatus, recording control method thereof, and program | |
JP2003107315A (en) | Lens-barrel and lens exchange type camera | |
JP4912680B2 (en) | Camera system, camera and external flash | |
JP4262022B2 (en) | Imaging device | |
JP4477214B2 (en) | Electronic camera | |
JP2002090823A (en) | Automatic focusing camera and photographing method therefor | |
JP2009212639A (en) | Data recorder and display method of data recorder | |
JP3697488B2 (en) | Digital camera | |
JP4408545B2 (en) | Imaging device | |
JP2005101951A (en) | Digital camera with display section | |
JP2003125239A (en) | Digital camera | |
JP2004048246A (en) | Camera | |
JP2004072222A (en) | Electronic camera | |
JP2004164154A (en) | Electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050929 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20061030 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061107 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061204 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061226 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20071106 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071220 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20080218 |
|
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: 20080319 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080401 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110425 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110425 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |