JPH11317068A - Memory card - Google Patents

Memory card

Info

Publication number
JPH11317068A
JPH11317068A JP11060378A JP6037899A JPH11317068A JP H11317068 A JPH11317068 A JP H11317068A JP 11060378 A JP11060378 A JP 11060378A JP 6037899 A JP6037899 A JP 6037899A JP H11317068 A JPH11317068 A JP H11317068A
Authority
JP
Japan
Prior art keywords
memory card
image data
data
host computer
command
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
JP11060378A
Other languages
Japanese (ja)
Inventor
Takumi Okanoe
拓己 岡上
Yoshio Kondo
嘉男 近藤
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 JP11060378A priority Critical patent/JPH11317068A/en
Publication of JPH11317068A publication Critical patent/JPH11317068A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To discriminate various kinds of memory cards in different characteristics and to use the memory cards made to coincide with the characteristics. SOLUTION: A flash memory 22 storing the data transmitted from electronic equipment, a configuration ROM 36 storing the data related to the characteristic of the memory card 2 and a control IC 21 generating/executing a prescribed command from the data transmitted from the electronic equipment are provided on the memory card 2 storing the data transmitted from the electronic equipment. Then, when the memory card 2 is connected to the electronic equipment, the initial setting of the memory card 2 is performed using the data stored in the configuration ROM 36 by a control IC 22.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、電子機器から送信
されるデータを記憶するメモリカードに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory card for storing data transmitted from an electronic device.

【0002】[0002]

【従来の技術】従来より、コンピュータ,ディジタルス
チルカメラ等の電子機器からのデータを記憶するため
に、磁気テープ,磁気ディスク,光ディスク,メモリカ
ード等の外部記憶装置が使用されている。特に、メモリ
カードは、携帯性に優れ、かつ、転送レートが高速であ
ることから広く使用されている。
2. Description of the Related Art Conventionally, external storage devices such as magnetic tapes, magnetic disks, optical disks, and memory cards have been used to store data from electronic devices such as computers and digital still cameras. In particular, memory cards are widely used because of their excellent portability and high transfer rates.

【0003】[0003]

【発明が解決しようとする課題】メモリカードは用途に
合わせて、特性の異なる様々な種類のものが開発されて
いる。その結果として、メモリカードは、外観は同様で
あっても特性の異なるものが市場に混在するようになっ
ている。外観は同様であっても特性が異なっていると、
メモリカードを電子機器に接続して使用したときに、電
子機器によってはメモリカードが使えたり使えなかった
りする。
Various types of memory cards having different characteristics have been developed according to applications. As a result, memory cards having the same appearance but different characteristics are mixed in the market. If the appearance is the same but the characteristics are different,
When a memory card is connected to an electronic device and used, the memory card may or may not be used depending on the electronic device.

【0004】本発明は、このような実情に鑑みてなされ
たものであり、特性の異なる様々な種類のメモリカード
を識別できるようにし、メモリカードをその特性に合わ
せて使用できるようにすることを目的とする。
[0004] The present invention has been made in view of such circumstances, and aims to identify various types of memory cards having different characteristics and to enable the memory card to be used in accordance with the characteristics. Aim.

【0005】[0005]

【課題を解決するための手段】本発明に係るメモリカー
ドは、電子機器から送信されるデータを記憶するメモリ
カードであって、電子機器から送信されるデータを記憶
する第1の記憶手段と、メモリカードの特性に関するデ
ータを記憶する第2の記憶手段と、電子機器から送信さ
れるデータから所定の命令を生成し実行する制御手段と
を備える。そして、制御手段は、メモリカードが電子機
器に接続されたとき、第2の記憶手段に記憶されたデー
タを用いて、メモリカードの初期設定を行う。
A memory card according to the present invention is a memory card for storing data transmitted from an electronic device, wherein the first memory means stores data transmitted from the electronic device; A second storage unit that stores data relating to characteristics of the memory card; and a control unit that generates and executes a predetermined command from data transmitted from the electronic device. Then, when the memory card is connected to the electronic device, the control unit performs an initial setting of the memory card using the data stored in the second storage unit.

【0006】なお、本発明に係るメモリカードにおい
て、第2の記憶手段には、例えば、メモリカードのバー
ジョン情報が記憶される。この場合、制御手段は、メモ
リカードが電子機器に接続されたときに、第2の記憶手
段に記憶されたバージョン情報を用いて、メモリカード
の初期設定を行う。
[0006] In the memory card according to the present invention, the second storage means stores, for example, version information of the memory card. In this case, when the memory card is connected to the electronic device, the control unit performs an initial setting of the memory card using the version information stored in the second storage unit.

【0007】また、本発明に係るメモリカードは更に、
第1の記憶手段へのデータの書き込みを禁止する設定を
行うスイッチを備えていることが好ましい。この場合、
制御手段は、メモリカードの初期設定を行った後に、電
子機器から送信される状態読み出し命令に応じて、スイ
ッチの設定状態を電子機器に送信する。
[0007] The memory card according to the present invention further comprises:
It is preferable to include a switch for setting to prohibit data writing to the first storage means. in this case,
After performing the initial setting of the memory card, the control unit transmits the setting state of the switch to the electronic device in response to the state reading command transmitted from the electronic device.

【0008】[0008]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照しながら説明する。ここでは、図1に示
すように、電子機器であるホストコンピュータ1から送
信されるデータを記憶するメモリカード2を例に挙げ
る。なお、本実施の形態では、ホストコンピュータ1か
ら送信される画像データをメモリカード2に書き込む場
合について説明するが、オーディオデータや他のデータ
についても同様であるのは言うまでもない。
Embodiments of the present invention will be described below with reference to the drawings. Here, as shown in FIG. 1, a memory card 2 that stores data transmitted from a host computer 1 that is an electronic device will be described as an example. In the present embodiment, a case will be described in which image data transmitted from the host computer 1 is written to the memory card 2, but it goes without saying that the same applies to audio data and other data.

【0009】上記ホストコンピュータ1は、図1に示す
ように、静止画の画像データ,オーディオデータ等の様
々のデータを記憶するハードディスク11と、ハードデ
ィスク11からの画像データ等を一旦記憶して読み出す
RAM(Random Access Memory)12と、ディスプレイ
・インターフェース(以下、ディスプレイI/Fとい
う。)13を介して供給される画像データに基づいて画
像を表示するディスプレイ14と、3本のデータ線を介
してメモリカード2とのデータの送受信を行うシリアル
インターフェース(以下、シリアルI/Fという。)1
5と、バス16と、全体を制御するCPU(Central Pr
ocessing Unit)17とを備える。
As shown in FIG. 1, the host computer 1 includes a hard disk 11 for storing various data such as still image data and audio data, and a RAM for temporarily storing and reading out image data and the like from the hard disk 11. (Random Access Memory) 12, a display 14 for displaying an image based on image data supplied via a display interface (hereinafter referred to as a display I / F) 13, and a memory via three data lines. Serial interface (hereinafter referred to as serial I / F) 1 for transmitting and receiving data to and from the card 2
5, bus 16 and a CPU (Central Pr
Ocessing Unit) 17.

【0010】RAM12は、例えば、バス16を介して
ハードディスク11に記憶されている画像データを一旦
記憶し、必要に応じて画像データをバス16を介してシ
リアルI/F15に供給する。
The RAM 12 temporarily stores, for example, image data stored in the hard disk 11 via the bus 16 and supplies the image data to the serial I / F 15 via the bus 16 as needed.

【0011】ディスプレイ14には、ハードディスク1
1から読み出された画像データがバス16,ディスプレ
イI/F13を介して供給されたり、メモリカード2か
らの画像データが供給されて、これらの画像データに基
づく静止画や動画が表示される。
The display 14 has a hard disk 1
The image data read from the device 1 is supplied via the bus 16 and the display I / F 13, or the image data is supplied from the memory card 2, and a still image or a moving image based on the image data is displayed.

【0012】シリアルI/F15は、3本のデータ線を
介して、メモリカード2に画像データを送信したり、メ
モリカード2に記憶されている画像データを受信する。
具体的には、シリアルI/F15は、第1のデータ線を
介して、メモリカード2に書き込むための画像データや
制御データを送信したり、メモリカード2から読み出さ
れた画像データを受信する。また、シリアルI/F15
は、第2のデータ線を介して、第1のデータ線での画像
データ又は制御データの切り換えに応じて、その切り換
えた状態を示すステータス信号を出力する。また、シリ
アルI/F15は、第3のデータ線を介して、上記制御
データや画像データの送信の際のシリアルクロックSC
LKを送信する。
The serial I / F 15 transmits image data to the memory card 2 and receives image data stored in the memory card 2 via three data lines.
More specifically, the serial I / F 15 transmits image data and control data to be written to the memory card 2 and receives image data read from the memory card 2 via the first data line. . In addition, serial I / F15
Outputs a status signal indicating the switched state in response to switching of image data or control data on the first data line via the second data line. Further, the serial I / F 15 is connected to the serial clock SC at the time of transmitting the control data and the image data via the third data line.
Send LK.

【0013】CPU17は、RAM12やハードディス
ク11の画像データを読み出したり、RAM12等に画
像データを書き込んだりするときに、それらの動作を制
御する。また、CPU17は、メモリカード2との画像
データ等の送受信の制御も行う。例えば、CPU17
は、メモリカード2の後述する誤消去防止スイッチのラ
イトプロテクトがオンになっているかを判断するための
レジスタ命令を発行したり、メモリカード2に対してア
ドレスを指定して所定の画像データの書込み命令を発行
したりする。
The CPU 17 controls the operation of reading image data from the RAM 12 or the hard disk 11 or writing image data into the RAM 12 or the like. The CPU 17 also controls transmission and reception of image data and the like with the memory card 2. For example, CPU 17
Issues a register command for determining whether write protection of a later-described erasure prevention switch of the memory card 2 is turned on, or writes an image to the memory card 2 by specifying an address. Issue instructions.

【0014】一方、メモリカード2は、図2に示すよう
に、上記ホストコンピュータ1からの画像データや制御
データを受信するコントロールIC21と、画像データ
を記憶する第1の記憶手段であるフラッシュメモリ22
と、フラッシュメモリ22に記憶されている画像データ
を誤って消去することを防止するための誤消去防止スイ
ッチ23を備える。
On the other hand, as shown in FIG. 2, the memory card 2 includes a control IC 21 for receiving image data and control data from the host computer 1, and a flash memory 22 as first storage means for storing image data.
And an erroneous erasure prevention switch 23 for preventing erroneous erasure of image data stored in the flash memory 22.

【0015】コントロールIC21,フラッシュメモリ
22,誤消去防止スイッチ23は、図3に示すように、
略板状に形成されている板状部材24の中に設けられて
いる。上記誤消去防止スイッチ23は、板状部材24の
長手方向の一端側にあって、かつ、装着方向の反対側に
設けられている。誤消去防止スイッチ23は、上記板状
部材24の長手方向に直交する方向にスライド自在にな
っている。図3に示すように、誤消去防止スイッチ23
が装着方向に向かって左側に位置しているときは、画像
データを記録することができる状態、すなわちライトプ
ロテクトがオフになっている。
The control IC 21, the flash memory 22, and the erroneous erasure prevention switch 23 are, as shown in FIG.
It is provided in a plate-like member 24 formed in a substantially plate shape. The erroneous erasure prevention switch 23 is provided on one end side of the plate member 24 in the longitudinal direction and on the opposite side to the mounting direction. The erroneous erasure prevention switch 23 is slidable in a direction orthogonal to the longitudinal direction of the plate member 24. As shown in FIG.
Is located on the left side in the mounting direction, the state in which image data can be recorded, that is, the write protection is off.

【0016】また、図4に示すように、誤消去防止スイ
ッチ23が装着方向に向かって右側に位置しているとき
は、空隙部25が現れる。このとき、メモリカード2
は、画像データを記録することができない状態、すなわ
ちライトプロテクトがオンになっている。従って、利用
者は、メモリカード2のみを例えば衣服のポケット等に
入れておいても、上記空隙部25の有無を触覚で判断す
ることができ、ライトプロテクトされているかを容易に
判断することができる。
As shown in FIG. 4, when the erroneous erasure prevention switch 23 is located on the right side in the mounting direction, a gap 25 appears. At this time, memory card 2
Indicates that the image data cannot be recorded, that is, the write protection is turned on. Therefore, even if the user puts only the memory card 2 in, for example, a pocket of clothes, the user can determine the presence or absence of the gap 25 by tactile sensation, and easily determine whether or not the memory card 2 is write-protected. it can.

【0017】コントロールIC21は、ホストコンピュ
ータ1から送信されるデータから所定の命令を生成し実
行する制御手段である。このコントロールIC21は、
ホストコンピュータ1から送信された画像データをフラ
ッシュメモリ22に書き込む前に、誤消去防止スイッチ
23のライトプロテクトがオン/オフの何れに設定され
ているかを判断して、ライトプロテクトがオンに設定さ
れているときのみ画像データをフラッシュメモリ22に
書き込むようになっている。
The control IC 21 is control means for generating and executing a predetermined command from data transmitted from the host computer 1. This control IC 21
Before writing the image data transmitted from the host computer 1 to the flash memory 22, it is determined whether the write protection of the erroneous erasure prevention switch 23 is set to ON or OFF, and the write protection is set to ON. The image data is written to the flash memory 22 only when the image data is present.

【0018】ここで、コントロールIC21は、具体的
には、シリアル/パラレル・パラレル/シリアル・イン
ターフェース・シーケンサ(以下、S/P&P/Sシー
ケンサという。)31と、S/P&P/Sシーケンサ3
1からの画像データを一時記憶するページバッファ32
と、ページバッファ32からの画像データをフラッシュ
メモリ22に供給するフラッシュ・インターフェース・
シーケンサ(以下、フラッシュI/Fシーケンサとい
う。)33と、誤り訂正の処理を行うECCエンコーダ
/デコーダ34と、所定の制御コマンドを発生するコマ
ンド・ジェネレータ35と、このメモリカード2の特性
に関する情報としてバージョン情報等が記憶されている
第2の記憶手段であるコンフィグレーションROM(Re
ad Only Memory)36と、各回路にクロックを供給する
発振器37とを備える。
Here, the control IC 21 specifically includes a serial / parallel / parallel / serial interface sequencer (hereinafter, referred to as an S / P & P / S sequencer) 31 and an S / P & P / S sequencer 3.
Page buffer 32 for temporarily storing image data from
And a flash interface for supplying image data from the page buffer 32 to the flash memory 22.
A sequencer (hereinafter, referred to as a flash I / F sequencer) 33, an ECC encoder / decoder 34 for performing error correction processing, a command generator 35 for generating a predetermined control command, and information on the characteristics of the memory card 2 A configuration ROM (Re) which is a second storage means for storing version information and the like.
ad Only Memory) 36 and an oscillator 37 for supplying a clock to each circuit.

【0019】S/P&P/Sシーケンサ31は、上述の
第1乃至第3のデータ線を介して、ホストコンピュータ
1のシリアルI/F15に接続している。従って、S/
P&P/Sシーケンサ31には、ホストコンピュータ1
からステータス信号やシリアルクロックSCLKや画像
データ及び制御データからなるシリアルデータDIOが
供給される。
The S / P & P / S sequencer 31 is connected to the serial I / F 15 of the host computer 1 via the above-mentioned first to third data lines. Therefore, S /
The P & P / S sequencer 31 has a host computer 1
Supplies a status signal, a serial clock SCLK, and serial data DIO including image data and control data.

【0020】そして、S/P&P/Sシーケンサ31
は、ホストコンピュータ1から供給されるシリアルデー
タDIOを上記シリアルクロックSCLKに同期してパ
ラレルデータに変換する。S/P&P/Sシーケンサ3
1は、このパラレルデータの内、例えば制御データをコ
マンド・ジェネレータ35に供給し、画像データをペー
ジバッファ32に供給する。
Then, the S / P & P / S sequencer 31
Converts the serial data DIO supplied from the host computer 1 into parallel data in synchronization with the serial clock SCLK. S / P & P / S sequencer 3
1 supplies, for example, control data of the parallel data to the command generator 35 and supplies image data to the page buffer 32.

【0021】ページバッファ32は、S/P&P/Sシ
ーケンサ31から供給される画像データを1ページ(=
512バイト)毎に記憶するバッファメモリである。ペ
ージバッファ32に記憶された画像データは、ECCエ
ンコーダ/デコーダ34によって誤り訂正符号が付加さ
れる。ページバッファ32は、誤り訂正符号の付けられ
た1ページの画像データを、フラッシュI/Fシーケン
サ33を介して、フラッシュメモリ22a〜22dに供
給する。こうして、フラッシュメモリ22a〜22dに
は、ホストコンピュータ1からの画像データが書き込ま
れるようになっている。
The page buffer 32 stores the image data supplied from the S / P & P / S sequencer 31 in one page (=
(512 bytes). An error correction code is added to the image data stored in the page buffer 32 by the ECC encoder / decoder 34. The page buffer 32 supplies the image data of one page to which the error correction code is added to the flash memories 22a to 22d via the flash I / F sequencer 33. Thus, the image data from the host computer 1 is written in the flash memories 22a to 22d.

【0022】また、フラッシュメモリ22a〜22dか
ら読み出された画像データは、フラッシュI/Fシーケ
ンサ33を介してページバッファ32に供給される。
The image data read from the flash memories 22a to 22d is supplied to a page buffer 32 via a flash I / F sequencer 33.

【0023】ページバッファ32は、フラッシュI/F
シーケンサ33からの画像データを記憶する。このと
き、ECCエンコーダ/デコータ34は、ページバッフ
ァ32に記憶されているデータに付加されている誤り訂
正符号に基づいて誤り訂正処理を施す。そして、ページ
バッファ32は、誤り訂正処理済みのデータを1ページ
毎に読み出して、このデータをS/P&P/Sシーケン
サ31に供給する。そして、S/P&P/Sシーケンサ
31は、ページバッファ32から供給されるパラレルの
画像データをシリアルデータDIOに変換して上述のホ
ストコンピュータ1に送信する。
The page buffer 32 has a flash I / F
The image data from the sequencer 33 is stored. At this time, the ECC encoder / decoder 34 performs an error correction process based on the error correction code added to the data stored in the page buffer 32. Then, the page buffer 32 reads the error-corrected data for each page, and supplies the data to the S / P & P / S sequencer 31. Then, the S / P & P / S sequencer 31 converts the parallel image data supplied from the page buffer 32 into serial data DIO and transmits the serial data DIO to the host computer 1 described above.

【0024】コマンド・ジェネレータ35は、S/P&
P/Sシーケンサ31からの制御データに基づいて制御
コマンドを発生する。例えば、コマンド・ジェネレータ
35は、メモリカード2の動作状態をみるためのリード
・ステータス・レジスタ命令を受けると、誤消去防止ス
イッチ23の設定内容を判断し、その設定内容に応じて
画像データの書込みを行うか否かを判断する。
The command generator 35 has a function of S / P &
A control command is generated based on control data from the P / S sequencer 31. For example, when the command generator 35 receives a read status register command for checking the operation state of the memory card 2, the command generator 35 determines the setting of the erroneous erasure prevention switch 23, and writes the image data according to the setting. Is determined.

【0025】また、コマンド・ジェネレータ35は、フ
ラッシュメモリ22に画像データを書き込んでいたり又
はフラッシュメモリ22から画像データを読み出してい
る状態を示すビジー(busy)・コマンド(以下、ビジー
信号という。)を発生し、これをS/P&P/Sシーケ
ンサ31を介してホストコンピュータ1に送信する。そ
して、コマンド・ジェネレータ35は、画像データの書
込み又は読出しが終了すると、その終了を示すレディ
(ready)・コマンド(以下、レディー信号という。)
を発生して、これをS/P&P/Sシーケンサ31を介
してホストコンピュータ1に送信する。ホストコンピュ
ータ1は、これらのビジー信号やレディ信号を受信する
ことによって、メモリカード2の動作状態を認識してい
る。
The command generator 35 outputs a busy command (hereinafter, referred to as a busy signal) indicating that image data is being written to the flash memory 22 or image data is being read from the flash memory 22. And sends it to the host computer 1 via the S / P & P / S sequencer 31. Then, when the writing or reading of the image data is completed, the command generator 35 indicates a ready command (hereinafter, referred to as a ready signal) indicating the completion.
And sends it to the host computer 1 via the S / P & P / S sequencer 31. The host computer 1 recognizes the operating state of the memory card 2 by receiving these busy signals and ready signals.

【0026】コンフィグレーションROM36には、メ
モリカード2のバージョン情報や初期設定値の情報が記
憶されている。従って、ホストコンピュータ1とメモリ
カード2が接続されると、コマンド・ジェネレータ35
は、最初にS/P&P/Sシーケンサ31を介してコン
フィグレーションROM36から上記バージョン情報等
を読み出して、この情報に基づいて所定のコマンドを発
生することによってメモリカード2の所定の初期設定を
行うようになっている。
The configuration ROM 36 stores version information of the memory card 2 and information of initial setting values. Therefore, when the host computer 1 and the memory card 2 are connected, the command generator 35
First reads the version information and the like from the configuration ROM 36 via the S / P & P / S sequencer 31 and generates a predetermined command based on this information to perform predetermined initialization of the memory card 2. It has become.

【0027】このような構成のホストコンピュータ1及
びメモリカード2において、ホストコンピュータ1の画
像データをメモリカード2に書き込むときは、図5に示
すように、ホストコンピュータ1はステップS1〜ステ
ップS8までの処理を行い、このときメモリカード2は
ステップS11〜ステップS14の処理を行う。
In the host computer 1 and the memory card 2 having such a configuration, when writing the image data of the host computer 1 to the memory card 2, as shown in FIG. 5, the host computer 1 performs steps S1 to S8. At this time, the memory card 2 performs the processing of steps S11 to S14.

【0028】ホストコンピュータ1においてメモリカー
ド2への画像データの書込みが設定されると、CPU1
7は、メモリカード2の状態を確認するための状態読み
出し命令であるリード・ステータス・レジスタ命令を発
行して(ステップS1)、このレジスタ命令をシリアル
I/F15を介してメモリカード2に送信する。なお、
このリードステータス・レジスタ命令の発行は、送信す
べきファイル毎に行っている。
When writing of image data to the memory card 2 is set in the host computer 1, the CPU 1
7 issues a read status register instruction which is a state read instruction for confirming the state of the memory card 2 (step S1), and transmits this register instruction to the memory card 2 via the serial I / F 15. . In addition,
This read status register instruction is issued for each file to be transmitted.

【0029】メモリカード2において、コマンド・ジェ
ネレータ35は、S/P&P/Sシーケンサ31を介し
て上記レジスタ命令を受信すると、誤消去防止スイッチ
23の状態をレジスタにセットして、このレジスタの内
容をS/P&P/Sシーケンサ31を介してホストコン
ピュータ1に送信する(ステップS11)。換言する
と、コマンド・ジェネレータ35は、誤消去防止スイッ
チ23がオン、つまりメモリカード2のライトプロテク
ト(書込み禁止)がオンになっているか否かの状態をレ
ジスタにセットして、このレジスタ内容をホストコンピ
ュータ1に送信する。
In the memory card 2, when the command generator 35 receives the register command via the S / P & P / S sequencer 31, the command generator 35 sets the state of the erroneous erasure prevention switch 23 to the register, and stores the contents of this register. The data is transmitted to the host computer 1 via the S / P & P / S sequencer 31 (step S11). In other words, the command generator 35 sets a state of whether or not the erroneous erasure prevention switch 23 is turned on, that is, whether or not the write protection (write protection) of the memory card 2 is turned on, into a register, and stores the contents of this register in the host. Send to computer 1.

【0030】ホストコンピュータ1において、CPU1
7は、メモリカード2からのレジスタ内容に基づいて、
ライトプロテクトがオンになっているかを判断し(ステ
ップS2)、ライトプロテクトがオンになっているとき
は書込み禁止の処理を行う(ステップS3)。
In the host computer 1, the CPU 1
7 is based on the register content from the memory card 2
It is determined whether or not the write protection is turned on (step S2). If the write protection is turned on, a write prohibition process is performed (step S3).

【0031】CPU17は、ライトプロテクトがオンに
なっていないと判断したときは、ライト・ページ・バッ
ファ命令を発行するとともに、例えばハードディスク1
1から512バイトの画像データを読み出して、これら
のライト・ページ・バッファ命令と画像データをシリア
ルI/F15を介してメモリカード2に送信する(ステ
ップS4)。
When the CPU 17 determines that the write protect is not turned on, it issues a write page buffer instruction and, for example,
The image data of 1 to 512 bytes is read, and the write page buffer command and the image data are transmitted to the memory card 2 via the serial I / F 15 (step S4).

【0032】CPU17は、さらに、セットコマンド命
令を発行して、メモリカード2に上記画像データを書き
込むアドレスを指定して書込み命令を発行する(ステッ
プS5)。CPU17は、これらのコマンド命令をシリ
アルI/F15を介してメモリカード2に送信する。
The CPU 17 further issues a set command instruction, designates an address for writing the image data in the memory card 2, and issues a write instruction (step S5). The CPU 17 transmits these command instructions to the memory card 2 via the serial I / F 15.

【0033】メモリカード2において、コマンド・ジェ
ネレータ35は、S/P&P/Sシーケンサ31を介し
てホストコンピュータ1からのセットコマンド命令を受
信すると、動作中であることを示すビジー(busy)状態
をレジスタにセットして、このレジスタ内容を示すビジ
ー信号をS/P&P/Sシーケンサ31を介してホスト
コンピュータ1に送信する(ステップS12)。なお、
このビジー信号は、レジスタにレディ(ready)状態が
セットされるまで、ホストコンピュータ1に送信され続
ける。
In the memory card 2, when the command generator 35 receives a set command instruction from the host computer 1 via the S / P & P / S sequencer 31, the command generator 35 registers a busy state indicating that it is operating. And sends a busy signal indicating the contents of the register to the host computer 1 via the S / P & P / S sequencer 31 (step S12). In addition,
This busy signal is continuously transmitted to the host computer 1 until a ready state is set in the register.

【0034】そして、コマンド・ジェネレータ35は、
書き込みを実行するコマンドを発行して、上述の指定さ
れたフラッシュメモリ22のアドレスに1ページ分の画
像データを書き込ませる(ステップS13)。コマンド
・ジェネレータ35は、上記1ページ分の画像データの
書込みが終了すると、レジスタにレディ状態をセットし
て、そのレジスタ内容を示すレディ信号をS/P&P/
Sシーケンサ31を介してホストコンピュータ1に送信
する(ステップS14)。
Then, the command generator 35
A command to execute writing is issued, and one page of image data is written to the specified address of the flash memory 22 (step S13). When the writing of the image data for one page is completed, the command generator 35 sets a ready state in the register and sends a ready signal indicating the register contents to the S / P & P /
The data is transmitted to the host computer 1 via the S sequencer 31 (step S14).

【0035】一方、ホストコンピュータ1では、CPU
17は、上述のステップS5でセットコマンドの命令を
発行した後、リード・ステータス・レジスタ命令を発行
して、メモリカード2の状態を確認する(ステップS
6)。そして、CPU17は、メモリカード2からシリ
アルI/F15を介して送信される信号がビジー信号で
あるかを判断し、ビジー信号でないときは再びリード・
ステータス・レジスタ命令を発行する(ステップS
6)。すなわち、メモリカード2からビジー信号が送信
されている間は、ステップS6及びステップS7の処理
が繰り返し行われる。
On the other hand, in the host computer 1, the CPU
17 issues a set command instruction in step S5, issues a read status register instruction, and checks the state of the memory card 2 (step S5).
6). Then, the CPU 17 determines whether or not the signal transmitted from the memory card 2 via the serial I / F 15 is a busy signal.
Issue a status register instruction (step S
6). That is, while the busy signal is being transmitted from the memory card 2, the processes of steps S6 and S7 are repeatedly performed.

【0036】CPU17は、メモリカード2から送信さ
れた信号がビジー信号でないと判断したとき、すなわち
送信された信号がレディ信号であると判断したときは、
メモリカード2に送信すべき続きの画像データがあるか
を判断し、続きの画像データがあるときはステップS4
に進み、続きの画像データがないときは画像データの送
信を終了する(ステップS8)。すなわち、記録対象と
なる画像データのファイルは、ステップS4〜ステップ
S8までの処理及びステップS12〜ステップS14の
処理が繰り返し行われることによって、1ページ毎にメ
モリカード2に書き込まれる。
When the CPU 17 determines that the signal transmitted from the memory card 2 is not a busy signal, ie, determines that the transmitted signal is a ready signal,
It is determined whether or not there is more image data to be transmitted to the memory card 2, and if there is more image data, step S4
When there is no subsequent image data, the transmission of the image data ends (step S8). That is, the file of the image data to be recorded is written to the memory card 2 for each page by repeatedly performing the processes of steps S4 to S8 and the processes of steps S12 to S14.

【0037】以上のように、ファイルを記録する毎に、
メモリカード2のライトプロテクトがオンかオフかを判
断しているので、例えばメモリカード2をホストコンピ
ュータ1に装着しているときに誤消去防止スイッチ23
によるライトプロテクトの設定が変わっても、その設定
内容に応じて画像データの書込み禁止の処理を行った
り、または、画像データの記録を行うことができる。
As described above, every time a file is recorded,
Since it is determined whether the write protection of the memory card 2 is on or off, for example, when the memory card 2 is mounted on the host computer 1, the erroneous erasure prevention switch 23
Even if the setting of the write protection is changed, it is possible to perform the process of prohibiting the writing of the image data or to record the image data according to the setting contents.

【0038】また、誤消去防止スイッチ23は、メモリ
カード2がホストコンピュータ1に装着されているとき
であってもライトプロテクトの設定変更が可能であるた
め、わざわざメモリカード2をホストコンピュータ1か
ら抜き出して誤消去防止スイッチ23の切換を行う必要
がなくなり、利用者の操作性の向上を図ることができ
る。
The erroneous erasure prevention switch 23 allows the write protection setting to be changed even when the memory card 2 is mounted on the host computer 1. Thus, it is not necessary to switch the erroneous erasure prevention switch 23, and the operability of the user can be improved.

【0039】つぎに、メモリカード2に記憶されている
画像データを消去するときの動作について説明する。メ
モリカード2に記憶されている画像データを消去すると
きは、図6に示すように、ホストコンピュータ1はステ
ップS21〜ステップS27までの処理を行い、このと
きメモリカード2はステップS31〜ステップS34の
処理を行う。
Next, the operation when erasing the image data stored in the memory card 2 will be described. When erasing the image data stored in the memory card 2, as shown in FIG. 6, the host computer 1 performs the processing of steps S21 to S27, and at this time, the memory card 2 performs the processing of steps S31 to S34. Perform processing.

【0040】ホストコンピュータ1においてメモリカー
ド2に記憶されている画像データの消去が設定される
と、CPU17は、メモリカード2の状態を確認するた
めのリード・ステータス・レジスタ命令を発行して(ス
テップS21)、このレジスタ命令をシリアルI/F1
5を介してメモリカード2に送信する。なお、このリー
ド・ステータス・レジスタ命令の発行は、送信すべきフ
ァイル毎に行っている。
When erasure of image data stored in the memory card 2 is set in the host computer 1, the CPU 17 issues a read status register command for confirming the state of the memory card 2 (step). S21), this register instruction is transferred to the serial I / F1
5 to the memory card 2. This read status register instruction is issued for each file to be transmitted.

【0041】メモリカード2において、コマンド・ジェ
ネレータ35は、上記レジスタ命令を受信すると、誤消
去防止スイッチ23の状態をレジスタにセットして、こ
のレジスタの内容をS/P&P/Sシーケンサ31を介
してホストコンピュータ1に送信する(ステップS3
1)。換言すると、コマンド・ジェネレータ35は、メ
モリカード2のライトプロテクトがオンになっているか
否かの状態をレジスタにセットして、このレジスタ内容
をホストコンピュータ1に送信する。
In the memory card 2, when the command generator 35 receives the register command, the command generator 35 sets the state of the erroneous erasure prevention switch 23 in the register, and stores the contents of this register via the S / P & P / S sequencer 31. Transmit to the host computer 1 (step S3
1). In other words, the command generator 35 sets a state as to whether or not the write protection of the memory card 2 is turned on in a register, and transmits the contents of the register to the host computer 1.

【0042】ホストコンピュータ1において、CPU1
7は、メモリカード2からのレジスタ内容に基づいて、
ライトプロテクトがオンになっているかを判断し(ステ
ップS22)、ライトプロテクトがオンになっていると
きは消去禁止の処理を行う(ステップS23)。
In the host computer 1, the CPU 1
7 is based on the register content from the memory card 2
It is determined whether or not the write protection is turned on (step S22). If the write protection is turned on, erasure prohibition processing is performed (step S23).

【0043】そして、CPU17は、セットコマンド命
令を発行して、消去の対象となる画像データのアドレス
を指定して消去命令を発行する(ステップS24)。C
PU17は、これらのコマンド命令をシリアルI/F1
5を介してメモリカード2に送信する。
Then, the CPU 17 issues a set command instruction, designates an address of image data to be erased, and issues an erase instruction (step S24). C
PU 17 transmits these command instructions to serial I / F 1
5 to the memory card 2.

【0044】一方、メモリカード2においては、コマン
ド・ジェネレータ35は、ホストコンピュータ1から上
述のセットコマンド命令を受信すると、ビジー信号をS
/P&P/Sシーケンサ31を介してホストコンピュー
タ1に送信する(ステップS32)。
On the other hand, in the memory card 2, when the command generator 35 receives the above-mentioned set command command from the host computer 1, it issues a busy signal to the S
The data is transmitted to the host computer 1 via the / P & P / S sequencer 31 (step S32).

【0045】そして、コマンド・ジェネレータ35は、
指定されたアドレスの画像データを消去するためのコマ
ンドを発行して、フラッシュメモリ22に記憶されてる
指定された画像データを消去させる(ステップS3
3)。なお、フラッシュメモリ22では、1ページ(5
12バイト)の画像データ及び18バイトの管理情報を
1組とするものが所定数からなるブロック毎に、画像デ
ータが消去される。
Then, the command generator 35
A command for erasing the image data at the designated address is issued to erase the designated image data stored in the flash memory 22 (step S3).
3). In the flash memory 22, one page (5
The image data is erased for each predetermined number of blocks each of which is a set of image data of 12 bytes) and management information of 18 bytes.

【0046】コマンド・ジェネレータ35は、上記画像
データの消去が終了すると、レジスタにレディ状態をセ
ットして、そのレジスタ内容を示すレディ信号をS/P
&P/Sシーケンサ31を介してホストコンピュータ1
に送信する(ステップS34)。
When the erasing of the image data is completed, the command generator 35 sets a ready state in the register and sends a ready signal indicating the contents of the register to the S / P.
Host computer 1 via & P / S sequencer 31
(Step S34).

【0047】一方、ホストコンピュータ1では、CPU
17は、上述のステップS24でセットコマンドの命令
を発行した後、リード・ステータス・レジスタ命令を発
行して、メモリカード2の状態を確認する(ステップS
25)。そして、CPU17は、メモリカード2からシ
リアルI/F15を介して送信される信号がビジー信号
であるかを判断し、ビジー信号でないときは再びリード
・ステータス・レジスタ命令を発行する(ステップS2
6)。従って、メモリカード2からビジー信号が送信さ
れている間は、ステップS25及びステップS26の処
理が繰り返し行われる。
On the other hand, in the host computer 1, the CPU
17 issues a set command instruction in step S24, issues a read status register instruction, and checks the state of the memory card 2 (step S24).
25). Then, the CPU 17 determines whether the signal transmitted from the memory card 2 via the serial I / F 15 is a busy signal, and if not, issues a read status register command again (step S2).
6). Therefore, while the busy signal is being transmitted from the memory card 2, the processes of steps S25 and S26 are repeatedly performed.

【0048】CPU17は、メモリカード2から送信さ
れた信号がビジー信号でないと判断したとき、すなわち
送信された信号がレディ信号であると判断したときは、
メモリカード2に消去すべき画像データがあるかを判断
し、消去すべき続きの画像データがあるときはステップ
S24に進み、消去すべき続きの画像データがないとき
は画像データの消去を終了する(ステップS27)。す
なわち、消去の対象となる画像データのファイルは、上
述のステップS24〜ステップS27及びステップS3
2〜ステップS34の処理が繰り返し行われることによ
って、上述のブロック毎に消去される。
When the CPU 17 determines that the signal transmitted from the memory card 2 is not a busy signal, ie, determines that the transmitted signal is a ready signal,
It is determined whether or not there is image data to be erased in the memory card 2. If there is continuous image data to be erased, the process proceeds to step S <b> 24. (Step S27). That is, the file of the image data to be deleted is stored in steps S24 to S27 and step S3 described above.
2 to step S34 are repeatedly performed, so that each block is erased.

【0049】以上のように、ファイルを消去する毎に、
メモリカード2のライトプロテクトがオンかオフかを判
断することで、例えばメモリカード2をホストコンピュ
ータ1に装着しているときに誤消去防止スイッチ23に
よるライトプロテクトの設定が変わっても、その設定内
容に応じて画像データの消去禁止の処理を行うことがで
きる。
As described above, every time a file is deleted,
By judging whether the write protection of the memory card 2 is on or off, even if the setting of the write protection by the erroneous erasure prevention switch 23 is changed when the memory card 2 is mounted on the host computer 1, for example, the setting contents are changed. The processing of prohibiting the erasure of the image data can be performed according to.

【0050】なお、本発明は、上述の実施の形態に限定
されるものではなく、特許請求の範囲に記載された技術
的思想の範囲内において、種々の設計上の変更が可能で
あるのは言うまでもない。
It should be noted that the present invention is not limited to the above-described embodiment, and that various design changes can be made within the scope of the technical idea described in the claims. Needless to say.

【0051】例えば、誤消去防止スイッチ23は、上述
したように、板状部材24の長手方向の一端側であって
装着方向の反対側にあり、かつ、上記長手方向に直交す
る方向にスライド自在であればよい。従って、例えば図
7及び図8に示すように、板状部材24の主面に設けて
もよい。このとき、図7に示すように、誤消去防止スイ
ッチ23が装着方向に対して左側に位置しているとき
は、ライトプロテクトをオフに設定することができる。
また、図8に示すように、誤消去防止スイッチ23が装
着方向に対して右側に位置しているときは、空隙部26
が形成される。このとき、ライトプロテクトをオンに設
定することができる。従って、利用者は、メモリカード
2のみを例えば衣服のポケット等にいれておいても、上
記空隙部26の有無を触覚で判断することができ、ライ
トプロテクトされているかを容易に判断することができ
る。
For example, as described above, the erroneous erasure prevention switch 23 is slidable in one direction in the longitudinal direction of the plate member 24 and on the opposite side to the mounting direction and in a direction orthogonal to the longitudinal direction. Should be fine. Therefore, for example, as shown in FIGS. 7 and 8, it may be provided on the main surface of the plate member 24. At this time, as shown in FIG. 7, when the erroneous erasure prevention switch 23 is located on the left side with respect to the mounting direction, the write protection can be set to off.
As shown in FIG. 8, when the erroneous erasure prevention switch 23 is located on the right side with respect to the mounting direction, the gap 26
Is formed. At this time, the write protection can be set to ON. Therefore, even if the user puts only the memory card 2 in, for example, a pocket of clothes, the user can determine the presence or absence of the gap 26 by tactile sensation, and easily determine whether or not the memory card 2 is write-protected. it can.

【0052】[0052]

【発明の効果】以上詳細に説明したように、本発明に係
るメモリカードによれば、メモリカードが電子機器に接
続されたときに、第2の記憶手段に記憶されたデータを
用いてメモリカードの初期設定を行うようにしているの
で、特性の異なる様々な種類のメモリカードを識別し
て、メモリカードをその特性に合わせて使用することが
できる。
As described above in detail, according to the memory card of the present invention, when the memory card is connected to the electronic device, the memory card is used by using the data stored in the second storage means. Since the initial setting is made, various types of memory cards having different characteristics can be identified, and the memory card can be used according to the characteristics.

【0053】また、上記初期設定を行った後に、電子機
器から送信される状態読み出し命令に応じて、第1の記
憶手段へのデータの書き込みを禁止する設定を行うスイ
ッチの設定状態を電子機器に送信するようにすること
で、スイッチの設定状態に応じてデータの書込み禁止の
処理を行ったり、または、データの記録を行ったりする
ことができる。
After performing the initial setting, the electronic device changes the setting state of a switch for setting to prohibit the writing of data to the first storage means in response to a state read command transmitted from the electronic device. By transmitting the data, it is possible to perform data write-inhibition processing or record data according to the setting state of the switch.

【0054】また、上記スイッチを、メモリカードが電
子機器に装着されているときであっても切換自在とする
ことで、スイッチを切り換えるときにメモリカードを電
子機器から抜き出す必要がなくなり、利用者の操作性の
向上を図ることができる。
Further, by making the switch freely switchable even when the memory card is attached to the electronic device, it is not necessary to remove the memory card from the electronic device when switching the switch. Operability can be improved.

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

【図1】本発明を適用したホストコンピュータの構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a host computer to which the present invention has been applied.

【図2】本発明を適用したメモリカードの構成を示すブ
ロック図である。
FIG. 2 is a block diagram showing a configuration of a memory card to which the present invention is applied.

【図3】上記メモリカードの外観斜視図である。FIG. 3 is an external perspective view of the memory card.

【図4】上記メモリカードの外観斜視図である。FIG. 4 is an external perspective view of the memory card.

【図5】ホストコンピュータとメモリカードの動作を説
明するフローチャートである。
FIG. 5 is a flowchart illustrating operations of a host computer and a memory card.

【図6】ホストコンピュータとメモリカードの動作を説
明するフローチャートである。
FIG. 6 is a flowchart illustrating operations of a host computer and a memory card.

【図7】上記メモリカードの他の外観斜視図である。FIG. 7 is another external perspective view of the memory card.

【図8】上記メモリカードの他の外観斜視図である。FIG. 8 is another perspective view of the external appearance of the memory card.

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

1 ホストコンピュータ、 2 メモリカード、 21
コントロールIC、22 フラッシュメモリ、 23
誤消去防止スイッチ、 31 S/P&P/Sシーケ
ンサ、 32 ページバッファ、 33 フラッシュI
/Fシーケンサ、 34 ECCエンコーダ/デコー
ダ、 35 コマンド・ジェネレータ、36 コンフィ
グレーションROM、 37 発振器
1 host computer, 2 memory card, 21
Control IC, 22 Flash memory, 23
Erroneous erase prevention switch, 31 S / P & P / S sequencer, 32 page buffer, 33 flash I
/ F sequencer, 34 ECC encoder / decoder, 35 command generator, 36 configuration ROM, 37 oscillator

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 電子機器から送信されるデータを記憶す
るメモリカードにおいて、 上記電子機器から送信されるデータを記憶する第1の記
憶手段と、 上記メモリカードの特性に関するデータを記憶する第2
の記憶手段と、 上記電子機器から送信されるデータから所定の命令を生
成し実行する制御手段とを備え、 上記制御手段は、上記メモリカードが上記電子機器に接
続されたとき、第2の記憶手段に記憶されたデータを用
いて、上記メモリカードの初期設定を行うことを特徴と
するメモリカード。
1. A memory card for storing data transmitted from an electronic device, a first storage means for storing data transmitted from the electronic device, and a second memory for storing data relating to characteristics of the memory card.
Storage means, and control means for generating and executing a predetermined command from data transmitted from the electronic device, wherein the control means stores a second command when the memory card is connected to the electronic device. A memory card, wherein initial setting of the memory card is performed using data stored in the means.
【請求項2】 上記第2の記憶手段には、上記メモリカ
ードのバージョン情報が記憶されていることを特徴とす
る請求項1記載のメモリカード。
2. The memory card according to claim 1, wherein said second storage means stores version information of said memory card.
【請求項3】 上記メモリカードは更に、上記第1の記
憶手段へのデータの書き込みを禁止する設定を行うスイ
ッチを備え、 上記制御手段は、上記初期設定を行った後に、上記電子
機器から送信される状態読み出し命令に応じて、上記ス
イッチの設定状態を上記電子機器に送信することを特徴
とする請求項1記載のメモリカード。
3. The memory card further includes a switch for setting to prohibit writing of data to the first storage means, and the control means transmits the data from the electronic device after performing the initial setting. 2. The memory card according to claim 1, wherein a setting state of the switch is transmitted to the electronic device in response to the state reading command issued.
JP11060378A 1999-03-08 1999-03-08 Memory card Pending JPH11317068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11060378A JPH11317068A (en) 1999-03-08 1999-03-08 Memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11060378A JPH11317068A (en) 1999-03-08 1999-03-08 Memory card

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP9146913A Division JPH10340575A (en) 1997-06-04 1997-06-04 External memory device, its controller and data transmission/reception device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2001315812A Division JP2002183700A (en) 2001-10-12 2001-10-12 Memory card, control device, data processing system and data processing method

Publications (1)

Publication Number Publication Date
JPH11317068A true JPH11317068A (en) 1999-11-16

Family

ID=13140430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11060378A Pending JPH11317068A (en) 1999-03-08 1999-03-08 Memory card

Country Status (1)

Country Link
JP (1) JPH11317068A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7500025B2 (en) 2004-03-25 2009-03-03 Kabushiki Kaisha Toshiba Electronic apparatus and method of controlling a memory unit connected to the same
US8291164B2 (en) 2006-09-20 2012-10-16 Sony Computer Entertainment Inc. Adapter apparatus coupled to a memory card and data transmission system including the adapter apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7500025B2 (en) 2004-03-25 2009-03-03 Kabushiki Kaisha Toshiba Electronic apparatus and method of controlling a memory unit connected to the same
US8028102B2 (en) 2004-03-25 2011-09-27 Kabushiki Kaisha Toshiba Electronic apparatus and method of controlling a memory unit connected to the same
US8291164B2 (en) 2006-09-20 2012-10-16 Sony Computer Entertainment Inc. Adapter apparatus coupled to a memory card and data transmission system including the adapter apparatus

Similar Documents

Publication Publication Date Title
JPH10340575A (en) External memory device, its controller and data transmission/reception device
JP3104646B2 (en) External storage device
JP3718578B2 (en) Memory management method and memory management device
US7360715B2 (en) External storage apparatus and control apparatus thereof, and data transmission/reception apparatus
JP2005327296A (en) Method and apparatus to erase hidden memory in memory card
JP3175648B2 (en) Storage device and data writing method
JP2003132305A (en) Device and method for controlling memory card
JP3016490B2 (en) IC memory card
JP2004213574A (en) Data storage
US9575885B2 (en) Data storage apparatus for scrambled data and management method thereof
TW532009B (en) Memory device and memory access limiting method
US20090198747A1 (en) Memory Card Reader Device for Recovering Memory Card
JP2003196613A (en) Device and method for controlling memory card
JPH11317068A (en) Memory card
JP2000218044A (en) Portable electronic game equipment
JP4337873B2 (en) Memory card, control device therefor, and data transmission / reception system
JP2002183700A (en) Memory card, control device, data processing system and data processing method
JP4438692B2 (en) Memory card, control device and data processing system
JP2000099676A (en) Memory card and data transmitting and receiving device
TW202213071A (en) Vga card assembly, control device thereof, and image output method performed thereby
KR200296225Y1 (en) Copydevice equipping SD player
JP2002024788A5 (en)
JP2006350703A (en) Storage device
KR20050078027A (en) Portable data storage device for performing data backup function
JP2004326733A (en) Data storage

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010814