[go: up one dir, main page]

JP2000066947A - Data recording apparatus and method - Google Patents

Data recording apparatus and method

Info

Publication number
JP2000066947A
JP2000066947A JP10236030A JP23603098A JP2000066947A JP 2000066947 A JP2000066947 A JP 2000066947A JP 10236030 A JP10236030 A JP 10236030A JP 23603098 A JP23603098 A JP 23603098A JP 2000066947 A JP2000066947 A JP 2000066947A
Authority
JP
Japan
Prior art keywords
data
storage medium
recording
memory
remaining
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.)
Withdrawn
Application number
JP10236030A
Other languages
Japanese (ja)
Inventor
Ryoji Kubo
亮司 久保
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 JP10236030A priority Critical patent/JP2000066947A/en
Publication of JP2000066947A publication Critical patent/JP2000066947A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Memory System (AREA)

Abstract

(57)【要約】 【課題】装置の電源を遮断した場合でも空き容量情報を
保持することを可能とし、媒体の空き容量情報維持、あ
るいは空き容量チェックのために費やされる電力及び処
理時間を低減する。 【解決手段】着脱可能な記憶媒体へのデータ記録が可能
なデータ記録装置において、電源が投入されると装着さ
れているデバイス10の使用可否を判定し、使用可能で
あればEEPROM8に記憶されている空き容量データ
をDRAM7へロードする。そして、データの記録もし
くは消去に応じてDRAM7上の空き容量データが更新
される。電源遮断時には、DRAM7に格納されている
メモリ残量データがEEPROM8に格納される。デー
タを記録するためのデバイス10の着脱が検出された場
合は、変更後の記憶媒体のメモリ残量でDRAM7上の
メモリ残量データを書き換える。
(57) [Summary] [PROBLEMS] To enable storage of free space information even when the power supply of an apparatus is cut off, and to reduce power and processing time spent for maintaining free space information of a medium or checking free space. I do. In a data recording apparatus capable of recording data on a removable storage medium, it is determined whether or not a mounted device is usable when power is turned on. If the device is usable, the data is stored in an EEPROM. The available free space data is loaded into the DRAM 7. Then, the free space data on the DRAM 7 is updated according to the recording or erasing of the data. When the power is turned off, the remaining memory data stored in the DRAM 7 is stored in the EEPROM 8. When the attachment / detachment of the device 10 for recording data is detected, the remaining memory data on the DRAM 7 is rewritten with the changed remaining memory capacity of the storage medium.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は着脱可能な記憶媒体
を用いたデータ記録装置及びその方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording apparatus using a removable storage medium and a method therefor.

【0002】[0002]

【従来の技術】従来、着脱可能な記憶媒体を用いたデー
タ記録装置においては、媒体の空き容量を調べて空き容
量情報を得ることが行われる。そして、得られた空き容
量情報の維持は、当該データ記録装置の電源のオン状態
を継続することによりなされている。このため、データ
記録装置の電源を落とす度に、記憶媒体の空き容量情報
が失われてしまい、再度電源を投入する度に記憶媒体の
空き容量を調べることが必要であった。
2. Description of the Related Art Conventionally, in a data recording apparatus using a removable storage medium, it is performed to check the free space of a medium to obtain free space information. The obtained free space information is maintained by continuing the power-on state of the data recording device. For this reason, every time the power of the data recording device is turned off, the free space information of the storage medium is lost, and it is necessary to check the free space of the storage medium every time the power is turned on again.

【0003】また、この種のデータ記録装置において、
記憶媒体の取り出し方式には以下の2つの方法が知られ
ていた。すなわち、(1)フロッピーディスク(3.5
inch、5.25inch他)などを記憶媒体とした
データ記録装置に見られるように、機械的機構方式を採
用し、記録中の状態を示す表示手段をもって記録中にお
ける媒体の取り出しを防止する、(2)光磁気ディスク
などを記憶媒体としたデータ記録装置に見られるよう
に、ローディング方式を採用し、記録中の状態を示す表
示手段をもって、取り出しを防止する方法である。
In this type of data recording apparatus,
The following two methods have been known as methods for taking out a storage medium. That is, (1) floppy disk (3.5
(inch, 5.25 inch, etc.) as a storage medium, employs a mechanical mechanism, and uses a display means for indicating a state during recording to prevent removal of the medium during recording. 2) This method employs a loading method, as shown in a data recording device using a magneto-optical disk or the like as a storage medium, and uses a display means for indicating a state during recording to prevent ejection.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述の
ように、記憶媒体の空き容量を示す情報を当該データ記
録装置の電源継続により保持すると、電力の消費が顕著
となる。また、装置の電源を落とし、再び電源を投入す
る毎に空き容量を調べるといったことを行うと、空き容
量検出のために時間が消費され、装置の立ち上がりに時
間がかかるようになる。
However, as described above, if the information indicating the free space of the storage medium is held by continuing the power supply of the data recording apparatus, the power consumption becomes remarkable. Further, if the power of the apparatus is turned off and the free space is checked every time the power is turned on again, time is consumed for detecting the free space, and it takes time to start up the apparatus.

【0005】また、上述した(1)及び(2)の記憶媒
体の取出方式では、記憶媒体を取り出したい時にいつで
も取り出すことが出来るものの、記録動作中に誤って記
憶媒体を取りだした場合には、その記憶媒体に致命的な
データ破壊を引き起こす可能性があった。そして最悪の
場合には記憶媒体中のあらゆるデータを読み出すことが
できなくなることがあった。
In the above-described storage medium removal methods (1) and (2), the storage medium can be removed at any time when it is desired to remove the storage medium. However, if the storage medium is removed by mistake during the recording operation, Fatal data destruction on the storage medium could be caused. In the worst case, all data in the storage medium may not be able to be read.

【0006】本発明は上記の問題に鑑みてなされたもの
であり、装置の電源を遮断した場合でも空き容量情報を
保持することを可能とし、媒体の空き容量情報維持、あ
るいは空き容量チェックのために費やされる電力及び処
理時間を低減することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and enables the storage of free space information even when the power of the apparatus is cut off. To reduce the power and processing time spent on

【0007】また、本発明の他の目的は、記憶媒体の着
脱時におけるデータ保護をより効果的に行うことにあ
る。
It is another object of the present invention to more effectively protect data when a storage medium is attached and detached.

【0008】[0008]

【課題を解決するための手段】上記の目的を達成するた
めの本発明の一態様によるデータ記録装置は例えば以下
の工程を備える。すなわち、着脱可能な記憶媒体へのデ
ータ記録が可能なデータ記録装置であって、電源投入時
に不揮発性メモリに記憶されているメモリ残量データを
揮発性メモリへロードするロード手段と、データの記録
もしくは消去に応じて前記不揮発性メモリ上のメモリ残
量データを更新する更新手段と、電源遮断時に、前記揮
発性メモリに格納されているメモリ残量データを前記不
揮発性メモリに格納する格納手段と、データを記録する
ための記憶媒体の変更が検出された場合、変更後の記憶
媒体のメモリ残量で前記揮発性メモリ上のメモリ残量デ
ータを書き換える書換手段とを備える。
A data recording apparatus according to one embodiment of the present invention for achieving the above object includes, for example, the following steps. That is, a data recording device capable of recording data on a removable storage medium, a load unit for loading remaining memory data stored in a non-volatile memory into a volatile memory when power is turned on, and a data recording device. Or updating means for updating the remaining memory data on the non-volatile memory in response to erasing; and storing means for storing the remaining memory data stored in the volatile memory in the non-volatile memory when power is turned off. Rewriting means for rewriting the remaining memory data in the volatile memory with the changed remaining memory capacity of the storage medium when the change of the storage medium for recording data is detected.

【0009】また、本発明の他の態様によれば、上記デ
ータ記録装置において実現されるデータ記録方法が提供
される。更に、本発明の他の態様によれば、該データ記
録方法をコンピュータに実現させるための制御プログラ
ムを格納する記憶媒体が提供される。
According to another aspect of the present invention, there is provided a data recording method realized by the data recording apparatus. Further, according to another aspect of the present invention, there is provided a storage medium for storing a control program for causing a computer to implement the data recording method.

【0010】[0010]

【発明の実施の形態】以下、添付の図面を参照して本発
明の好適な実施形態を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0011】図1は本実施形態による電子カメラの制御
構成を示すブロック図である。本実施形態では、データ
記録装置の一例として、被写体画像を電気信号に変換し
て画像データとし、これを着脱可能な記憶媒体もしくは
内蔵される記憶媒体に記録する電子カメラを例にあげて
説明する。
FIG. 1 is a block diagram showing a control configuration of the electronic camera according to the present embodiment. In the present embodiment, as an example of a data recording device, an electronic camera that converts a subject image into an electric signal to generate image data, and records the image data in a removable storage medium or a built-in storage medium will be described. .

【0012】図1において、1はレンズ、2はシャッタ
ー、3は撮像素子である。4は第1信号処理回路であ
り、撮像素子3より出力される画像信号に、各種の補正
処理、クランプ処理等を行う。5はA/D変換器であ
り、第1信号処理回路4より出力される画像信号のアナ
ログ−ディジタル変換を行う。6は第2信号処理回路で
あり、A/D変換器5より出力されるディジタル画像デ
ータに対して圧縮等の処理を行う。
In FIG. 1, 1 is a lens, 2 is a shutter, and 3 is an image sensor. Reference numeral 4 denotes a first signal processing circuit which performs various correction processing, clamp processing, and the like on an image signal output from the image sensor 3. Reference numeral 5 denotes an A / D converter, which performs analog-digital conversion of an image signal output from the first signal processing circuit 4. Reference numeral 6 denotes a second signal processing circuit which performs processing such as compression on digital image data output from the A / D converter 5.

【0013】7は画像データの少なくとも1枚分を一時
的に記憶するためのDRAMである。8は画像データの
少なくとも1枚分を記憶するためのFLASHメモリー
等の電気的消去書き込み可能なEEPROMである。
Reference numeral 7 denotes a DRAM for temporarily storing at least one image data. Reference numeral 8 denotes an electrically erasable and writable EEPROM such as a flash memory for storing at least one image data.

【0014】10は公知のPCMCIA規格に準拠した
PCカードと呼ばれるカード型デバイスであり、接続の
ために68pinのコネクタを有する。本装置において
は主に、画像データの記録又は読み出しを行うためのハ
ードディスク、FLASHメモリ、SRAM,DRAM
等の着脱可能なカード型記憶媒体を用いる。ただし、コ
ネクタの形状が共通の規格化されたものになっているた
め、この他の種類のPCカード(たとえばモデム、SC
SI.LAN、サウンド用等のカード)を接続すること
も可能である。
Reference numeral 10 denotes a card-type device called a PC card conforming to the well-known PCMCIA standard, and has a 68-pin connector for connection. In this apparatus, a hard disk, a FLASH memory, an SRAM, a DRAM for recording or reading image data are mainly used.
A removable card type storage medium such as the above is used. However, since the shape of the connector is common and standardized, other types of PC cards (for example, modem, SC
SI. LAN, a card for sound, etc.) can also be connected.

【0015】9はデバイス制御I/F部であり、デバイ
ス10とのデータの受け渡しを行う。13はタイミング
発生部であり、撮像素子3、A/D変換器5に、各種タ
イミング信号を出力する。14は、画像データを外部の
コンピュータ等(図示せず)に伝送するための外部I/
F部である。11は装置全体の制御を行う全体制御部、
12は全体制御部11内における各種データを記憶する
ためのRAM、15は本装置の状態を表示する表示部で
ある。なお、全体制御部11、第2信号処理回路6、D
RAM7、EEPROM8、デバイス制御I/F部9、
外部I/F部14はそれぞれバス16で接続されてい
る。
Reference numeral 9 denotes a device control I / F, which exchanges data with the device 10. A timing generator 13 outputs various timing signals to the image sensor 3 and the A / D converter 5. An external I / O 14 transmits image data to an external computer or the like (not shown).
Section F. 11 is an overall control unit for controlling the entire apparatus,
Reference numeral 12 denotes a RAM for storing various data in the overall control unit 11, and reference numeral 15 denotes a display unit for displaying a state of the apparatus. The overall control unit 11, the second signal processing circuit 6, and D
RAM 7, EEPROM 8, device control I / F unit 9,
The external I / F units 14 are connected by a bus 16 respectively.

【0016】図2は本実施形態による電子カメラ本体を
背面側より見た外観図である。図2において、20は電
子カメラ本体、21は画像取り込みを指示するレリーズ
スイッチである。22はカード型のデバイス10を挿入
するための開口部であり、23はデバイス10を取り出
すためのイジェクトスイッチである。24は検出スイッ
チであり、蓋25の開閉を検出する。25は開口部2
2、イジェクトスイッチ23、検出スイッチ24を覆う
蓋である。この蓋25の開閉とともに検出スイッチ24
がオンオフされ、これを全体制御部11で検出できるよ
うになっている。26,27,28は本電子カメラの状
態を表示する表示器で、それぞれLCD表示器、緑ラン
プ、赤ランプである。
FIG. 2 is an external view of the electronic camera body according to the present embodiment as viewed from the rear side. In FIG. 2, reference numeral 20 denotes an electronic camera main body, and reference numeral 21 denotes a release switch for instructing image capture. Reference numeral 22 denotes an opening for inserting the card-type device 10, and reference numeral 23 denotes an eject switch for taking out the device 10. Reference numeral 24 denotes a detection switch, which detects opening and closing of the lid 25. 25 is the opening 2
2. A cover that covers the eject switch 23 and the detection switch 24. When the cover 25 is opened and closed, the detection switch 24 is opened.
Are turned on and off, and this can be detected by the overall control unit 11. Reference numerals 26, 27, and 28 denote displays for displaying the status of the electronic camera, which are an LCD display, a green lamp, and a red lamp, respectively.

【0017】上記構成において、EEPROM8のデー
タ構成、及びデバイス10として記憶媒体が装着された
場合のその記憶媒体のデータ構成について説明する。図
3は本実施形態による記憶媒体のデータ構成を説明する
図である。
In the above configuration, the data configuration of the EEPROM 8 and the data configuration of the storage medium when the storage medium is mounted as the device 10 will be described. FIG. 3 is a diagram illustrating the data configuration of the storage medium according to the present embodiment.

【0018】図3に示されるように、記憶媒体10は管
理領域とファイル領域に分割される。この1組の管理領
域とファイル領域をドライブと言い、1つの記憶媒体に
つき1又は複数のドライブを生成することができる。1
つのドライブは固有の識別番号と固有の識別名を有する
(それぞれ、ボリュームシリアルナンバー、ボリューム
ラベルという)。管理領域にはファイルを管理するため
の予約領域、ファイルアロケーションテーブル(以下、
FAT)、ルートディレクトリがある。
As shown in FIG. 3, the storage medium 10 is divided into a management area and a file area. This set of management area and file area is called a drive, and one or a plurality of drives can be created for one storage medium. 1
One drive has a unique identification number and a unique identification name (referred to as volume serial number and volume label, respectively). The management area has a reserved area for managing files, a file allocation table (hereinafter, referred to as
FAT) and a root directory.

【0019】また、ファイル領域にはファイルの実際の
データが記録される。ファイル領域のアクセス単位をク
ラスタと呼び、各ファイルはそのデータサイズに従った
数のクラスタ(1つ、もしくは複数のクラスタ)から成
り立つ。
In the file area, actual data of the file is recorded. The access unit of the file area is called a cluster, and each file is composed of a number of clusters (one or a plurality of clusters) according to the data size.

【0020】FATは各々のクラスタに対応したエント
リを持ち、それぞれのエントリには継続するクラスタに
対応するエントリの値が記録されている。また、継続す
るエントリがない場合(ファイルの最後のクラスタに対
応するエントリ)にはそのことを示す値が記録されてい
る。ディレクトリにはファイルネーム、ファイルサイ
ズ、ファイルの先頭のエントリの値、日付等が記録され
ている。
The FAT has an entry corresponding to each cluster, and the value of the entry corresponding to a continuous cluster is recorded in each entry. If there is no continuing entry (the entry corresponding to the last cluster of the file), a value indicating that is recorded. In the directory, a file name, a file size, a value of a head entry of the file, a date, and the like are recorded.

【0021】また、FATは複数の場所に重複して記録
されていることが多い。これは、FATのデータが読め
なくなるとその記憶媒体に記録された情報が読み出し不
能になるため、重複記録によって信頼性を確保しようと
するためである。なお、重複記録が採用されていない場
合でも、FATに対しては基本的に信頼性を確保する何
らかの手段が講じられていることが多い。
Further, the FAT is often recorded in a plurality of locations in an overlapping manner. This is because if the data of the FAT becomes unreadable, the information recorded on the storage medium becomes unreadable, so that the reliability is ensured by duplicate recording. It should be noted that, even when the duplicate recording is not adopted, some means for basically ensuring the reliability of the FAT is often taken.

【0022】以上の記録方式は、公知であるので更に詳
細な説明はここでは省略する。
The above recording method is well-known, so that a more detailed description is omitted here.

【0023】次に、本実施形態の電子カメラの初期動作
について説明する。図4及び図5は本実施形態の電子カ
メラの初期動作を説明するフローチャートである。な
お、この処理は電源投入時には常に実行される。
Next, the initial operation of the electronic camera according to the present embodiment will be described. 4 and 5 are flowcharts illustrating the initial operation of the electronic camera according to the present embodiment. This process is always executed when the power is turned on.

【0024】デバイス10が電子カメラ本体に挿入され
ると、まず、デバイス10を除く電子カメラ本体に電源
が投入される(ステップS300)。そして、全体制御
部11はデバイス制御I/F部9を介して、68ピンの
内の所定の2つの状態を検出する。そしてこの状態によ
って、3.3vまたは5vのいずれかに供給電源電圧を
決定し(決定方法は公知)、この決定された電源をデバ
イス10に供給する(ステップS301)。
When the device 10 is inserted into the electronic camera body, first, power is turned on to the electronic camera body except the device 10 (step S300). Then, the overall control unit 11 detects two predetermined states of the 68 pins via the device control I / F unit 9. Based on this state, the power supply voltage is determined to be 3.3 V or 5 V (the determination method is publicly known), and the determined power is supplied to the device 10 (step S301).

【0025】次に、デバイス10内に設けられているデ
バイス情報用ROM(不図示)内のデータを読み出し、
当該電子カメラによって使用可能なデバイスであるか否
かを判定する。デバイス情報用ROMより読み出される
データには、そのデバイスに関する情報が含まれてお
り、例えば、デバイスの速度、種別、サイズ、インター
フェース、電源、アクセス空間、IRQ、その他の項目
がある。尚、この情報の形式は、PCMCIA規格で公
知であるので詳細な説明は省略する。
Next, data in a device information ROM (not shown) provided in the device 10 is read out,
It is determined whether or not the device can be used by the electronic camera. The data read from the device information ROM includes information about the device, and includes, for example, the speed, type, size, interface, power supply, access space, IRQ, and other items of the device. Since the format of this information is known in the PCMCIA standard, a detailed description is omitted.

【0026】以上のようにしてデバイス情報ROMより
得られる情報を元に、当該デバイスが本電子カメラで使
用できるデバイスであるか否かを判断する。なお、この
判断基準は電子カメラのハード/ソフトに依存してい
る。すなわち、ハード面においては、そのデバイスの速
度、サイズ、インターフェース、電源、アクセス空間、
IRQ等の項目によりそのデバイスを動作させるために
必要な環境を電子カメラが備えているか否かを判断す
る。また、ソフト面においては、そのデバイスの種別等
の項目からそのデバイスを動作させるために必要なプロ
グラムが電子カメラに存在するか否かを判断する(ステ
ップS302)。
Based on the information obtained from the device information ROM as described above, it is determined whether or not the device is a device that can be used in the electronic camera. This criterion depends on the hardware / software of the electronic camera. That is, in terms of hardware, the speed, size, interface, power supply, access space,
An item such as IRQ determines whether the electronic camera has an environment necessary for operating the device. On the software side, it is determined from the item such as the type of the device whether or not a program necessary for operating the device exists in the electronic camera (step S302).

【0027】そして、このハード/ソフト双方の判別に
より使用可能であると判断された場合には、表示部15
の緑ランプ27を2回点滅させ(OK表示)、使用可能
である旨を報知する(ステップS303)。一方、ステ
ップS302で使用不可であると判断された場合には、
表示部15の赤ランプ28を2秒間高速点滅させて(N
G表示)、使用不可である旨を報知する(図5、ステッ
プS313)。
If it is determined that the device can be used by the determination of both hardware and software, the display unit 15
The green lamp 27 is blinked twice (OK display) to notify that it can be used (step S303). On the other hand, if it is determined in step S302 that it is unusable,
The red lamp 28 of the display unit 15 flashes rapidly for 2 seconds (N
G display), and the fact that it is unusable is notified (FIG. 5, step S313).

【0028】なお、デバイス10が使用可能な記憶媒体
であり、電源電圧が3.3v/5vの両方で動作可能で
ある場合には、デバイス10の動作に先立ち本電子カメ
ラが供給し得る、より高圧な電源電圧、即ち、5vを供
給するものとする。
When the device 10 is a usable storage medium and can operate at both the power supply voltage of 3.3 V / 5 V, the present electronic camera can supply before the operation of the device 10. A high power supply voltage, that is, 5 V is supplied.

【0029】次に、ステップS304において、EEP
ROM8中に記録されている空き容量データをDRAM
7(あるいはRAM12)に複写し、DRAM7中の空
き容量データが有効であることを示すフラグ(有効フラ
グ)をセットする。尚、この有効フラグは蓋25、ある
いは本装置の電源である不図示のバッテリを覆う蓋の開
閉に伴いリセットされる。新たにデバイス10が装着さ
れた時点の処理においては、記憶媒体10を覆う蓋25
の開閉が生じており、DRAM7中の空き容量データが
有効であることを示す有効フラグがリセットされる。
Next, in step S304, the EEP
The free space data recorded in the ROM 8 is stored in a DRAM.
7 (or RAM 12), and sets a flag (valid flag) indicating that the free space data in the DRAM 7 is valid. The valid flag is reset when the lid 25 or the lid that covers a battery (not shown) that is a power supply of the apparatus is opened and closed. In the process at the time when the device 10 is newly attached, the lid 25 that covers the storage medium 10 is used.
Is opened and closed, and the valid flag indicating that the free space data in the DRAM 7 is valid is reset.

【0030】次に、フォーマット情報を装着された記憶
媒体から読みだす。即ち、図3で説明した管理領域内の
情報を読み出し、媒体制御に必要なデータをDRAM7
(あるいはRAM12)に記憶すると共にデータの信頼
性(フォーマット異常があるか否か)を検証する(この
検証方法は規定しない)(ステップS305)。
Next, the format information is read from the attached storage medium. That is, the information in the management area described with reference to FIG.
(Or the RAM 12) and verify data reliability (whether or not there is a format error) (this verification method is not specified) (step S305).

【0031】ここでもしフォーマット異常、あるいは媒
体の故障等による異常(Readエラー等)を検出した
場合には、表示部15のLCD表示器26に媒体に関す
るエラーを表示し、媒体および電子カメラ本体の電源を
落とす。そして、その媒体を本電子カメラより取り出す
まではカメラとしての撮影動作を禁止する。更により安
全には、媒体を電子カメラより取り出し蓋を閉めるまで
撮影動作を禁止してもよい(ステップS311,S31
2)。
If an error (such as a read error) due to a format error or a medium failure is detected, an error relating to the medium is displayed on the LCD display 26 of the display unit 15, and the medium and the electronic camera body are detected. Turn off the power. Then, until the medium is removed from the electronic camera, the photographing operation as the camera is prohibited. Even more safely, the photographing operation may be prohibited until the medium is removed from the electronic camera and the lid is closed (steps S311, S31).
2).

【0032】一方、フォーマットチェックの結果、上記
データに問題が無い場合には、上記データが有効である
ことを示すフラグ(媒体のマウント完了フラグ)をセッ
トする(ステップS306)。そして、DRAM7中の
空き容量データが有効であることを示す有効フラグがセ
ットされているか判定し(ステップS307)、リセッ
トされているときには、媒体の管理領域を検索し、空き
容量を算出する(ステップS308)。空き容量はFA
T領域の1つ1つのエントリを検索し、それぞれが未使
用であるか否かを検出し、これを加算することにより知
ることができる。そしてこの空き容量データをDRAM
7(あるいはRAM12)に記憶する。さらにこのDR
AM7上の空き容量データが有効であることを示す有効
フラグをセットする。なお、これらマウント完了フラグ
や有効フラグはDRAM状に保持される。
On the other hand, as a result of the format check, if there is no problem in the data, a flag indicating that the data is valid (media mount completion flag) is set (step S306). Then, it is determined whether a valid flag indicating that the free space data in the DRAM 7 is valid is set (step S307). If the valid flag is reset, the management area of the medium is searched to calculate the free space (step S307). S308). Free space is FA
Each entry in the T area is searched to detect whether or not each entry is unused, and it can be known by adding them. And this free space data is transferred to DRAM
7 (or RAM 12). Furthermore, this DR
A valid flag indicating that the free space data on the AM 7 is valid is set. Note that these mount completion flags and valid flags are held in a DRAM state.

【0033】そして電子カメラ本体に挿入された記憶媒
体が有効であることを表示装置に表示すると共に、その
空き容量を表示部15のLCD表示器26に表示する
(ステップS309)。こののち、DRAM7中の空き
容量データをEEPROM8に複写し、媒体および電子
カメラ本体の電源を落とす(ステップS310)。
Then, the fact that the storage medium inserted into the electronic camera body is valid is displayed on the display device, and the free space is displayed on the LCD display 26 of the display unit 15 (step S309). Thereafter, the free space data in the DRAM 7 is copied to the EEPROM 8, and the power of the medium and the main body of the electronic camera is turned off (step S310).

【0034】また、上記ステップS302において、デ
バイス10が使用不可であると判断された場合には、ス
テップS313でNG表示を行った後、フォーマット情
報をEEPROM8から読みだす。即ち、EEPROM
8より、図3で示した管理領域内の情報を読みだし、媒
体制御に必要なデータをDRAM7(あるいはRAM1
2)に記憶すると共にデータの信頼性(フォーマット異
常があるか否か)を検証する(この検証方法は規定しな
い)(ステップS314)。
If it is determined in step S302 that the device 10 is unusable, an NG display is performed in step S313, and the format information is read from the EEPROM 8. That is, the EEPROM
8, the information in the management area shown in FIG. 3 is read out, and data necessary for medium control is stored in the DRAM 7 (or RAM 1).
2) and verify data reliability (whether or not there is a format error) (this verification method is not specified) (step S314).

【0035】ここでもしフォーマット異常、あるいはE
EPROM8の故障等による異常(Readエラー等)
を検出した場合には、表示装置に媒体に関するエラーを
表示し、電子カメラ本体の電源を落とす。そして、本電
子カメラ中でそのEEPROM8のフォーマットを行う
までは、カメラとしての撮影動作を禁止する(ステップ
S319,320)。
Here, if the format is abnormal or E
Abnormality due to failure of EPROM 8 (Read error, etc.)
Is detected, an error relating to the medium is displayed on the display device, and the power of the electronic camera body is turned off. Until the EEPROM 8 is formatted in the electronic camera, the photographing operation as the camera is prohibited (steps S319 and S320).

【0036】一方、上記データに問題が無い場合には、
上記データが有効であることを示すフラグ(媒体のマウ
ント完了フラグ)をセットする(ステップS315)。
そして、その媒体の空き容量を検索する。空き容量はF
AT領域の1つ1つのエントリを検索し、それぞれが未
使用であるか否かを検出しこれを加算することにより知
ることができる。そしてこの空き容量データをDRAM
7(あるいはRAM12)に記憶するとともに、DRA
M7上の空き容量データが有効であることを示すフラグ
(空き容量検索済みフラグ)をセットする(ステップS
316)。そして電子カメラ内の記憶媒体が有効である
ことを表示装置に表示すると共に、その空き容量を表示
部15のLCD表示器26に表示する(ステップS31
7)。こののち、DRAM7中の空き容量データをEE
PROM8に複写し、媒体および電子カメラ本体の電源
を落とす(ステップS318)。
On the other hand, if there is no problem with the above data,
A flag indicating that the data is valid (media mount completion flag) is set (step S315).
Then, the free space of the medium is searched. Free space is F
It is possible to find out by searching each entry of the AT area, detecting whether each entry is unused and adding them. And this free space data is transferred to DRAM
7 (or RAM 12) and DRA
A flag indicating that the free space data on M7 is valid (a free space search completed flag) is set (step S).
316). Then, the fact that the storage medium in the electronic camera is valid is displayed on the display device, and the free space is displayed on the LCD display 26 of the display unit 15 (step S31).
7). After that, the free space data in the DRAM 7 is
The data is copied to the PROM 8, and the power of the medium and the electronic camera is turned off (step S318).

【0037】尚、予め記憶媒体10を電子カメラ本体に
入れておき、バッテリを後から挿入しても上記動作と同
様である。また、マウントは電源投入毎に行なうためマ
ウント完了フラグをEEPROMに複写する必要は無
い。また、カメラ本体は、媒体装着時(または蓋閉じ)
の割り込みにより常に有効フラグをクリアする、或いは
バッテリ装着時に予め媒体が存在している場合には、同
様に媒体装着(または蓋閉じ)の割り込みが発生し、常
に有効フラグをクリアするように動作するため、有効フ
ラグをEEPROMに複写する必要も無い。
Note that the same operation as described above can be performed even if the storage medium 10 is inserted in the electronic camera body in advance and the battery is inserted later. Also, since the mounting is performed every time the power is turned on, it is not necessary to copy the mounting completion flag into the EEPROM. In addition, the camera body is attached to the medium (or the lid is closed).
The valid flag is always cleared by the interrupt of, or if a medium is present in advance when the battery is mounted, an interrupt for mounting the medium (or closing the lid) similarly occurs, and the valid flag is always cleared. Therefore, there is no need to copy the valid flag to the EEPROM.

【0038】次に、撮影時の動作について、図6のフロ
ーチャートに従って説明する。図6は本実施形態の電子
カメラにおける撮影時処理を示すフローチャートであ
る。
Next, the operation at the time of photographing will be described with reference to the flowchart of FIG. FIG. 6 is a flowchart showing a process at the time of shooting in the electronic camera of the present embodiment.

【0039】全体制御部11にレリーズスイッチ21に
よる撮像記録命令が指示されると、(もしくは、不図示
の外部のコンピュータ等からの撮像記録命令コマンドが
外部I/F部14を介して入力されると)当該電子カメ
ラ本体に電源が投入される(ステップS400)。そし
てEEPROM8中の空き容量データをDRAM7(あ
るいはRAM12)に複写し、DRAM7中の空き容量
データが有効であることを示すフラグをセットする(ス
テップS401)。
When an imaging / recording command from the release switch 21 is instructed to the overall control unit 11 (or an imaging / recording instruction command from an external computer or the like (not shown) is input via the external I / F unit 14). And) the electronic camera body is powered on (step S400). Then, the free space data in the EEPROM 8 is copied to the DRAM 7 (or the RAM 12), and a flag indicating that the free space data in the DRAM 7 is valid is set (step S401).

【0040】その後、全体制御部11は、撮像記録動作
を実行する。即ち、シャッタ2を駆動して露光を行い、
撮像素子3からの画像信号の読み出しを行う(ステップ
S402)。この画像信号は第1信号処理回路4で色補
正及び各種処理が成される(ステップS403)。この
後、A/D変換器5によりアナログ−ディジタル変換が
成されてディジタル画像データとなり(ステップS40
4)、第2信号処理回路6を介してバッファメモリとし
てのDRAM7に一旦記憶される。この後、DRAM7
に記憶された画像データは、第2信号処理部6で圧縮処
理がなされたあと再びDRAM7に記憶される(ステッ
プS405)。
After that, the overall control section 11 executes an image recording operation. That is, exposure is performed by driving the shutter 2,
The image signal is read from the image sensor 3 (Step S402). This image signal is subjected to color correction and various processes by the first signal processing circuit 4 (step S403). Thereafter, analog-digital conversion is performed by the A / D converter 5 to become digital image data (step S40).
4) The data is temporarily stored in the DRAM 7 as a buffer memory via the second signal processing circuit 6. After this, the DRAM 7
Is compressed by the second signal processing unit 6 and then stored again in the DRAM 7 (step S405).

【0041】ここで、A/D変換器5によりアナログ−
ディジタル変換が成された画像データは、第2信号処理
回路6でリアルタイムに圧縮処理がなされたあと、DR
AM7に記憶するようにしてもよい。また圧縮処理を行
わない構成としてもよい。
Here, the analog-to-digital converter 5
The digitally converted image data is subjected to real-time compression processing by the second signal processing circuit 6 and then subjected to DR processing.
You may make it memorize | store in AM7. Further, a configuration in which the compression process is not performed may be adopted.

【0042】つぎに、画像データを外部記憶媒体10
(或いはEEPROM8)へ記録する。以下、外部記憶
媒体10への記録を行うものとして説明する。画像デー
タの記録に際しては、媒体制御I/F部9を介して初め
にディレクトリが生成される(ステップS406)。そ
して、DRAM7に一旦記憶された画像データを、所定
サイズのブロックごとに記憶媒体10に記録し、さらに
ディレクトリ中のファイルサイズ、日付も更新する(ス
テップS407)。
Next, the image data is transferred to the external storage medium 10.
(Or EEPROM 8). Hereinafter, description will be given on the assumption that recording on the external storage medium 10 is performed. When recording image data, a directory is first created via the medium control I / F unit 9 (step S406). Then, the image data once stored in the DRAM 7 is recorded in the storage medium 10 for each block of a predetermined size, and the file size and date in the directory are also updated (step S407).

【0043】尚、記録に際し、記録中のクラスタが不足
した場合には、随時、記憶媒体10のFATの値を判別
し、使用されていないエントリをクラスタチェーンに追
加して記録を継続する。また、これと同時に、DRAM
7(もしくはRAM12)上の上記空き容量データも更
新していく。即ち、記憶媒体10への記録に伴いFAT
のエントリを消費した分だけ空き容量データを減少して
いく。
When the number of clusters being recorded becomes insufficient during recording, the value of the FAT in the storage medium 10 is determined as needed, and an unused entry is added to the cluster chain to continue recording. At the same time, DRAM
7 (or RAM 12) is also updated. That is, the FAT associated with the recording on the storage medium 10
The free space data is reduced by the amount of the consumed entries.

【0044】また、上記ブロックとは、画像データを分
割して1回に圧縮する単位、あるいは1ライン分の画像
データ、あるいは処理のためにDRAM7中に確保した
メモリの単位、その他等、各種処理のために分割した単
位であり、その詳細はここでは限定しない。
The above-mentioned block is a unit for dividing image data into one compression, or one line of image data, a unit of memory secured in the DRAM 7 for processing, and other various processing. The unit is divided for the purpose, and details thereof are not limited here.

【0045】こうしてすべての画像データを記録すると
(ステップS408)、DRAM7中の空き容量データ
をEEPROM8に複写したのち、媒体および電子カメ
ラ本体の電源を落とす(ステップS409)。
When all the image data is recorded (step S408), the free space data in the DRAM 7 is copied to the EEPROM 8, and then the power of the medium and the electronic camera is turned off (step S409).

【0046】次に、上記撮影動作が実施され、画像デー
タを記憶媒体10に記録中(S406,407)に蓋2
5が開けられた時の動作について説明する。図7は本実
施形態の電子カメラにおいて媒体装着部の蓋が開けられ
た際の処理を示すフローチャートである。なお、図7の
処理は割り込みによって起動される。
Next, the above photographing operation is performed, and while the image data is being recorded on the storage medium 10 (S406, 407), the cover 2
The operation when 5 is opened will be described. FIG. 7 is a flowchart illustrating processing when the lid of the medium mounting unit is opened in the electronic camera of the present embodiment. Note that the processing in FIG. 7 is started by interruption.

【0047】蓋25が開いたことが検出スイッチ24に
より検出されると、全体制御部11はそれ以降の、記憶
媒体10への新たなファイルアクセスの実行を停止する
(ステップS410)。次に、そのときに実行中のブロ
ック単位の記録、あるいはその他の実行中のファイルア
クセスを完了させる(ステップS411)。
When the detection switch 24 detects that the lid 25 has been opened, the overall control unit 11 stops executing a new file access to the storage medium 10 thereafter (step S410). Next, recording of the block being executed at that time or other file access being executed is completed (step S411).

【0048】そしてDRAM7(あるいはRAM12)
上の、記憶媒体10から読み出した媒体制御に必要なフ
ォーマット情報が有効であることを示すフラグ(媒体の
マウント完了フラグ)をリセットする(ステップS41
2)。こののち、上記ステップS410で停止していた
記憶媒体10へのファイルアクセスを継続すると共に、
さらに新たなファイルアクセスの実行も受け付けるよう
に動作する。(ステップS413)。しかしながら、ス
テップS412でフォーマット情報はすでに無効化(ア
ンマウント)されているため、全てのファイルアクセス
はエラーを返すように動作することになる。そして所定
時間経過後、媒体および電子カメラ本体の電源を落とす
(ステップS414)。なお、マウント完了フラグをリ
セットするというのは、媒体が存在しない或いは無効と
同等の意味を持つため、これに対するアクセスエラーと
なる。すなわち、マウント完了フラグのリセットは、無
条件にアクセスエラーを起こさせる最も簡単な方法であ
る。
Then, the DRAM 7 (or the RAM 12)
The above flag (media mounting completion flag) indicating that the format information necessary for medium control read from the storage medium 10 is valid is reset (step S41).
2). After this, while continuing the file access to the storage medium 10 stopped in the above step S410,
Further, it operates to accept execution of a new file access. (Step S413). However, since the format information has already been invalidated (unmounted) in step S412, all file accesses operate to return an error. After a lapse of a predetermined time, the power of the medium and the power of the electronic camera body are turned off (step S414). Resetting the mount completion flag is equivalent to the absence or invalidity of a medium, and thus an access error occurs. That is, resetting the mount completion flag is the simplest method for causing an access error unconditionally.

【0049】尚、ここでは画像データを記憶媒体10に
記録中に蓋25が開けられた時の動作を説明したが、本
電子カメラが不図示のバッテリーで動作中に、電源電圧
が所定値以下を検出したときに上記の動作を起動するよ
うにしてもよい。
Although the operation when the lid 25 is opened while image data is being recorded on the storage medium 10 has been described here, the power supply voltage may be lower than a predetermined value while the electronic camera is operating with a battery (not shown). The above-mentioned operation may be started when the detection of is performed.

【0050】次に、消去時の動作について、図8のフロ
ーチャートに従って説明する。図8は本実施形態の電子
カメラにおけるファイル消去手順を説明するフローチャ
ートである。
Next, the operation at the time of erasing will be described with reference to the flowchart of FIG. FIG. 8 is a flowchart illustrating a file erasing procedure in the electronic camera according to the present embodiment.

【0051】全体制御部11に対して不図示のスイッチ
等による消去命令が成されると(もしくは、不図示の外
部のコンピュータ等からの消去命令コマンドが外部I/
F部14を介して入力されると)、まず、当該電子カメ
ラ本体に電源が投入される(ステップS500)。そし
てEEPROM8中の空き容量データをDRAM7(あ
るいはRAM12)に複写し、DRAM7中の空き容量
データが有効であることを示すフラグをセットする。
When an erasing command is issued to the overall control unit 11 by a switch or the like (not shown) (or an erasing command from an external computer or the like, not shown) is sent to the external I / O.
First, the power is turned on to the electronic camera body (step S500). Then, the free space data in the EEPROM 8 is copied to the DRAM 7 (or the RAM 12), and a flag indicating that the free space data in the DRAM 7 is valid is set.

【0052】その後、全体制御部11は、指定されたデ
ータファイルの消去動作を実行する。即ち、記憶媒体1
0の指定されたデータファイルに対して、媒体制御I/
F部9を介して初めにディレクトリの消去を行う(ステ
ップS501)。そして、ディレクトリ中のファイルの
先頭のエントリの値から、FAT領域におけるクラスタ
チェーンの連鎖に従い、そのファイルのすべてのエント
リを未使用状態にしていく。さらに、これと同時に、D
RAM7(もしくはRAM12)上の上記空き容量デー
タを更新していく。即ち、記憶媒体10内のデータの消
去に伴いFATのエントリを解放した分だけ空き容量デ
ータを増加していく(ステップS502)。
Thereafter, the overall control unit 11 executes an erasing operation of the designated data file. That is, the storage medium 1
0 for the specified data file.
First, the directory is deleted via the F section 9 (step S501). Then, from the value of the first entry of the file in the directory, all entries of the file are made unused according to the cluster chain in the FAT area. Furthermore, at the same time, D
The free space data on the RAM 7 (or RAM 12) is updated. That is, the free space data is increased by an amount corresponding to the release of the FAT entry in accordance with the erasure of the data in the storage medium 10 (step S502).

【0053】こうして所定のデータファイルの消去を行
い(ステップS503)、DRAM7中の空き容量デー
タをEEPROM8に複写したのち、媒体および電子カ
メラ本体の電源を落とす(ステップS504)。
After the predetermined data file is erased (step S503), the free space data in the DRAM 7 is copied to the EEPROM 8, and then the power of the medium and the electronic camera is turned off (step S504).

【0054】以上説明したように、上記実施形態によれ
ば、着脱可能な記憶媒体を用いたデータ記録装置におい
て、装着されたデバイスが記憶媒体であるか否かを明確
に知ることができ、記憶媒体でない場合でも記録装置内
蔵の記憶媒体にデータの記録が可能となる。更に媒体の
フォーマット異常または媒体異常をも明確に知ることが
できる。
As described above, according to the above-described embodiment, in a data recording apparatus using a removable storage medium, it is possible to clearly know whether or not the attached device is a storage medium. Even when the medium is not a medium, data can be recorded on a storage medium built in the recording apparatus. Further, it is possible to clearly know the medium format abnormality or the medium abnormality.

【0055】また、媒体の空き容量については、記憶媒
体の装着時に一度調べてEEPROMに記録しておくの
で、装置の電源を入れ直しても再び調べる必要がなくな
る。このため、空き容量検出のための電力と時間を大幅
に削減できる。
Further, since the free space of the medium is checked once when the storage medium is mounted and recorded in the EEPROM, it is not necessary to check again even if the apparatus is turned on again. For this reason, power and time for detecting the free space can be significantly reduced.

【0056】また、記憶媒体から媒体制御のための情報
を読み出し、これをもって記憶媒体を制御する。そし
て、記憶媒体を覆う蓋が開いたことを検出した場合、あ
るいは、バッテリーで動作中に電源電圧が所定値以下に
なったことを検出した場合には、読み出した記憶媒体制
御のための情報の無効化を行う。このため、エラー時の
処理を簡素化でき、エラー処理のためのプログラム量を
減らすことができる。
Further, information for medium control is read from the storage medium, and the storage medium is controlled based on the information. Then, when it is detected that the lid covering the storage medium has been opened, or when it is detected that the power supply voltage has become lower than or equal to a predetermined value during operation with the battery, the information for reading the storage medium is read out. Perform invalidation. For this reason, processing at the time of error can be simplified, and the amount of programs for error processing can be reduced.

【0057】さらに、記録中に誤って記憶媒体を取り出
した場合、あるいは記録中にバッテリ出力が低下した場
合でも、記憶媒体に致命的なデータ破壊を引き起こすこ
とが皆無となる。また、記憶媒体を取り出したい時には
いつでも取り出すことができるため、データを記録中で
も記憶媒体を取り出し、他の装置への装着が可能とな
り、これまで以上に使い勝手がよくなる(取り扱いが容
易になる)効果がある。
Furthermore, even if the storage medium is erroneously removed during recording, or if the battery output drops during recording, there is no possibility of causing fatal data destruction to the storage medium. Further, since the storage medium can be taken out whenever it is desired to take it out, the storage medium can be taken out even while data is being recorded, and it can be mounted on another device. This has the effect of improving usability (handling ease) more than before. is there.

【0058】また、着脱可能な記憶媒体に対し複数の電
源電圧を供給でき、複数の電源電圧で動作可能な記憶媒
体が挿入された場合には、記憶媒体の動作可能な電源電
圧のうち、供給し得る最高の電源電圧を供給するように
したため、媒体とのアクセスをより高速にでき記録時間
を減少する効果がある。
Further, a plurality of power supply voltages can be supplied to the removable storage medium, and when a storage medium operable with a plurality of power supply voltages is inserted, of the operable power supply voltages of the storage medium, Since the highest possible power supply voltage is supplied, access to the medium can be made faster and the recording time can be reduced.

【0059】なお、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
An object of the present invention is to supply a storage medium storing program codes of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU) of the system or the apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0060】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0061】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0062】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0063】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0064】[0064]

【発明の効果】以上説明したように、本発明によれば、
装置の電源を遮断した場合でも空き容量情報を保持する
ことが可能となり、媒体の空き容量情報維持、あるいは
空き容量チェックのために費やされる電力及び処理時間
を低減できる。
As described above, according to the present invention,
Even when the power of the apparatus is cut off, the free space information can be held, and the power and processing time spent for maintaining the free space information of the medium or checking the free space can be reduced.

【0065】また、本発明によれば、記憶媒体の着脱時
におけるデータ保護をより効果的に行える。
Further, according to the present invention, data protection at the time of attaching / detaching the storage medium can be more effectively performed.

【0066】[0066]

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態による電子カメラの制御構成を示す
ブロック図である。
FIG. 1 is a block diagram illustrating a control configuration of an electronic camera according to an embodiment.

【図2】本実施形態によう電子カメラ本体を背面側より
見た外観図である。
FIG. 2 is an external view of the electronic camera main body as viewed from the rear side as in the embodiment.

【図3】本実施形態による記憶媒体のデータ構成を説明
する図である。
FIG. 3 is a diagram illustrating a data configuration of a storage medium according to the present embodiment.

【図4】本実施形態の電子カメラの初期動作を説明する
フローチャートである。
FIG. 4 is a flowchart illustrating an initial operation of the electronic camera according to the embodiment.

【図5】本実施形態の電子カメラの初期動作を説明する
フローチャートである。
FIG. 5 is a flowchart illustrating an initial operation of the electronic camera according to the embodiment.

【図6】本実施形態の電子カメラにおける撮影時処理を
示すフローチャートである。
FIG. 6 is a flowchart illustrating a photographing process performed by the electronic camera according to the embodiment.

【図7】本実施形態の電子カメラにおいて媒体装着部の
蓋が開けられた際の処理を示すフローチャートである。
FIG. 7 is a flowchart illustrating processing when a lid of a medium mounting unit is opened in the electronic camera of the embodiment.

【図8】本実施形態の電子カメラにおけるファイル消去
手順を説明するフローチャートである。
FIG. 8 is a flowchart illustrating a file erasing procedure in the electronic camera according to the present embodiment.

【符号の説明】[Explanation of symbols]

1 レンズ 2 シャッター 3 撮像素子 4 第1信号処理回路 5 A/D変換器 6 第2信号処理回路 7 DRAM 8 EEPROM 9 デバイス制御I/F部 10 デバイス 11 全体制御部 12 RAM 13 タイミング発生部 14 外部I/F部 REFERENCE SIGNS LIST 1 lens 2 shutter 3 image sensor 4 first signal processing circuit 5 A / D converter 6 second signal processing circuit 7 DRAM 8 EEPROM 9 device control I / F unit 10 device 11 overall control unit 12 RAM 13 timing generation unit 14 external I / F section

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 着脱可能な記憶媒体へのデータ記録が可
能なデータ記録装置であって、 電源投入時に不揮発性メモリに記憶されているメモリ残
量データを揮発性メモリへロードするロード手段と、 データの記録もしくは消去に応じて前記揮発性メモリ上
のメモリ残量データを更新する更新手段と、 電源遮断時に、前記揮発性メモリに格納されているメモ
リ残量データを前記不揮発性メモリに格納する格納手段
と、 データを記録するための記憶媒体の変更が検出された場
合、変更後の記憶媒体のメモリ残量で前記揮発性メモリ
上のメモリ残量データを書き換える書換手段とを備える
ことを特徴とするデータ記録装置。
1. A data recording apparatus capable of recording data on a removable storage medium, comprising: loading means for loading remaining memory data stored in a non-volatile memory into a volatile memory when power is turned on; Updating means for updating the remaining memory data in the volatile memory in accordance with recording or erasing of data; and storing the remaining memory data stored in the volatile memory in the nonvolatile memory when power is turned off. Storage means, and rewriting means for rewriting the remaining memory data on the volatile memory with the changed remaining memory capacity of the storage medium when a change in the storage medium for recording data is detected. Data recording device.
【請求項2】 前記書換手段は、新たな記憶媒体の装着
が検出された場合に、該新たに装着された記憶媒体を変
更後の記憶媒体としてメモリ残量データの書換を行うこ
とを特徴とする請求項1に記載のデータ記録装置。
2. The method according to claim 1, wherein the rewriting means rewrites the remaining memory data using the newly mounted storage medium as a changed storage medium when the mounting of the new storage medium is detected. The data recording device according to claim 1.
【請求項3】 前記装置は、着脱可能な記憶媒体もしく
は内蔵不揮発性メモリへのデータ記録が可能であり、 前記書換手段は、前記着脱可能な記憶媒体が抜去された
場合に前記内蔵不揮発性メモリを変更後の記憶媒体とし
てメモリ残量データの書換を行うことを特徴とする請求
項1に記載のデータ記録装置。
3. The device is capable of recording data on a removable storage medium or a built-in nonvolatile memory, and the rewriting means is configured to rewrite the built-in nonvolatile memory when the removable storage medium is removed. 2. The data recording apparatus according to claim 1, wherein the remaining memory data is rewritten as a storage medium after the change.
【請求項4】 装置への電源供給時に、着脱可能な記憶
媒体が使用可能であるか判定する判定手段と、 前記判定手段で使用不可と判定された場合、前記内蔵不
揮発性メモリを使用してデータの記録を行うよう制御す
る制御手段とを更に備えることを特徴とする請求項3に
記載のデータ記録装置。
4. A power supply to a device, comprising: a determination unit for determining whether a removable storage medium is usable; and, when the determination unit determines that the storage medium is unusable, using the built-in nonvolatile memory. 4. The data recording apparatus according to claim 3, further comprising control means for controlling recording of data.
【請求項5】 前記判定手段において、前記記憶媒体が
使用可能であると判定されたにもかかわらず、該記憶媒
体の故障もしくはフォーマットエラーが検出された場合
は、少なくとも当該記憶媒体が抜去されるまでは新たな
データの記録を禁止する第1禁止手段を更に備えること
を特徴とする請求項4に記載のデータ記録装置。
5. When the failure of the storage medium or the format error is detected even though the determination unit determines that the storage medium is usable, at least the storage medium is removed. 5. The data recording apparatus according to claim 4, further comprising a first prohibition unit for prohibiting recording of new data until the first prohibition unit.
【請求項6】 前記判定手段で使用不可と判定されて前
記内蔵不揮発性メモリを使用するにおいて、該内蔵不揮
発性メモリの故障もしくはフォーマットエラーが検出さ
れた場合は、少なくとも当該エラーが解除されるまでは
新たなデータの記録を禁止する第2禁止手段を更に備え
ることを特徴とする請求項5に記載のデータ記録装置。
6. When a failure or a format error of the built-in nonvolatile memory is detected in the use of the built-in nonvolatile memory determined to be unusable by the determining means, at least until the error is cleared. The data recording apparatus according to claim 5, further comprising a second prohibition unit for prohibiting recording of new data.
【請求項7】 前記ロード手段は電源投入時に不揮発性
メモリに記憶されている媒体制御用情報を前記メモリ残
量データとともに前記揮発性メモリへロードし、 媒体を覆う蓋が開いたことを検出するか、或いは媒体の
着脱を予め検出するための予備検出手段を検出すると、
前記媒体制御用情報を無効化する無効化手段を更に備え
ることを特徴とする請求項1に記載のデータ記録装置。
7. The loading means loads the medium control information stored in the non-volatile memory together with the memory remaining amount data into the volatile memory when the power is turned on, and detects that the lid covering the medium is opened. Or, if a preliminary detection means for detecting in advance the attachment / detachment of the medium is detected,
2. The data recording apparatus according to claim 1, further comprising invalidating means for invalidating the medium control information.
【請求項8】 前記無効化手段は、バッテリーで動作中
に、電源電圧が所定値以下になったことを検出すると、
前記媒体制御情報を無効化することを特徴とする請求項
7に記載のデータ記録装置。
8. When the invalidation unit detects that the power supply voltage has become equal to or lower than a predetermined value during operation on a battery,
The data recording apparatus according to claim 7, wherein the medium control information is invalidated.
【請求項9】 前記着脱可能な記憶媒体に対し複数の電
源電圧を供給可能な電源供給手段と、 複数の電源電圧で動作可能な記憶媒体が挿入された場合
には、該記憶媒体の動作可能な電源電圧のうち、供給し
うる最も高い電源電圧を供給するように、前記電源供給
手段を制御する電源制御手段とを更に備えることを特徴
とする請求項1に記載のデータ記録装置。
9. A power supply unit capable of supplying a plurality of power supply voltages to the removable storage medium, and a storage medium operable when a storage medium operable with a plurality of power supply voltages is inserted. 2. The data recording apparatus according to claim 1, further comprising: a power supply control unit that controls the power supply unit so as to supply the highest power supply voltage that can be supplied.
【請求項10】 着脱可能な記憶媒体へのデータ記録が
可能なデータ記録方法であって、 電源投入時に不揮発性メモリに記憶されているメモリ残
量データを揮発性メモリへロードするロード工程と、 データの記録もしくは消去に応じて前記揮発性メモリ上
のメモリ残量データを更新する更新工程と、 電源遮断時に、前記揮発性メモリに格納されているメモ
リ残量データを前記不揮発性メモリに格納する格納工程
と、 データを記録するための記憶媒体の変更が検出された場
合、変更後の記憶媒体のメモリ残量で前記揮発性メモリ
上のメモリ残量データを書き換える書換工程とを備える
ことを特徴とするデータ記録方法。
10. A data recording method capable of recording data on a removable storage medium, comprising: a loading step of loading remaining memory data stored in a nonvolatile memory into a volatile memory when power is turned on; An updating step of updating the remaining memory data on the volatile memory in accordance with recording or erasing of data; and storing the remaining memory data stored in the volatile memory in the nonvolatile memory when power is turned off. A storage step; and a rewriting step of, when a change of the storage medium for recording data is detected, rewriting the remaining memory data on the volatile memory with the changed remaining memory capacity of the storage medium. Data recording method.
【請求項11】 コンピュータに、着脱可能な記憶媒体
へのデータ記録を制御させるための制御プログラムを格
納する記憶媒体であって、該制御プログラムが、 電源投入時に不揮発性メモリに記憶されているメモリ残
量データを揮発性メモリへロードするロード工程のコー
ドと、 データの記録もしくは消去に応じて前記揮発性メモリ上
のメモリ残量データを更新する更新工程のコードと、 電源遮断時に、前記揮発性メモリに格納されているメモ
リ残量データを前記不揮発性メモリに格納する格納工程
のコードと、 データを記録するための記憶媒体の変更が検出された場
合、変更後の記憶媒体のメモリ残量で前記揮発性メモリ
上のメモリ残量データを書き換える書換工程のコードと
を備えることを特徴とする記憶媒体。
11. A storage medium for storing a control program for causing a computer to control data recording on a removable storage medium, wherein the control program is stored in a nonvolatile memory when power is turned on. A code for a load step of loading remaining data into the volatile memory; a code for an update step of updating remaining memory data on the volatile memory in accordance with recording or erasing of data; A code of a storage step of storing the remaining memory data stored in the memory in the nonvolatile memory; and, if a change in the storage medium for recording the data is detected, the remaining memory capacity of the changed storage medium is used. A code for a rewriting step of rewriting the remaining memory data on the volatile memory.
JP10236030A 1998-08-21 1998-08-21 Data recording apparatus and method Withdrawn JP2000066947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10236030A JP2000066947A (en) 1998-08-21 1998-08-21 Data recording apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10236030A JP2000066947A (en) 1998-08-21 1998-08-21 Data recording apparatus and method

Publications (1)

Publication Number Publication Date
JP2000066947A true JP2000066947A (en) 2000-03-03

Family

ID=16994731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10236030A Withdrawn JP2000066947A (en) 1998-08-21 1998-08-21 Data recording apparatus and method

Country Status (1)

Country Link
JP (1) JP2000066947A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7123554B2 (en) 2000-09-18 2006-10-17 Sanyo Electric Co., Ltd. Disk apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7123554B2 (en) 2000-09-18 2006-10-17 Sanyo Electric Co., Ltd. Disk apparatus

Similar Documents

Publication Publication Date Title
US7290095B2 (en) Information processing apparatus and method therefor, and recording medium
JP2005100396A (en) System and method for dynamically updating functions in an electronic imaging device
US8533450B2 (en) File update system and boot management system of mobile communication terminal, method of updating file in mobile communication terminal, and method of booting mobile communication terminal
USRE41155E1 (en) Image recording apparatus
JP2001094844A (en) Camera
US7620994B2 (en) Data recording system and data access method
JPH076028A (en) Electronics
JPH1040020A (en) Data recording apparatus and method
JP2000066947A (en) Data recording apparatus and method
JP4058259B2 (en) Storage medium access device and storage medium access control method
JP4470350B2 (en) Removable memory removable electronic device and file system inspection method
JP3950585B2 (en) Information processing apparatus, control method therefor, and memory medium
JP3392173B2 (en) Storage management method for IC memory card
JPH0963192A (en) Data recording device and data recording method
JP4184709B2 (en) Data processing system, data processing method, and data processing program
JP3919261B2 (en) Memory control device and memory access method
JP4612816B2 (en) Recording / reproducing apparatus and control method
JP4222748B2 (en) camera
JP2001126039A (en) Recording device
WO2009110141A1 (en) Information processing apparatus and non-volatile semiconductor memory drive
JP4823921B2 (en) Electronic equipment, format discrimination method
JP4187618B2 (en) Cameras and information equipment
JP3458392B2 (en) Still camera
JPH07287640A (en) Recording medium, recording unit, and recording system using the recording medium or recording unit
JPH1040175A (en) Flash ROM storage management method and device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20051101