JP2006202051A - Data processor and data processing method - Google Patents

Data processor and data processing method Download PDF

Info

Publication number
JP2006202051A
JP2006202051A JP2005013133A JP2005013133A JP2006202051A JP 2006202051 A JP2006202051 A JP 2006202051A JP 2005013133 A JP2005013133 A JP 2005013133A JP 2005013133 A JP2005013133 A JP 2005013133A JP 2006202051 A JP2006202051 A JP 2006202051A
Authority
JP
Japan
Prior art keywords
data
erasing
formatting
time
logical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005013133A
Other languages
Japanese (ja)
Inventor
Jun Nozaki
純 野崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2005013133A priority Critical patent/JP2006202051A/en
Publication of JP2006202051A publication Critical patent/JP2006202051A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform optimum format processing in each of flash memories having respectively different characteristics. <P>SOLUTION: A data processor is provided with: a logical format means for logically formatting a file management area of a storage medium which utilizes a flash memory capable of electrically erasing/writing data; a data erasing means for electrically erasing data stored in a data area of the storage medium; an erasing time measuring means for measuring time required for electrically erasing a unit block of a prescribed size in the data area; and a format method selection means for selecting either the logical format to be executed by using only the logical format means or a logical/physical format for executing the logical format and the erasure of the data area together by using both of the logical format means and the data erasing means. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はデータ処理装置及びデータ処理方法に関し、特に、デジタルカメラ等で撮影した画像データを記憶しておくメモリをフォーマット処理するために用いて好適な技術に関する。   The present invention relates to a data processing apparatus and a data processing method, and more particularly to a technique suitable for use in formatting a memory for storing image data taken by a digital camera or the like.

従来、デジタルカメラ等の記録媒体として、コンパクトフラッシュ(登録商標)やSD(Secure Digital)メモリカードといったフラッシュメモリが広く普及している。フラッシュメモリの特徴としては、不揮発性であることや、繰り返しデータの消去、書き込みが行えることが挙げられる。   Conventionally, flash memories such as compact flash (registered trademark) and SD (Secure Digital) memory cards have been widely used as recording media for digital cameras and the like. The flash memory is characterized by being non-volatile and capable of repeatedly erasing and writing data.

フラッシュメモリにおけるデータの消去、書き込みは、フラッシュメモリを構成しているブロックと呼ばれるある一定サイズの単位で実行される。例えば、既にデータが書き込まれているブロックに対して、データの書き換えを行う場合は、前のデータをブロックサイズ分だけ一旦消去し、全てのデータを電気的にクリアした後に、新しいデータが書き込むという処理が行われている。一方で、消去済みのブロックであれば、単に新しいデータをブロックサイズ分書き込むだけでよい。   Data erasure and writing in the flash memory are executed in units of a certain size called a block constituting the flash memory. For example, when rewriting data to a block in which data has already been written, the previous data is erased once for the block size, all data is electrically cleared, and then new data is written. Processing is in progress. On the other hand, if it is an erased block, it is only necessary to write new data for the block size.

また、前記のフラッシュメモリでは、パソコン等の様々な情報機器でも使用されるため、一般的にFAT(File Allocation Table)などのファイルシステムが構築されている。そのため、フラッシュメモリはファイルシステムのための管理領域と実際にデータが存在するデータ領域とに論理的に区別することができる。   In addition, since the flash memory is used in various information devices such as a personal computer, a file system such as FAT (File Allocation Table) is generally constructed. Therefore, the flash memory can be logically distinguished into a management area for the file system and a data area where data actually exists.

このため、デジタルカメラ等でフラッシュメモリを論理フォーマットする際の方法として、フォーマット対象を管理領域のみとする場合と、管理領域に加えデータ領域も行う場合という2つの方法が考えられる。当然のことながら、管理領域の初期化のみを行う前者の方法は、管理領域の初期化に加えデータ領域の消去を行う後者の方法に比べ、フォーマットに要する時間が大幅に短縮できる。   For this reason, as a method for logically formatting the flash memory with a digital camera or the like, there can be considered two methods: the case where the format target is only the management area, and the case where the data area is also performed in addition to the management area. As a matter of course, the former method that only initializes the management area can significantly reduce the time required for formatting compared to the latter method that erases the data area in addition to the initialization of the management area.

一方、特許文献1でも示されているように、既にデータが書き込まれているブロックよりも消去済みのブロックに書き込みを行う方が、消去を行わない分だけ高速に書き込みが行える。このようなフラッシュメモリの性質上、データ領域の消去を行わない前者の方法では、すでにデータ領域にデータが書き込まれている場合、書き込みに要する時間が後者に比して不利になる。さらに、消去、書き込みに要する時間がフラッシュメモリ製品ごとに差があることが知られている。   On the other hand, as shown in Patent Document 1, writing to an erased block is faster than writing to a block where data has already been written, as much as erasing is not performed. Due to the nature of the flash memory, in the former method in which the data area is not erased, when data is already written in the data area, the time required for writing becomes disadvantageous compared to the latter. Further, it is known that the time required for erasing and writing varies depending on the flash memory product.

特開2003−224809号公報JP 2003-224809 A

従来のフォーマット処理は、ファイルシステムの管理領域の初期化のみをもって行うのが一般的であった。一方、フラッシュメモリの特性上、残りのデータ領域に対して物理フォーマットを行えば、その後の運用時の書き込みで時間的に優位になる可能性があった。しかしながら、フラッシュメモリの製品毎に、それに要す時間が異なるため、物理フォーマットを行った際の時間的な見積もりが困難である。このため、画一的にデータ領域の消去を行うと、場合によってはフォーマットに要する時間が予想外に過大になる可能性があった。   Conventional format processing is generally performed only by initializing the management area of the file system. On the other hand, due to the characteristics of the flash memory, if the physical format is performed on the remaining data area, there is a possibility that the writing in the subsequent operation will be superior in time. However, since the time required for each flash memory product differs, it is difficult to estimate the time when the physical formatting is performed. For this reason, if the data area is erased uniformly, the time required for formatting may become unexpectedly long in some cases.

本発明は前述の問題点にかんがみ、特性が異なるフラッシュメモリ毎に最適なフォーマット処理を行うことができるようにすることを目的とする。   In view of the above-described problems, an object of the present invention is to enable optimum format processing for each flash memory having different characteristics.

本発明のデータ処理装置は、電気的に消去、書き込みを行うことが可能なフラッシュメモリ利用した記憶媒体のファイル管理領域を論理的にフォーマットする論理フォーマット手段と、前記記憶媒体のデータ領域に記録されているデータを電気的に消去するデータ消去手段と、前記データ消去手段が前記データ領域における所定サイズの単位ブロックを電気的に消去するのに要する時間を計測する消去時間計測手段と、前記データ領域の単位ブロックを消去するのに要した時間を評価し、前記論理フォーマット手段のみを用いた論理フォーマット、または前記論理フォーマット手段と前記データ消去手段の両方を用いて、前記論理フォーマットと前記データ領域の消去とを併せて実行する論理・物理フォーマットの何れを行うのかを選択するフォーマット方法選択手段とを有することを特徴とする。   The data processing apparatus of the present invention includes a logical formatting means for logically formatting a file management area of a storage medium using a flash memory that can be electrically erased and written, and a data format recorded on the data area of the storage medium. A data erasing unit for electrically erasing data, an erasing time measuring unit for measuring a time required for the data erasing unit to electrically erase a unit block of a predetermined size in the data region, and the data region The time required for erasing the unit block is evaluated, and the logical format using only the logical formatting means, or using both the logical formatting means and the data erasing means, Select whether to perform logical or physical format that is executed together with erasure And having a formatting method selection means.

本発明のデータ処理方法は、電気的に消去、書き込みを行うことが可能なフラッシュメモリ利用した記憶媒体のファイル管理領域を論理的にフォーマットする論理フォーマット工程と、前記記憶媒体のデータ領域に記録されているデータを電気的に消去するデータ消去工程と、前記データ消去工程において前記データ領域における所定サイズの単位ブロックを電気的に消去するのに要する時間を計測する消去時間計測工程と、前記データ領域の単位ブロックを消去するのに要した時間を評価し、前記論理フォーマット工程のみを行った論理フォーマット、または前記論理フォーマット工程と前記データ消去工程の両方を行って、前記論理フォーマットと前記データ領域の消去とを併せて実行するのかを選択するフォーマット方法選択工程とを有することを特徴とする。   The data processing method of the present invention includes a logical formatting step of logically formatting a file management area of a storage medium using a flash memory that can be electrically erased and written, and a data recording area of the storage medium. A data erasing step for electrically erasing data, an erasing time measuring step for measuring a time required for electrically erasing a unit block of a predetermined size in the data region in the data erasing step, and the data region The time required for erasing the unit block is evaluated, and only the logical formatting process is performed, or both the logical formatting process and the data erasing process are performed, and the logical formatting and the data area are Formatting method selection step for selecting whether to execute erasing together Characterized in that it.

本発明のコンピュータプログラムは、電気的に消去、書き込みを行うことが可能なフラッシュメモリ利用した記憶媒体のファイル管理領域を論理的にフォーマットする論理フォーマット工程と、前記記憶媒体のデータ領域に記録されているデータを電気的に消去するデータ消去工程と、前記データ消去工程において前記データ領域における所定サイズの単位ブロックを電気的に消去するのに要する時間を計測する消去時間計測工程と、前記データ領域の単位ブロックを消去するのに要した時間を評価し、前記論理フォーマット工程のみを行った論理フォーマット、または前記論理フォーマット工程と前記データ消去工程の両方を行って、前記論理フォーマットと前記データ領域の消去とを併せて実行するのかを選択するフォーマット方法選択工程とを有するデータ処理方法をコンピュータに実行させることを特徴とする。   The computer program of the present invention is recorded in a logical formatting step for logically formatting a file management area of a storage medium using a flash memory that can be electrically erased and written, and in a data area of the storage medium. A data erasing step of electrically erasing data, an erasing time measuring step of measuring a time required for electrically erasing a unit block of a predetermined size in the data region in the data erasing step, Evaluating the time required for erasing the unit block, and erasing the logical format and the data area by performing only the logical formatting process or performing both the logical formatting process and the data erasing process. Format method selection to select whether to execute with Characterized in that to execute a data processing method in a computer having a degree.

本発明の記録媒体は、前記に記載のコンピュータプログラムを記録したことを特徴とする。   The recording medium of the present invention records the computer program described above.

本発明によれば、フォーマット処理に先立ち単位ブロックの消去に要する時間を計測し、その評価に従って、データ領域の物理フォーマットを行うか選択するようにしたので、フラッシュメモリの特性に合わせた最適なフォーマット処理を行うようにすることができる。   According to the present invention, the time required for erasing the unit block is measured prior to the formatting process, and the physical format of the data area is selected according to the evaluation. Therefore, the optimum format according to the characteristics of the flash memory is selected. Processing can be performed.

(第1の実施の形態)
以下、図面を参照して本発明の実施の形態を説明する。
図1は、本発明のデータ処理装置の実施の形態の構成を示すブロック図である。図1において、100はデジタルカメラである。
10は撮影レンズ、12は絞り機能を備えるシャッター、14は光学像を電気信号に変換する撮像素子、16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。
(First embodiment)
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of an embodiment of a data processing apparatus of the present invention. In FIG. 1, reference numeral 100 denotes a digital camera.
Reference numeral 10 denotes a photographing lens, 12 denotes a shutter having a diaphragm function, 14 denotes an image sensor that converts an optical image into an electrical signal, and 16 denotes an A / D converter that converts an analog signal output from the image sensor 14 into a digital signal.

18は撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路22及びシステム制御回路50により制御される。   A timing generation circuit 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26, and is controlled by the memory control circuit 22 and the system control circuit 50.

20は画像処理回路であり、A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてシステム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理を行っている。さらに、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。   An image processing circuit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control circuit 22. Further, the image processing circuit 20 performs predetermined calculation processing using the captured image data, and the system control circuit 50 controls the exposure control means 40 and the distance measurement control means 42 based on the obtained calculation result. TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-flash) processing. Further, the image processing circuit 20 performs predetermined arithmetic processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained arithmetic result.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。   A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression circuit 32.

A/D変換器16のデータが画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16のデータが直接メモリ制御回路22を介して、画像表示メモリ24或いはメモリ30に書き込まれる。   The data of the A / D converter 16 is written into the image display memory 24 or the memory 30 via the image processing circuit 20 and the memory control circuit 22 or the data of the A / D converter 16 is directly passed through the memory control circuit 22. It is.

24は画像表示メモリ、26はD/A変換器、28はTFT LCD等から成る画像表示部であり、画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28により表示される。画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダ機能を実現することが可能である。また、画像表示部28は、システム制御回路50の指示により任意に表示をON/OFFすることが可能であり、表示をOFFにした場合にはデジタルカメラ100の電力消費を大幅に低減することができる。   Reference numeral 24 denotes an image display memory, 26 denotes a D / A converter, and 28 denotes an image display unit composed of a TFT LCD or the like. Display image data written in the image display memory 24 passes through the D / A converter 26. Displayed by the image display unit 28. If the image data captured using the image display unit 28 is sequentially displayed, the electronic viewfinder function can be realized. The image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control circuit 50. When the display is turned off, the power consumption of the digital camera 100 can be significantly reduced. it can.

30は撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。これにより、複数枚の静止画像を連続して撮影する連射撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、メモリ30はシステム制御回路50の作業領域としても使用することが可能である。   Reference numeral 30 denotes a memory for storing captured still images and moving images, and has a sufficient storage capacity to store a predetermined number of still images and a predetermined time of moving images. Thereby, even in the case of continuous shooting or panoramic shooting in which a plurality of still images are continuously shot, it is possible to write a large amount of images to the memory 30 at high speed. The memory 30 can also be used as a work area for the system control circuit 50.

32は適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮・伸長回路であり、メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む機能を有している。   Reference numeral 32 denotes a compression / decompression circuit that compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like, reads an image stored in the memory 30, performs compression processing or decompression processing, and stores the processed data in the memory 30. It has a function to write to.

40は絞り機能を備えるシャッター12を制御する露光制御手段であり、フラッシュ48と連携することによりフラッシュ調光機能も有するものである。
42は撮影レンズ10のフォーカシングを制御する測距制御手段、44は撮影レンズ10のズーミングを制御するズーム制御手段、46はバリアである保護手段102の動作を制御するバリア制御手段である。
Reference numeral 40 denotes an exposure control means for controlling the shutter 12 having a diaphragm function, and has a flash light control function in cooperation with the flash 48.
Reference numeral 42 denotes a distance measuring control means for controlling the focusing of the photographing lens 10, reference numeral 44 denotes a zoom control means for controlling zooming of the photographing lens 10, and reference numeral 46 denotes a barrier control means for controlling the operation of the protection means 102 as a barrier.

48はフラッシュであり、AF補助光の投光機能、フラッシュ調光機能も有している。露光制御手段40、測距制御手段42はTTL方式を用いて制御されており、撮像した画像データを画像処理回路20によって演算した演算結果に基づき、システム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う。   A flash 48 has an AF auxiliary light projecting function and a flash light control function. The exposure control means 40 and the distance measurement control means 42 are controlled using the TTL method. Based on the calculation result obtained by calculating the captured image data by the image processing circuit 20, the system control circuit 50 performs the exposure control means 40 and the distance measurement. Control is performed on the control means 42.

50はデジタルカメラ100全体を制御するシステム制御回路、52はシステム制御回路50の動作用の定数、変数、プログラム等を記憶するメモリである。
54はシステム制御回路50でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する液晶表示装置、スピーカー等の表示部であり、デジタルカメラ100の操作部近辺の視認し易い位置に単数或いは複数個所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成されている。また、表示部54は、その一部の機能が光学ファインダ104内に設置されている。
A system control circuit 50 controls the entire digital camera 100, and a memory 52 stores constants, variables, programs, and the like for operation of the system control circuit 50.
Reference numeral 54 denotes a display unit such as a liquid crystal display device or a speaker that displays an operation state or a message using characters, images, sounds, or the like in accordance with execution of a program in the system control circuit 50, and an operation unit of the digital camera 100 One or a plurality of locations are installed in the vicinity where they can be easily seen, and are configured by a combination of, for example, an LCD, an LED, and a sounding element. The display unit 54 has a part of its function installed in the optical viewfinder 104.

表示部54の表示内容のうち、LCD等に表示するものとしては、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタースピード表示、絞り値表示、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、外部記録媒体200の着脱状態表示、通信I/F動作表示、日付・時刻表示等がある。   Among the display contents of the display unit 54, what is displayed on the LCD or the like includes single shot / continuous shooting display, self-timer display, compression rate display, number of recorded pixels, number of recorded pixels, number of remaining images that can be captured, shutter Speed display, Aperture display, Exposure compensation display, Flash display, Red-eye reduction display, Macro shooting display, Buzzer setting display, Clock battery level display, Battery level display, Error display, Multi-digit number information display, External There are an attachment / detachment state display of the recording medium 200, a communication I / F operation display, a date / time display, and the like.

また、表示部54の表示内容のうち、光学ファインダ104内に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示、等がある。   Among the display contents of the display unit 54, what is displayed in the optical viewfinder 104 includes in-focus display, camera shake warning display, flash charge display, shutter speed display, aperture value display, exposure correction display, and the like.

56は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。60、62、64、66、68及び70は、システム制御回路50の各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。   Reference numeral 56 denotes an electrically erasable / recordable nonvolatile memory, such as an EEPROM. Reference numerals 60, 62, 64, 66, 68 and 70 are operation means for inputting various operation instructions of the system control circuit 50, and may be a single unit such as a switch, a dial, a touch panel, pointing by line-of-sight detection, a voice recognition device, or the like. Consists of multiple combinations.

以下に、これらの操作手段の具体的に説明すると、60はモードダイアルスイッチで、電源オフ、自動撮影モード、撮影モード、パノラマ撮影モード、再生モード、マルチ画面再生・消去モード、PC接続モード等の各機能モードを切り替え設定することができる。   In the following, the operation means will be described in detail. Reference numeral 60 denotes a mode dial switch, such as power off, automatic shooting mode, shooting mode, panoramic shooting mode, playback mode, multi-screen playback / erase mode, PC connection mode, etc. Each function mode can be switched and set.

62は第1のシャッタースイッチ(SW1)であり、不図示のシャッターボタンの操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作開始を指示する。   Reference numeral 62 denotes a first shutter switch (SW1) which is turned ON during the operation of a shutter button (not shown), and AF (auto focus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, EF (flash) Instructs the start of operations such as (pre-flash) processing.

64は第2のシャッタースイッチ(SW2)であり、不図示のシャッターボタンの操作完了でONとなり、撮像素子12から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データを書き込む露光処理、画像処理回路20やメモリ制御回路22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体200或いは210に画像データを書き込む記録処理という一連の処理の動作開始を指示する。   Reference numeral 64 denotes a second shutter switch (SW2), which is turned on when the operation of a shutter button (not shown) is completed, and a signal read from the image sensor 12 is transferred to the memory 30 via the A / D converter 16 and the memory control circuit 22. Exposure processing for writing image data, development processing using computations in the image processing circuit 20 and the memory control circuit 22, reading out the image data from the memory 30, compression in the compression / decompression circuit 32, and recording on the recording medium 200 or 210 It instructs the start of a series of processes called recording processes for writing data.

66は画像表示ON/OFFスイッチで、画像表示部28のON/OFFを設定することができる。この機能により、光学ファインダ104を用いて撮影を行う際に、TFT LCD等から成る画像表示部への電流供給を遮断することにより、省電力を図ることが可能となる。   Reference numeral 66 denotes an image display ON / OFF switch, which can set ON / OFF of the image display unit 28. With this function, when photographing using the optical viewfinder 104, it is possible to save power by cutting off the current supply to the image display unit including a TFT LCD or the like.

68はクイックレビューON/OFFスイッチで、撮影直後に撮影した画像データを自動再生するクイックレビュー機能を設定する。なお、本実施の形態では特に、画像表示部28をOFFとした場合におけるクイックレビュー機能の設定をする機能を備えるものとする。   Reference numeral 68 denotes a quick review ON / OFF switch, which sets a quick review function for automatically reproducing image data taken immediately after photographing. In the present embodiment, in particular, a function for setting a quick review function when the image display unit 28 is turned off is provided.

70は各種ボタンやタッチパネル等からなる操作部で、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像移動−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン等がある。   70 is an operation unit composed of various buttons, a touch panel, etc., a menu button, a set button, a macro button, a multi-screen playback page break button, a flash setting button, a single shooting / continuous shooting / self-timer switching button, menu movement + (plus) Button, menu shift- (minus) button, playback image shift + (plus) button, playback image shift- (minus) button, shooting image quality selection button, exposure correction button, date / time setting button, and the like.

80は電源制御手段で、電池検出回路、DC-DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されており、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御回路50の指示に基づいてDC-DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部へ供給する。   80 is a power control means, which is composed of a battery detection circuit, a DC-DC converter, a switch circuit for switching a block to be energized, etc., and detects the presence / absence of a battery, the type of battery, the remaining battery level, and the detection result In addition, the DC-DC converter is controlled based on an instruction from the system control circuit 50, and a necessary voltage is supplied to each part including the recording medium for a necessary period.

82及び84はコネクタ、86はアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる電源手段である。90はメモリカード等の外部記録媒体とデータの送受信を行うカードコントローラ、91はメモリカード等の外部記録媒体とのインタフェース、92はメモリカード等の外部記録媒体と接続を行うコネクタ、98はコネクタ92に外部記録媒体200が装着されているか否かを検知する記録媒体着脱検知手段である。また、110は通信を行うための通信手段、112は通信用アンテナを接続するためのコネクタである。   82 and 84 are connectors, 86 is a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, NiMH battery or Li battery, an AC adapter, or the like. 90 is a card controller for transmitting and receiving data to and from an external recording medium such as a memory card, 91 is an interface with an external recording medium such as a memory card, 92 is a connector for connecting to an external recording medium such as a memory card, and 98 is a connector 92. The recording medium attachment / detachment detecting means detects whether or not the external recording medium 200 is attached to the recording medium. Reference numeral 110 denotes a communication means for performing communication, and 112 denotes a connector for connecting a communication antenna.

なお、本実施の形態では記録媒体を取り付けるインタフェースやコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインタフェース及びコネクタを組み合わせて備える構成としても構わない。   In the present embodiment, a single or a plurality of interfaces and connectors for attaching a recording medium may be provided. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard.

インタフェース及びコネクタとしては、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成して構わない。さらに、インタフェース91、そしてコネクタ92をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成した場合、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等の各種通信カードを接続することにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことができる。   The interface and the connector may be configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like that conforms to a standard. Furthermore, when the interface 91 and the connector 92 are configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like, a LAN card, modem card, USB card, IEEE1394 card, P1284 card By connecting various communication cards such as SCSI cards, communication cards such as PHS, etc., image data and management information attached to the image data can be transferred to and from other computers and peripheral devices such as printers. it can.

102は、デジタルカメラ100のレンズ10を含む撮像部を覆う事により、撮像部の汚れや破損を防止するバリアである保護手段である。104は光学ファインダであり、画像表示部28による電子ファインダ機能を使用すること無しに、光学ファインダのみを用いて撮影を行うことが可能である。   Reference numeral 102 denotes protection means that is a barrier that prevents the imaging unit from being soiled or damaged by covering the imaging unit including the lens 10 of the digital camera 100. Reference numeral 104 denotes an optical viewfinder, which can take an image using only the optical viewfinder without using the electronic viewfinder function of the image display unit 28.

また、光学ファインダ104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示などが設置されている。200はメモリカード等の外部記録媒体である。以上がデジタルカメラ100の全体のシステム構成である。   In the optical viewfinder 104, some functions of the display unit 54, for example, a focus display, a camera shake warning display, a flash charge display, a shutter speed display, an aperture value display, an exposure correction display, and the like are installed. Reference numeral 200 denotes an external recording medium such as a memory card. The overall system configuration of the digital camera 100 has been described above.

図2は、本実施の形態での外部記録媒体200内に構築されているファイルシステムの論理的な構成を簡略に示した図である。
図2に示すように、外部記録媒体200の記憶領域は、ファイルシステムの管理領域210とデータ領域220とに分けられる。管理領域210には、マスターブートレコード(MBR)211、ブートセクタ212、ファット(FAT:file allocation table)213、ルートディレクトリエントリ214が含まれている。
FIG. 2 is a diagram schematically showing a logical configuration of a file system constructed in the external recording medium 200 in the present embodiment.
As shown in FIG. 2, the storage area of the external recording medium 200 is divided into a file system management area 210 and a data area 220. The management area 210 includes a master boot record (MBR) 211, a boot sector 212, a fat (FAT: file allocation table) 213, and a root directory entry 214.

マスターブートレコード211には、パーティションテーブルが記載されている。パーティションテーブルは、ブートセクタ212の位置やデータ領域220のサイズなど、パーティションと呼ばれる論理領域を示すテーブルである。   In the master boot record 211, a partition table is described. The partition table is a table showing logical areas called partitions, such as the position of the boot sector 212 and the size of the data area 220.

ブートセクタ212は、クラスタサイズやファット213のサイズなどファイルシステムがデータ領域220に置かれたデータを扱うための基本的な情報が記載されている。クラスタとは、データ領域220でデータを扱う論理的な最小サイズである。   The boot sector 212 describes basic information for handling data in which the file system is placed in the data area 220, such as the cluster size and the size of the fat 213. A cluster is a logical minimum size for handling data in the data area 220.

最後に、ファット213は、クラスタを基準として、データ領域220中のファイルの位置を示しているテーブルである。ファット213を解析することにより、どのクラスタがどのクラスタとどういった順序でファイルを形成しているのか、または、どこのクラスタが未使用なのか(テーブル中では「0」でクリアされているエントリ)といったデータ領域220の使用状況を知ることができる。   Finally, the fat 213 is a table indicating the position of the file in the data area 220 with the cluster as a reference. By analyzing the fat 213, which cluster forms the file in which order, and which cluster is unused (entry cleared with “0” in the table) ) Can be known.

一般的に、このような外部記録媒体200に対して、通常の(論理)フォーマットを実行した場合、ファイルシステムの動作としては、外部記録媒体200のデバイス情報からマスターブートレコード211とブートセクタ212を再構成し、書き込んだ後にファット213の領域とルートディレクトリエントリを「0」でクリアすることで外部記録媒体200を見かけ上すべて未使用としている。   In general, when a normal (logical) format is executed for such an external recording medium 200, the operation of the file system includes the master boot record 211 and the boot sector 212 from the device information of the external recording medium 200. After reconfiguring and writing, the area of the fat 213 and the root directory entry are cleared to “0” to make the external recording medium 200 apparently unused.

本実施の形態においては、このようなフォーマットを論理フォーマットと呼ぶこととする。この論理フォーマットは、前述したようにファイルシステムの管理領域210のみを書き換えるだけで、データ領域220に書かれているデータは、書き換えられることなく以前のデータがそのまま書き込まれている。   In the present embodiment, such a format is referred to as a logical format. In this logical format, as described above, only the management area 210 of the file system is rewritten, and the data written in the data area 220 is written as it is without being rewritten.

これに対して、物理フォーマットと呼ばれるフォーマットが存在する。物理フォーマットとは、ファイルシステムの管理領域210の書き換えだけでなく、データ領域220に対しても値のクリアを行うフォーマットである。   On the other hand, there is a format called a physical format. The physical format is a format that not only rewrites the management area 210 of the file system but also clears the value for the data area 220.

一方、指定領域を電気的な手段を用いて、消去する手段を物理フォーマットとよぶ。本実施の形態では、フラッシュメモリを利用した外部記憶媒体200であるから、本実施の形態での物理フォーマットでは、データ領域220の値をクリアする代わりに、データ領域220のデータを消去することとする。   On the other hand, means for erasing the designated area using electrical means is called a physical format. In this embodiment, since the external storage medium 200 uses a flash memory, in the physical format in this embodiment, instead of clearing the value of the data area 220, the data in the data area 220 is erased. To do.

本実施の形態であるデジタルカメラ100では、外部記録媒体200のフォーマットが実行可能であり、フォーマットを選択する際には表示部54に図3のようフォーマット用メニューを表示する。   In the digital camera 100 according to the present embodiment, the format of the external recording medium 200 can be executed, and when a format is selected, a format menu is displayed on the display unit 54 as shown in FIG.

図3のフォーマットメニューで「OK」が選択された際の処理を示したものが図4である。「キャンセル」が選択された場合は無処理とし、表示部54のフォーマット用メニューを消去して通常動作に復帰する。   FIG. 4 shows the processing when “OK” is selected in the format menu of FIG. If “Cancel” is selected, no processing is performed, the formatting menu on the display unit 54 is deleted, and the normal operation is resumed.

以下、図4に示す処理について詳細に説明する。
ステップS401では外部記録媒体200に対して、データ領域220の単位ブロックに対する物理フォーマットの時間計測を行った実績があるか判断する。本実施の形態においては、計測時間を以前に行った場合には、メモリ30の任意の領域に計測時間を記憶しておく計測時間記憶手段を有しており、この計測時間記憶手段により記憶された計測時間の有無をもって行う。
Hereinafter, the process shown in FIG. 4 will be described in detail.
In step S401, it is determined whether there is a record of performing physical format time measurement for the unit block of the data area 220 for the external recording medium 200. In the present embodiment, when the measurement time has been performed before, the measurement time storage means for storing the measurement time in an arbitrary area of the memory 30 is provided, which is stored by the measurement time storage means. This is done with or without measurement time.

前記物理フォーマットの時間計測の実績は、デジタルカメラ100の電源が遮断された場合、または記録媒体着脱検知98によって、外部記憶媒体200が抜かれたと判断された際にクリアされる。ここで、計測実績があったと判断されると、次のステップS402の処理はスキップされる。   The result of the physical format time measurement is cleared when the power of the digital camera 100 is turned off or when the recording medium attachment / detachment detection 98 determines that the external storage medium 200 is removed. Here, if it is determined that there is a measurement result, the process of the next step S402 is skipped.

ステップS402では、外部記録媒体200の任意の1ブロック(単位ブロック)を物理フォーマットし、それに要した時間を計測する。ここで計測された時間はメモリ30の任意の領域に記憶される。   In step S402, an arbitrary block (unit block) of the external recording medium 200 is physically formatted, and the time required for it is measured. The time measured here is stored in an arbitrary area of the memory 30.

ステップS403では、論理フォーマットを実行する。前記で述べたように、論理フォーマットは、外部記録媒体200のデバイス情報からMBRとブートセクタの再構築を行い、FAT領域213とルートディレクトリエントリ214とをクリアすることで実現される。本実施の形態においては、フォーマットを行っている期間は、フォーマット処理中であることを表示部54に表示している。   In step S403, a logical format is executed. As described above, the logical format is realized by reconstructing the MBR and the boot sector from the device information of the external recording medium 200 and clearing the FAT area 213 and the root directory entry 214. In the present embodiment, during the formatting period, the display unit 54 displays that formatting is in progress.

図5は、フォーマット処理が進行中であることを使用者に示すために、表示部54に表示する画面表示の一例を示す図である。図5において、501はプログレスバーで、処理の進行状況を視覚的に使用者に通知する。また、502は残り時間表示部で、フォーマット完了までに要する時間を表示する。残り時間とプログレスバーは、フォーマット処理進行中に適当な時間間隔で更新される。   FIG. 5 is a diagram illustrating an example of a screen display displayed on the display unit 54 in order to indicate to the user that the formatting process is in progress. In FIG. 5, reference numeral 501 denotes a progress bar that visually notifies the user of the progress of processing. Reference numeral 502 denotes a remaining time display section that displays the time required for completion of formatting. The remaining time and progress bar are updated at appropriate time intervals while the formatting process is in progress.

次に、ステップS404では、ステップS402で単位ブロックを物理フォーマットする際に計測された時間を評価する。この時間が「所定の時間値T」以下であった場合は、その後の書き込み処理で時間的に優位となり得るデータ領域220の物理フォーマットを行う。一方、計測された時間が前記「所定の時間値T」より大きいと判断された場合は、フォーマット時間短縮のため、フォーマット処理は終了する。ここで、判断基準となる「所定の時間値T」は設計値である。   In step S404, the time measured when the unit block is physically formatted in step S402 is evaluated. If this time is equal to or less than the “predetermined time value T”, a physical format of the data area 220 that can be temporally superior in the subsequent writing process is performed. On the other hand, if it is determined that the measured time is greater than the “predetermined time value T”, the formatting process is terminated to shorten the formatting time. Here, the “predetermined time value T” serving as a determination criterion is a design value.

ステップS405では物理フォーマット対象となる領域数と、ステップS403で計測された時間とから、ステップS406で行う消去に要する時間を予測する。そして、図5に示したように、その予測結果を、表示部54上の残り時間表示部502に表示する。   In step S405, the time required for erasing performed in step S406 is predicted from the number of areas to be physically formatted and the time measured in step S403. Then, as shown in FIG. 5, the prediction result is displayed on the remaining time display unit 502 on the display unit 54.

ステップS406では、データ領域220の物理フォーマットを実際に行う。この際、残り時間表示部502及びプログレスバー501の表示状態を適当な間隔で更新する。すべての動作が終了したら、表示部54を通常動作に戻し、フォーマット処理を終了する。   In step S406, the physical format of the data area 220 is actually performed. At this time, the display states of the remaining time display unit 502 and the progress bar 501 are updated at appropriate intervals. When all the operations are finished, the display unit 54 is returned to the normal operation, and the formatting process is finished.

以上の処理動作を行うことにより、フラッシュメモリ毎に適切なフォーマット処理を実行することができるので、物理フォーマットに要する時間がフラッシュメモリの製品毎に異なっていても、物理フォーマット処理に要する時間が予想外に過大になる不都合を防止することができる。   By performing the above processing operations, appropriate format processing can be executed for each flash memory, so even if the time required for physical formatting differs for each flash memory product, the time required for physical formatting is expected. The inconvenience of being excessively large outside can be prevented.

(本発明に係る他の実施の形態)
上記ステップS404での時間値Tは、予め複数の特性の異なるフラッシュメモリ毎の単位ブロック消去時間を統計した上で、使用者にとって最も好ましい値を設定することができるが、ステップS404の判断条件はこれに限るものではない。例えば、使用者または装置にとっての上限の待ち時間W(例えば、3分間)を設定しておき、単位ブロック消去時間とフォーマット対象領域数の積(消去に要する時間)が、この待ち時間Wを超えない場合にのみ、ステップS405の処理に進むようにしてもよい。
(Another embodiment according to the present invention)
The time value T in step S404 can be set to the most preferable value for the user after statistically calculating the unit block erase time for each flash memory having a plurality of different characteristics in advance. This is not a limitation. For example, an upper limit waiting time W (for example, 3 minutes) for the user or the apparatus is set, and the product of the unit block erasing time and the number of format target areas (time required for erasing) exceeds this waiting time W. Only if there is not, the process may proceed to step S405.

また、ステップS403の論理フォーマットの前に、ステップS404の判断を行ってもよいし、ステップS405の後に、ステップS403の論理フォーマットを行っても良い。   Further, the determination in step S404 may be performed before the logical format in step S403, or the logical format in step S403 may be performed after step S405.

前述した本発明の実施の形態におけるデータ処理装置を構成する各手段、並びにデータ処理方法の各ステップは、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び前記プログラムを記録したコンピュータ読み取り可能な記録媒体は本発明に含まれる。   Each means constituting the data processing apparatus and each step of the data processing method in the embodiment of the present invention described above can be realized by operating a program stored in a RAM or ROM of a computer. This program and a computer-readable recording medium recording the program are included in the present invention.

また、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施の形態も可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。   Further, the present invention can be implemented as, for example, a system, apparatus, method, program, or storage medium, and can be applied to a system composed of a plurality of devices. Moreover, you may apply to the apparatus which consists of one apparatus.

なお、本発明は、前述した実施の形態の機能を実現するソフトウェアのプログラム(実施の形態では図4に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接、あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。   In the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in FIG. 4) for realizing the functions of the above-described embodiment is directly or remotely supplied to a system or apparatus, and the system Or the case where it is achieved also by the computer of the apparatus reading and executing the supplied program code is included.

したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。   Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であっても良い。   In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, or the like.

プログラムを供給するための記録媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。   As a recording medium for supplying the program, for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card ROM, DVD (DVD-ROM, DVD-R) and the like.

その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、前記ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。   As another program supply method, a client computer browser is used to connect to an Internet homepage, and the computer program itself of the present invention or a compressed file including an automatic installation function is downloaded from the homepage to a recording medium such as a hard disk. Can also be supplied.

また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。   It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施の形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施の形態の機能が実現され得る。   In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on the instructions of the program is used for the actual processing. The functions of the above-described embodiment can be realized by performing some or all of the processes.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施の形態の機能が実現される。   Furthermore, after the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

本実施の形態でのデジタルカメラのシステムの一例を示すブロック図である。It is a block diagram which shows an example of the system of the digital camera in this Embodiment. 本実施の形態での外部記録媒体における論理的な構成を示す図である。It is a figure which shows the logical structure in the external recording medium in this Embodiment. 本実施の形態でのフォーマットメニュー時に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed at the time of the format menu in this Embodiment. 本実施の形態でのフォーマットメニューでの処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process by the format menu in this Embodiment. 本実施の形態でのフォーマット時に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed at the time of the format in this Embodiment.

符号の説明Explanation of symbols

10 撮影レンズ
12 シャッター
14 撮像素子
16 A/D変換器
18 タイミング発生回路
20 画像処理回路
22 メモリ制御回路
24 画像表示メモリ
26 D/A変換器
28 画像表示部
30 メモリ
32 画像圧縮・伸長回路
40 露光制御手段
42 測距制御手段
44 ズーム制御手段
46 バリア制御手段
48 フラッシュ
50 システム制御回路
52 メモリ
54 表示部
56 不揮発性メモリ
60 モードダイアルスイッチ
62 第1のシャッタースイッチ(SW1)
64 第2のシャッタースイッチ(SW2)
66 画像表示ON/OFFスイッチ
68 クイックレビューON/OFFスイッチ
70 操作部
80 電源制御手段
82 コネクタ
84 コネクタ
86 電源手段
90 カードコントローラ
91 インタフェース
92 コネクタ
98 記録媒体着脱検知手段
100 デジタルカメラ
102 保護手段
104 光学ファインダ
200 外部記録媒体
DESCRIPTION OF SYMBOLS 10 Shooting lens 12 Shutter 14 Image pick-up element 16 A / D converter 18 Timing generation circuit 20 Image processing circuit 22 Memory control circuit 24 Image display memory 26 D / A converter 28 Image display part 30 Memory 32 Image compression / expansion circuit 40 Exposure Control means 42 Distance control means 44 Zoom control means 46 Barrier control means 48 Flash 50 System control circuit 52 Memory 54 Display unit 56 Non-volatile memory 60 Mode dial switch 62 First shutter switch (SW1)
64 Second shutter switch (SW2)
66 Image display ON / OFF switch 68 Quick review ON / OFF switch 70 Operation unit 80 Power supply control means 82 Connector 84 Connector 86 Power supply means 90 Card controller 91 Interface 92 Connector 98 Recording medium attachment / detachment detection means 100 Digital camera 102 Protection means 104 Optical viewfinder 200 External recording media

Claims (10)

電気的に消去、書き込みを行うことが可能なフラッシュメモリ利用した記憶媒体のファイル管理領域を論理的にフォーマットする論理フォーマット手段と、
前記記憶媒体のデータ領域に記録されているデータを電気的に消去するデータ消去手段と、
前記データ消去手段が前記データ領域における所定サイズの単位ブロックを電気的に消去するのに要する時間を計測する消去時間計測手段と、
前記データ領域の単位ブロックを消去するのに要した時間を評価し、前記論理フォーマット手段のみを用いた論理フォーマット、または前記論理フォーマット手段と前記データ消去手段の両方を用いて、前記論理フォーマットと前記データ領域の消去とを併せて実行する論理・物理フォーマットの何れを行うのかを選択するフォーマット方法選択手段とを有することを特徴とするデータ処理装置。
Logical formatting means for logically formatting a file management area of a storage medium using a flash memory that can be electrically erased and written;
Data erasing means for electrically erasing data recorded in the data area of the storage medium;
An erasing time measuring means for measuring a time required for the data erasing means to electrically erase a unit block of a predetermined size in the data area;
Evaluating the time required for erasing the unit block of the data area, and using only the logical formatting means, or using both the logical formatting means and the data erasing means, A data processing apparatus comprising: a format method selecting means for selecting which of logical and physical formats to be executed in combination with erasure of a data area.
前記消去時間計測手段により計測された、前記データ領域の単位ブロックの消去に要した時間に基づいて、記憶媒体全体のフォーマット処理に要する時間を予測する処理時間予測手段を有することを特徴とする請求項1に記載のデータ処理装置。   The processing time predicting means for predicting the time required for formatting the entire storage medium based on the time required for erasing the unit block of the data area measured by the erasing time measuring means. Item 4. The data processing device according to Item 1. 前記処理時間予測手段による予測結果に基づいてフォーマット完了までの時間を算出し、前記算出した結果を表示部に表示する処理経過表示手段を有することを特徴とする請求項2に記載のデータ処理装置。   3. The data processing apparatus according to claim 2, further comprising a processing progress display unit that calculates a time until completion of formatting based on a prediction result by the processing time prediction unit and displays the calculated result on a display unit. . 前記処理経過表示手段は、前記フォーマット完了までの時間を一定周期で更新しながら前記表示部に表示することを特徴とする請求項3に記載のデータ処理装置。   The data processing apparatus according to claim 3, wherein the processing progress display unit displays the time until the formatting is completed on the display unit while updating the period. 前記消去時間計測手段による計測結果を内部記憶媒体に記憶する計測時間記憶手段を有し、
前記内部記憶媒体に計測時間が記憶されている場合には前記消去時間計測手段による計測を省略することを特徴とする請求項1〜4の何れか1項に記載のデータ処理装置。
Measurement time storage means for storing the measurement result by the erasure time measurement means in an internal storage medium,
5. The data processing apparatus according to claim 1, wherein when the measurement time is stored in the internal storage medium, the measurement by the erasure time measurement unit is omitted.
前記内部記憶媒体に記憶されている前記物理フォーマットの時間計測の実績は、電源供給が断たれた場合、または前記フォーマット対象の記憶媒体が外された場合にクリアされることを特徴とする請求項5に記載のデータ処理装置。   The record of time measurement of the physical format stored in the internal storage medium is cleared when power supply is cut off or when the storage medium targeted for formatting is removed. 5. The data processing device according to 5. 電気的に消去、書き込みを行うことが可能なフラッシュメモリ利用した記憶媒体のファイル管理領域を論理的にフォーマットする論理フォーマット工程と、
前記記憶媒体のデータ領域に記録されているデータを電気的に消去するデータ消去工程と、
前記データ消去工程において前記データ領域における所定サイズの単位ブロックを電気的に消去するのに要する時間を計測する消去時間計測工程と、
前記データ領域の単位ブロックを消去するのに要した時間を評価し、前記論理フォーマット工程のみを行った論理フォーマット、または前記論理フォーマット工程と前記データ消去工程の両方を行って、前記論理フォーマットと前記データ領域の消去とを併せて実行するのかを選択するフォーマット方法選択工程とを有することを特徴とするデータ処理方法。
A logical formatting step for logically formatting a file management area of a storage medium using a flash memory that can be electrically erased and written;
A data erasing step for electrically erasing data recorded in the data area of the storage medium;
An erasing time measuring step of measuring a time required for electrically erasing a unit block of a predetermined size in the data area in the data erasing step;
Evaluating the time required for erasing the unit block of the data area, performing the logical format only the logical format process, or performing both the logical format process and the data erasing process, the logical format and the A data processing method comprising: a formatting method selection step for selecting whether to execute erasure of a data area.
前記消去時間計測工程により計測された、前記データ領域の単位ブロックの消去に要した時間に基づいて、記憶媒体全体のフォーマット処理に要する時間を予測する処理時間予測工程を有することを特徴とする請求項7に記載のデータ処理方法。   And a processing time predicting step for predicting a time required for formatting the entire storage medium based on the time required for erasing the unit block of the data area measured by the erasing time measuring step. Item 8. The data processing method according to Item 7. 電気的に消去、書き込みを行うことが可能なフラッシュメモリ利用した記憶媒体のファイル管理領域を論理的にフォーマットする論理フォーマット工程と、
前記記憶媒体のデータ領域に記録されているデータを電気的に消去するデータ消去工程と、
前記データ消去工程において前記データ領域における所定サイズの単位ブロックを電気的に消去するのに要する時間を計測する消去時間計測工程と、
前記データ領域の単位ブロックを消去するのに要した時間を評価し、前記論理フォーマット工程のみを行った論理フォーマット、または前記論理フォーマット工程と前記データ消去工程の両方を行って、前記論理フォーマットと前記データ領域の消去とを併せて実行するのかを選択するフォーマット方法選択工程とを有するデータ処理方法をコンピュータに実行させることを特徴とするコンピュータプログラム。
A logical formatting step for logically formatting a file management area of a storage medium using a flash memory that can be electrically erased and written;
A data erasing step for electrically erasing data recorded in the data area of the storage medium;
An erasing time measuring step of measuring a time required for electrically erasing a unit block of a predetermined size in the data area in the data erasing step;
Evaluating the time required for erasing the unit block of the data area, performing the logical format only the logical format process, or performing both the logical format process and the data erasing process, the logical format and the A computer program for causing a computer to execute a data processing method including a formatting method selection step for selecting whether to execute data area erasing together.
前記請求項9に記載のコンピュータプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。   10. A computer-readable recording medium on which the computer program according to claim 9 is recorded.
JP2005013133A 2005-01-20 2005-01-20 Data processor and data processing method Pending JP2006202051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005013133A JP2006202051A (en) 2005-01-20 2005-01-20 Data processor and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005013133A JP2006202051A (en) 2005-01-20 2005-01-20 Data processor and data processing method

Publications (1)

Publication Number Publication Date
JP2006202051A true JP2006202051A (en) 2006-08-03

Family

ID=36959991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005013133A Pending JP2006202051A (en) 2005-01-20 2005-01-20 Data processor and data processing method

Country Status (1)

Country Link
JP (1) JP2006202051A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013196333A (en) * 2012-03-19 2013-09-30 Nec Corp Storage device and method of initialization in storage device
JP2017507438A (en) * 2013-12-31 2017-03-16 エルメス−コム エッセ・エレ・エレ・エッセ Method for exchanging control via USB disk and associated device enabling its realization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013196333A (en) * 2012-03-19 2013-09-30 Nec Corp Storage device and method of initialization in storage device
JP2017507438A (en) * 2013-12-31 2017-03-16 エルメス−コム エッセ・エレ・エレ・エッセ Method for exchanging control via USB disk and associated device enabling its realization

Similar Documents

Publication Publication Date Title
US8166210B2 (en) Electronic device and control method therefor
US8077221B2 (en) Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium
JP4324116B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP2004104601A (en) Method for controlling image pickup device, its recording medium and its program
JP4681937B2 (en) Imaging apparatus and imaging method
JP2006119996A (en) Battery-driven device and its nonvolatile memory updating method
JP2006202051A (en) Data processor and data processing method
JP4700796B2 (en) Imaging apparatus, control method therefor, and storage medium
JP2006203689A (en) Imaging apparatus and control method thereof, program, and storage medium
JP4804270B2 (en) Image playback device
JP4878456B2 (en) Recording medium and imaging apparatus
JP4574426B2 (en) Data processing apparatus and data processing method
JP4785778B2 (en) Imaging device, control method thereof, and program
JP2006227822A (en) Information retrieval device and information retrieval method, program and recording medium
JP2015231169A (en) Imaging apparatus
JP4298534B2 (en) Image display apparatus and method
JP4701297B2 (en) Image processing apparatus, method, and recording medium
JP4208730B2 (en) Data editing apparatus and method, and imaging apparatus
JP4766706B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP4776967B2 (en) RECORDING / REPRODUCING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2006190030A (en) Data processor and data processing method
JP4717762B2 (en) Image reproducing apparatus, control method for image reproducing apparatus, program, and recording medium
JP3697215B2 (en) Imaging device
JP5637879B2 (en) Imaging apparatus and control method thereof
JP2008186298A (en) Imaging device, control method thereof, and program