JP4114035B2 - Electronic camera - Google Patents

Electronic camera Download PDF

Info

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
Application number
JP2000371557A
Other languages
Japanese (ja)
Other versions
JP2002176582A (en
Inventor
紳也 青木
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2000371557A priority Critical patent/JP4114035B2/en
Publication of JP2002176582A publication Critical patent/JP2002176582A/en
Application granted granted Critical
Publication of JP4114035B2 publication Critical patent/JP4114035B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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 claim 1 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, Electronic camera A control circuit that controls the operation of the control circuit, a program memory that holds rewritable programs that define the processing steps of the control circuit, and the electronic camera An external power supply input means capable of supplying power from outside, a battery that can serve as a power supply source instead of the power supplied from the external power supply input means, Said Recording medium mounting means for detachably mounting the recording medium, a preliminary program for storing a processing program of the control circuit, a spare program memory in which rewriting of the preliminary program is prohibited, and the electronic camera And whether or not the recording medium is mounted on the recording medium mounting means and whether or not the recording medium is mounted on the recording medium mounting means is determined. If it is determined that the media is loaded, While turning on or blinking the viewfinder lamp or self-timer lamp, Reading the program stored using a part of the recording area of the recording medium from the recording medium and downloading the program to the program memory while being supplied with power from the battery If it is determined or if it is determined that the recording medium is not loaded in the recording medium loading means, the download circuit does not perform the download, and the control circuit, when the download fails , Using the spare program stored in the spare program memory with rewriting prohibited. camera Electronic, characterized by starting camera I will provide a.
The invention according to claim 2 is the invention according to claim 1, further comprising instruction means for instructing the start of the download, wherein the download means is instructed to start the download from the instruction means. When power is supplied from the battery, control for presenting a warning requesting connection of an external power supply is performed.
[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 claim 4 is the invention according to any one of claims 1 to 3, A voltage monitoring means for monitoring a power supply voltage supplied from the external power supply input means; and a power supply for switching the power supply source to the battery when the power supply voltage falls below a predetermined value during downloading. And a switching means.
[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 camera 10, a photographing lens 12, a viewfinder window 14, a strobe 16, a strobe light control sensor 18, a microphone 19, and a self-timer lamp 20 are provided, and behind the photographing lens 12. A CCD image sensor (not shown in FIG. 1, described as 58 in FIG. 3) is disposed.
[0019]
On the upper surface of the camera, a shutter button 22, a power switch 24, a download button 25 for instructing start of download, and a strobe button 26 for switching a strobe shooting mode are arranged. The shutter button 22 is configured in a two-stage manner, and the automatic focus (AF) and automatic exposure control (AE) are activated in a “half-pressed” state in which the shutter button 22 is lightly pressed and stopped to lock AF and AE. Shooting is performed in the state of “full press”, which is further pressed from “half press”. The shutter button 22 is a means for giving an instruction to start recording a still image, and is also used as a video recording button (recording start / stop button).
[0020]
A speaker 28, an audio / video output terminal 30, a remote control terminal 31, a digital (USB) terminal 32, and a power input terminal 33 are provided on the camera side opposite to the grip portion 27. By connecting a connector of an AC power adapter (not shown) to the power input terminal 33, power can be supplied from the outside of the camera.
[0021]
A battery cover 34 that also serves as a slot cover for a recording medium (not shown in FIG. 1, described as reference numeral 78 in FIG. 3) is provided on the bottom surface of the camera. A battery storage chamber is formed.
[0022]
FIG. 2 is a rear view of the camera 10. On the back of the camera, a finder 36, a mode dial 38, a left key 40, a right key 42 and an up / down lever 44, a menu / execution key 46, a cancel / return key 48, a display key 50, a liquid crystal monitor 52, and the like are provided. ing. A finder lamp 37 is disposed on the side of the finder 36, and the operation state of the camera 10 is represented by a combination of a lighting color of the lamp and a lighting state (lighting / flashing).
[0023]
The finder lamp 37 is also used as an access lamp indicating that the program is being downloaded in a program rewriting operation to be described later. The self-timer lamp 20 shown in FIG. 1 may be used as an access lamp instead of or in combination with the finder lamp 37, or a dedicated lamp may be provided separately.
[0024]
The mode dial 38 shown in FIG. 2 is a means for changing the function (mode) of the camera. By rotating the mode dial 38, a shooting mode for performing still shooting, a playback mode for playing back captured images, Alternatively, it can be set to a movie mode for shooting a movie.
[0025]
The left key 40, the right key 42, and the up / down lever 44 are operation units for inputting instructions in the corresponding four directions (left, right, up, down), and the left key 40 and the right key 42 are respectively In the playback mode, it functions as a one-frame backward button and a one-frame forward button, and the up / down lever 44 is used as a zoom lever for adjusting the magnification in the playback zoom function or the electronic zoom function during shooting.
[0026]
The left key 40, the right key 42, and the up / down lever 44 are used to select a menu item from a menu screen displayed by pressing the menu / execution key 46, or to instruct selection of various setting items in each menu. Functions as a button. The menu / execution key 46 is used when a transition is made from the normal screen to the menu screen in each mode, or when the selection contents are confirmed and a process execution (confirmation) instruction is given. The cancel / return key 48 is used to cancel (cancel) an item selected from the menu or to return to the previous operation state. The display key 50 is an operation means for turning on / off the liquid crystal monitor 52 and switching between display / non-display of a reproduction method, a frame number being reproduced, and the like.
[0027]
When the display key 50 is pressed in the shooting mode or the movie mode, the liquid crystal monitor 52 can be switched ON / OFF. In the playback mode, every time the display key 50 is pressed from the state of “single frame playback (with on-screen display)”, “state without on-screen display” → “multi playback” → “single frame playback (on-screen display)”. Circulates as “...”. “Multi playback” is a playback method that displays a plurality of screens (for example, 9 screens in 3 rows and 3 columns) at a time.
[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 recording medium 78, and the like. The menu selection using the left key 40, the right key 42 and the up / down lever 44 and the setting of various setting items in each menu are also performed using the display screen of the liquid crystal monitor 52. Further, the LCD monitor 52 also displays information such as the number of storable frames (shootable time for movies), playback frame number display, presence / absence of flash emission, macro mode display, recording image quality (quality) display, pixel number display, and the like. Is displayed.
[0029]
FIG. 3 is a block diagram illustrating a configuration of the digital camera according to the present embodiment. The photographing lens 12 is composed of one or a plurality of lenses, and may be a single focus lens or a variable focal length such as a zoom lens. The light passing through the photographing lens 12 is incident on a CCD image sensor (hereinafter referred to as CCD) 58 after the amount of light is adjusted by a diaphragm (not shown). Photosensors are arranged in a plane on the light receiving surface of the CCD 58, and a subject image formed on the light receiving surface of the CCD 58 via the photographing lens 12 has an amount of signal charge corresponding to the amount of incident light by each photosensor. Is converted to The CCD 58 has a so-called electronic shutter function that controls the charge accumulation time (shutter speed) of each photosensor according to the timing of the shutter gate pulse.
[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 CCD 58 is sent to the analog signal processing unit 60. The analog signal processing unit 60 includes signal processing circuits such as a sampling hold circuit, a color separation circuit, and a gain adjustment circuit. In the analog signal processing unit 60, correlated double sampling (CDS) processing and R, G, and B colors are included. The signal is subjected to color separation processing, and the signal level adjustment (pre-white balance processing) of each color signal is performed.
[0031]
The signal output from the analog signal processing unit 60 is converted into a digital signal by the A / D converter 62 and then added to the image signal processing circuit 64. The image signal processing circuit 64 is an image processing unit including a luminance / color difference signal generation circuit, a gamma correction circuit, a sharpness correction circuit, a contrast correction circuit, a white balance correction circuit, and the like, and processes an image signal in accordance with a command from the CPU 66.
[0032]
When the captured image is displayed and output, the image data is transferred from the image signal processing circuit 64 to the image reproduction processing circuit 70 via the bus 68, and is transmitted through the image reproduction processing circuit 70 and the video encoding circuit 72 in a predetermined manner such as the NTSC system. After being converted into a video signal, it is output to the liquid crystal monitor 52.
[0033]
The image data is periodically rewritten by the image signal output from the CCD 58, and the video signal generated from the image data is supplied to the liquid crystal monitor 52, so that the image input via the CCD 58 is real time. Is displayed. The photographer can check the angle of view by using the image (through image) displayed on the liquid crystal monitor 52 or the viewfinder 36.
[0034]
When the shooting mode is set by the mode dial 38 and the shutter button 22 is pressed, a shooting start instruction (release ON) signal is issued. In response to the receipt of the release ON signal, the CPU 66 starts capturing image data for recording. When the mode for compressing and recording image data is selected, the CPU 66 sends a command to the compression / decompression processing circuit 74. As a result, the compression / decompression processing circuit 74 compresses the image data according to JPEG or another predetermined format.
[0035]
The compressed image data is recorded on a recording medium such as the recording medium 78 via the media control circuit 76. When the mode for recording non-compressed image data (non-compression mode) is selected, the image data is recorded on the recording medium 78 without being compressed without performing the compression processing by the compression / decompression processing circuit 74. The
[0036]
In the camera 10 of this example, for example, smart media (Solid-State Floppy Disk Card) is applied as means for storing image data. The form of the recording medium is not limited to this, and may be a compact flash, a PC card, a magnetic disk, an optical disk, a magneto-optical disk, a memory stick, etc., and read / write according to a method using electronic, magnetic, optical, or a combination thereof. Various possible media can be used. A signal processing means and an interface corresponding to the medium to be used are applied. A configuration in which a plurality of media can be mounted regardless of different types or the same type of recording media may be adopted. The means for storing the image file is not limited to the removable medium that can be attached to and detached from the camera body, but may be a recording medium (internal memory) built in the camera 10.
[0037]
When the movie mode is set by the mode dial 38, moving image recording is possible, the recording operation starts when the shutter button 22 is pressed, and the recording operation stops when the shutter button 22 is pressed again. The recording operation may be performed while the shutter button 22 is continuously pressed, and the recording may be stopped by releasing the pressing. The maximum time, image size, frame rate, and recording method that can be recorded in one shooting are determined in advance. For example, a movie with sound of up to about 80 seconds can be shot in one shooting, 320 x 240 pixels, 10 frames / second, recorded on the recording medium 78 in the Motion JPEG format.
[0038]
When the playback mode is set by the mode dial 38, the image file is read from the recording medium 78 via the media control circuit 84. The compressed data of the read image file is expanded into an uncompressed YC signal via the compression / expansion processing circuit 74.
[0039]
The expanded YC signal is output to the liquid crystal monitor 52 via the image reproduction processing circuit 70 and the video encoding circuit 72. As a result, the last frame image recorded on the recording medium 78 is displayed on the liquid crystal monitor 52.
[0040]
Thereafter, when the right key 42 is pressed, the frame is advanced in the forward direction, and when the left key 40 is pressed, the frame is advanced in the reverse direction. Then, the frame-positioned image file at the frame position is read from the recording medium 78, and the frame image is reproduced on the liquid crystal monitor 52 in the same manner as described above. When the reproduction target file is a moving image file, the first frame of the moving image is displayed as a representative image, and a screen for accepting an instruction to start moving image reproduction is displayed.
[0041]
The CPU 66 is a control unit for overall control of the optical system including the photographing lens 12 and the CCD 58 of the camera system, each signal processing circuit, a recording medium, and the like. The camera 10 stores the program of the CPU 66 in a rewritable manner. A flash ROM 80 is provided. The CPU 66 operates the corresponding circuit based on input signals received from the power switch 24 (corresponding to the switch SW3), the shutter button 22 (corresponding to the switch SW4), the download button 25 (corresponding to the switch SW5) and other operation units. Control, display control on the liquid crystal monitor 52, light emission control of the light emitting diode (LED) 82 such as the finder lamp 37 and the self-timer lamp 20, power control, auto focus (AF) control, automatic exposure (AE) control, and the like. .
[0042]
A control program for the camera 10 is stored in the flash ROM 80. When the camera 10 is turned on and the power is supplied to the CPU 66, a startup program in the flash ROM 80 is executed, and a program in the flash ROM 80 is stored in the DRAM 84. Be expanded. After developing the program in the DRAM 84, the CPU 66 moves the program counter to the program in the DRAM 84 and operates the program on the DRAM 84. The DRAM 84 has an image processing area for storing image data in addition to the program area.
[0043]
The camera 10 of this example can change or add a program in the flash ROM 80. In accordance with a predetermined operation procedure (for example, an operation of connecting the AC power adapter and pressing the download button 25), the camera user reads the change data or the additional data from the recording medium 78, and expands it on the SDRAM 86. Thus, the program can be changed or added by writing to the flash ROM 80.
[0044]
In order to allow the camera 10 to operate normally even if the program is illegally rewritten, such as when the battery is removed during program download or the program writing process to the SDRAM 86 fails. Is provided with a spare flash ROM (hereinafter referred to as a spare flash ROM) 90 that stores a program necessary for the minimum operation of the camera 10. Even if the program rewrite process fails for some reason, the camera can be activated using the program in the spare flash ROM 90. The spare flash ROM 90 is prohibited from being rewritten and the program contents are protected.
[0045]
As a power source of the camera 10, an external power source (hereinafter referred to as an AC power source) connected to the battery or the power input terminal 33 can be used. As the battery, a primary battery or a dedicated secondary battery can be used. The power supplied from the battery or the AC power supply is converted into a required voltage by a power supply circuit 92 including a DC / DC converter, and then supplied to each block.
[0046]
FIG. 4 is a configuration diagram of the power supply circuit 92. As shown in the figure, power is supplied to the CPU 66 from an AC power source or a battery via a DC / DC converter 94. The voltage value of the AC power supply is monitored by the voltage monitoring circuit 95, and information on the detected voltage value of the AC power supply is input to the CPU 66. The voltage value of the battery is monitored by the voltage monitoring circuit 96, and information on the detected battery voltage value is input to the CPU 66.
[0047]
The CPU 66 performs ON / OFF control of the switches SW1 and SW2 based on information received from the voltage monitoring circuits 95 and 96. The switch SW 1 is disposed between the power input terminal 33 and the DC / DC converter 97, and the switch SW 2 is disposed between the positive electrode terminal 98 of the battery and the DC / DC converter 97. It is possible to switch the power supply source to each block (ie, the power supply source to the DC / DC converter 97) by switching the ON / OFF state of both switches SW1 and SW2.
[0048]
Next, the operation of the camera 10 configured as described above will be described. FIG. 5 is a flowchart showing a control procedure of the camera 10. When the camera 10 is powered on by replacing the battery or connecting the AC power adapter, the CPU 66 performs a power-on reset process (step S110) and waits for the switch SW3 corresponding to the power switch 24 to be turned on. (Step S112).
[0049]
When the switch SW3 is turned on, the voltage level of the power input terminal 33 to which the AC power adapter is connected is determined (step S114). If the AC voltage is high (H), the switch SW1 described with reference to FIG. 4 is turned on to use the AC power source as the power source (step S116). On the other hand, if the AC voltage is low (L) in step S114 of FIG. 5, the switch SW2 is turned on to start the camera 10 using the battery as a power source (step S118).
[0050]
Next, the CPU 66 determines whether or not the program in the flash ROM 80 is normal (step S120). In the program stored in the flash ROM 80, a thumb code is also recorded in advance. When the program is activated, a checksum (a kind of error detection method) of the program in the flash ROM 80 is calculated and compared with the recorded sum code to determine whether the program is normal or not.
[0051]
When it is determined in step S120 that the program is normal (YES determination), the CPU 66 develops and executes the program recorded in the flash ROM 80 in the DRAM 84 (step S122), and then switches SW3, SW4, and The monitoring state of SW5 is entered (step S140).
[0052]
On the other hand, if it is determined in step S120 that the program is abnormal, the program in the spare flash ROM 90 is expanded and executed in the DRAM 84 to activate the camera (step S124). In this case, a message “Program is abnormal. Please download a new program” is displayed on the screen of the LCD monitor 52 to prompt the user to download a new program. This message is displayed for a predetermined time (for example, 3 seconds) (step S126), and during this time, the CPU 66 waits for processing (step S128). After the predetermined time has elapsed, the message display is turned off (step S130), and the monitoring state of the switches SW3, SW4, and SW5 is entered (step S140).
[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 CPU 66 first determines the state of the switch SW1 (step S310). When the switch SW1 is OFF, that is, when the power source is a battery, a message “Please connect the AC power adapter” is displayed on the liquid crystal monitor 52 (step S312), and the download process is stopped. . The message is displayed for a predetermined time (for example, 3 seconds), and during this time, the CPU 66 waits for processing (step S380). After a predetermined time has elapsed, the message is not displayed (step S382), the LED blinking during downloading (in this example, the finder lamp 37 is also used) is turned off (step S384), and this subroutine is exited.
[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 CPU 66 determines whether or not the recording medium 78 is attached (step S314). The program is downloaded by developing a program stored using a part of the recording area of the recording medium 78 as a program area in the SDRAM 86 and then writing the program in the flash ROM 80. Therefore, if the recording medium 78 is not inserted into the media slot of the camera 10 (NO in step S314), a message “Please insert the recording medium” is displayed on the liquid crystal monitor 52 (step S314). S316), the download is stopped through the above steps S380 to S384.
[0058]
If the recording medium 78 is loaded in step S314 (when YES is determined), the process proceeds to step S318. In step S318, it is detected whether or not program data exists in the recording medium 78. If there is no program in the recording medium 78 (when NO is determined), a message “There is no program in the recording medium” is displayed on the liquid crystal monitor 52 (step S320), and then downloaded through the above steps S380 to S384. Cancel. In this case, the user needs to store a new program in the recording medium 78 using a personal computer (not shown) and then download it again.
[0059]
If there is a program in the recording medium 78 in step S318 (when YES is determined), the download is executed. During the download, a message “Program is being downloaded” is displayed on the liquid crystal monitor 52, and the LED of the finder lamp 37, which is also used as an access lamp, blinks (step S322). This message display and LED blinking notify the user that downloading is in progress. Further, during the download, the CPU 66 disables the input signals from the switches SW3 to SW5 so that the power supply does not stop during the download.
[0060]
Then, the program is transferred from the recording medium 78 to the SDRAM 86, and the program is expanded on the SDRAM 86 (step S324). A thumb code is recorded in the program, and the thumb code is copied to the SDRAM 86 together with the program. After the program is expanded in the SDRAM 86, a checksum of the expanded program is calculated and compared with a prerecorded sum code to determine whether or not the program on the SDRAM 86 is normal (step S326). .
[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 SDRAM 86 transfers to the flash ROM 80. The program is written (step S332). After the writing of the program to the flash ROM 80 is completed, a checksum of the rewritten program is calculated and checked against the sum code to determine whether the program on the flash ROM 80 is normal (step S334).
[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 camera 10 has failed, a recommendation is made to urge the user to request a repair from the manufacturer. Even if the download fails, the camera 10 can be activated and can be shot using the program in the spare flash ROM 90.
[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 voltage monitoring circuit 95, and the voltage of the AC power source rapidly decreases during the download described in steps S322 to S324 in FIG. When the specified voltage value is exceeded, an interrupt occurs. When the CPU 66 detects an interrupt signal, the interrupt process shown in FIG. 8 starts. That is, when the CPU 66 detects an interrupt signal, the battery voltage is checked (step S410). If the voltage is high (H), the switch SW1 described in FIG. 4 is turned off and the switch SW2 is turned on. Then, the power supply source is switched to the battery side and the download process is continued (S412).
[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 flash ROM 80 are rewritable, and the spare flash ROM 90 storing the program necessary for the minimum operation of the camera 10 is not rewritten. However, the contents of the spare flash ROM 90 can also be updated. There is also an aspect configured as follows.
[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 camera 10 shown in FIG. 9 has a flash ROM (A) 81 and a flash ROM (B) 91 as means for holding a control program, and is configured so that the roles of both can be switched.
[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 DRAM 84 is prepared in the flash ROM (A) 81. For example, when shipped from the factory, the flash ROM (B) 91 is set as a spare flash ROM. In this case, information of “flash ROM selection bit = ON” is written in the flash ROM (A) 81, and the program is expanded from the flash ROM (A) to the DRAM 84 when the camera is activated. For the flash ROM (B) 91 assigned as a spare flash ROM, a control program equivalent to the flash ROM (A) 81 may be stored at the time of shipment from the factory, or a control program may be stored. It does not have to be.
[0071]
When the program is rewritten (downloaded) by the camera 10, a new program is written in the flash ROM (B) 91, and the flash ROM (A) functions as a spare flash ROM while retaining the old program. At this time, the flash ROM selection bit is changed to OFF.
[0072]
Thereafter, the program of the flash ROM (B) 91 is expanded in the DRAM 84 when the camera is activated, and camera control is performed. Even if the download is unsuccessful, the camera 10 can be activated by an old program (a program with an operation record) stored in the flash ROM (A) 81. The rewriting of the program is performed on the flash ROM on the spare side, and the roles of the flash ROM (A) 81 and the flash ROM (B) 91 are alternately switched for each rewriting.
[0073]
Flow charts relating to the control of the camera 10 shown in FIG. 9 are shown in FIGS. In these drawings, the same steps as those in the flowcharts of FIGS. 6 and 7 are denoted by the same step numbers and the description thereof is omitted.
[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 DRAM 84. On the other hand, if the flash ROM selection bit is OFF in step S130, the program in the flash ROM (B) 91 is expanded and executed in the DRAM 84 (step S134).
[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 DRAM 84, the process proceeds to step S344, and the new program in the SDRAM 86 is written in the flash ROM (B) 91. Execute the process. After writing the program to the flash ROM (B) 91, the checksum of the rewritten program is calculated and checked against the sum code to determine whether the program on the flash ROM (B) 91 is normal. This is performed (step S346).
[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 camera 10 can be activated by using the program of the flash ROM (A) 81 that has been used so far, and photographing can be performed.
[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 DRAM 84, the process proceeds to step S354, and the new program in the SDRAM 86 is transferred to the flash ROM (A ) The process of writing to 81 is executed. After writing the program to the flash ROM (A) 81, the checksum of the rewritten program is calculated and checked against the sum code to determine whether the program on the flash ROM (A) 81 is normal. This is performed (step S356).
[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 camera 10 can be activated by using the program of the flash ROM (B) 91 that has been used so far, and the image can be taken.
[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 SYMBOLS 10 ... Camera (electronic device, electronic camera), 12 ... Shooting lens, 24 ... Power switch, 33 ... Power input terminal (external power input means), 58 ... CCD (imaging means), 66 ... CPU (control circuit, prohibition means) , Power supply switching means, confirmation means), 76... Media control circuit (recording means), 78... Recording medium (program providing means, recording medium), 80... Flash ROM (program memory), 90. ), 95... Voltage monitoring circuit (voltage monitoring means), SW1, SW2... Switch (power supply switching means)

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又は2に記載の電子カメラThe control circuit performs control for invalidating an instruction from a power switch of the electronic camera and maintaining a power supply state during an operation of writing the program from the recording medium to the program memory. Item 3. The electronic camera according to Item 1 or 2. 前記外部電源入力手段から供給される電源電圧を監視する電圧監視手段と、
前記記録媒体から前記プログラムメモリに前記プログラムを書き込む動作中に前記電源電圧が予め定められている規定値よりも降下した場合には、電力供給源を前記バッテリーに切り替える電源切替手段と、
を備えたことを特徴とする請求項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:
JP2000371557A 2000-12-06 2000-12-06 Electronic camera Expired - Fee Related JP4114035B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
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