JP2002007179A - Information processor and file system - Google Patents

Information processor and file system

Info

Publication number
JP2002007179A
JP2002007179A JP2000196285A JP2000196285A JP2002007179A JP 2002007179 A JP2002007179 A JP 2002007179A JP 2000196285 A JP2000196285 A JP 2000196285A JP 2000196285 A JP2000196285 A JP 2000196285A JP 2002007179 A JP2002007179 A JP 2002007179A
Authority
JP
Japan
Prior art keywords
data
block
memory card
file
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
JP2000196285A
Other languages
Japanese (ja)
Inventor
Yoko Matsuura
陽子 松浦
Tomotaka Yamazaki
友敬 山崎
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2000196285A priority Critical patent/JP2002007179A/en
Publication of JP2002007179A publication Critical patent/JP2002007179A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To realize a file system API whose mounting scale is small and which has the possibility capable of dealing with various storage means. SOLUTION: This system is provided with respective indivisual libraries being respective file systems API for each storage means and a common library being a common file system API for each storage means. The respective individual libraries substitute the function of the common library for their own functions at the time of operating the corresponding storage means, thereby functioning the respective individual libraries by using the common library.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置及び
ファイルシステムに関するものである。
[0001] The present invention relates to an information processing apparatus and a file system.

【0002】[0002]

【従来の技術】パーソナルコンピュータやPDA(Pers
onal Digital Assistants:携帯情報機器)などの情報
処理装置においては、HDD(Hard Disc Drive)、光
ディスク、光磁気ディスク、磁気ディスク、メモリカー
ドなどの各種の記録媒体に対するファイル等の記録/再
生が行われる。
2. Description of the Related Art A personal computer or a PDA (Pers
2. Description of the Related Art In an information processing device such as an onal Digital Assistants (portable information device), recording / reproducing of a file or the like on various recording media such as an HDD (Hard Disc Drive), an optical disk, a magneto-optical disk, a magnetic disk, and a memory card is performed. .

【0003】[0003]

【発明が解決しようとする課題】ところで情報処理装置
からアクセスされる記憶媒体としては、同一のファイル
システムを有する異種のものがある。例えばメモリカー
ドと呼ばれる範疇のメディアとしても、各メーカがそれ
ぞれ異なる多様な種類のカードメディアを製造している
が、それらの各種のメモリカードは、どれもがFATフ
ァイルシステムを採用しているという状況がある。また
フロッピー(登録商標)ディスクやハードディスクなど
もFATを採用している。
The storage media accessed from the information processing apparatus include different types having the same file system. For example, as for media in a category called a memory card, each maker manufactures a variety of different types of card media, and all of these various memory cards employ the FAT file system. There is. Floppy (registered trademark) disks and hard disks also employ FAT.

【0004】ここで、ある情報処理装置において、装着
可能とされるメディアの選定や、将来的な拡張を考える
と各メディアに応じたFATが必要になる。そこで汎用
FATとして考えられる全てのメディアに対応させるよ
うにファイルシステムを構築することが考えられる。つ
まり汎用のファイルシステムAPI(Application Prog
ramming Interface)が必要になる。この場合汎用FA
Tといっても、各メディアにはそれぞれ固有のFAT方
式が存在するため、APIとしては各メディアにそれぞ
れ対応した部分を用意しておかなければならず、実装
上、規模の大きいものとなってしまう。例えばPDA機
器などでは、大規模なファイルシステムを実装すること
は不適切である。その一方で、個別のメディア毎にFA
TファイルシステムAPIを実装することは、拡張性に
欠けるものとなる。
[0004] Here, in a certain information processing apparatus, in consideration of selection of a medium that can be mounted and expansion in the future, an FAT corresponding to each medium is required. Therefore, it is conceivable to construct a file system so as to correspond to all media considered as a general-purpose FAT. In other words, a general-purpose file system API (Application Prog
ramming Interface) is required. In this case, general purpose FA
Regarding T, since each medium has its own FAT method, it is necessary to prepare a portion corresponding to each medium as an API, which is large in terms of mounting. I will. For example, in a PDA device or the like, it is inappropriate to mount a large-scale file system. On the other hand, FA for each individual media
Implementing the T file system API lacks extensibility.

【0005】[0005]

【課題を解決するための手段】本発明はこのような状況
に鑑みて、実装規模が大きくならず、その一方でメディ
ア拡張性も損なわれないようなファイルシステムを実現
することを目的とする。
SUMMARY OF THE INVENTION In view of such circumstances, an object of the present invention is to realize a file system in which the mounting scale is not increased and the media expandability is not impaired.

【0006】このため本発明の情報処理装置は、そのフ
ァイルシステムとして、各記憶手段についての個別のフ
ァイルシステムAPIとされる各個別ライブラリと、各
記憶手段についての共通のファイルシステムAPIとさ
れる共通ライブラリとを有し、上記各個別ライブラリ
は、対応する記憶手段への動作時において、上記共通ラ
イブラリの関数を自己の関数に置き換えることにより、
共通ライブラリを用いて機能するようにする。即ち同一
のファイルシステムを有する複数の異種の記憶手段にア
クセス可能とされる場合に、各個別ライブラリが、共通
ライブラリを実体たるAPIとして使用することで、A
PI規模を小さくできるようにし、かつ、多種の記憶手
段に対応できるものとする。
Therefore, the information processing apparatus of the present invention has, as its file system, each individual library which is an individual file system API for each storage unit, and a common file system API which is a common file system API for each storage unit. Each of the individual libraries has a function of replacing the function of the common library with its own function when operating the corresponding storage means.
Make it work using a common library. That is, when a plurality of different types of storage means having the same file system can be accessed, each individual library uses the common library as an API to realize A
It is assumed that the PI scale can be reduced and that it can support various types of storage means.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施の形態を次の
順序で説明する。なお、実施の形態としては、本発明の
情報処理装置としてPDA機器を挙げる。 1.情報処理装置の外観例 2.情報処理装置の構成 3.OS構造及びデータベース構造 4.メモリカード 4−1 外観 4−2 メモリカードの端子及び内部構造 4−3 ファイルシステム処理階層 4−4 物理的データ構造 4−5 物理アドレス及び論理アドレスの概念 4−6 論理−物理アドレス変換テーブル 4−7 ディレクトリ構造 5.FAT構造 6.メモリカードと情報処理装置のインターフェース 7.ファイルシステムAPI
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in the following order. As an embodiment, a PDA device will be described as an information processing apparatus of the present invention. 1. 1. Appearance example of information processing device 2. Configuration of information processing device 3. OS structure and database structure Memory Card 4-1 Appearance 4-2 Terminals and Internal Structure of Memory Card 4-3 File System Processing Hierarchy 4-4 Physical Data Structure 4-5 Concept of Physical Address and Logical Address 4-6 Logical-Physical Address Conversion Table 4 -7 directory structure FAT structure 6. Interface between memory card and information processing device File system API

【0008】1.情報処理装置の外観例 本例の情報処理装置の外観例を図1に示す。この情報処
理装置1は、いわゆるPDA機器として携帯に適した小
型軽量の装置とされる。また記録媒体として、後述する
メモリカード70を装着し、記録再生を行うことができ
るものとする。なお本発明としては、携帯型の情報処理
装置に限られず、パーソナルコンピュータをはじめとす
るあらゆるタイプの情報処理装置に適用できるものであ
り、また装置が記録を行う記録媒体はメモリカードに限
られず、HDD、光ディスク、光磁気ディスク、或いは
装置内に固定的に配置されるRAM、フラッシュメモリ
など、他の種の記録媒体であってもよいものである。
[0008] 1. Example of Appearance of Information Processing Apparatus FIG. 1 shows an example of the appearance of an information processing apparatus of this example. The information processing device 1 is a small and lightweight device suitable for being carried as a so-called PDA device. Also, it is assumed that a memory card 70 described later can be mounted as a recording medium to perform recording and reproduction. Note that the present invention is not limited to a portable information processing apparatus, but can be applied to any type of information processing apparatus including a personal computer, and the recording medium on which the apparatus performs recording is not limited to a memory card. Other types of recording media such as an HDD, an optical disk, a magneto-optical disk, or a RAM or a flash memory fixedly arranged in the apparatus may be used.

【0009】図1(a)(b)(c)(d)は情報処理
装置1の外観例としての平面図、右側面図、左側面図、
上面図を示している。図1(d)に示すように装置上面
側には後述するメモリカード70を装着可能なメモリス
ロット7が形成されており、この情報処理装置1は、メ
モリスロット7に装着されたメモリカード70に対する
各種データ(コンピュータ用データ、音楽データ、音声
データ、動画像データ、静止画像データ、制御データな
ど)の記録再生が可能とされる。なお、この図1の例で
はメモリスロット7が2つ形成されていることから、2
つのメモリカード70を同時に装着できるようになされ
ている。もちろん、形成するメモリスロット7の数は1
つでもよいし、3つ以上でもよい。
FIGS. 1A, 1B, 1C, and 1D are a plan view, a right side view, a left side view, and an outer appearance example of the information processing apparatus 1, respectively.
FIG. As shown in FIG. 1D, a memory slot 7 in which a memory card 70 to be described later can be inserted is formed on the upper surface side of the device. Various data (computer data, music data, audio data, moving image data, still image data, control data, and the like) can be recorded and reproduced. In the example of FIG. 1, since two memory slots 7 are formed,
One memory card 70 can be inserted at a time. Of course, the number of memory slots 7 to be formed is 1
Or three or more.

【0010】この情報処理装置1には、平面上に例えば
液晶パネルによる表示部2が形成され、アプリケーショ
ンソフトウエアの起動及び各種処理に伴う画像、データ
としての画像や文字、再生される音声、音楽に付随する
情報、さらには操作のガイドメッセージ、再生や編集操
作等のためのメニュー画面などが表示される。
In this information processing apparatus 1, a display unit 2 formed of, for example, a liquid crystal panel is formed on a flat surface, and images and characters as data, data and images to be reproduced, and audio and music to be reproduced upon activation of application software and various processes. , An operation guide message, a menu screen for reproduction and editing operations, and the like are displayed.

【0011】情報処理装置1上には、ユーザーの操作の
ための各種の操作子が設けられる。例えば操作キー3
a、ジョグダイヤル3b、プッシュダイヤル3cなどが
それぞれ所要部位に形成される。これらの操作子により
ユーザーは、例えば電源操作、メニュー操作、選択操
作、文字等の入力操作、その他必要とされる各種の操作
を行うことができる。これらの操作子はもちろん一例に
すぎない。即ち配備する操作子の数、種類、位置は多様
に考えられる。
On the information processing apparatus 1, various operators for user operation are provided. For example, operation key 3
a, a jog dial 3b, a push dial 3c, etc. are formed at required portions, respectively. These controls allow the user to perform, for example, a power supply operation, a menu operation, a selection operation, an input operation of characters and the like, and various other necessary operations. These controls are of course only examples. That is, the number, types, and positions of the deployed operators can be variously considered.

【0012】また、情報処理装置1上には、スピーカ
4,マイクロホン5,撮像部6も形成され、音声の出
力、入力、撮像による画像の取込なども実行できるよう
にされている。
Further, a speaker 4, a microphone 5, and an imaging unit 6 are also formed on the information processing apparatus 1, so that audio output, input, image capturing by imaging, and the like can be executed.

【0013】また各種機器との接続のために、各種端子
が形成される。例えば図1(b)のように、ヘッドホン
端子10、ライン出力端子12、ライン入力端子11な
どが形成され、また図1(c)のようにIEEE139
4端子8、USB(universalserial bus)端子9などが
形成される。なお、これらの端子の種類、数、配置位置
も、他の例が多様に考えられる。例えば光ケーブル対応
のデジタル入出力端子を備えるようにしたり、或いはS
CSIコネクタ、シリアルポート、RS232Cコネク
タなどが形成されるようにしても良い。
Various terminals are formed for connection with various devices. For example, as shown in FIG. 1B, a headphone terminal 10, a line output terminal 12, a line input terminal 11, and the like are formed, and as shown in FIG.
Four terminals 8, USB (universal serial bus) terminals 9, and the like are formed. It should be noted that other examples are also conceivable for the types, numbers, and arrangement positions of these terminals. For example, a digital input / output terminal corresponding to an optical cable is provided, or
A CSI connector, a serial port, an RS232C connector, or the like may be formed.

【0014】2.情報処理装置の構成 図2に情報処理装置1の内部構成を示す。図示するよう
に情報処理装置1内には、まず中核となる部位として、
システムコントローラ21、CPU22、フラッシュR
OM23、D−RAM24が設けられる。また基本的な
ユーザーインターフェースのための部位として操作部3
5,表示制御部27,表示部2が形成される。
2. FIG. 2 shows an internal configuration of the information processing apparatus 1. As shown in the figure, in the information processing device 1, first, as a core portion,
System controller 21, CPU 22, Flash R
An OM 23 and a D-RAM 24 are provided. Operation unit 3 as a part for basic user interface
5, a display control unit 27 and a display unit 2 are formed.

【0015】システムコントローラ21は操作部35か
らの操作情報を入力し、それに応じてCPU22に割り
込みをかける。操作部35とは、図1に示した各種操作
子3a、3b、3cに相当する。また図1では説明しな
かったが、表示部2に操作キーやアイコンの表示を行う
とともに表示部2上でのタッチ検出機構を設けること
で、タッチパネル操作子を形成してもよく、その場合の
タッチパネル操作子も図2でいう操作部35に含まれる
ものとなる。
The system controller 21 inputs operation information from the operation unit 35 and interrupts the CPU 22 accordingly. The operation unit 35 corresponds to the various operators 3a, 3b, and 3c shown in FIG. Although not described in FIG. 1, a touch panel operator may be formed by displaying operation keys and icons on the display unit 2 and providing a touch detection mechanism on the display unit 2. The touch panel operator is also included in the operation unit 35 shown in FIG.

【0016】CPU22は基本ソフト(OS:Operatin
g System)やアプリケーションプログラムが動作される
部位となる。CPU22はシステムコントローラ21を
介して供給される操作情報に応じて所要の処理を実行す
る。フラッシュROM23は、基本動作プログラム、各
種処理定数、設定情報などを記憶する領域とされる。D
−RAM24は、各種処理に必要な情報の記憶、データ
のバッファリング、CPU22のワークエリアの拡張、
その他、CPU22の処理に応じて多様に使用される。
またD−RAM24にはストレージエリア(不揮発性領
域)が設けられており、そのストレージエリアにはOS
やアプリケーションソフトウエアがインストールされ
る。そしてD−RAM24にインストールされたアプリ
ケーションソフトウエアは、ユーザからの操作に応じて
起動され、CPU22により実行される。またアプリケ
ーションソフトウエアはユーザーインターフェース画面
を持ち、ユーザーの指示による状態遷移に基づいて、D
−RAM24に確保されたフレームバッファに描画を行
う。描画された画像データは、表示制御部27に送ら
れ、表示部2に表示される。
The CPU 22 is a basic software (OS: Operatin)
g System) and application programs. The CPU 22 executes a required process according to the operation information supplied via the system controller 21. The flash ROM 23 is an area for storing a basic operation program, various processing constants, setting information, and the like. D
A RAM 24 for storing information necessary for various processes, buffering data, expanding a work area of the CPU 22,
In addition, it is used variously according to the processing of the CPU 22.
The D-RAM 24 is provided with a storage area (non-volatile area).
And application software are installed. Then, the application software installed in the D-RAM 24 is started in response to an operation from the user, and is executed by the CPU 22. Also, the application software has a user interface screen, and based on the state transition by the user's instruction,
-Drawing is performed in the frame buffer secured in the RAM 24. The drawn image data is sent to the display control unit 27 and displayed on the display unit 2.

【0017】また上述したようにメモリカード70に対
するメモリスロット7が形成され、メモリカード70を
装着できるが、CPU22は、メモリカードインターフ
ェース28を介して装着されたメモリカード70に対し
て書込又は読み出しアクセスすることができる。メモリ
カードインターフェース28とメモリカード70との間
のインターフェース動作については後述する。CPU2
2は、装着されたメモリカード70を、拡張的なメモリ
領域として利用することができる。また、もちろんメモ
リカード70にアプリケーションプログラムが記録され
ていれば、それをD−RAM24にインストールした
り、或いはアプリケーションやデータを直接D−RAM
24に展開して所要処理を実行させることができる。ま
た、或るアプリケーションに基づいてCPU22が、作
成した文書データ、画像データ、オーディオデータ、表
計算データなどを、メモリカード70に記録することも
できる。なお、メモリスロット7にメモリカード70が
装着されたことを検出することで、メモリカード70に
対する動作が記録再生動作可能になったり、或いはメモ
リカード70に記録されているアプリケーションやデー
タが自動的にD−RAM24に展開されるなどの、いわ
ゆるホットプラグイン動作も可能である。またメモリカ
ードインターフェース28は、メモリカード70に記録
するデータについての暗号化処理や、読み出したデータ
の暗号解読処理なども可能とされる。
As described above, the memory slot 7 for the memory card 70 is formed, and the memory card 70 can be inserted. However, the CPU 22 writes or reads the memory card 70 via the memory card interface 28. Can be accessed. The interface operation between the memory card interface 28 and the memory card 70 will be described later. CPU2
2 can use the inserted memory card 70 as an expanded memory area. If an application program is recorded on the memory card 70, the application program can be installed in the D-RAM 24, or the application or data can be directly stored in the D-RAM 24.
24 to execute required processing. In addition, the CPU 22 can record, on the memory card 70, document data, image data, audio data, spreadsheet data, and the like created by the CPU 22 based on a certain application. By detecting that the memory card 70 is inserted into the memory slot 7, the operation for the memory card 70 can be performed for recording and reproduction, or the application or data recorded on the memory card 70 is automatically A so-called hot plug-in operation such as being developed in the D-RAM 24 is also possible. The memory card interface 28 is also capable of performing encryption processing on data recorded on the memory card 70 and decryption processing of read data.

【0018】撮像部6は例えばCCD撮像素子及び撮像
回路系によりに形成される。撮像部6により取り込まれ
た撮像画像データは、撮像データインターフェース34
を介してD−RAM24に取り込むことができ、またC
PU22は所定のアプリケーションプログラムに基づく
動作により、撮像画像データの編集やメモリカード70
への記録等を実行できる。
The image pickup section 6 is formed by, for example, a CCD image pickup device and an image pickup circuit system. The captured image data captured by the imaging unit 6 is transmitted to the imaging data interface 34.
Can be taken into the D-RAM 24 via
The PU 22 edits captured image data and operates the memory card 70 by operating based on a predetermined application program.
Can be executed.

【0019】オーディオインターフェース29は、上述
したスピーカ4、マイクロホン5、ヘッドホン端子1
0、ライン出力端子12,ライン入力端子11から入出
力されるオーディオデータのインターフェース部位とな
る。例えばマイクロホン5或いはライン入力端子11か
ら入力されたアナログオーディオ信号は、入力オーディ
オ処理部32でそれぞれ所定の増幅処理やフィルタリン
グが行われ、A/D変換器33でデジタルオーディオデ
ータとされてオーディオインターフェース29に供給さ
れる。オーディオインターフェース29は、入力された
デジタルオーディオデータについて、CPU22の制御
に基づいて処理や出力を実行する。例えば所要の圧縮エ
ンコード処理を行った後、メモリカードインターフェー
ス28に供給し、メモリカード70に記録させることが
できる。またオーディオインターフェース29は、例え
ばメモリカード70から読み出されるなどして供給され
たデジタルオーディオデータについて所定のデコード処
理を行い、D/A変換器30に供給する。D/A変換器
30はデジタルオーディオデータをアナログオーディオ
信号に変換する。出力オーディオ処理部31は供給され
たアナログオーディオ信号について、出力先に応じた所
定の増幅処理、インピーダンス調整などを行い、スピー
カ4,ヘッドホン端子10、ライン出力端子12に出力
する。
The audio interface 29 includes the above-described speaker 4, microphone 5, and headphone terminal 1.
0, an interface part for audio data input / output from the line output terminal 12 and the line input terminal 11. For example, an analog audio signal input from the microphone 5 or the line input terminal 11 is subjected to predetermined amplification processing and filtering in the input audio processing unit 32, and is converted into digital audio data in the A / D converter 33, and is converted into an audio interface 29. Supplied to The audio interface 29 performs processing and output on the input digital audio data based on the control of the CPU 22. For example, after performing required compression encoding processing, the data can be supplied to the memory card interface 28 and recorded on the memory card 70. The audio interface 29 performs a predetermined decoding process on the digital audio data supplied by being read from the memory card 70, for example, and supplies the digital audio data to the D / A converter 30. The D / A converter 30 converts digital audio data into an analog audio signal. The output audio processing unit 31 performs predetermined amplification processing, impedance adjustment, and the like according to the output destination on the supplied analog audio signal, and outputs the analog audio signal to the speaker 4, the headphone terminal 10, and the line output terminal 12.

【0020】USBインターフェース25は、USBコ
ネクタ9に接続された外部機器との間の通信インターフ
ェースである。CPU22はUSBインターフェース2
5を介して外部のパーソナルコンピュータ或いは周辺機
器などとの間でデータ通信を行うことができる。例えば
この情報処理装置1で扱われる制御データ、コンピュー
タデータ、画像データ、オーディオデータなどの送受信
が実行される。同様にIEEE1394インターフェー
ス26は、IEEE1394端子8に接続された外部機
器との間の通信インターフェースである。CPU22は
IEEE1394インターフェース26を介して外部の
情報機器との間で各種データ通信を行うことができる。
The USB interface 25 is a communication interface with an external device connected to the USB connector 9. CPU 22 is USB interface 2
5, data communication can be performed with an external personal computer or a peripheral device. For example, transmission and reception of control data, computer data, image data, audio data, and the like handled by the information processing device 1 are executed. Similarly, the IEEE 1394 interface 26 is a communication interface with an external device connected to the IEEE 1394 terminal 8. The CPU 22 can perform various data communications with external information devices via the IEEE1394 interface 26.

【0021】なお、この図2に示す情報処理装置1の構
成はあくまでも一例であり、これに限定されるものでは
ない。即ち、一般にパーソナルコンピュータやPDA機
器で採用されている各種構成部位を追加したり、或いは
実際の製品として不要の部位を削除することは、設計上
の都合により決められるものである。
The configuration of the information processing apparatus 1 shown in FIG. 2 is merely an example, and the present invention is not limited to this. That is, addition of various constituent parts generally used in personal computers and PDA devices or deletion of unnecessary parts as actual products is determined by design convenience.

【0022】3.OS構造及びデータベース構造 続いて図3で、本例の情報処理装置1に搭載されるOS
構造について説明する。図3に示すように、OSは、基
本ソフトの中心部分としてのカーネルを含むマネージャ
層と、標準ライブラリ、及び制御ICなどのハードウエ
アのレイヤとなるHAL(Hardware Abstraction Laye
r)から構成される。アプリケーションソフトウエア
は、このようなOS構造による基本動作上で動作され
る。またHALに対しては、1又は複数のデバイスドラ
イバとして階層が付加され実際のハードウエア(HW)
が駆動される。
3. OS Structure and Database Structure Subsequently, in FIG. 3, the OS installed in the information processing apparatus 1 of the present example
The structure will be described. As shown in FIG. 3, the OS includes a manager layer including a kernel as a central part of the basic software, a hardware layer such as a standard library, and a hardware layer such as a control IC.
r). The application software operates on the basic operation based on the OS structure. For the HAL, a layer is added as one or a plurality of device drivers, and actual hardware (HW) is added.
Is driven.

【0023】ここで、特に本例の情報処理装置1の場合
は、メモリカード70をドライブ可能とし、かつ後述す
るがメモリカード70のデータはFATにより管理され
ることから、OSにFATライブラリが付加され、さら
に、メモリカードをハンドリングするためのライブラリ
(MSライブラリ)が付加される。そしてこのFATラ
イブラリ及びMSライブラリに基づいて、メモリドライ
ブがメモリカード70がドライブされる構造とされてい
る。
Here, in particular, in the case of the information processing apparatus 1 of the present embodiment, since the memory card 70 can be driven and the data of the memory card 70 is managed by the FAT as described later, the FAT library is added to the OS. Further, a library (MS library) for handling the memory card is added. The memory drive is configured to drive the memory card 70 based on the FAT library and the MS library.

【0024】このようなOS構造を持つ本例の情報処理
装置1では、さらに通常でいうところの「ファイル」に
相当する概念として、「データベース」という概念が導
入されている。ここでいう「データベース」とは、通常
いうところのデータベースのように単にデータを蓄積し
ていったものではなく、データベース自体がデータを管
理できる構造としてフォーマット化されている。この意
味で、「データベース」は「ファイル」に相当する。
In the information processing apparatus 1 of the present example having such an OS structure, a concept of "database" is further introduced as a concept equivalent to a "file" in a usual manner. The “database” here is not simply a storage of data as in a normal database, but is formatted as a structure that allows the database itself to manage data. In this sense, “database” corresponds to “file”.

【0025】図4にデータベース構造を示す。即ちデー
タベースには、ヘッダ(DTBヘッダ)としてデータベ
ースネーム(DTB Name)及びその他情報を含む
領域が形成され、さらにポインタテーブルが配される。
そしてデータ領域に記録される実際のデータは、ポイン
タテーブルに記録されたポイント情報により、位置的な
管理が行われる状態となっている。
FIG. 4 shows the database structure. That is, in the database, an area including a database name (DTB Name) and other information is formed as a header (DTB header), and a pointer table is arranged.
The actual data recorded in the data area is in a state where positional management is performed based on the point information recorded in the pointer table.

【0026】このような構造のデータベースとしては、
2種類のものが存在する。例えば一般に1つのアプリケ
ーションソフトウエアは複数のファイルで構成され、そ
の中には実行ファイル(***.exe)と、データフ
ァイル(***.data)があるが、その実行ファイ
ル(***.exe)に相当するものとして「リソース
データベース(***.prc)」があり、またデータ
ファイル(***.data)に相当するものとして
「データベースデータベース(***.dtb)」があ
る。
As a database having such a structure,
There are two types. For example, generally, one application software is composed of a plurality of files, among which are an execution file (***. Exe) and a data file (***. Data). .Exe), there is a "resource database (***. Prc)", and as a data file (***. Data), there is a "database database (***. Dtb)". .

【0027】本例の情報処理装置1では、このような
「データベース」という概念によりデータを扱う。従っ
て、メモリカード70において記録再生されるファイル
(FATで扱われるファイル)も、上記データベースの
形態となる。なお本明細書では、「ファイル」という言
葉を用いるが、これは一般的な概念にあわせて用いてい
るものであり、本実施の形態に関していえば、「ファイ
ル」とは上記構造のデータベースの意味となる。
The information processing apparatus 1 of the present embodiment handles data based on such a concept of "database". Therefore, files recorded and reproduced in the memory card 70 (files handled by FAT) also have the form of the database. In this specification, the term "file" is used according to a general concept, and in this embodiment, "file" means a database having the above structure. Becomes

【0028】4.メモリカード 4−1 外観 次にメモリカード70について説明していく。まず図5
にメモリカード70の外形形状を示す。メモリカード7
0は、例えば図5に示すような板状の筐体内部に例えば
所定容量ののメモリ素子を備える。本例としては、この
メモリ素子としてフラッシュメモリ(Flash Memory)が
用いられるものである。図5に平面図、正面図、側面
図、底面図として示す筐体は例えばプラスチックモール
ドにより形成され、サイズの具体例としては、図に示す
幅W11、W12、W13のそれぞれが、W11=60
mm、W12=20mm、W13=2.8mmとなる。
4. Memory Card 4-1 Appearance Next, the memory card 70 will be described. First, FIG.
Shows the outer shape of the memory card 70. Memory card 7
No. 0 includes, for example, a memory element having a predetermined capacity inside a plate-shaped casing as shown in FIG. 5, for example. In this example, a flash memory is used as the memory element. The casing shown as a plan view, a front view, a side view, and a bottom view in FIG. 5 is formed by, for example, a plastic mold.
mm, W12 = 20 mm, and W13 = 2.8 mm.

【0029】筐体の正面下部から底面側にかけて例えば
10個の電極を持つ端子部72が形成されており、この
端子部72から、内部のメモリ素子に対する読出又は書
込動作が行われる。筐体の平面方向の左上部は切欠部7
3とされる。この切欠部73は、このメモリカード70
を、例えばドライブ装置本体側の着脱機構へ装填する際
などに挿入方向を誤ることを防止するためのものとな
る。また筐体上面から底面側にかけて、ラベル貼付面7
4が形成され、ユーザーが記憶内容を書いたラベルを貼
付できるようにされている。さらに底面側には、記録内
容の誤消去を防止する目的のスライドスイッチ75が形
成されている。
A terminal portion 72 having, for example, ten electrodes is formed from the lower front side to the bottom side of the housing. From this terminal portion 72, a read or write operation to an internal memory element is performed. The upper left part in the plane direction of the housing is a cutout 7
It is set to 3. The notch 73 is provided in the memory card 70
For example, when inserting the disk drive into the mounting / dismounting mechanism of the drive device main body, the insertion direction is prevented from being erroneously inserted. Also, from the top surface to the bottom surface of the housing, the label attaching surface 7
4 is formed so that the user can attach a label with the stored contents. Further, a slide switch 75 for preventing erroneous erasure of recorded contents is formed on the bottom side.

【0030】このようなメモリカード70においては、
フラッシュメモリ容量としては、4MB(メガバイ
ト),8MB,16MB,32MB,64MB,128
MBの何れかであるものとして規定されている。またデ
ータ記録/再生のためのファイルシステムとして、いわ
ゆるFAT(File Allocation Table)システムが用い
られている。
In such a memory card 70,
As the flash memory capacity, 4 MB (megabyte), 8 MB, 16 MB, 32 MB, 64 MB, 128
It is defined as one of the MBs. A so-called FAT (File Allocation Table) system is used as a file system for recording / reproducing data.

【0031】書込速度は1500KByte/sec〜
330KByte/sec、読出速度は2.45MBy
te/secとされ、書込単位は512バイト、消去ブ
ロックサイズは8KB又は16KBとされる。また電源
電圧Vccは2.7〜3.6V、シリアルクロックSC
LKは最高20MHzとされる。
The writing speed is from 1500 KByte / sec.
330KByte / sec, read speed 2.45MBy
te / sec, the write unit is 512 bytes, and the erase block size is 8 KB or 16 KB. The power supply voltage Vcc is 2.7 to 3.6 V and the serial clock SC
LK is set to a maximum of 20 MHz.

【0032】4−2 メモリカードの端子及び内部構造 図6に端子部72の電極構造を示す。図5に示したよう
に端子部72は10個の平面電極が1列に並んだ構造と
されるが、図6に示すように各電極(端子T1〜T1
0)は次の通りとなる。
4-2 Terminals and Internal Structure of Memory Card FIG. 6 shows an electrode structure of the terminal 72. As shown in FIG. 5, the terminal portion 72 has a structure in which ten planar electrodes are arranged in one row. As shown in FIG. 6, each of the electrodes (terminals T1 to T1)
0) is as follows.

【0033】端子T1及びT10は検出電圧Vss端子
とされる。端子T2は、シリアルプロトコルバスステー
ト信号BSの入力端子とされる。端子T3及びT9は電
源電圧Vcc端子とされる。端子T4はデータ端子、つ
まりシリアルプロトコルデータ信号の入出力端子とされ
る。端子T5及びT7はリザーブ(予備)とされる。端
子T6は検出端子とされ、ドライブ装置側(情報処理装
置1のメモリカードインターフェース)がメモリカード
の装着検出に用いる。端子T8は、シリアルクロックS
CLKの入力端子とされる。
The terminals T1 and T10 are used as detection voltage Vss terminals. The terminal T2 is an input terminal for the serial protocol bus state signal BS. Terminals T3 and T9 are power supply voltage Vcc terminals. The terminal T4 is a data terminal, that is, an input / output terminal for a serial protocol data signal. Terminals T5 and T7 are reserved. The terminal T6 is a detection terminal, and is used by the drive device (memory card interface of the information processing device 1) to detect the attachment of the memory card. The terminal T8 is connected to the serial clock S
CLK input terminal.

【0034】また図6にはメモリカード70の内部構成
も示している。メモリカード70の内部は、コントロー
ルIC80とフラッシュメモリ81が設けられている。
コントロールIC80はフラッシュメモリ81に対する
書込/読出動作を実行する部位となる。図からわかるよ
うに、コントロールIC80に対しては、端子T2から
のシリアルプロトコルバスステート信号BS、端子T8
からのシリアルクロックSCLKが供給される。書込動
作時には、コントロールIC80は、これらのシリアル
プロトコルバスステート信号BS、シリアルクロックS
CLKに従って、端子T4から供給されるデータのフラ
ッシュメモリ81への書込を行う。また読出時には、シ
リアルプロトコルバスステート信号BS、シリアルクロ
ックSCLKに従って、フラッシュメモリ81からデー
タを読み出し、端子T4からドライブ装置側に出力す
る。
FIG. 6 also shows the internal configuration of the memory card 70. Inside the memory card 70, a control IC 80 and a flash memory 81 are provided.
The control IC 80 is a part for executing a write / read operation on the flash memory 81. As can be seen from the figure, the control IC 80 receives the serial protocol bus state signal BS from the terminal T2 and the terminal T8.
From the serial clock SCLK. During a write operation, the control IC 80 controls the serial protocol bus state signal BS and the serial clock S
In accordance with CLK, data supplied from terminal T4 is written to flash memory 81. At the time of reading, data is read from the flash memory 81 according to the serial protocol bus state signal BS and the serial clock SCLK, and is output from the terminal T4 to the drive device side.

【0035】また検出電圧Vssは、検出端子T6に供
給されており、ドライブ装置側では、図示するように抵
抗Rによって検出端子T6の端子電圧を検出すること
で、このメモリカード70が装着部(メモリスロット
7)に接続されているか否かを検出できるようにされ
る。
The detection voltage Vss is supplied to the detection terminal T6. On the drive device side, the terminal voltage of the detection terminal T6 is detected by a resistor R as shown in FIG. It can be detected whether or not it is connected to the memory slot 7).

【0036】4−3 ファイルシステム処理階層 続いて、メモリカード70を記録媒体とするシステムに
おけるフォーマットについて説明していく。図7は、メ
モリカード70を記録媒体とするシステムのファイルシ
ステム処理階層を示すものである。この図に示すよう
に、ファイルシステム処理階層としては、アプリケーシ
ョン処理層の下に、順次、ファイル管理処理層、論理ア
ドレス層、物理アドレス層、フラッシュメモリアクセス
がおかれる。この階層では、ファイル管理処理層がいわ
ゆるFAT(File Allocation Table)となる。また、
この図から分かるように、本例のファイルシステムでは
論理アドレス及び物理アドレスという概念が導入されて
いるが、これについては後述する。
4-3 File System Processing Hierarchy Next, a format in a system using the memory card 70 as a recording medium will be described. FIG. 7 shows a file system processing hierarchy of a system using the memory card 70 as a recording medium. As shown in this figure, as a file system processing layer, a file management processing layer, a logical address layer, a physical address layer, and a flash memory access are sequentially arranged below the application processing layer. In this hierarchy, the file management processing layer is a so-called FAT (File Allocation Table). Also,
As can be seen from the figure, the concept of a logical address and a physical address is introduced in the file system of this example, which will be described later.

【0037】4−4 物理的データ構造 図8には、メモリカード70内の記憶素子である、フラ
ッシュメモリ81の物理的データ構造が示されている。
フラッシュメモリ81としての記憶領域は、セグメント
という固定長のデータ単位が大元となる。このセグメン
トは、1セグメントあたり4MB(メガバイト)或いは
8MBとして規定されるサイズであり、1つのフラッシ
ュメモリ81内におけるセグメント数は、そのフラッシ
ュメモリ81の容量に依存して異なってくる。
4-4 Physical Data Structure FIG. 8 shows a physical data structure of the flash memory 81 which is a storage element in the memory card 70.
The storage area of the flash memory 81 is based on fixed-length data units called segments. This segment has a size defined as 4 MB (megabyte) or 8 MB per segment, and the number of segments in one flash memory 81 varies depending on the capacity of the flash memory 81.

【0038】そして、この1セグメントを図8(a)に
示すように、ブロックという固定長のデータ単位として
8KB(キロバイト)又は16KBにより区切るように
される。原則として、1セグメントは512ブロックに
区切られることから、図8(a)に示すブロックnにつ
いては、n=511とされることになる。但し、フラッ
シュメモリ81では、書き込み不可な損傷エリアである
ディフェクトエリアとしてのブロック数が所定数の範囲
で許可されているため、データ書き込みが有効とされる
実質的なブロック数を対象とすれば、上記nは511よ
りも少なくなる。
Then, as shown in FIG. 8A, this one segment is divided into 8 KB (kilobytes) or 16 KB as a fixed-length data unit called a block. In principle, one segment is divided into 512 blocks, so that n = 511 for the block n shown in FIG. 8A. However, in the flash memory 81, the number of blocks as a defect area, which is a damaged area that is not writable, is permitted within a predetermined number range. The above n is smaller than 511.

【0039】図8(a)に示すようにして形成されるブ
ロック0〜nのうち、先頭の2つのブロック0,1はブ
ートブロックといわれる。但し、実際には有効なブロッ
クの先頭から2つのブロックがブートブロックとして規
定されることになっており、必ずしもブートブロックが
ブロック0,1である保証はない。そして、残りのブロ
ックが、ユーザデータが格納されるユーザブロックとな
る。
Of the blocks 0 to n formed as shown in FIG. 8A, the first two blocks 0 and 1 are called boot blocks. However, actually, the first two blocks of the effective block are defined as boot blocks, and there is no guarantee that the boot blocks are blocks 0 and 1. Then, the remaining blocks are user blocks in which user data is stored.

【0040】1ブロックは、図8(d)に示すようにし
て、ページ0〜mにより分割される。1ページの容量
は、図8(e)に示すように、512バイトのデータエ
リアと16バイトの冗長部よりなる、528(=512
+16)バイトの固定長とされる。なお、冗長部の構造
については図8(f)により後述する。また、1ブロッ
ク内のページ数としては、1ブロックの容量が8KBの
場合には16ページ、16KBの場合には32ページと
なる。
One block is divided into pages 0 to m as shown in FIG. As shown in FIG. 8E, the capacity of one page is 528 (= 512), which is composed of a data area of 512 bytes and a redundant portion of 16 bytes.
+16) fixed length of bytes. The structure of the redundant section will be described later with reference to FIG. The number of pages in one block is 16 pages when the capacity of one block is 8 KB, and 32 pages when the capacity of one block is 16 KB.

【0041】このような、図8(d)(e)に示される
ブロック内のページ構造は、上記ブートブロックとユー
ザブロックとで共通である。また、フラッシュメモリ8
1では、データの読み出し、及び書き込みはページ単位
で行われ、データの消去はブロック単位で行われるもの
とされる。そして、データの書き込みは、消去済みのペ
ージに対してしか行われないものとされている。従っ
て、実際のデータの書き換えや書き込みは、ブロック単
位を対象として行われることになる。
The page structure in the blocks shown in FIGS. 8D and 8E is common to the boot block and the user block. Also, the flash memory 8
In 1, the data reading and writing are performed in page units, and the data erasing is performed in block units. The data writing is performed only on the erased page. Therefore, actual rewriting or writing of data is performed for each block.

【0042】先頭のブートブロックは、図8(b)に示
すように、ページ0に対してヘッダーが格納され、ペー
ジ1には初期不良データの位置(アドレス)を示す情報
が格納される。また、ページ2にはCIS/IDSとい
われる情報が格納される。2つめのブートブロックは図
8(c)に示すように、ブートブロックとしてのバック
アップのための領域とされている。
In the first boot block, as shown in FIG. 8B, a header is stored for page 0, and page 1 stores information indicating the position (address) of the initial failure data. Further, page 2 stores information called CIS / IDS. As shown in FIG. 8C, the second boot block is an area for backup as a boot block.

【0043】図8(e)に示された冗長部(16バイ
ト)は、図8(f)に示す構造を有する。この冗長部
は、図のように先頭の第0バイト〜第2バイトの3バイ
トが、データエリアのデータ内容の更新に応じて書き換
えが可能なオーバーライトエリアとされる。このオーバ
ーライトエリアのうち、第0バイトにはブロックステー
タスが格納され、第1バイトにはデータステータスが格
納される(Block Flag Data)。また、第2バイトの上位
の所定ビットを利用して変換テーブルフラグ(Page Data
Status1)が格納される。
The redundant part (16 bytes) shown in FIG. 8E has the structure shown in FIG. In the redundant portion, as shown in the figure, the first three bytes from the 0th byte to the 2nd byte are an overwrite area which can be rewritten according to the update of the data content of the data area. In the overwrite area, the 0th byte stores the block status, and the 1st byte stores the data status (Block Flag Data). Also, a conversion table flag (Page Data
Status1) is stored.

【0044】原則として第3バイト〜第15バイトは、
その内容が現ページのデータ内容に応じて固定とされ、
書き換えが不可とされる情報が格納される領域となる。
第3バイトにはアクセス許可やコピー禁止指定等を示す
管理フラグ(Block Info)が格納される。第4,第5バイ
トから成る2バイトの領域には、後述する論理アドレス
(LogicAddress)が格納される。第6〜第10バイトの5
バイトの領域は、フォーマットリザーブの領域とされ、
続く第11,第12バイトの2バイトが、上記フォーマ
ットリザーブに対して誤り訂正を施すための分散情報E
CCを格納する領域とされる。残る第13〜第15バイ
トには、図8(e)に示すデータエリアのデータに対し
て誤り訂正を行うためのデータECCが格納される。
In principle, the third to fifteenth bytes are
The content is fixed according to the data content of the current page,
This is an area where information that cannot be rewritten is stored.
The third byte stores a management flag (Block Info) indicating access permission, copy prohibition designation, and the like. A 2-byte area consisting of the fourth and fifth bytes contains a logical address described later.
(LogicAddress) is stored. 6th to 10th byte 5
The byte area is used as the format reserve area.
The subsequent two bytes of the eleventh and twelfth bytes are shared information E for performing error correction on the format reserve.
This is an area for storing the CC. In the remaining thirteenth to fifteenth bytes, data ECC for performing error correction on data in the data area shown in FIG. 8E is stored.

【0045】上記図8(f)に示した冗長部の第3バイ
トに格納される管理フラグは、図9に示すようにして、
ビット7〜ビット0の各ビットに、その内容が定義され
ている。ビット7,6、及びビット1,0はリザーブ
(未定義)領域とされている。ビット5は現ブロックに
対してのアクセス許可の「有効」(‘1’;Free)/
「無効」(‘0’;Read Protected)を示すフラグが格
納される。ビット4には現ブロックについてのコピー禁
止指定(‘1’;OK /‘0’;NG)についてのフ
ラグが格納される。
The management flag stored in the third byte of the redundant part shown in FIG.
The content of each bit from bit 7 to bit 0 is defined. Bits 7 and 6 and bits 1 and 0 are reserved (undefined) areas. Bit 5 is "valid"('1'; Free) of access permission for the current block /
A flag indicating "invalid"('0'; Read Protected) is stored. Bit 4 stores a flag for the copy prohibition designation ('1'; OK / '0'; NG) for the current block.

【0046】ビット3は変換テーブルフラグとされる。
この変換テーブルフラグは、現ブロックが後述する論理
−物理アドレス変換テーブルであるのか否かを示す識別
子であり、このビット3の値が‘0’とされていれば、
現ブロックは論理−物理アドレス変換テーブルであるこ
とが識別され、‘0’であれば無効となる。つまり、現
ブロックは論理−物理アドレス変換テーブルではないこ
とが識別される。
Bit 3 is used as a conversion table flag.
This conversion table flag is an identifier indicating whether or not the current block is a logical-physical address conversion table described later. If the value of bit 3 is set to '0',
The current block is identified as a logical-physical address conversion table, and if it is '0', it is invalid. That is, it is identified that the current block is not a logical-physical address conversion table.

【0047】ビット2はシステムフラグが格納され、
‘1’であれば現ブロックがユーザブロックであること
が示され、‘0’であればブートブロックであることが
示される。
Bit 2 stores a system flag.
If "1", it indicates that the current block is a user block, and if "0", it indicates that it is a boot block.

【0048】ここで、セグメント及びブロックと、フラ
ッシュメモリ容量との関係を図13(左3列を参照)に
より説明しておく。メモリカード70のフラッシュメモ
リ容量としては、4MB,8MB,16MB,32M
B,64MB,128MBの何れかであるものとして規
定されている。そして、最も容量の小さい4MBの場合
であると、1ブロックは8KBと規定された上で、その
ブロック数としては512個とされる。つまり、4MB
はちょうど1セグメントの容量を有するものとされる。
そして、4MBの容量であれば、同様に1ブロック=8
KBの容量が規定された上で、2セグメント=1024
ブロックとなる。なお、前述したように、1ブロック=
8KBであれば、1ブロック内のページ数は16ページ
となる。但し16MBの容量では、1ブロックあたりの
容量として8KBと16KBの両者が存在することが許
可されている。このため、2048ブロック=4セグメ
ント(1ブロック=8KB)のものと、1024ブロッ
ク=2セグメント(1ブロック=16KB)のものとの
2種類が在ることになる。1ブロック=16KBの場合
には、1ブロック内のページ数は32ページとなる。
Here, the relationship between the segments and blocks and the flash memory capacity will be described with reference to FIG. 13 (see the left three columns). The flash memory capacity of the memory card 70 is 4 MB, 8 MB, 16 MB, 32 M
B, 64 MB, or 128 MB. In the case of 4 MB having the smallest capacity, one block is defined as 8 KB, and the number of blocks is 512. That is, 4MB
Has exactly one segment capacity.
Then, if the capacity is 4 MB, 1 block = 8 similarly
After KB capacity is defined, 2 segments = 1024
It becomes a block. As described above, 1 block =
If it is 8 KB, the number of pages in one block is 16 pages. However, with a capacity of 16 MB, it is permitted that both 8 KB and 16 KB exist as a capacity per block. For this reason, there are two types, that is, 2048 blocks = 4 segments (1 block = 8 KB) and 1024 blocks = 2 segments (1 block = 16 KB). When one block is 16 KB, the number of pages in one block is 32 pages.

【0049】また、32MB,64MB,128MBの
容量では、1ブロックあたりの容量は16KBのみであ
るとして規定される。従って、32MBでは2048ブ
ロック=4セグメントとなり、64MBでは4096ブ
ロック=8セグメントとなり、128MBでは8192
ブロック=16セグメントとなる。
In the case of capacities of 32 MB, 64 MB and 128 MB, the capacity per block is defined as being only 16 KB. Therefore, 2048 blocks = 4 segments for 32 MB, 4096 blocks = 8 segments for 64 MB, and 8192 for 128 MB.
Block = 16 segments.

【0050】4−5 物理アドレス及び論理アドレスの
概念 次に、上述したようなフラッシュメモリの物理的データ
構造を踏まえたうえで、図10に示すデータ書き換え動
作に従って、本例のファイルシステムにおける物理アド
レスと論理アドレスの概念について説明する。
4-5 Concept of Physical Address and Logical Address Next, based on the physical data structure of the flash memory as described above, the physical address in the file system of this embodiment is changed according to the data rewriting operation shown in FIG. And the concept of a logical address will be described.

【0051】図10(a)には、或るセグメント内から
4つのブロックを抜き出して、これを模式的に示してい
る。各ブロックに対しては物理アドレスが付される。こ
の物理アドレスはメモリにおけるブロックの物理的な配
列順に従って決まるもので、或るブロックとこれに対応
付けされた物理アドレスとの関係は不変となる。ここで
は、図10(a)に示す4ブロックに対して、上から順
に物理アドレスの値として、105,106,107,
108が付されている。なお、実際の物理アドレスは2
バイトにより表現される。
FIG. 10A schematically shows four blocks extracted from a certain segment. A physical address is assigned to each block. The physical address is determined according to the physical arrangement order of the blocks in the memory, and the relationship between a certain block and the physical address associated with the block remains unchanged. Here, for the four blocks shown in FIG. 10A, values of 105, 106, 107,
108 is attached. The actual physical address is 2
Expressed in bytes.

【0052】ここで、図10(a)に示すように、物理
アドレス105,106で示されるブロックがデータの
記憶されている使用ブロックで、物理アドレス107,
108で示されるブロックがデータが消去(即ち、未記
録領域)された未使用ブロックとなっている状態である
とする。
Here, as shown in FIG. 10A, blocks indicated by physical addresses 105 and 106 are used blocks in which data is stored, and physical addresses 107 and 106 are used.
Assume that the block indicated by 108 is an unused block in which data has been erased (that is, an unrecorded area).

【0053】そして、論理アドレスであるが、この論理
アドレスは、ブロックに対して書き込まれたデータに付
随するようにして割り振られるアドレスとされる。そし
て、この論理アドレスが、後述するFATファイルシス
テムが利用するアドレスとされている。図10(a)で
は、4つの各ブロックに対して、上から順に論理アドレ
スの値として、102,103,104,105が付さ
れている状態が示されている。なお、論理アドレスも実
際には2バイトにより表現されるものである。
The logical address is an address that is allocated so as to accompany the data written to the block. This logical address is an address used by a FAT file system described later. FIG. 10A shows a state in which 102, 103, 104, and 105 are assigned as logical address values in order from the top to four blocks. Incidentally, the logical address is actually represented by 2 bytes.

【0054】ここで、上記図10(a)に示す状態か
ら、例えば物理アドレス105に格納されているデータ
の更新として、内容の書き換え又は一部消去を行うとす
る。このような場合、フラッシュメモリのファイルシス
テムでは、同じブロックに対して更新したデータを再度
書き込むことはせずに、未使用のブロックに対してその
更新したデータを書き込むようにされる。つまり、例え
ば図10(b)に示すようにして、物理アドレス105
のデータは消去したうえで、更新されたデータはこれま
で未使用ブロックであった物理アドレス107で示され
るブロックに書き込むようにされる(処理)。
Here, it is assumed that, from the state shown in FIG. 10A, rewriting or partial erasing is performed, for example, as updating data stored in the physical address 105. In such a case, in the file system of the flash memory, the updated data is not written again to the same block, but the updated data is written to an unused block. That is, for example, as shown in FIG.
Is erased, and the updated data is written to the block indicated by the physical address 107, which has been an unused block (processing).

【0055】そして、処理として示すように、データ
更新前(図10(a))の状態では物理アドレス105
に対応していた論理アドレス102が、更新されたデー
タが書き込まれたブロックの物理アドレス107に対応
するように、論理アドレスについての変更を行うもので
ある。これに伴って、データ更新前は物理アドレス10
7に対応していた論理アドレス104については、物理
アドレス105に対応するように変更されている。
Then, as shown in the processing, before the data update (FIG. 10A), the physical address 105
Is changed so that the logical address 102 corresponding to the logical address 102 corresponds to the physical address 107 of the block in which the updated data has been written. Accordingly, before the data update, the physical address 10
The logical address 104 corresponding to 7 has been changed to correspond to the physical address 105.

【0056】つまり、物理アドレスはブロックに対して
固有に付されるアドレスであり、論理アドレスは、一旦
ブロックに対して書き込まれたデータに付随するように
してついて回る、ブロック単位の書き込みデータに固有
となるアドレスであるとみることができる。
In other words, the physical address is an address uniquely assigned to a block, and the logical address is unique to write data in block units, which follows data once written to the block. Address.

【0057】このようなブロックのスワップ処理が行わ
れることで、或る同一の記憶領域(ブロック)に対して
繰り返し集中的にアクセスされることが無くなり、書き
換え回数の上限があるフラッシュメモリの寿命を延ばす
ことが可能となる。そして、この際に論理アドレスを上
記処理のようにして扱うことで、ブロックのスワップ
処理によって更新前と更新後のデータとで書き込まれる
ブロックの移動があるようにされても、FATからは同
一のアドレスが見えることになり、以降のアクセスを適
正に実行することができるものである。なお、後述する
論理−物理アドレス変換テーブル上での更新のための管
理を簡略にすることなどを目的として、ブロックのスワ
ップ処理は、1セグメント内で完結するものとして規定
されている。逆に言えば、ブロックのスワップ処理はセ
グメント間で跨るようにしては行われない。
By performing such block swap processing, a certain same storage area (block) is not repeatedly and intensively accessed, and the life of a flash memory having an upper limit of the number of rewrites can be reduced. It can be extended. At this time, by treating the logical address as in the above processing, even if the block written in the data before and after the update is moved by the block swap processing, the same address is obtained from the FAT. The address becomes visible, and subsequent access can be executed properly. Note that, for the purpose of simplifying management for updating on a logical-physical address conversion table, which will be described later, the swap processing of blocks is defined as being completed within one segment. Conversely, block swap processing is not performed across segments.

【0058】4−6 論理−物理アドレス変換テーブル 上記図10による説明から分かるように、ブロックのス
ワップ処理が行われることで、物理アドレスと論理アド
レスの対応は変化する。従って、フラッシュメモリに対
するデータの書き込み及び読み出しのためのアクセスを
実現するには、物理アドレスと論理アドレスとの対応が
示される論理−物理アドレス変換テーブルが必要とな
る。つまり、論理−物理アドレス変換テーブルをFAT
が参照することで、FATが指定した論理アドレスに対
応する物理アドレスが特定され、この特定された物理ア
ドレスにより示されるブロックにアクセスすることが可
能になるものである。逆に言えば、論理−物理アドレス
変換テーブルが無ければ、FATによるフラッシュメモ
リへのアクセスが不可能となる。
4-6 Logical-physical address conversion table As can be understood from the description with reference to FIG. 10, the correspondence between the physical address and the logical address changes by performing the block swap processing. Therefore, in order to realize access for writing and reading data to and from the flash memory, a logical-physical address conversion table indicating the correspondence between physical addresses and logical addresses is required. That is, the logical-physical address conversion table is
, A physical address corresponding to the logical address specified by the FAT is specified, and a block indicated by the specified physical address can be accessed. Conversely, if there is no logical-physical address conversion table, it is impossible to access the flash memory by the FAT.

【0059】従来では、例えばセット本体に対してメモ
リカード70が装着されたときに、セット本体側のマイ
クロプロセッサがメモリカード70の記憶内容をチェッ
クすることで、セット本体側で論理−物理アドレス変換
テーブルの構築を行い、更にこの構築された論理−物理
アドレス変換テーブルをセット本体側のRAMに格納す
るようにしていた。つまり、メモリカード70内には、
論理−物理アドレス変換テーブルの情報は格納されては
いなかった。これに対して本例では、以降説明するよう
にメモリカード70に対して、論理−物理アドレス変換
テーブルを格納するように構成している。
Conventionally, for example, when the memory card 70 is inserted into the set main body, the microprocessor of the set main body checks the storage contents of the memory card 70, so that the set main body performs logical-physical address conversion. A table is constructed, and the constructed logical-physical address conversion table is stored in the RAM of the set body. That is, in the memory card 70,
The information of the logical-physical address conversion table was not stored. On the other hand, in the present example, the logical-physical address conversion table is stored in the memory card 70 as described below.

【0060】図11は、本例のメモリカード70に対し
て格納される論理−物理アドレス変換テーブルの構築形
態を概念的に示すものである。つまり、本例では、例え
ば論理アドレスの昇順に従って、これに対応する2バイ
トの物理アドレスを格納するようにしたテーブル情報を
論理−物理アドレス変換テーブルとして構築するように
される。なお、前述したように、物理アドレス、及び論
理アドレスは共に2バイトで表現される。これは、12
8MBの最大容量のフラッシュメモリの場合には819
2個のブロックが存在するため、最大で、この8192
個のブロック数をカバーできるだけのビット数が必要と
されることに基づく。このため、図11において例示し
ている物理アドレスと論理アドレスとについても、実際
に即して2バイトで表現している。但し、ここでは、こ
の2バイトを16進数により表記している。つまり、
「0x」によりその後続く値が16進法表記であること
が示される。なお、この「0x」により16進数である
ことを表す表記は、以降の説明において16進数を表記
する場合にも同様に用いることとする。(但し、表記の
煩雑化を防ぐため「0x」を省略している図面もあ
る。)
FIG. 11 conceptually shows a construction form of the logical-physical address conversion table stored in the memory card 70 of the present embodiment. That is, in the present example, for example, according to the ascending order of the logical addresses, table information for storing the corresponding 2-byte physical address is constructed as a logical-physical address conversion table. As described above, both the physical address and the logical address are represented by 2 bytes. This is 12
819 for flash memory with a maximum capacity of 8 MB
Since there are two blocks, at most this 8192
This is based on the requirement that the number of bits be large enough to cover the number of blocks. For this reason, the physical address and the logical address illustrated in FIG. 11 are also expressed in two bytes according to the actual situation. However, here, these two bytes are represented by hexadecimal numbers. That is,
“0x” indicates that the value that follows is in hexadecimal notation. It should be noted that the notation that represents a hexadecimal number by using “0x” is also used in the following description when a hexadecimal number is described. (However, in some drawings, "0x" is omitted in order to prevent the notation from being complicated.)

【0061】図12に、上記図11に示した概念に基づ
く論理−物理アドレス変換テーブルの構造例を示す。論
理−物理アドレス変換テーブルは、フラッシュメモリの
最後のセグメント内の或るブロックに対して、図12に
示すようにして格納される。先ず図12(a)に示すよ
うに、ブロックを分割するページのうち、ページ0,1
からなる2ページの領域がセグメント0用の論理−物理
アドレス変換テーブルとして割り当てられる。例えば、
図13にて説明したように、フラッシュメモリが4MB
の容量であれば1セグメントしか有さないために、この
ページ0,1のみの領域が論理−物理アドレス変換テー
ブルの領域となる。また、例えばフラッシュメモリが8
MBの容量であれば2セグメントを有するため、セグメ
ント0用の論理−物理アドレス変換テーブルとして割り
当てられるページ0,1に加え、これに続くページ2,
3の2ページがセグメント1用の論理−物理アドレス変
換テーブルとして割り当てられることになる。
FIG. 12 shows an example of the structure of a logical-physical address conversion table based on the concept shown in FIG. The logical-physical address conversion table is stored for a certain block in the last segment of the flash memory as shown in FIG. First, as shown in FIG. 12A, of the pages into which the block is divided, pages 0, 1
Are allocated as a logical-physical address conversion table for segment 0. For example,
As described with reference to FIG.
If the capacity is only one segment, the area of only pages 0 and 1 becomes the area of the logical-physical address conversion table. Also, for example, if the flash memory is 8
Since the capacity of the MB has two segments, in addition to pages 0 and 1 assigned as a logical-physical address conversion table for segment 0, pages 2 and
3 pages are allocated as the logical-physical address conversion table for the segment 1.

【0062】以降、フラッシュメモリの容量の増加に応
じて、続く2ページごとにセグメントごとの論理−物理
アドレス変換テーブルの割り当て領域が設定されていく
ことになる。そして、最大の128MBの容量を有する
場合であれば16セグメントが存在するため、最大で
は、セグメント15用までのページが論理−物理アドレ
ス変換テーブルの領域として割り当てられることにな
る。従って、最大の128MBの容量のフラッシュメモ
リでは、30ページが使用されることになり、図12
(a)に示すページNとしては、最大でN=29とな
る。これまでの説明から分かるように、論理−物理アド
レス変換テーブルは、セグメントごとに管理されるもの
である。
Thereafter, in accordance with the increase in the capacity of the flash memory, the allocation area of the logical-physical address conversion table for each segment is set for each of the following two pages. Then, in the case of the maximum capacity of 128 MB, there are 16 segments, so the pages up to the segment 15 are allocated as the area of the logical-physical address conversion table at the maximum. Therefore, in a flash memory having a maximum capacity of 128 MB, 30 pages are used.
As the page N shown in (a), N = 29 at the maximum. As can be seen from the above description, the logical-physical address conversion table is managed for each segment.

【0063】図12(b)は、1セグメントあたりの論
理−物理アドレス変換テーブルの構造を示すものとし
て、2ページ分のデータエリアを抜き出して示してい
る。つまり、1ページのデータエリアは512バイト
(図8(e)参照)であることから、図12(b)に
は、1024(=512×2)バイトが展開されている
状態が示されている。
FIG. 12B shows the structure of a logical-to-physical address conversion table for one segment, in which a data area for two pages is extracted and shown. That is, since the data area of one page is 512 bytes (see FIG. 8E), FIG. 12B shows a state where 1024 (= 512 × 2) bytes are developed. .

【0064】図12(b)に示すように、この2ページ
分のデータエリアである1024バイトについて2バイ
トごとに区切り、この2バイトごとの領域を、先頭から
順次、論理アドレス0用、論理アドレス1用・・・・、
のようにして割付を行い、最後は先頭から991バイト
目と992バイト目の2バイトの領域を論理アドレス4
95用の領域として割り付けるように規定を行う。これ
ら2バイトごとの領域に対して、各論理アドレスが対応
する物理アドレスを書き込むようにする。従って、本例
の論理−物理アドレス変換テーブルでは、実際のデータ
更新によるブロックのスワップ処理などにより物理アド
レスと論理アドレスの対応が変更された場合には、論理
アドレスを基準として、物理アドレスの格納状態が更新
されるようにしてテーブル情報の書き換えが行われるこ
とになる。
As shown in FIG. 12B, the data area for 1024 bytes, which is a data area for two pages, is divided into two bytes, and the area for each two bytes is sequentially allocated from the top to the logical address 0 and the logical address. For one ...
Finally, the 2-byte area of the 991th and 992th bytes from the beginning is assigned to the logical address 4
It is stipulated that the area should be allocated as an area for 95. A physical address corresponding to each logical address is written in these two-byte areas. Therefore, in the logical-physical address conversion table of this example, when the correspondence between the physical address and the logical address is changed by the swap processing of the block by the actual data update or the like, the storage state of the physical address is based on the logical address. Is updated, and the table information is rewritten.

【0065】また、残る993バイト目から最後の10
24バイト目までの計32バイトの領域は、余剰ブロッ
クの物理アドレスが格納される領域として割り当てられ
る。つまり、16個の余剰ブロックの物理アドレスを管
理することができる。ここでいう余剰ブロックとは、例
えばブロック単位でデータの更新を行う際に書き換え対
象となるデータを一時待避させる領域として設定された
いわゆるワークブロックなどを言うものである。
Also, from the remaining 993 bytes to the last 10 bytes,
An area of a total of 32 bytes up to the 24th byte is allocated as an area for storing a physical address of a surplus block. That is, the physical addresses of the 16 surplus blocks can be managed. The surplus block referred to here is, for example, a so-called work block set as an area for temporarily saving data to be rewritten when updating data in block units.

【0066】ところで、1セグメントは512ブロック
に分割されているものであると先に説明したのにも関わ
らず、図12に示したテーブル構造では、管理可能なブ
ロック数が論理アドレス0用〜論理アドレス495用の
496ブロックとしている。これは、実際上、上記した
余剰アドレスが設定されることと、前述したように、フ
ラッシュメモリでは、或ブロック数のディフェクト(使
用不可領域)が許可されている。そのため現実には、相
当数のディフェクトブロックが存在することに依る。従
って、実際には、書き込み/消去が有効なブロックを管
理するのに、496ブロックを管理できるように構成し
ておけば充分とされるものである。
In the table structure shown in FIG. 12, the number of blocks that can be managed is from logical address 0 to logical address 0, although one segment is divided into 512 blocks. There are 496 blocks for the address 495. This is because, in practice, the above-mentioned surplus address is set, and as described above, a defect (unusable area) of a certain number of blocks is permitted in the flash memory. Therefore, in reality, it depends on the existence of a considerable number of defect blocks. Accordingly, in practice, it is sufficient to manage 496 blocks in order to manage blocks for which writing / erasing is effective.

【0067】そして、このようにして論理−物理アドレ
ス変換テーブルが格納されるブロックについては、これ
を形成する各ページの冗長部における管理フラグ(図9
参照)のデータ内容として、この管理フラグのビット3
に対して‘0’がセットされることになる。これによ
り、当該ブロックが論理−物理アドレス変換テーブルが
格納されているブロックであることが示されることにな
る。
For the block in which the logical-physical address conversion table is stored in this manner, the management flag (FIG. 9) in the redundant portion of each page forming the block is used.
Bit) of the management flag
Is set to '0'. This indicates that the block is a block in which the logical-physical address conversion table is stored.

【0068】論理−物理アドレス変換テーブルが格納さ
れるブロックも、論理−物理アドレス変換テーブルの内
容の書き換えがあった場合には、例外なく、先に図10
にて説明したスワップ処理が行われる。従って、論理−
物理アドレス変換テーブルが記録されているブロックは
不定であり、或る特定のブロックに論理−物理アドレス
変換テーブルを格納するように規定することは出来な
い。そこで、FATは、フラッシュメモリにアクセスし
て上記した管理フラグのビット3が‘0’とされている
ブロックを検索することで、論理−物理アドレス変換テ
ーブルが格納されているブロックを識別するようにされ
る。但し、論理−物理アドレス変換テーブルが格納され
ているブロックの検索がFATによって容易に行われる
ようにすることを考慮して、論理−物理アドレス変換テ
ーブルが格納されているブロックは、そのフラッシュメ
モリ内における最後のナンバが付されたセグメントに在
るように、本例では規定するものとされる。これによ
り、FATは最後のナンバが付されたセグメントのブロ
ックのサーチだけで、論理−物理アドレス変換テーブル
を検索することができる。つまり、論理−物理アドレス
変換テーブルを検索するのに、フラッシュメモリの全て
のセグメントを検索する必要は無いようにされる。上記
図12に示した論理−物理アドレス変換テーブルは、例
えばメモリカード70の製造時において格納するように
される。
In the block storing the logical-physical address conversion table, if the contents of the logical-physical address conversion table are rewritten, the block shown in FIG.
The swap processing described in (1) is performed. Therefore, logic-
The block in which the physical address conversion table is recorded is undefined, and it cannot be defined that the logical-physical address conversion table is stored in a specific block. Therefore, the FAT accesses the flash memory and searches for a block in which bit 3 of the management flag is set to “0” so as to identify the block in which the logical-physical address conversion table is stored. Is done. However, considering that the FAT can easily search for the block storing the logical-physical address conversion table, the block storing the logical-physical address conversion table is stored in the flash memory. In the present example, it is specified that the last numbered segment is in the segment with the number. As a result, the FAT can search the logical-physical address conversion table only by searching for the block of the segment to which the last number is assigned. That is, it is not necessary to search all the segments of the flash memory to search the logical-physical address conversion table. The logical-physical address conversion table shown in FIG. 12 is stored when the memory card 70 is manufactured, for example.

【0069】ここで、再度図13を参照して、フラッシ
ュメモリ容量と論理−物理アドレス変換テーブルのサイ
ズとの関係を説明しておく。上記図11にて説明したよ
うに、1セグメントを管理するための論理−物理アドレ
ス変換テーブルのサイズは2ページ分の1024バイ
ト、つまり1KBとなる。従って、図13の最右列に記
されているように、フラッシュメモリが4MB(1セグ
メント)の容量では論理−物理アドレス変換テーブルは
1KBのサイズとなる。また、フラッシュメモリの容量
が8MB(2セグメント)では論理−物理アドレス変換
テーブルは2KB(4ページ)となる。また、フラッシ
ュメモリの容量が16MBの場合、2048ブロック=
4セグメントのものでは論理−物理アドレス変換テーブ
ルは4KB(8ページ)、1024ブロック=2セグメ
ントのものでは論理−物理アドレス変換テーブルは2K
B(4ページ)となる。そして、フラッシュメモリの容
量が32MB(4セグメント)では論理−物理アドレス
変換テーブルは4KB(8ページ)、フラッシュメモリ
の容量が64MB(8セグメント)では論理−物理アド
レス変換テーブルは8KB(16ページ)となり、フラ
ッシュメモリの容量が最大の128MB(16セグメン
ト)では論理−物理アドレス変換テーブルは16KB
(32ページ)となる。
Here, the relationship between the flash memory capacity and the size of the logical-physical address conversion table will be described with reference to FIG. 13 again. As described with reference to FIG. 11, the size of the logical-physical address conversion table for managing one segment is 1024 bytes for two pages, that is, 1 KB. Therefore, as shown in the rightmost column of FIG. 13, when the flash memory has a capacity of 4 MB (one segment), the logical-physical address conversion table has a size of 1 KB. When the capacity of the flash memory is 8 MB (2 segments), the logical-physical address conversion table is 2 KB (4 pages). When the capacity of the flash memory is 16 MB, 2048 blocks =
The logical-physical address conversion table is 4 KB (8 pages) for the 4-segment type, and the logical-physical address conversion table is 2 K for the 1024-block = 2 segment type.
B (4 pages). When the capacity of the flash memory is 32 MB (4 segments), the logical-physical address conversion table is 4 KB (8 pages). When the capacity of the flash memory is 64 MB (8 segments), the logical-physical address conversion table is 8 KB (16 pages). When the capacity of the flash memory is 128 MB (16 segments), the logical-physical address conversion table is 16 KB.
(Page 32).

【0070】4−7 ディレクトリ構造 メモリカード70に記録されるディレクトリ構成例を図
14に示す。メモリカード70で扱うことのできる主デ
ータとしては、コンピュータ用データ、動画データ、静
止画データ、メッセージデータ、オーディオデータ、制
御用データなどがあるが、このためディレクトリ構造と
しては、ルートディレクトリから、「VOICE」(メ
ッセージ用ディレクトリ)、「DCIM」(静止画用デ
ィレクトリ)、「MOxxxxnn」(動画用ディレク
トリ)、「CONTROL」(制御用ディレクトリ)、
「HIFI」(オーディオ用ディレクトリ)、「PM」
(情報処理装置用ディレクトリ)が配される。
4-7 Directory Structure An example of a directory structure recorded on the memory card 70 is shown in FIG. The main data that can be handled by the memory card 70 includes computer data, moving image data, still image data, message data, audio data, control data, and the like. "VOICE" (message directory), "DCIM" (still image directory), "MOxxxxnn" (moving image directory), "CONTROL" (control directory),
"HIFI" (directory for audio), "PM"
(Directory for information processing device).

【0071】そして図示していないが、各ディレクトリ
の下には、サブディレクトリやファイル(上述したデー
タベース)、フォルダ等が配され、いわゆるツリー構造
の形態をとることになる。なお、もちろんこのようなデ
ィレクトリ構成は一例にすぎず、実際には情報処理装置
1等による記録状況や記録されるファイル種別などに応
じてディレクトリ構造が形成される。
Although not shown, sub-directories, files (the above-mentioned database), folders, and the like are arranged under each directory, and have a so-called tree structure. Note that such a directory structure is of course only an example, and a directory structure is actually formed according to the recording status of the information processing apparatus 1 or the like, the type of file to be recorded, and the like.

【0072】5.FAT構造 図7のファイルシステム階層で説明したように、ファイ
ル管理処理はFATにより行われることになる。即ち図
2に示した構成の情報処理装置1により、メモリカード
70に対する記録再生(データ書込/読出)を実現する
には、アプリケーション処理での要求に伴ってFATに
よるファイル記憶位置管理が参照され、さらに上述した
論理−物理アドレス変換が行われて実際のアクセスが行
われることになる。ここで、FATの構造について説明
しておく。
5. FAT Structure As described in the file system hierarchy of FIG. 7, the file management processing is performed by the FAT. That is, in order to realize the recording / reproducing (data writing / reading) with respect to the memory card 70 by the information processing apparatus 1 having the configuration shown in FIG. 2, the file storage position management by the FAT is referred to in response to the request in the application processing. Then, the above-described logical-physical address conversion is performed, and the actual access is performed. Here, the structure of the FAT will be described.

【0073】図15はFATによる管理構造の概要を示
している。なお、本例ではFAT及び論理−物理アドレ
ス変換テーブルはメモリカード70内に格納されること
になるが、図15に示すFAT構造が、メモリカード7
0内での管理構造となるものである。
FIG. 15 shows an outline of a management structure based on the FAT. In this example, the FAT and the logical-physical address conversion table are stored in the memory card 70, but the FAT structure shown in FIG.
This is a management structure within 0.

【0074】図示するようにFAT管理構造は、パーテ
ィションテーブル、空き領域、ブートセクタ、FAT、
FATのコピー、ルートディレクトリ、データ領域から
成る。データ領域には、クラスタ2、クラスタ3・・・
として単位データを示しているが、このクラスタとは、
管理単位となるFATで扱う1データ単位である。一般
にFATでは、クラスタサイズは標準で4Kバイトとさ
れるが、このクラスタサイズは512バイト〜32Kバ
イトの間で2のべき乗の大きさをとることができる。本
例のメモリカード70では、上述したように1つのブロ
ックが8Kバイト又は16Kバイトとされるが、1ブロ
ック=8Kバイトとされるメモリカード70の場合は、
FATで扱うクラスタは8Kバイトとされる。また1ブ
ロック=16Kバイトとされるメモリカード70の場合
は、FATで扱うクラスタは16Kバイトとされる。即
ち、8Kバイト又は16KバイトがFAT管理上でのデ
ータ単位であり、かつメモリカード70でのブロックと
しての1つのデータ単位とされる。なお、従ってメモリ
カードからみれば、FATで扱われるクラスタサイズ=
そのメモリカードのブロックサイズとなる。このため、
本例の以降の説明については、簡略化のためにブロック
=クラスタとして考えることとする。
As shown, the FAT management structure includes a partition table, a free area, a boot sector, a FAT,
It consists of a FAT copy, a root directory, and a data area. In the data area, cluster 2, cluster 3,...
The unit data is shown as, but this cluster is
This is one data unit handled by the FAT serving as a management unit. Generally, in FAT, the cluster size is 4 Kbytes as standard, but this cluster size can be a power of 2 between 512 bytes and 32 Kbytes. In the memory card 70 of this example, as described above, one block is set to 8 Kbytes or 16 Kbytes. However, in the case of the memory card 70 where one block is set to 8 Kbytes,
The cluster handled by the FAT is 8 Kbytes. In the case of the memory card 70 in which one block is 16 Kbytes, the cluster handled by the FAT is 16 Kbytes. That is, 8 Kbytes or 16 Kbytes is a data unit in FAT management, and is one data unit as a block in the memory card 70. From the viewpoint of the memory card, the cluster size handled by the FAT =
This is the block size of the memory card. For this reason,
In the following description of this example, it is assumed that blocks = clusters for simplification.

【0075】そして図15左側にブロックナンバとして
x・・・(x+m−1)、(x+m)(x+m+1)
(x+m+2)・・・と示したが、例えばこのように各
ブロックにおいてFAT構造を構築する各種データは記
憶されることになる。なお、実際には必ずしもこのよう
に物理的に連続する各ブロックに各情報が記憶されるも
のではない。
Then, on the left side of FIG. 15, x... (X + m-1), (x + m) (x + m + 1) as block numbers
(X + m + 2)..., For example, various data for constructing the FAT structure in each block as described above are stored. Actually, each information is not necessarily stored in each physically continuous block.

【0076】FAT構造において、まずパーティション
テーブルには、FATパーティション(最大2Gバイ
ト)の先頭と終端のアドレスが記述されている。ブート
領域には、いわゆる12bitFAT、16bitFA
Tの別や、FAT構造(大きさ、クラスタサイズ、各領
域のサイズなど)が記述される。
In the FAT structure, first, the start and end addresses of the FAT partition (up to 2 Gbytes) are described in the partition table. In the boot area, so-called 12-bit FAT, 16-bit FA
The type of T and the FAT structure (size, cluster size, size of each area, etc.) are described.

【0077】FATは、後述するように各ファイルを構
成するクラスタのリンク構造を示すテーブルとなり、ま
たFATについては続く領域にコピーが記述される。ル
ートディレクトリには、ファイル名、先頭クラスタ番
号、各種属性が記述される。これらの記述は1つのファ
イルにつき32バイト使用される。
As will be described later, the FAT is a table indicating the link structure of the clusters constituting each file. For the FAT, a copy is described in a subsequent area. In the root directory, a file name, a leading cluster number, and various attributes are described. These descriptions use 32 bytes per file.

【0078】FATにおいては、FATのエントリとク
ラスタは1対1で対応しており、各クラスタのエントリ
にはリンク先、つまり後に続くクラスタの番号が記述さ
れる。つまり、複数のクラスタ(=ブロック)で形成さ
れている或るファイルについてみると、まずディレクト
リによって先頭のクラスタ番号が示され、FATにおけ
るその先頭クラスタのエントリには、次のクラスタ番号
が示される。さらに次のクラスタ番号のエントリには、
さらに次のクラスタ番号が示される。このようにクラス
タのリンクがFATに記述される。
In the FAT, the entries of the FAT correspond to the clusters on a one-to-one basis, and the entry of each cluster describes the link destination, that is, the number of the subsequent cluster. In other words, for a certain file formed by a plurality of clusters (= blocks), the first cluster number is indicated by the directory, and the entry of the first cluster in the FAT indicates the next cluster number. In the next cluster number entry,
Further, the next cluster number is indicated. Thus, the link of the cluster is described in the FAT.

【0079】図16はこのようなリンクの概念を模式的
に示している(数値は16進値)。例えば2つのファイ
ル「MAIN.C」「FUNC.C」が存在するとする
と、ディレクトリにはこの2つのファイルの先頭クラス
タ番号が例えば「002」「004」と記述される。そ
してファイル「MAIN.C」については、クラスタ番
号「002」のエントリに次のクラスタ番号「003」
が記述され、またクラスタ番号「003」のエントリに
次のクラスタ番号「006」が記述される。さらに、ク
ラスタ番号006がこのファイル「MAIN.C」の最
後のクラスタであるとすると、クラスタ番号「006」
のエントリには、最後のクラスタであることを示す「F
FF」が記述される。これによりファイル「MAIN.
C」がクラスタ「002」→「003」→「006」と
いう順番で記憶されている。即ち、仮にクラスタ番号と
メモリカード70でのブロック番号が一致していると仮
定すると、ファイル「MAIN.C」は、メモリカード
70内でブロック「002」「003」「006」に記
憶されていることが表現されている。(但し、FATで
扱うクラスタは、上述のように論理アドレスで扱うもの
となるため、ブロックの物理アドレスとそのまま一致す
るものではない)
FIG. 16 schematically shows the concept of such a link (the numerical value is a hexadecimal value). For example, assuming that two files “MAIN.C” and “FUNC.C” exist, the leading cluster numbers of these two files are described in the directory as “002” and “004”, for example. For the file “MAIN.C”, the entry of the cluster number “002” is added to the next cluster number “003”.
Is described, and the next cluster number “006” is described in the entry of the cluster number “003”. Further, assuming that the cluster number 006 is the last cluster of the file “MAIN.C”, the cluster number “006”
The entry of “F” indicating the last cluster
FF ”is described. As a result, the file “MAIN.
C ”are stored in the order of cluster“ 002 ”→“ 003 ”→“ 006 ”. That is, assuming that the cluster number matches the block number in the memory card 70, the file “MAIN.C” is stored in the blocks “002”, “003”, and “006” in the memory card 70. Is expressed. (However, the cluster handled by the FAT is handled by the logical address as described above, and therefore does not directly match the physical address of the block)

【0080】また同様にファイル「FUNC.C」につ
いては、FATにより、クラスタ「004」→「00
5」に記憶されていることが表現される。
Similarly, for the file “FUNC.C”, the cluster “004” → “00” is obtained by FAT.
5 "is stored.

【0081】なお、未使用のブロックに対応するクラス
タについては、そのエントリは「000」とされる。
The entry of a cluster corresponding to an unused block is "000".

【0082】ところでルートディレクトリの領域に記憶
される各ファイルのディレクトリにおいては、図16に
示した先頭クラスタ番号だけでなく、例えば図17のよ
うに各種データが記述される。即ちファイル名、拡張
子、属性、変更時刻情報、変更日付情報、先頭クラスタ
番号、ファイルサイズが、それぞれ図示するバイト数で
記述される。
In the directory of each file stored in the area of the root directory, not only the leading cluster number shown in FIG. 16 but also various data are described as shown in FIG. 17, for example. That is, the file name, extension, attribute, change time information, change date information, head cluster number, and file size are each described by the number of bytes shown.

【0083】また或るディレクトリの下層となるサブデ
ィレクトリについては、図15のルートディレクトリの
領域ではなく、データ領域に記憶される。つまりサブデ
ィレクトリは、ディレクトリ構造を持つファイルとして
扱われる。そしてサブディレクトリの場合はサイズは無
制限とされ、また自分自身へのエントリと親ディレクト
リへのエントリが必要になる。
The sub-directory below a certain directory is stored in the data area, not in the area of the root directory in FIG. That is, the subdirectory is treated as a file having a directory structure. In the case of a subdirectory, the size is unlimited, and an entry for itself and an entry for the parent directory are required.

【0084】図18に、或るルートディレクトリ内にフ
ァイル「DIR1」(属性=ディレクトリ:つまりサブ
ディレクトリ)があり、さらにその中にファイル「DI
R2」(属性=ディレクトリ:つまりサブディレクト
リ)があり、さらにその中にファイル「FILE」が存
在する場合の構造例を示している。つまりルートディレ
クトリの領域には、サブディレクトリであるファイル
「DIR1」としての先頭クラスタ番号が示され、上述
したFATにより、クラスタX、Y、Zがリンクされて
いる状態となる。この図からわかるように、サブディレ
クトリ「DIR1」「DIR2」についてはファイルと
して扱われてFATのリンクに組み込まれる。
In FIG. 18, there is a file "DIR1" (attribute = directory: sub-directory) in a certain root directory.
An example of the structure in a case where there is an “R2” (attribute = directory: that is, a subdirectory) and a file “FILE” further exists therein. That is, in the root directory area, the head cluster number as the file “DIR1” which is a subdirectory is indicated, and the clusters X, Y, and Z are linked by the above-described FAT. As can be seen from this figure, the subdirectories "DIR1" and "DIR2" are treated as files and incorporated into the FAT link.

【0085】6.メモリカードと情報処理装置のインタ
ーフェース 図19により、メモリカード70と情報処理装置1のメ
モリカードインターフェース28の間のシリアルインタ
ーフェースシステム構成を説明する。メモリカード70
内のコントロールIC80は、図19に示すようにフラ
ッシュメモリコントローラ80a、レジスタ80b、ペ
ージバッファ80c、シリアルインターフェース80d
としての各ブロックを有するものとなっている。
6. Interface between Memory Card and Information Processing Apparatus A serial interface system configuration between the memory card 70 and the memory card interface 28 of the information processing apparatus 1 will be described with reference to FIG. Memory card 70
The control IC 80 includes a flash memory controller 80a, a register 80b, a page buffer 80c, a serial interface 80d as shown in FIG.
As each block.

【0086】フラッシュメモリコントローラ80aは、
レジスタ80bに設定されたパラメータに基づいて、フ
ラッシュメモリ81とページバッファ80cの間でのデ
ータ転送を行う。そしてページバッファ80cにバファ
リングされたデータはシリアルインターフェース80d
を介して情報処理装置1のメモリカードインターフェー
ス28側に転送され、また情報処理装置1のメモリカー
ドインターフェース28から転送されてきたデータはシ
リアルインターフェース80dを介してページバッファ
10cにバファリングされる。
The flash memory controller 80a
Data transfer is performed between the flash memory 81 and the page buffer 80c based on the parameters set in the register 80b. The data buffered in the page buffer 80c is stored in the serial interface 80d.
The data transferred to the memory card interface 28 of the information processing apparatus 1 via the data interface 1, and the data transferred from the memory card interface 28 of the information processing apparatus 1 are buffered to the page buffer 10c via the serial interface 80d.

【0087】メモリカードインターフェース28側で
は、メモリカード70に対するインターフェース構造と
して、ファイルマネージャ60、転送プロトコルインタ
ーフェース61、シリアルインターフェース62を有す
る。ファイルマネージャ60はメモリカード70のファ
イル管理を行う。例えば本例のシステムではメモリカー
ド70内にはメインデータファイルの管理のための管理
ファイルが記憶されているが、情報処理装置1は装填さ
れたメモリカード70から管理ファイルをよみこんでC
PU22がファイルマネージャ60を形成することにな
る。メモリカード70へのアクセスはファイルマネージ
ャ60に従って実行される。転送プロトコルインターフ
ェース61は、レジスタ80b、ページバッファ80c
へのアクセスを実行する。シリアルインターフェース6
2は、メモリカード70との間の3つの信号線、即ちS
CLK(シリアルクロック)、BS(バスステイト)、
SDIO(シリアルデータ入出力)において、任意のデ
ータ転送を行うためのプロトコルを規定する。
The memory card interface 28 has a file manager 60, a transfer protocol interface 61, and a serial interface 62 as an interface structure for the memory card 70. The file manager 60 manages files in the memory card 70. For example, in the system of this example, a management file for managing the main data file is stored in the memory card 70, but the information processing apparatus 1 reads the management file from the loaded memory card 70 and
The PU 22 will form the file manager 60. Access to the memory card 70 is executed according to the file manager 60. The transfer protocol interface 61 includes a register 80b, a page buffer 80c.
Perform access to. Serial interface 6
2 is three signal lines to the memory card 70, that is, S
CLK (serial clock), BS (bus state),
In SDIO (serial data input / output), a protocol for performing arbitrary data transfer is defined.

【0088】以上の構成における各部の動作により、情
報処理装置1によるメモリカード70(フラッシュメモ
リ81)に対する読出アクセス/書込アクセスが実行さ
れる。
The read / write access to the memory card 70 (flash memory 81) by the information processing device 1 is performed by the operation of each unit in the above configuration.

【0089】7.ファイルシステムAPI ここまでの説明では、情報処理装置1に装填されるメデ
ィアとしてメモリカード1の例をあげ、その構成やFA
Tについて述べてきた。ところが実際には、例えばフラ
ッシュメモリを搭載したメモリカードというものは、各
メーカからそれぞれ異なる多様な製品が提供されてお
り、しかもFATファイルシステムを採用するものが多
い。ここで、各種のメモリカード、即ちそれぞれFAT
システムを採用しているが、構造、形状の異なる別の製
品として提供されておりファイルシステムAPIもそれ
ぞれ固有とされているメディアを、仮にメディア#1、
#2・・・と呼ぶこととする。例えば商品名として「メ
モリスティック」「スマートメディア」「コンパクトフ
ラッシュ(登録商標)」「SDカード」・・・などと呼
ばれているものが、それぞれメディア#1、#2・・に
相当するものとする。
7. File System API In the above description, an example of the memory card 1 is given as a medium loaded in the information processing apparatus 1, and its configuration and FA
T has been described. However, in practice, for example, a memory card equipped with a flash memory is provided by a variety of different products from respective manufacturers, and many employ a FAT file system. Here, various memory cards, that is, FAT
Although the system is adopted, media provided as separate products having different structures and shapes and file system APIs are also unique are temporarily assumed to be media # 1,
# 2... For example, products called “Memory Stick”, “SmartMedia”, “Compact Flash (registered trademark)”, “SD card”, etc. correspond to media # 1, # 2,. I do.

【0090】このような各種のメディアに対応できるよ
うにするため、本例の情報処理装置1では、FATファ
イルシステムAPIは図20のように構成されている。
即ち、各メディア#1、#2・・・にそれぞれ固有のフ
ァイルシステムAPIとしてのライブラリを持つと共
に、共通のファイルシステムAPIとしての共通ライブ
ラリを持つ。そして各メディア#1、#2・・・に対応
する各ライブラリは、実体としてのAPIではなく、あ
くまでもAPIとしての機能は共通ライブラリが有する
ものである。
In order to cope with such various media, in the information processing apparatus 1 of the present embodiment, the FAT file system API is configured as shown in FIG.
That is, each of the media # 1, # 2,... Has a library as a unique file system API and a common library as a common file system API. Each library corresponding to each of the media # 1, # 2,... Is not an API as an entity, but a function as an API is included in the common library.

【0091】関数としては、共通ライブラリは例えばフ
ァイルのオープン、クローズ、リード、ライトなどにつ
いて、例えば「General File Open」「General File Cl
ose」「General File Read」「General File Write」な
どを持つ。そして個別のライブラリも、それぞれの対応
メディアに対する関数を持つ。例えばメディア#1FA
Tライブラリでは、「#1 File Open」「#1 File Cl
ose」「#1 File Read」「#1 File Write」などを持
つ。。しかしながら、実際の動作時には、各個別のライ
ブラリは、共通ライブラリの関数を自己の関数に置き換
えた上で、共通ライブラリをファイルシステムAPIと
して機能させることになる。具体的には、メディア#1
についてファイルオープンを行う場合は、メディア#1
FATライブラリが、共通ライブラリにおける関数「Ge
neral File Open」を、自己の関数「#1 File Open」
に置き換えることで、共通ライブラリをメディア#1F
ATライブラリとして使用することになる。他の個別ラ
イブラリも同様である。換言すれば、各個別のライブラ
リは、共通ライブラリをハッキングして機能するものと
いえる。これを例えばユーザーサイドから見れば(表示
上で関数が確認できるとすれば)、すべてのメディア
は、同様に「File Open」としての関数によりファイル
オープンされるが、その「File Open」の実体は、各メ
ディアに応じたものとなっている状態とされている。
As a function, the common library performs, for example, for opening, closing, reading, and writing a file, for example, “General File Open”, “General File Cl
ose "," General File Read "," General File Write ", etc. Each individual library also has a function for each corresponding media. For example, media # 1FA
In T library, "# 1 File Open""# 1 File Cl
ose ","# 1 File Read ","# 1 File Write ", etc. . However, in actual operation, each individual library replaces the function of the common library with its own function, and then causes the common library to function as a file system API. Specifically, media # 1
To open a file for
The FAT library uses the function "Ge
neral File Open ”and own function“ # 1 File Open ”
By replacing the common library with media # 1F
It will be used as an AT library. The same applies to other individual libraries. In other words, it can be said that each individual library functions by hacking the common library. From the user's point of view (assuming that the function can be confirmed on the display), all media are similarly opened with a function as “File Open”, but the substance of “File Open” is , According to each media.

【0092】このようなFATファイルシステムAPI
においては、まず初期動作として図21(a)のテーブ
ル初期化が行われる。この場合、ステップF101で情
報処理装置1において使用されるデバイスが認識され
る。例えばメモリカード#1,#3が使用デバイスとし
てセットされているとする。次にステップF102で
は、各デバイスにおいてファイルオープン等に用いる関
数テーブルを用意する。例えばメディア#1に用いるも
のとして「#1 FileOpen」「#1 File Close」「#1
File Read」「#1 File Write」、メディア#3に用
いるものとして「#3 File Open」「#3 File Clos
e」「#3 File Read」「#3 File Write」、というよ
うな情報を配した関数テーブルが用意されることにな
る。
Such a FAT file system API
In, first, the table initialization shown in FIG. 21A is performed as an initial operation. In this case, the device used in the information processing apparatus 1 is recognized in step F101. For example, it is assumed that memory cards # 1 and # 3 are set as devices to be used. Next, in step F102, a function table used for file opening or the like in each device is prepared. For example, "# 1 FileOpen", "# 1 File Close", "# 1
"File Read", "# 1 File Write", "# 3 File Open", "# 3 File Clos" for media # 3
A function table having information such as “e”, “# 3 File Read”, and “# 3 File Write” is prepared.

【0093】メディア#nが装填された場合の処理は図
21(b)のようになり、ステップF201としてメデ
ィア#nの装填が認識されると、ステップF202とし
て、共通ライブラリの関数テーブルを、メディア#nF
ATライブラリが、自己の関数テーブルに置き換える処
理を行う。これによって共通ライブラリはメディア#n
に対応したFATファイルシステムAPIとされること
になる。図3の構成に照らしていえば、この状態で共通
ライブラリがメディア#nに相当するメモリカード70
に対するFATライブラリとなり、MSライブラリを介
してデバイス、即ちメモリドライブを制御してアクセス
させることになる。
The processing when media #n is loaded is as shown in FIG. 21B. When loading of media #n is recognized in step F201, the function table of the common library is stored in step F202. #NF
The AT library performs a process of replacing the function table with its own function table. As a result, the common library has media #n
Is a FAT file system API corresponding to. According to the configuration of FIG. 3, in this state, the common library is the memory card 70 corresponding to the medium #n.
And a device, that is, a memory drive is controlled and accessed via the MS library.

【0094】このようなFATファイルシステムAPI
構造によれば、実体的なAPIは共通ライブラリのみと
なり、各メディアに対応するためには、各個別のライブ
ラリが関数テーブルを置き換えるのみでよいため、AP
I規模は大規模なものとはならず、しかも各種のメディ
アに対応でき、拡張性も維持されるものとなる。
[0094] Such a FAT file system API
According to the structure, the actual API is only the common library, and in order to correspond to each medium, each individual library only needs to replace the function table.
The I-scale does not become large-scale, and can be adapted to various media, while maintaining expandability.

【0095】以上、実施の形態について説明してきた
が、API構造は、上記例に限定されることなく、また
必ずしもFATシステムでなくても適用できる。また本
発明を適用できる装置は、携帯型の情報処理装置のみで
なく、多岐にわたるものである。
Although the embodiment has been described above, the API structure is not limited to the above example, and can be applied even if it is not necessarily a FAT system. The devices to which the present invention can be applied are not only portable information processing devices but also various types.

【0096】[0096]

【発明の効果】以上の説明から理解されるように本発明
によれば、各記憶手段についての個別のファイルシステ
ムAPIとされる各個別ライブラリと、各記憶手段につ
いての共通のファイルシステムAPIとされる共通ライ
ブラリとが設けられる。そして各個別ライブラリは、対
応する記憶手段への動作時において、共通ライブラリの
関数を自己の関数に置き換えることにより、共通ライブ
ラリを用いて機能するようにしたファイルシステムが形
成される。このようにして、各個別ライブラリが、共通
ライブラリを実体たるAPIとして使用することから、
ファイルシステムAPI規模を小さくでき、例えばPD
A機器などでの実装に適したものとできるとともに、多
種の記憶手段に対応できるものとできるという効果があ
る。
As will be understood from the above description, according to the present invention, each individual library which is an individual file system API for each storage means, and a common file system API for each storage means are provided. And a common library. Then, each individual library replaces the function of the common library with its own function when operating the corresponding storage means, thereby forming a file system that functions using the common library. In this way, since each individual library uses the common library as an actual API,
File system API scale can be reduced, for example PD
There is an effect that it can be suitable for mounting on the A-device or the like, and can be compatible with various types of storage means.

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

【図1】本発明の実施の形態の情報処理装置の平面図、
右側面図、左側面図、上面図である。
FIG. 1 is a plan view of an information processing apparatus according to an embodiment of the present invention;
It is a right side view, a left side view, and a top view.

【図2】実施の形態の情報処理装置のブロック図であ
る。
FIG. 2 is a block diagram of the information processing apparatus according to the embodiment;

【図3】実施の形態の情報処理装置のOS構造の説明図
である。
FIG. 3 is an explanatory diagram of an OS structure of the information processing apparatus according to the embodiment;

【図4】実施の形態の情報処理装置で扱うデータベース
構造の説明図である。
FIG. 4 is an explanatory diagram of a database structure handled by the information processing apparatus according to the embodiment;

【図5】実施の形態のメモリカードの外形形状を示す平
面図、正面図、側面図、底面図である。
FIG. 5 is a plan view, a front view, a side view, and a bottom view showing the external shape of the memory card according to the embodiment;

【図6】実施の形態のメモリカードの内部構造の説明図
である。
FIG. 6 is an explanatory diagram of an internal structure of the memory card according to the embodiment;

【図7】実施の形態のファイルシステム処理階層の説明
図である。
FIG. 7 is an explanatory diagram of a file system processing hierarchy according to the embodiment;

【図8】実施の形態のメモリカードの物理的データ構造
の説明図である。
FIG. 8 is an explanatory diagram of a physical data structure of the memory card according to the embodiment;

【図9】実施の形態のメモリカードの管理フラグの説明
図である。
FIG. 9 is an explanatory diagram of a management flag of the memory card according to the embodiment.

【図10】実施の形態のメモリカードにおけるデータ更
新処理と物理アドレス及び論理アドレスの概念の説明図
である。
FIG. 10 is an explanatory diagram of the concept of a data update process and a physical address and a logical address in the memory card of the embodiment.

【図11】実施の形態の論理−物理アドレス変換テーブ
ルの管理形態の説明図である。
FIG. 11 is an explanatory diagram of a management form of a logical-physical address conversion table according to the embodiment;

【図12】実施の形態の論理−物理アドレス変換テーブ
ルの構造の説明図である。
FIG. 12 is an explanatory diagram of a structure of a logical-physical address conversion table according to the embodiment;

【図13】実施の形態のメモリカードのフラッシュメモ
リ容量/ブロック数/1ブロックの容量/1ページの容
量/論理−物理アドレス変換テーブルのサイズの関係の
説明図である。
FIG. 13 is an explanatory diagram showing the relationship between the flash memory capacity of the memory card / the number of blocks / the capacity of one block / the capacity of one page / the size of the logical-physical address conversion table.

【図14】実施の形態のメモリカードのディレクトリ構
造の説明図である。
FIG. 14 is an explanatory diagram of a directory structure of the memory card according to the embodiment;

【図15】FAT構造の説明図である。FIG. 15 is an explanatory diagram of a FAT structure.

【図16】FATによるクラスタ管理形態の説明図であ
る。
FIG. 16 is an explanatory diagram of a cluster management mode using FAT.

【図17】ディレクトリの内容の説明図である。FIG. 17 is an explanatory diagram of the contents of a directory.

【図18】サブディレクトリ及びファイルの格納形態の
説明図である。
FIG. 18 is an explanatory diagram of a storage mode of a subdirectory and a file.

【図19】実施の形態の情報処理装置とメモリカードの
インターフェース構成の説明図である。
FIG. 19 is an explanatory diagram of an interface configuration between the information processing device and the memory card according to the embodiment;

【図20】実施の形態のFATファイルシステムAPI
の説明図である。
FIG. 20 is a FAT file system API according to the embodiment;
FIG.

【図21】実施の形態のFATファイルシステムAPI
での処理のフローチャートである。
FIG. 21 is a FAT file system API according to the embodiment;
3 is a flowchart of the process in FIG.

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

1 情報処理装置、2 表示部、3a,3b,3c 操
作子、4 スピーカ、5 マイクロホン、6 撮像部、
7 メモリスロット、8 IEEE1394端子、9
USB端子、10 ヘッドホン端子、11 ライン入力
端子、12 ライン出力端子、21 システムコントロ
ーラ、22 CPU、23 フラッシュROM、24
D−RAM、25 USBインターフェース、26 I
EEE1394インターフェース、27 表示制御部、
28 メモリカードインターフェース、29 オーディ
オインターフェース、70 メモリカード
Reference Signs List 1 information processing device, 2 display unit, 3a, 3b, 3c operator, 4 speakers, 5 microphone, 6 imaging unit,
7 memory slots, 8 IEEE1394 terminals, 9
USB terminal, 10 headphone terminal, 11 line input terminal, 12 line output terminal, 21 system controller, 22 CPU, 23 flash ROM, 24
D-RAM, 25 USB interface, 26 I
EEE1394 interface, 27 display control unit,
28 memory card interface, 29 audio interface, 70 memory card

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 同一のファイルシステムを有する複数の
異種の記憶手段にアクセス可能とされた情報処理装置に
おいて、 各記憶手段についての個別のファイルシステムAPIと
される各個別ライブラリと、 各記憶手段についての共通のファイルシステムAPIと
される共通ライブラリとを有し、 上記各個別ライブラリは、対応する記憶手段への動作時
において、上記共通ライブラリの関数を自己の関数に置
き換えることにより、共通ライブラリを用いて機能する
ようにされていることを特徴とする情報処理装置。
1. An information processing apparatus capable of accessing a plurality of different types of storage means having the same file system, comprising: an individual library serving as an individual file system API for each storage means; Each of the individual libraries uses the common library by replacing the function of the common library with its own function when operating the corresponding storage means. An information processing apparatus characterized in that the information processing apparatus is configured to function.
【請求項2】 同一のファイルシステムを有する複数の
異種の記憶手段に対応するファイルシステムとして、 各記憶手段についての個別のファイルシステムAPIと
される各個別ライブラリと、 各記憶手段についての共通のファイルシステムAPIと
される共通ライブラリとを有し、 上記各個別ライブラリは、対応する記憶手段への動作時
において、上記共通ライブラリの関数を自己の関数に置
き換えることにより、共通ライブラリを用いて機能する
ようにされていることを特徴とするファイルシステム。
2. A file system corresponding to a plurality of different storage units having the same file system, each individual library serving as an individual file system API for each storage unit, and a common file for each storage unit. A common library, which is a system API, wherein each of the individual libraries functions using the common library by replacing the function of the common library with its own function when operating on the corresponding storage means. A file system characterized in that:
JP2000196285A 2000-06-26 2000-06-26 Information processor and file system Pending JP2002007179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000196285A JP2002007179A (en) 2000-06-26 2000-06-26 Information processor and file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000196285A JP2002007179A (en) 2000-06-26 2000-06-26 Information processor and file system

Publications (1)

Publication Number Publication Date
JP2002007179A true JP2002007179A (en) 2002-01-11

Family

ID=18694813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000196285A Pending JP2002007179A (en) 2000-06-26 2000-06-26 Information processor and file system

Country Status (1)

Country Link
JP (1) JP2002007179A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003065210A1 (en) * 2002-01-31 2003-08-07 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
JP2011044138A (en) * 2009-07-22 2011-03-03 Panasonic Corp Imaging apparatus, information processing apparatus, and information processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003065210A1 (en) * 2002-01-31 2003-08-07 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
US7418436B2 (en) 2002-01-31 2008-08-26 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
CN100533378C (en) * 2002-01-31 2009-08-26 松下电器产业株式会社 Information processing device and method, momery management device and method
JP2011044138A (en) * 2009-07-22 2011-03-03 Panasonic Corp Imaging apparatus, information processing apparatus, and information processing program

Similar Documents

Publication Publication Date Title
JP3072722B2 (en) Data management device and data management method using flash memory and storage medium using flash memory
US7039754B2 (en) Detachably mounted removable data storage device
US6278678B1 (en) Editing apparatus, editing method, and recording medium
US6662269B1 (en) Data rewriting apparatus, control method, and recording medium
JP2000047932A (en) Storage medium and electronic equipment system
WO2003056432A1 (en) Memory device and recording/reproducing apparatus using the same
US7050190B2 (en) Information-processing apparatus and information-processing method
US20070033364A1 (en) Information recording medium, information recording medium accessing apparatus and accessing method
EP1826663A2 (en) Apparatus, method and computer program for processing information
JP2001325128A (en) Method for managing file and recording or reproducing device
JP2000057037A (en) Device and method for recording and reproducing and recording medium
JP2001325134A (en) Directory setting method and recorder
JP5558093B2 (en) Semiconductor device and memory system
JP4731325B2 (en) Recording medium, data processing apparatus, and data processing method
JP4403338B2 (en) Information processing apparatus and information processing method
JP2002007179A (en) Information processor and file system
JP2001331328A (en) Information processor and its method
JP2001331280A (en) Information processor and information processing method
JP2001325127A (en) Access method and recording or reproducing device
JP2002007204A (en) Device and method for information processing
JP2000311104A (en) Method for recording, method for management, and recording device
JP4474716B2 (en) Editing device, editing method
JPH11120044A (en) Data processor, data processing method, data processing system and recording medium
JP2002007194A (en) Information processing method and information processing device
JP3620241B2 (en) File management apparatus, file management method, recording medium, and file management system