JP2004054904A - Memory card, system, semiconductor processor, and non-volatile memory - Google Patents

Memory card, system, semiconductor processor, and non-volatile memory Download PDF

Info

Publication number
JP2004054904A
JP2004054904A JP2003140066A JP2003140066A JP2004054904A JP 2004054904 A JP2004054904 A JP 2004054904A JP 2003140066 A JP2003140066 A JP 2003140066A JP 2003140066 A JP2003140066 A JP 2003140066A JP 2004054904 A JP2004054904 A JP 2004054904A
Authority
JP
Japan
Prior art keywords
command
memory
nonvolatile memory
information
erasing
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
JP2003140066A
Other languages
Japanese (ja)
Inventor
Narisuke Hirozawa
廣澤 成祐
Sakaki Kanamori
金森 賢樹
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.)
Hitachi Ltd
Hitachi Solutions Technology Ltd
Original Assignee
Hitachi Ltd
Hitachi ULSI Systems Co Ltd
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 Hitachi Ltd, Hitachi ULSI Systems Co Ltd filed Critical Hitachi Ltd
Priority to JP2003140066A priority Critical patent/JP2004054904A/en
Publication of JP2004054904A publication Critical patent/JP2004054904A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a memory card which simplifies erase processing to shorten the entire processing time and is prevented from being illegally accessed after being discarded, and also to provide a system using the memory card. <P>SOLUTION: The system comprises a flash memory card and a host unit which is electrically connected to the flash memory and controls operation of the flash memory card, and the system has a purge command for executing the operation of erasing all information in a data area and a management information area in the flash memory besides an erase command for executing the operation of erasing information in the data area in the flash memory. When the purge command is issued from the host unit to the flash memory card once, information in all the areas in the flash memory is erased, and it is unnecessary to issue the purge command a plurality of times like the erase command. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、メモリカード、不揮発性メモリ装置等の半導体処理装置に関し、特にフラッシュメモリ(フラッシュEEPROM)などのようなメモリを搭載したフラッシュメモリカード、およびそれを用いたシステムに適用して有効な技術に関する。
【0002】
【従来の技術】
本発明者が検討したところによれば、フラッシュメモリカードに関しては、以下のような技術が考えられる。
【0003】
たとえば、フラッシュメモリカードは、データを記憶するデータ領域を持つフラッシュメモリ、このフラッシュメモリ内のデータ領域に対する書き込み、読み出しおよび消去動作を制御するコントローラなどからなり、これらのフラッシュメモリやコントローラなどが実装基板上に搭載され、ケースなどに収納されて構成されている。
【0004】
このように構成されるフラッシュメモリカードにおいて、たとえば本発明者が検討した一例としてのデータ消去処理では、外部のホスト機器などからコマンドを1回発行することで、最大で256セクタを指定してフラッシュメモリのデータを消去することができる技術がある。この技術では、1回のコマンド発行において、最大で256セクタの指定しかできず、フラッシュメモリの全データ領域の消去には、容量に応じて複数回の消去コマンドをホスト機器が発行している。
【0005】
【発明が解決しようとする課題】
ところで、前記のようなフラッシュメモリカードについて、本発明者が検討した結果、以下のようなことが明らかとなった。
【0006】
たとえば、前記のように、フラッシュメモリカードの全データ領域の消去には、最大で全データセクタ÷256回の消去コマンドをホスト機器が発行する必要がある。このため、ホスト機器による多数の消去コマンド発行、および処理回数増加のオーバーヘッドにより、全データ消去処理完了までの時間がかかってしまうという問題がある。
【0007】
また、このようなフラッシュメモリカードなどの記憶媒体では、データ領域の消去のみでは情報を完全に消去したことにはならず、この消去後に廃棄したフラッシュメモリカードを入手した者により格納されている情報を不正にアクセスされることも問題となっており、この対策が求められている。
【0008】
そこで、本発明者は、フラッシュメモリカードを廃棄することを前提とし、さらに消去処理の単純化および処理時間を短くすることを考慮に入れて、不正なアクセスを防止するために、データ領域に記憶されるデータを管理する管理情報も消去する必要があることを見出し、このデータ領域と管理情報領域との全ての情報を消去する方法を考え付いた。
【0009】
また、本発明者は、ICカード用の1チップマイコンをパッケージ内に搭載したフラッシュメモリカードについてさらに検討を行った。かかるフラシュメモリカードは、金融決済などに用いられるICカード用の1チップマイコンをフラッシュメモリカードに搭載することで、たとえば携帯電話などの携帯機器に、このフラッシュメモリカードを搭載し、電源供給停止後においても記憶し続けることが必要なデータをフラッシュメモリに記憶し、また搭載したICカード用の1チップマイコンを用いて携帯機器により金融決済などを行うようにするものである。
【0010】
このようなフラッシュメモリカードでは、ICカード用1チップマイコンに搭載されているEEPROMなどの不揮発性メモリに、金融決済情報やホストとの通信に用いられる暗号鍵などの情報が記憶されている。また、フラッシュメモリにこれらの情報を記憶することもある。このようなフラッシュメモリカードが廃棄される場合、廃棄したフラッシュメモリカードを入手した者によりこれらの金融決済情報に不正にアクセスされた場合、個人情報の漏洩や経済的被害を被ることになる。
【0011】
また、これらの情報は容易にアクセスをされないように、通常のデータ領域ではなく、アクセス制限領域に格納されるのが通常である。
【0012】
そこで、本発明は、かかるフラッシュメモリカードについても、フラッシュメモリおよびICカード用マイコンチップに搭載されているEEPROMへの不正なアクセスを防止し、フラッシュメモリカードの信頼性を向上するために、データ領域だけでなく、アクセス制限領域およびアクセス制限領域に記憶されるデータを管理する管理情報も消去する必要があることを見出し、データ領域とアクセス制限領域およびそれらの管理情報領域との全ての情報を消去する方法を考え付いた。
【0013】
そこで、本発明の目的は、データ領域と管理情報領域との全ての情報を消去するコマンドを新規に設け、消去処理を単純化し、全体の処理時間を短くすることができるメモリカード、およびそれを用いたシステムを提供することにある。
【0014】
また、本発明の他の目的は、メモリカードを廃棄した後の不正なアクセスを防止することができるメモリカード、およびそれを用いたシステムを提供することにある。
【0015】
また、本発明の他の目的は、ICカードの金融決済などの機能を有する不揮発性メモリカードにおいて、メモリカードを廃棄した後の金融決済情報などへの不正なアクセスを防止することができるメモリカード、およびそれを用いたシステムを提供することにある。
【0016】
本発明の前記ならびにその他の目的と新規な特徴は、本明細書の記述および添付図面から明らかになるであろう。
【0017】
【課題を解決するための手段】
本願において開示される発明のうち、代表的なものの概要を簡単に説明すれば、次のとおりである。
【0018】
本発明は、データを記憶するデータ領域、このデータ領域に記憶されるデータを管理する情報を記憶する管理情報領域を持つメモリと、外部から供給されるコマンドによりメモリ内の各領域に対する動作を制御するコントローラなどを有するメモリカードに適用され、以下のような特徴を有するものである。
【0019】
(1)コマンドとして、メモリ内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させるコマンドを有するものである。さらに、コントローラは、コマンドが1回入力されることにより、メモリ内のデータ領域と管理情報領域とを所定のブロック単位で消去する動作を繰り返して実行する機能を有し、特にフラッシュメモリなどに適用するようにしたものである。これにより、外部からの1回のコマンドの入力により、フラッシュメモリなどのようなメモリの全領域を消去することができるため、消去処理を単純化し、全体の処理時間を短くすることができるようになる。
【0020】
(2)コマンドとして、通常状態から消去処理実行前状態に移行する動作を実行させる第1コマンドと、消去処理実行前状態から消去処理実行状態に移行し、メモリ内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させる第2コマンドとを有するものである。さらに、コントローラは、第1コマンドに続けて第2コマンドが入力されることにより、メモリ内のデータ領域と管理情報領域とを所定のブロック単位で消去する動作を繰り返して実行する機能を有し、特にフラッシュメモリなどに適用するようにしたものである。これにより、外部から第1コマンドに続けて第2コマンドが入力された場合にのみ、フラッシュメモリなどのようなメモリの全領域を消去することができるため、消去処理を簡単に実行されないようにすることができるようになる。
【0021】
また、本発明は、前記メモリカードと、このメモリカードにコマンドを供給してメモリカードの動作を制御するホスト機器などを有するシステムに適用され、以下のような特徴を有するものである。
【0022】
(3)コマンドとして、メモリ内のデータ領域の情報を消去する動作を実行させる第3コマンドと、メモリ内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させる第4コマンドとを有するものである。さらに、第4コマンドは、通常状態から消去処理実行前状態に移行する動作を実行させる第1コマンドと、消去処理実行前状態から消去処理実行状態に移行し、メモリ内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させる第2コマンドとを有し、特にフラッシュメモリなどに適用するようにしたものである。これにより、ホスト機器からの1回の第4コマンドの入力により、前記(1)と同様の処理を実行させることができ、また第1コマンドに続けて第2コマンドを入力することにより、前記(2)と同様の処理を実行させることができ、この結果、メモリカードを廃棄する場合(再使用不可)に対応することができるようになる。なお、メモリカードを廃棄することなく、再び使用する場合には、第3コマンドを入力してメモリのデータ領域の情報のみを消去することで対応することができるようになる。
【0023】
また、本発明は、ICカードの金融決済などを行う機能を前記メモリカードに有し、データを記憶するデータ領域、このデータ領域に記憶されるデータを管理する情報を記憶する管理情報領域、金融決済情報などを記憶し、メモリカードの通常のアクセスにおいてはアクセスが制限されるアクセス制限領域、およびこのアクセス制限領域に記憶されるデータを管理する情報を記憶する管理情報領域を持つメモリと、外部から供給されるコマンドによりメモリ内の各領域に対する動作を制御するコントローラなどを有し、このコントローラと同じ半導体基板上、または別の半導体基板上にICカードの金融決済を行うマイコン機能を有し、このマイコン機能に対する動作制御も当該コントローラが行うメモリカードに適用され、以下のような特徴を有するものである。
【0024】
(4)コマンドとして、通常状態から消去処理実行前状態に移行する動作を実行させる第1コマンドと、メモリ内のデータ領域とデータ領域に記憶されるデータを管理する管理領域に記憶されている情報を消去する動作を実行する第5コマンドと、メモリ内のアクセス制限領域とアクセス制限領域に記憶されるデータを管理する管理領域、およびマイコン機能と同じ半導体基板上に形成されるEEPROMなどの不揮発性メモリのデータ領域に記憶されている情報を消去する動作を実行する第6コマンドとを有するものである。さらに、コントローラは、第1コマンドに続けて第5コマンドが入力されることにより、メモリ内のデータ領域とデータ領域についての管理情報領域とを所定のブロック単位で消去する動作を繰り返して実行する機能を有し、第1コマンドまたは第1コマンドに続く第5コマンドに続けて第6コマンドが入力されることにより、メモリ内のアクセス制限領域とアクセス制限領域についての管理情報領域、およびEEPROMなどの不揮発性メモリのデータ領域とを所定のブロック単位で消去する動作を繰り返して実行する機能を有するものである。これにより、外部から第1コマンドに続けて第5コマンドが入力された場合に、メモリ内の全データ領域を消去することが可能となり、第1コマンドに続けてまたは第1コマンドに続く第5コマンドに続けて第6コマンドが入力された場合に、アクセス制限領域やEEPROMなどの不揮発性メモリのデータ領域に記憶された金融決済情報などを消去することが可能となり、メモリカード機能と金融決済機能のいずれか一方の機能のみを使用できないようにし、または両方の機能を使用できないようにすることができるようになる。
【0025】
また、本発明は、前記メモリカードと、このメモリカードにコマンドを供給してメモリカードの動作を制御するホスト機器などを有するシステムに適用され、以下のような特徴を有するものである。
【0026】
(5)コマンドとして、メモリ内のデータ領域とデータ領域についての管理情報領域とに記憶されている情報を消去する動作を実行させる第5コマンドと、メモリ内のアクセス制限領域とアクセス制限領域についての管理情報領域、およびEEPROMなどの不揮発性メモリのデータ領域に記憶されている情報を消去する動作を実行させる第6コマンドとを有するものである。これにより、ホスト機器から第1コマンドに続いて第5コマンドまたは第6コマンドのいずれか一方の入力により、メモリカード機能と金融決済機能のいずれか一方の機能のみを使用できないようにし、両方のコマンドの入力により、両方の機能を使用できないようにすることができる。この結果、ホスト機器において金融決済機能の不正なアクセスを検知した場合、金融決済機能のみを使用できなくし、不正なアクセスの再発または拡大を防止することができるようになる。また、複数のアプリケーションに応じた金融決済情報を有する場合、特定のアプリケーションに応じた金融決済情報を消去することで、この特定のアプリケーションの誤使用を防止することができるようになる。
【0027】
【発明の実施の形態】
以下、本発明の実施の形態を図面に基づいて詳細に説明する。
【0028】
図1により、本発明の一実施の形態のメモリカードを用いたシステムの構成の一例を説明する。図1は本実施の形態のメモリカードを用いたシステムの構成図を示す。
【0029】
本実施の形態のシステムは、たとえばメモリカードの一例としてのフラッシュメモリカードを用いたシステムとされ、フラッシュメモリカード1と、このフラッシュメモリカード1に電気的に接続され、フラッシュメモリカード1にコマンドを供給して、このフラッシュメモリカード1の動作を制御するホスト機器2などから構成される。
【0030】
フラッシュメモリカード1は、各種情報を記憶するフラッシュメモリ11と、このフラッシュメモリ11に対する動作を制御するコントローラ12などから構成される。特に、このフラッシュメモリカード1には、ホスト機器2から、フラッシュメモリ11内のデータ領域の情報を消去する動作を実行させるコマンド(消去コマンドと呼ぶ)の他に、フラッシュメモリ11内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させるコマンド(パージコマンドと呼ぶ)が発行されるようになっている。
【0031】
コントローラ12には、カード全体の演算処理を司るCPU21と、ホスト機器2と接続する信号およびホスト機器2がアクセスするレジスタを制御する機能や、ECC生成およびエラー検出/訂正の制御機能や、データバッファ、レジスタなどから構成されるユーザ論理22と、ホスト機器2とのインタフェースを司るホストインタフェース23と、フラッシュメモリ11とのインタフェースを司るフラッシュインタフェース24などが備えられている。
【0032】
次に、図2および図3により、本実施の形態のシステムにおいて、フラッシュメモリカード内のフラッシュメモリの構成の一例を説明する。図2はフラッシュメモリカード内のフラッシュメモリの構成図、図3はフラッシュメモリ内の管理情報領域の構成図をそれぞれ示す。
【0033】
フラッシュメモリ11には、たとえば図2に示すように、データを記憶するデータ領域31、およびこのデータ領域31に記憶されるデータを管理する情報を記憶する管理情報領域32が備えられている。これに限定されるものではないが、たとえば一例として、256MビットのAND型メモリセルアレイ構成においては、1ワード線当たり、データ領域31には2080バイト、管理情報領域32には32バイトが割り当てられ、データ領域31の2080バイトは4セクタ分に相当する。この1セクタ分には、512バイトのデータと8バイトのECCコードが記憶されるようになっている。
【0034】
さらに、フラッシュメモリ11には、データ領域31およびこの管理情報領域32の他に、データ領域31内の不良ビットを代替するためのデータ代替領域33、およびこのデータ代替領域33の情報を管理する管理情報領域34や、不良ビットの展開を登録するための不良・展開登録ブロック領域35、およびこの不良・展開登録ブロック領域35の情報を管理する管理情報領域36などが備えられている。
【0035】
データ領域31の管理情報領域32には、たとえば図3に示すように、データの良/不良の判定情報、セクタのアドレス情報や、プレイレーズが可能か否かの判別情報などが記憶されるようになっている。これに限定されるものではないが、たとえば一例として、プレイレーズの判別情報が“00h”の場合は対応するセクタにデータが記憶されて使用状態であることを表し、このセクタを消去する場合は“FFh”を書き込むことによって消去された状態であることを判別することができる。
【0036】
次に、図4により、本実施の形態のシステムにおいて、消去コマンドとパージコマンドとの比較による処理フローの一例を説明する。図4は消去コマンドとパージコマンドとの比較による処理フローの説明図を示す。
【0037】
消去コマンドによる処理の場合は、ホスト機器2からフラッシュメモリカード1に対して消去コマンドが発行される。これを受けて、フラッシュメモリカード1においては、コントローラ12がフラッシュメモリ11に対して、たとえば一例としてAll“FFh”データを転送し、さらにライトコマンドを発行する。これにより、フラッシュメモリ11においては、ライト処理が行われる。
【0038】
フラッシュメモリ11においてライト処理を行う場合、フラッシュメモリ11内部で所定のブロック単位で消去動作が行われた後、書き込むべきデータ“FFh”がメモリセルに書き込まれる。この場合、フラッシュメモリの消去動作後のしきい値電圧が示すデータが“FFh”であるため、書き込むべきデータとして“FFh”をフラッシュメモリに転送されるのであり、消去動作後のしきい値電圧が示すデータと同じデータを書き込みデータとしてフラッシュメモリに転送すればよい。
【0039】
また、フラッシュメモリ11において所定のブロック単位にデータの消去を行う消去コマンドを有する場合、“FFh”データを転送した上でのライトコマンド発行に替えて、消去コマンドを発行するようにしても良い。この場合は消去コマンドを発行する前に当該ブロックの情報を読み出し、消去コマンド発行後、管理情報などの書き戻しを行う。
【0040】
この消去コマンドによる処理の場合は、所定のブロック単位で処理を繰り返し、該当ブロックの処理が終了したら、次のブロックの処理を順に行うために、前記と同様にして、ホスト機器2からフラッシュメモリカード1に対して消去コマンドが繰り返し発行され、そしてコントローラ12がフラッシュメモリ11に対して、All“FFh”データを転送し、さらにライトコマンドを発行することにより、フラッシュメモリ11のライト処理がブロック単位で順次実行される。
【0041】
パージコマンドによる処理の場合は、ホスト機器2からフラッシュメモリカード1に対してパージコマンドが1回だけ発行される。これを受けて、フラッシュメモリカード1においては、コントローラ12がフラッシュメモリ11に対して、消去コマンドを発行する。この際に、コントローラ12は、所定のブロック単位で処理を繰り返し、該当ブロックの処理が終了したら、次のブロックの処理を順に行うために、前記と同様にして、消去コマンドを繰り返して発行する。これにより、フラッシュメモリ11においては、ホスト機器2からの1回のパージコマンドの発行によって、コントローラ12とフラッシュメモリ11との間で消去コマンドが繰り返し発行されることにより、フラッシュメモリ11のライト処理がブロック単位で順次実行される。
【0042】
以上のように、消去コマンドによる処理とパージコマンドによる処理とを比較した場合に、消去コマンドによる処理ではホスト機器2からフラッシュメモリカード1に対して消去コマンドが繰り返して発行されるのに対して、パージコマンドによる処理ではホスト機器2からフラッシュメモリカード1に対して1回のパージコマンドの発行で処理が可能となる。
【0043】
次に、図5により、消去コマンドによる処理フローの一例を詳細に説明する。図5は消去コマンドによる処理のフロー図を示す。
【0044】
まず、消去コマンドの発行により処理が開始されると、ライト中か否かを判定し(ステップS11)、ライト中でない場合(NO)は管理情報領域32の該当ブロックの管理情報(データの良/不良判定情報、セクタのアドレス情報など)をリードする(ステップS12)。一方、ライト中の場合(YES)は、終了するのを待って、該当ブロックの管理情報をリードする。その後、管理情報領域32のプレイレーズ判別ビットをチェックする(ステップS13)。
【0045】
さらに、チェックの結果、該当ブロックのデータが使用状態ではなく、プレイレーズが可能であれば、フラッシュメモリ11の消去対象セクタにAll“FFh”データを転送し(ステップS14)、管理情報を転送する(ステップS15)。その後、フラッシュメモリ11にライトコマンドを発行する(ステップS16)。これにより、フラッシュメモリ11の消去対象セクタに対するライト処理が行われる。
【0046】
続けて、次のセクタがあるか否かを判定し(ステップS17)、次のセクタがある場合(YES)にはステップS11からの処理を繰り返し、次のセクタがない場合(NO)には終了となる。
【0047】
以上のような消去コマンドによる処理では、ライト処理によってフラッシュメモリ11内のデータ領域31の情報のみが消去されるので、再びフラッシュメモリカード1として使用することができる。
【0048】
次に、図6により、パージコマンドによる処理フローの一例を詳細に説明する。図6はパージコマンドによる処理のフロー図を示す。
【0049】
まず、パージコマンドの発行により処理が開始されると、消去中か否かを判定し(ステップS21)、消去中でない場合は管理情報領域32の該当ブロックの管理情報をリードする(ステップS22)。一方、消去中の場合は、終了するのを待って、該当ブロックの管理情報をリードする。その後、フラッシュメモリ11に消去コマンドを発行する(ステップS23)。これにより、フラッシュメモリ11の消去対象セクタに対する消去処理が行われる。
【0050】
続けて、次のセクタがあるか否かを判定し(ステップS24)、次のセクタがある場合(YES)にはステップS21からの処理を繰り返し、次のセクタがない場合(NO)には終了となる。
【0051】
以上のようなパージコマンドによる処理では、消去処理によってフラッシュメモリ11内のデータ領域31と管理情報領域32との全ての情報が消去されるので、再びフラッシュメモリカード1として使用することができなくなる。
【0052】
次に、図7および図8により、パージコマンドの仕様を詳細に説明する。図7はパージコマンドによる状態遷移の説明図、図8(a),(b)はパージコマンドの説明図をそれぞれ示す。
【0053】
パージコマンドは通常のコマンドと異なり、コマンド処理が簡単に実行されないように、通常状態から消去処理実行前状態に移行する動作を実行させるパージコマンドの実行設定コマンドと、消去処理実行前状態から消去処理実行状態に移行する動作を実行させるパージコマンドの実行コマンドとを有し、以下の手順を行わなければ実行されないようになっている。ここでのコマンドコード、パラメータ(レジスタSC,SN,CL,CH,DH)は一例であり、これに限定されるものではない。
【0054】
(1)レジスタCL、レジスタCHに任意の値(ここでは例として“00h”、“13h”)を設定し、パージコマンドの実行設定コマンド(ここでは例としてコマンドコード“81h”)を発行して、パージコマンドの実行設定を行い、コマンド実行前状態にする。このパージコマンドの実行設定コマンドの発行により、通常状態からコマンド実行前状態に移行する。
【0055】
(2)直後に、前記(1)に続けて、レジスタCL、レジスタCHに任意の値(ここでは例として“13h”、“00h”)を設定し、パージコマンドの実行コマンド(ここでは例としてコマンドコード“82h”)を発行して、パージコマンドを実行する。このパージコマンドの実行コマンドの発行により、コマンド実行状態に移行し、フラッシュメモリ11内の全ての情報を消去するパージコマンドの実行が可能となる。しかし、この際に上記パージコマンドの実行コマンド以外のコマンドが発行された場合には、通常状態に移行し、その後パージコマンドの実行コマンドが発行されたとしてもパージコマンドは実行されない。
【0056】
そして、コマンド実行状態において、パージコマンドの実行が終了すると、通常状態に移行する。
【0057】
従って、本実施の形態によれば、ホスト機器2からフラッシュメモリカード1に対して、1回のコマンド発行によりフラッシュメモリ11の全ての領域を消去する処理を行うパージコマンドを新規に設けることにより、消去コマンドのように複数回発行することがなく、1回のパージコマンドの発行により自動的にフラッシュメモリ11の全ての領域を消去することができる。この結果、パージコマンドによる処理は、消去コマンドと比較して単純化でき、コマンド全体の処理時間を短縮することができる。
【0058】
さらに、パージコマンドは、このパージコマンドの実行設定コマンドを発行し、続けてパージコマンドの実行コマンドを発行しなければコマンド実行状態に移行しないので、通常のコマンドと異なり、コマンド処理を簡単に実行できないようになっている。
【0059】
また、消去コマンドでは、コマンド発行後、再度、フラッシュメモリカード1を使用することが可能であるが、パージコマンドでは、コマンド実行後に再度、フラッシュメモリカード1として使用することをできなくする破壊コマンドとして動作するため、フラッシュメモリカード1を廃棄した後の不正なアクセスを防止することができる。
【0060】
図9および図10により、本発明の他の実施の形態のメモリカードを用いたシステムの構成の一例を説明する。このメモリカードは、メモリカード機能として、前記図1〜図8に示した機能に加え、金融決済機能を有するものである。メモリカード機能については、前記図1〜図8に示した機能と同じであるため説明は省略する。
【0061】
図9に示す本実施の形態のメモリカードを用いたシステムは、たとえばメモリカードの一例としてのフラッシュメモリカードを用いたシステムとされ、フラッシュメモリカード100と、このフラッシュメモリカード100に電気的に接続され、フラッシュメモリカード100にコマンドを供給して、このフラッシュメモリカード100の動作を制御するホスト機器2などから構成される。
【0062】
このフラッシュメモリカード100は、各種情報を記憶するフラッシュメモリ101と、このフラッシュメモリ101に対する動作を制御する制御部であるコントローラ102、および金融決済処理を行うICカードマイコン103などから構成される。このICカードマイコン103はホスト機器2との間でのデータ通信のための暗号処理部を含んでいる。特に、このフラッシュメモリ101とICカードマイコン103に搭載されるEEPROM126には、ホスト機器2から、フラッシュメモリ101内のアクセス制限領域とアクセス制限領域についての管理情報領域やEEPROM126とに記憶される金融決済情報などを全て消去する動作を実行させるコマンド(パージコマンドと呼ぶ)が発行されるようになっている。
【0063】
コントローラ102には、カード全体の演算処理を司るCPU121と、ICカードマイコン103とのインタフェースを司るICカードインタフェース125と、前記図1のユーザ論理22の機能に加えてホスト機器2からのコマンドが金融決済に関するものである場合にICカードマイコン103の制御機能を有するユーザ論理122と、ホストインタフェース123と、フラッシュインタフェース124などが備えられている。
【0064】
図10に示す本実施の形態のメモリカードを用いたシステムは、たとえばメモリカードの一例としてのフラッシュメモリカードを用いたシステムとされ、フラッシュメモリカード200と、このフラッシュメモリカード200に電気的に接続され、フラッシュメモリカード200にコマンドを供給して、このフラッシュメモリカード200の動作を制御するホスト機器2などから構成される。
【0065】
図10のフラッシュメモリカード200は、前記図9のフラッシュメモリカード100においてコントローラ102とICカードマイコン103とを別の半導体基板上に形成したものを、同じ半導体基板上に形成したコントローラ202と各種情報を記憶するフラッシュメモリ201などから構成されるものである。
【0066】
前記図9のコントローラ102においては、ICカードマイコン103はICカードインタフェース125を介してユーザ論理122と接続されているが、図10のコントローラ202においては、ICカードマイコン225はCPU221と接続されている。前記図9においては、ICカードインタフェース125を有することからユーザ論理122に接続しているのであり、図10においても、ICカードマイコン225をユーザ論理222に接続してもよく、逆に前記図9において、CPU121とICカードインタフェース125とを接続してもよい。
【0067】
次に、図11および図12により、パージコマンドの仕様を詳細に説明する。図11はパージコマンドによる処理のタイミングチャート、図12はパージコマンドによる状態遷移の説明図をそれぞれ示す。
【0068】
パージコマンドは通常のコマンドと異なり、コマンド処理が簡単に実行されないように、通常状態から消去処理実行前状態に移行する動作を実行させるパージコマンドの実行設定コマンドと、コマンド実行を認めるか否かを判定させる認証コマンドと、消去処理実行前状態から消去処理実行状態に移行させるパージコマンドの実行コマンドとを有しており、以下の手順を行わなければ実行されないようになっている。ここでのコマンドコード、パラメータは一例であり、これに限定されないことは言うまでもない。
【0069】
(1)実行設定コマンドの発行については、パージコマンドの例と同じでよい。
【0070】
(2)直後に、前記(1)に続けて、レジスタCL、レジスタCHに、たとえば暗証番号などの正当なアクセスであることを認証するための情報を設定し、認証コマンドを発行して認証を行う。ここで、認証に失敗した場合には、通常状態に移行し、その後パージコマンドの実行コマンドが発行されたとしてもパージコマンドは実行されない。特に限定されるものではないが、また認証に成功したか失敗したかにかかわらず、同じ応答をホスト機器2に対して発行してもよい。そうすることにより、暗証番号などの認証情報を不正に入手するための不正アクセスであったとしても、認証に成功したとしてもその事実をこの認証コマンドで走ることができず、フラッシュメモリカードの信頼性向上に資することができる。
【0071】
(3)認証に成功した直後に、前記(2)に続けて、レジスタCL、レジスタCHに任意の値を設定し、パージコマンドの実行コマンドを発行して、パージコマンドを実行する。
【0072】
しかし、この際に上記パージコマンドの実行コマンド以外のコマンドが発行された場合には、通常状態に移行し、その後パージコマンドの実行コマンドが発行されたとしてもパージコマンドは実行されない。
【0073】
そして、コマンド実行状態において、パージコマンドの実行が終了すると、通常状態に移行する。
【0074】
図13以降に、パージコマンドの具体的な動作を説明する。前記図9のシステムを元に説明するが、前記図10のシステムであっても特に変わるところがないことは言うまでもない。また、図13以降の各例はパージコマンドの実行コマンド発行の際、レジスタCL、レジスタCHに設定する値の違いにより判別するようにしてもよく、コマンドコードが異なるようにしてもよい。
【0075】
図13は、パージコマンドの実行により、ICカードマイコン103に搭載されるEEPROM126に記憶されている情報の全て、または一部を消去する例である。
【0076】
CPU121は、ホスト機器2からパージコマンドの実行設定コマンドを受け付けた後、ホスト機器2が発行する認証コマンドにより正当なアクセスであるか否かを判定する(1)。正当なアクセスであることが認証された場合、ホスト機器2がパージコマンドの実行コマンドに応じてEEPROM126に記憶されている情報の全てを消去する(2)。消去動作については、ICカードマイコンに含まれるCPUやコントローラに対し、順次消去動作を行うように制御し、またはCPU121が直接EEPROM126に対して消去動作制御を行うことにより行う。
【0077】
EEPROM126に記憶されている金融決済情報や暗号鍵などの情報の全てを消去することにより、フラッシュメモリカードの金融決済機能を再び使用することができなくなる。また、EEPROM126に複数のアプリケーションに応じた情報が記憶されている場合、たとえば異なる金融機関の金融決済機能を1のフラッシュメモリカード100に有している場合に、そのうちの一部の金融機関との契約を解除した場合など、当該アプリケーションに関する金融決済機能のみを再び使用することができなくなる。
【0078】
図14は、パージコマンドの実行により、ICカードマイコン103に搭載されるEEPROM126に記憶されている情報の一部または全てと、フラッシュメモリ101に記憶されている情報の一部または全てを消去する例である。
【0079】
EEPROM126に記憶されている全ての情報、およびフラッシュメモリ101に記憶されている全ての情報を消去することにより(2,3)、フラッシュメモリカードのメモリカード機能および金融決済機能の両方を再び使用することができなくなる。
【0080】
また、EEPROM126に複数のアプリケーションに応じた情報が記憶されており、フラッシュメモリ101にもそれぞれのアプリケーションに応じて付加的な情報が記憶されている場合、EEPROM126に記憶されている情報の全てと、フラッシュメモリ101に記憶されている付加的な情報の全てを消去することにより、フラッシュメモリカードの金融決済機能を再び使用することができなくなる。
【0081】
さらに、EEPROM126から一部のアプリケーションに応じた情報と、フラッシュメモリ101からこの一部のアプリケーションに応じた付加的な情報を消去することにより、当該アプリケーションに関する金融決済機能のみを再び使用することができなくなる。
【0082】
図15は、パージコマンドの実行により、フラッシュメモリ101に記憶されている情報の全てまたは一部を消去する例である。なお、図中の▲1▼〜▲5▼は、後述する図16の各ステップS31〜S35にそれぞれ対応する。
【0083】
フラッシュメモリ101もしくはEEPROM126にICカードマイコンの属性情報、たとえば転送方式や転送レートなどの情報を記憶するように構成してもよい。ICカードマイコンの金融決済機能を使用する場合、ICカードマイコンはホスト機器2との間でかかる属性情報を用いて通信を行う。パージコマンドの実行により、かかる情報を消去することで、ホスト機器2はICカードマイコンを認識することができなくなり、フラッシュメモリカードの金融決済機能を再び使用することができなくなる。
【0084】
図16は、ICカードマイコンのリセット処理例である。
【0085】
ステップS31で、ICカードマイコンはフラッシュメモリ101またはEEPROM126に格納されているICカードマイコンの属性情報を取得し、ステップS32でICカードマイコンの初期化動作を行う。ステップS33で、ステップS31で取得した属性情報に基づいて転送の周波数設定などを行う。ステップS34において、ICカードマイコンが正常に動作しているかどうかを判定し、正常動作をしている場合にはコマンド待ち状態となる。
【0086】
ICカードマイコンの属性情報が消去されている場合、ステップS33において周波数設定などを行うことができないため、ステップS34において、ICカードマイコンは正常の動作をしているとは判定されず、ステップS35において、ICカードマイコンは不活性化され、外部のホスト機器2はICカードマイコンからのレスポンスがないなどにより、ICカードマイコンを認識することができなくなる。
【0087】
また、ステップS31での属性情報の取得と、ステップS32のICカードマイコンの初期化動作は、順番が逆であってもよい。
【0088】
以上、本発明者によってなされた発明をその実施の形態に基づき具体的に説明したが、本発明は前記実施の形態に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。
【0089】
たとえば、前記実施の形態においては、メモリとしてフラッシュメモリを例に説明したが、EEPROMなどの不揮発性メモリなどにも適用することが可能である。
【0090】
また、本発明は、前記のようにフラッシュメモリカードに適用して効果的であるが、さらにフラッシュメモリ、不揮発性メモリなどを搭載したメモリモジュール、メモリ装置などの装置全般に広く応用することができる。
【0091】
【発明の効果】
本願において開示される発明のうち、代表的なものによって得られる効果を簡単に説明すれば、以下のとおりである。
【0092】
(1)メモリ内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させるコマンドを有することで、消去コマンドのように複数回発行することがなく、1回のコマンド発行によりメモリの全領域を消去することができるので、消去処理を単純化し、全体の処理時間を短くすることが可能となる。
【0093】
(2)通常状態から消去処理実行前状態に移行する動作を実行させる第1コマンドと、消去処理実行前状態から消去処理実行状態に移行し、メモリ内のデータ領域と管理情報領域との全ての情報を消去する動作を実行させる第2コマンドとを有することで、第1コマンドに続けて第2コマンドが入力された場合にのみ、メモリの全領域を消去することができるため、消去処理を簡単に実行されないようにすることが可能となる。
【0094】
(3)コマンド実行後にメモリの全領域を消去することで、再度、メモリカードとして使用することができなくなるので、このメモリカードを廃棄した後の不正なアクセスを防止することが可能となる。
【0095】
(4)ICカードマイコンなどの金融決済機能を有するフラッシュメモリカードにおいて、ICカードマイコンに搭載されるEEPROMやフラッシュメモリに格納される金融決済情報の全てまたは一部を消去することで、このメモリカードの金融決済機能の全てもしくは特定のアプリケーションにかかる金融決済機能を使用することができなくなるので、このメモリカードを廃棄した後の不正アクセスの防止が可能となり、または当該特定アプリケーションの誤使用の防止が可能となる。
【0096】
(5)ホスト機器は、パージコマンドをユーザからの指示により発行するだけでなく、不正アクセスを意図していると思われる操作、たとえば誤った暗証番号などの認証情報の入力が繰り返されているなどの場合に、パージコマンドを発行するようにしてもよい。パージコマンドの発行により、当該フラッシュメモリカードの金融決済機能を使用することができなくなり、不正アクセスの継続や拡大を防止することが可能となる。また、このような不正アクセスを意図していると思われる操作が繰り返されている場合、ホスト機器からの指示だけでなく、フラッシュメモリカードのコントローラがそれを検出し、内部的にパージコマンドを発行するようにしてもよい。
【図面の簡単な説明】
【図1】本発明の一実施の形態のメモリカードを用いたシステムを示す構成図である。
【図2】本発明の一実施の形態のシステムにおいて、フラッシュメモリカード内のフラッシュメモリを示す構成図である。
【図3】本発明の一実施の形態のシステムにおいて、フラッシュメモリ内の管理情報領域を示す構成図である。
【図4】本発明の一実施の形態のシステムにおいて、消去コマンドとパージコマンドとの比較による処理フローを示す説明図である。
【図5】本発明の一実施の形態のシステムにおいて、消去コマンドによる処理を示すフロー図である。
【図6】本発明の一実施の形態のシステムにおいて、パージコマンドによる処理を示すフロー図である。
【図7】本発明の一実施の形態のシステムにおいて、パージコマンドによる状態遷移を示す説明図である。
【図8】(a),(b)は本発明の一実施の形態のシステムにおいて、パージコマンドを示す説明図である。
【図9】本発明の他の実施の形態のメモリカードを用いたシステムを示す構成図である。
【図10】本発明の他の実施の形態のメモリカードを用いたシステムを示す構成図である。
【図11】本発明の他の実施の形態のシステムにおいて、パージコマンドによる処理を示すタイミングチャートである。
【図12】本発明の他の実施の形態のシステムにおいて、パージコマンドによる状態遷移を示す説明図である。
【図13】本発明の他の実施の形態のシステムにおいて、パージコマンドの実行により、ICカードマイコンに搭載されるEEPROMの情報を消去する例を示す説明図である。
【図14】本発明の他の実施の形態のシステムにおいて、パージコマンドの実行により、ICカードマイコンに搭載されるEEPROMの情報と、フラッシュメモリの情報を消去する例を示す説明図である。
【図15】本発明の他の実施の形態のシステムにおいて、パージコマンドの実行により、フラッシュメモリの情報を消去する例を示す説明図である。
【図16】本発明の他の実施の形態のシステムにおいて、ICカードマイコンのリセット処理例を示すフロー図である。
【符号の説明】
1,100,200 フラッシュメモリカード
2 ホスト機器
11,101,201 フラッシュメモリ
12,102,202 コントローラ
21,121,221 CPU
22,122,222 ユーザ論理
23,123,223 ホストインタフェース
24,124,224 フラッシュインタフェース
31 データ領域
32 管理情報領域
33 データ代替領域
34 管理情報領域
35 不良・展開登録ブロック領域
36 管理情報領域
103,225 ICカードマイコン
125 ICカードインタフェース
126,226 EEPROM
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a semiconductor processing device such as a memory card and a nonvolatile memory device, and more particularly to a technology effective when applied to a flash memory card equipped with a memory such as a flash memory (flash EEPROM) and a system using the same. About.
[0002]
[Prior art]
According to the studies made by the present inventors, the following technologies can be considered for flash memory cards.
[0003]
For example, a flash memory card includes a flash memory having a data area for storing data, a controller for controlling writing, reading, and erasing operations on the data area in the flash memory. The flash memory and the controller are mounted on a mounting board. It is mounted on the top and stored in a case or the like.
[0004]
In the flash memory card configured as described above, for example, in a data erasing process as an example examined by the present inventors, a command is issued once from an external host device or the like, and a maximum of 256 sectors are designated and flashed. There is a technology that can erase data in a memory. In this technique, a maximum of 256 sectors can be designated in a single command issuance, and the host device issues a plurality of erase commands in accordance with the capacity to erase the entire data area of the flash memory.
[0005]
[Problems to be solved by the invention]
By the way, as a result of the present inventor's study on the above-mentioned flash memory card, the following has been clarified.
[0006]
For example, as described above, in order to erase the entire data area of the flash memory card, the host device needs to issue an erase command for all data sectors at most 256 times. For this reason, there is a problem that it takes a long time to complete the entire data erasing process due to the issuance of a large number of erasing commands by the host device and the overhead of increasing the number of processes.
[0007]
Further, in such a storage medium such as a flash memory card, erasing the data area alone does not mean that the information has been completely erased. It has also become a problem that unauthorized access is available, and this measure is required.
[0008]
Therefore, the inventor assumed that the flash memory card should be discarded, and furthermore, taking into account simplification of the erasing process and shortening of the processing time, the flash memory card was stored in the data area in order to prevent unauthorized access. It has been found that the management information for managing the data to be deleted also needs to be erased, and a method for erasing all the information in the data area and the management information area has been devised.
[0009]
Further, the present inventors have further studied a flash memory card in which a one-chip microcomputer for an IC card is mounted in a package. Such a flash memory card has a one-chip microcomputer for an IC card used for financial settlement or the like mounted on a flash memory card, so that the flash memory card is mounted on a portable device such as a mobile phone, for example. In this method, data that need to be stored is stored in a flash memory, and financial settlement or the like is performed by a portable device using a mounted one-chip microcomputer for an IC card.
[0010]
In such a flash memory card, information such as financial settlement information and an encryption key used for communication with a host is stored in a nonvolatile memory such as an EEPROM mounted on a one-chip microcomputer for an IC card. Such information may be stored in a flash memory. If such a flash memory card is discarded, or if the financial settlement information is illegally accessed by a person who has obtained the discarded flash memory card, personal information is leaked or economic damage is caused.
[0011]
Such information is usually stored in an access-restricted area instead of a normal data area so that the information is not easily accessed.
[0012]
Accordingly, the present invention also provides a flash memory card with a data area for preventing unauthorized access to the flash memory and the EEPROM mounted on the microcomputer chip for the IC card and improving the reliability of the flash memory card. Not only that, it is necessary to delete the access control area and the management information for managing the data stored in the access control area, and all information in the data area, the access control area, and the management information area is deleted. I figured out how to do it.
[0013]
Therefore, an object of the present invention is to provide a new command for erasing all information in the data area and the management information area, to simplify the erasing process, and to shorten the entire processing time, and to provide a memory card. It is to provide a used system.
[0014]
Another object of the present invention is to provide a memory card capable of preventing unauthorized access after discarding the memory card, and a system using the same.
[0015]
Another object of the present invention is to provide a non-volatile memory card having a function such as financial settlement of an IC card, which can prevent unauthorized access to financial settlement information and the like after discarding the memory card. , And a system using the same.
[0016]
The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.
[0017]
[Means for Solving the Problems]
The following is a brief description of an outline of typical inventions disclosed in the present application.
[0018]
According to the present invention, a data area for storing data, a memory having a management information area for storing information for managing data stored in the data area, and an operation for each area in the memory controlled by an externally supplied command The present invention is applied to a memory card having a controller and the like, and has the following features.
[0019]
(1) The command has a command for executing an operation of erasing all information in the data area and the management information area in the memory. Further, the controller has a function of repeatedly executing an operation of erasing a data area and a management information area in a memory in a predetermined block unit when a command is input once, and is particularly applied to a flash memory or the like. It is intended to be. Thus, the entire area of a memory such as a flash memory can be erased by one command input from the outside, so that the erasing process can be simplified and the overall processing time can be shortened. Become.
[0020]
(2) As a command, a first command for executing an operation of shifting from a normal state to a state before execution of erasure processing, and a command for shifting from a state before execution of erasure processing to an execution state of erasure processing, a data area and a management information area in a memory. And a second command for executing an operation of erasing all information. Further, the controller has a function of repeatedly executing an operation of erasing the data area and the management information area in the memory in a predetermined block unit when the second command is input following the first command, Particularly, the present invention is applied to a flash memory or the like. Thus, the entire area of a memory such as a flash memory can be erased only when the second command is input following the first command from the outside, so that the erasing process is not easily executed. Will be able to do it.
[0021]
In addition, the present invention is applied to a system including the memory card and a host device that supplies a command to the memory card and controls the operation of the memory card, and has the following features.
[0022]
(3) As commands, a third command for executing an operation of erasing information in the data area in the memory, and a fourth command for executing an operation of erasing all information in the data area and the management information area in the memory. It has. Further, the fourth command is a first command for executing an operation of shifting from a normal state to a state before execution of erasing processing, and a fourth command is for shifting from the state before execution of erasing processing to the state of execution of erasing processing. And a second command for executing an operation of erasing all information, and is particularly applied to a flash memory or the like. Thereby, the same processing as in the above (1) can be executed by one input of the fourth command from the host device, and by inputting the second command following the first command, the above ( The same processing as in 2) can be executed, and as a result, it is possible to cope with a case where the memory card is discarded (reuse is impossible). When the memory card is used again without being discarded, it can be handled by inputting the third command and erasing only the information in the data area of the memory.
[0023]
Further, the present invention provides a data area for storing data, a management information area for storing information for managing data stored in the data area, a function for performing a financial settlement or the like of an IC card in the memory card, A memory that stores payment information and the like and has an access-restricted area in which access is restricted in normal access of the memory card, and a management information area that stores information for managing data stored in the access-restricted area; Has a controller that controls the operation of each area in the memory by a command supplied from the same, has a microcomputer function of performing financial settlement of the IC card on the same semiconductor substrate as this controller, or on another semiconductor substrate, The operation control for the microcomputer function is also applied to the memory card performed by the controller, and the following features are provided. And it has a.
[0024]
(4) As a command, a first command for executing an operation of shifting from a normal state to a state before execution of erasure processing, and information stored in a data area in the memory and a management area for managing data stored in the data area. Command for executing the operation of erasing the memory, an access restriction area in the memory, a management area for managing data stored in the access restriction area, and a non-volatile memory such as an EEPROM formed on the same semiconductor substrate as the microcomputer function. And a sixth command for executing an operation of erasing information stored in the data area of the memory. Further, the controller repeatedly executes the operation of erasing the data area in the memory and the management information area of the data area in predetermined block units by inputting the fifth command following the first command. When the sixth command is input following the first command or the fifth command following the first command, an access-restricted area in the memory, a management information area for the access-restricted area, and a non-volatile memory such as an EEPROM. It has a function of repeatedly executing the operation of erasing the data area of the volatile memory in predetermined block units. Accordingly, when a fifth command is input following the first command from the outside, it is possible to erase the entire data area in the memory, and the fifth command following the first command or following the first command can be erased. When the sixth command is input following the above, it is possible to erase the financial settlement information and the like stored in the access restricted area and the data area of the non-volatile memory such as the EEPROM. Only one of the functions can be disabled, or both functions can be disabled.
[0025]
In addition, the present invention is applied to a system including the memory card and a host device that supplies a command to the memory card and controls the operation of the memory card, and has the following features.
[0026]
(5) As a command, a fifth command for executing an operation of erasing information stored in the data area in the memory and the management information area for the data area, and an access restriction area and an access restriction area in the memory. A management information area and a sixth command for executing an operation of erasing information stored in a data area of a nonvolatile memory such as an EEPROM. Thereby, by inputting either the fifth command or the sixth command following the first command from the host device, only one of the functions of the memory card function and the financial settlement function cannot be used. By inputting, both functions can be disabled. As a result, when an unauthorized access of the financial settlement function is detected in the host device, only the financial settlement function cannot be used, and the recurrence or expansion of the unauthorized access can be prevented. Further, when financial settlement information corresponding to a plurality of applications is provided, by erasing financial settlement information corresponding to a specific application, it is possible to prevent erroneous use of the specific application.
[0027]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0028]
With reference to FIG. 1, an example of the configuration of a system using a memory card according to an embodiment of the present invention will be described. FIG. 1 shows a configuration diagram of a system using the memory card of the present embodiment.
[0029]
The system according to the present embodiment is, for example, a system using a flash memory card as an example of a memory card. The flash memory card 1 is electrically connected to the flash memory card 1, and commands are transmitted to the flash memory card 1. It comprises a host device 2 which supplies and controls the operation of the flash memory card 1.
[0030]
The flash memory card 1 includes a flash memory 11 for storing various information, a controller 12 for controlling the operation of the flash memory 11, and the like. In particular, the flash memory card 1 includes, in addition to a command (called an erase command) for executing an operation for erasing information in the data area in the flash memory 11 from the host device 2, a data area in the flash memory 11. A command (called a purge command) for executing an operation of erasing all information in the management information area is issued.
[0031]
The controller 12 includes a CPU 21 which performs arithmetic processing of the entire card, a function of controlling signals connected to the host device 2 and a register accessed by the host device 2, a control function of ECC generation and error detection / correction, a data buffer, and the like. , A user interface 22 for controlling an interface with the host device 2, a flash interface 24 for controlling an interface with the flash memory 11, and the like.
[0032]
Next, an example of a configuration of a flash memory in a flash memory card in the system according to the present embodiment will be described with reference to FIGS. FIG. 2 is a configuration diagram of a flash memory in the flash memory card, and FIG. 3 is a configuration diagram of a management information area in the flash memory.
[0033]
The flash memory 11 includes, for example, as shown in FIG. 2, a data area 31 for storing data and a management information area 32 for storing information for managing data stored in the data area 31. Although not limited to this, for example, in a 256 Mbit AND type memory cell array configuration, 2080 bytes are allocated to the data area 31 and 32 bytes are allocated to the management information area 32 per word line. 2080 bytes of the data area 31 correspond to four sectors. One sector stores 512-byte data and an 8-byte ECC code.
[0034]
Furthermore, in the flash memory 11, in addition to the data area 31 and the management information area 32, a data replacement area 33 for replacing a defective bit in the data area 31, and a management for managing information of the data replacement area 33 An information area 34, a failure / development registration block area 35 for registering the development of a defective bit, a management information area 36 for managing information of the failure / development registration block area 35, and the like are provided.
[0035]
In the management information area 32 of the data area 31, for example, as shown in FIG. 3, good / bad data determination information, sector address information, play determination information whether play-raise is possible, and the like are stored. It has become. The present invention is not limited to this. For example, when the play-raise determination information is “00h”, it indicates that data is stored in the corresponding sector and is in use, and when this sector is to be erased, By writing “FFh”, it can be determined that the state is the erased state.
[0036]
Next, an example of a processing flow based on a comparison between an erase command and a purge command in the system of the present embodiment will be described with reference to FIG. FIG. 4 is an explanatory diagram of a processing flow based on a comparison between an erase command and a purge command.
[0037]
In the case of processing using an erase command, an erase command is issued from the host device 2 to the flash memory card 1. In response to this, in the flash memory card 1, the controller 12 transfers, for example, All “FFh” data to the flash memory 11, for example, and further issues a write command. Thus, the write processing is performed in the flash memory 11.
[0038]
When performing a write process in the flash memory 11, after an erasing operation is performed in a predetermined block unit in the flash memory 11, data “FFh” to be written is written to the memory cell. In this case, since the data indicated by the threshold voltage after the erase operation of the flash memory is “FFh”, “FFh” is transferred to the flash memory as the data to be written, and the threshold voltage after the erase operation is May be transferred as write data to the flash memory.
[0039]
When the flash memory 11 has an erase command for erasing data in a predetermined block unit, an erase command may be issued instead of issuing a write command after transferring “FFh” data. In this case, the information of the block is read before issuing the erase command, and after issuing the erase command, writing back of the management information and the like is performed.
[0040]
In the case of the processing by the erase command, the processing is repeated in a predetermined block unit, and when the processing of the corresponding block is completed, the processing of the next block is sequentially performed. 1 is repeatedly issued, and the controller 12 transfers All “FFh” data to the flash memory 11 and further issues a write command, so that the write processing of the flash memory 11 is performed in block units. Executed sequentially.
[0041]
In the case of processing using a purge command, a purge command is issued from the host device 2 to the flash memory card 1 only once. In response to this, in the flash memory card 1, the controller 12 issues an erase command to the flash memory 11. At this time, the controller 12 repeats the processing in a predetermined block unit, and when the processing of the corresponding block ends, repeatedly issues an erase command in the same manner as described above in order to sequentially perform the processing of the next block. As a result, in the flash memory 11, the erase process is repeatedly issued between the controller 12 and the flash memory 11 by issuing the purge command from the host device 2 once, so that the write processing of the flash memory 11 is performed. It is executed sequentially in block units.
[0042]
As described above, when the processing by the erase command is compared with the processing by the purge command, the processing by the erase command repeatedly issues the erase command from the host device 2 to the flash memory card 1. In the processing by the purge command, the processing can be performed by issuing the purge command from the host device 2 to the flash memory card 1 once.
[0043]
Next, an example of a processing flow according to the erase command will be described in detail with reference to FIG. FIG. 5 shows a flowchart of processing by an erase command.
[0044]
First, when the process is started by issuing an erase command, it is determined whether or not the data is being written (step S11). Read defect determination information, sector address information, etc. (step S12). On the other hand, if the data is being written (YES), the management information of the corresponding block is read after the completion of the writing. Thereafter, the play-raise determination bit in the management information area 32 is checked (step S13).
[0045]
Further, as a result of the check, if the data of the corresponding block is not in the use state and the play-raise is possible, All “FFh” data is transferred to the erase target sector of the flash memory 11 (step S14), and the management information is transferred. (Step S15). Thereafter, a write command is issued to the flash memory 11 (step S16). As a result, write processing is performed on the erase target sector of the flash memory 11.
[0046]
Subsequently, it is determined whether or not there is a next sector (step S17). If there is a next sector (YES), the processing from step S11 is repeated, and if there is no next sector (NO), the process ends. It becomes.
[0047]
In the processing using the erase command as described above, since only the information in the data area 31 in the flash memory 11 is erased by the write processing, the flash memory card 1 can be used again.
[0048]
Next, an example of a processing flow according to the purge command will be described in detail with reference to FIG. FIG. 6 shows a flowchart of the processing by the purge command.
[0049]
First, when the process is started by issuing a purge command, it is determined whether or not erasing is being performed (step S21). If not, the management information of the corresponding block in the management information area 32 is read (step S22). On the other hand, when erasing is in progress, the management information of the corresponding block is read after completion. After that, an erase command is issued to the flash memory 11 (step S23). As a result, the erasing process for the erasing target sector of the flash memory 11 is performed.
[0050]
Subsequently, it is determined whether or not there is a next sector (step S24). If there is a next sector (YES), the processing from step S21 is repeated, and if there is no next sector (NO), the process ends. It becomes.
[0051]
In the processing using the purge command as described above, since all information in the data area 31 and the management information area 32 in the flash memory 11 is erased by the erasing processing, the flash memory card 1 cannot be used again.
[0052]
Next, the specifications of the purge command will be described in detail with reference to FIGS. FIG. 7 is an explanatory diagram of a state transition by a purge command, and FIGS. 8A and 8B are explanatory diagrams of a purge command.
[0053]
A purge command is different from a normal command, and is a purge command execution setting command for executing an operation for shifting from a normal state to a state before execution of erasing processing, and an erasing processing from a state before execution of erasing processing so that command processing is not easily executed. An execution command of a purge command for executing an operation for shifting to an execution state is provided, and is not executed unless the following procedure is performed. The command codes and parameters (registers SC, SN, CL, CH, DH) here are merely examples, and the present invention is not limited to these.
[0054]
(1) An arbitrary value (here, “00h”, “13h”, for example) is set in the register CL and the register CH, and a purge command execution setting command (here, command code “81h”, for example) is issued. Then, the execution setting of the purge command is performed, and the state before the command execution is set. When the execution setting command of the purge command is issued, the state shifts from the normal state to the state before the command is executed.
[0055]
(2) Immediately after the above (1), arbitrary values (here, “13h” and “00h”, for example) are set in the register CL and the register CH, and a purge command execution command (here, as an example) Command code “82h”) is issued to execute the purge command. By issuing the purge command execution command, the state shifts to the command execution state, and the purge command for erasing all information in the flash memory 11 can be executed. However, at this time, if a command other than the purge command execution command is issued, the state shifts to the normal state, and the purge command is not executed even if the purge command execution command is issued thereafter.
[0056]
Then, when the execution of the purge command is completed in the command execution state, the state shifts to the normal state.
[0057]
Therefore, according to the present embodiment, a new purge command is provided from the host device 2 to the flash memory card 1 for performing a process of erasing all areas of the flash memory 11 by issuing a single command. The entire area of the flash memory 11 can be automatically erased by issuing the purge command once without issuing the purge command a plurality of times unlike the erase command. As a result, the processing by the purge command can be simplified as compared with the erase command, and the processing time of the entire command can be reduced.
[0058]
Further, since the purge command issues a purge command execution setting command and does not transition to the command execution state unless a purge command execution command is subsequently issued, command processing cannot be easily executed unlike a normal command. It has become.
[0059]
The erase command allows the flash memory card 1 to be used again after the command issuance, whereas the purge command is used as a destruction command that disables the flash memory card 1 from being used again after the command is executed. Since the flash memory card 1 operates, unauthorized access after discarding the flash memory card 1 can be prevented.
[0060]
An example of the configuration of a system using a memory card according to another embodiment of the present invention will be described with reference to FIGS. This memory card has a financial settlement function in addition to the functions shown in FIGS. 1 to 8 as a memory card function. The memory card function is the same as the function shown in FIGS.
[0061]
The system using the memory card according to the present embodiment shown in FIG. 9 is, for example, a system using a flash memory card as an example of a memory card, and is electrically connected to the flash memory card 100 and the flash memory card 100. The flash memory card 100 includes a host device 2 that supplies a command to the flash memory card 100 and controls the operation of the flash memory card 100.
[0062]
The flash memory card 100 includes a flash memory 101 for storing various information, a controller 102 which is a control unit for controlling the operation of the flash memory 101, an IC card microcomputer 103 for performing financial settlement processing, and the like. The IC card microcomputer 103 includes an encryption processing unit for data communication with the host device 2. In particular, the flash memory 101 and the EEPROM 126 mounted on the IC card microcomputer 103 include, from the host device 2, an access-restricted area in the flash memory 101, a management information area for the access-restricted area, and a financial settlement stored in the EEPROM 126. A command (called a purge command) for executing an operation of erasing all information and the like is issued.
[0063]
The controller 102 includes a CPU 121 for controlling the arithmetic processing of the entire card, an IC card interface 125 for controlling the interface with the IC card microcomputer 103, and a command from the host device 2 in addition to the functions of the user logic 22 in FIG. When the payment is related to a payment, a user logic 122 having a control function of the IC card microcomputer 103, a host interface 123, a flash interface 124, and the like are provided.
[0064]
The system using the memory card according to the present embodiment shown in FIG. 10 is, for example, a system using a flash memory card as an example of a memory card, and is electrically connected to the flash memory card 200 and the flash memory card 200. The flash memory card 200 includes a host device 2 that supplies a command to the flash memory card 200 and controls the operation of the flash memory card 200.
[0065]
The flash memory card 200 shown in FIG. 10 is different from the flash memory card 100 shown in FIG. 9 in that the controller 102 and the IC card microcomputer 103 are formed on different semiconductor substrates, and a controller 202 formed on the same semiconductor substrate and various information. Is stored in the flash memory 201 for storing the information.
[0066]
In the controller 102 shown in FIG. 9, the IC card microcomputer 103 is connected to the user logic 122 via the IC card interface 125. In the controller 202 shown in FIG. 10, the IC card microcomputer 225 is connected to the CPU 221. . 9 has an IC card interface 125 and is therefore connected to the user logic 122. Also in FIG. 10, the IC card microcomputer 225 may be connected to the user logic 222. , The CPU 121 and the IC card interface 125 may be connected.
[0067]
Next, the specifications of the purge command will be described in detail with reference to FIGS. FIG. 11 is a timing chart of processing by a purge command, and FIG. 12 is an explanatory diagram of state transition by a purge command.
[0068]
The purge command is different from the normal command.To prevent the command processing from being executed easily, the purge command execution setting command to execute the operation of transitioning from the normal state to the state before the execution of the erasing processing, and whether or not to permit the execution of the command. It has an authentication command for determination and an execution command of a purge command for shifting from a state before execution of the erasing process to a state of execution of the erasing process, and is not executed unless the following procedure is performed. The command codes and parameters here are merely examples, and it goes without saying that the present invention is not limited to these.
[0069]
(1) Issuing of the execution setting command may be the same as the example of the purge command.
[0070]
(2) Immediately after the above (1), information for authenticating a valid access such as a password is set in the register CL and the register CH, and an authentication command is issued to perform authentication. Do. Here, when the authentication fails, the state shifts to the normal state, and the purge command is not executed even if the execution command of the purge command is issued thereafter. Although not particularly limited, the same response may be issued to the host device 2 regardless of whether authentication has succeeded or failed. By doing so, even if it is an unauthorized access to illegally obtain authentication information such as a personal identification number, even if authentication is successful, the fact can not be run with this authentication command, and the trust of the flash memory card It can contribute to the improvement of performance.
[0071]
(3) Immediately after successful authentication, following the above (2), an arbitrary value is set in the register CL and the register CH, a purge command execution command is issued, and the purge command is executed.
[0072]
However, at this time, if a command other than the purge command execution command is issued, the state shifts to the normal state, and the purge command is not executed even if the purge command execution command is issued thereafter.
[0073]
Then, when the execution of the purge command is completed in the command execution state, the state shifts to the normal state.
[0074]
A specific operation of the purge command will be described after FIG. Although the description will be made based on the system of FIG. 9, it goes without saying that there is no particular change in the system of FIG. In each of the examples shown in FIG. 13 and subsequent figures, when the execution command of the purge command is issued, the determination may be made based on the difference between the values set in the register CL and the register CH, or the command code may be different.
[0075]
FIG. 13 shows an example in which all or a part of the information stored in the EEPROM 126 mounted on the IC card microcomputer 103 is deleted by executing the purge command.
[0076]
After receiving the execution setting command of the purge command from the host device 2, the CPU 121 determines whether or not the access is valid based on the authentication command issued by the host device 2 (1). If the access is authenticated, the host device 2 deletes all the information stored in the EEPROM 126 in response to the execution command of the purge command (2). The erasing operation is performed by controlling the CPU or the controller included in the IC card microcomputer to perform the erasing operation sequentially, or by the CPU 121 directly controlling the erasing operation on the EEPROM 126.
[0077]
By erasing all information such as the financial settlement information and the encryption key stored in the EEPROM 126, the financial settlement function of the flash memory card cannot be used again. When information corresponding to a plurality of applications is stored in the EEPROM 126, for example, when one flash memory card 100 has financial settlement functions of different financial institutions, some of the For example, when the contract is canceled, only the financial settlement function related to the application cannot be used again.
[0078]
FIG. 14 shows an example in which part or all of the information stored in the EEPROM 126 mounted on the IC card microcomputer 103 and part or all of the information stored in the flash memory 101 are erased by executing the purge command. It is.
[0079]
By erasing all information stored in the EEPROM 126 and all information stored in the flash memory 101 (2, 3), both the memory card function and the financial settlement function of the flash memory card are used again. You can't do that.
[0080]
When information corresponding to a plurality of applications is stored in the EEPROM 126 and additional information is also stored in the flash memory 101 according to each application, all of the information stored in the EEPROM 126 is By erasing all of the additional information stored in the flash memory 101, the financial settlement function of the flash memory card cannot be used again.
[0081]
Further, by erasing information corresponding to a part of the application from the EEPROM 126 and additional information corresponding to the part of the application from the flash memory 101, only the financial settlement function related to the application can be used again. Disappears.
[0082]
FIG. 15 shows an example in which all or a part of the information stored in the flash memory 101 is erased by executing the purge command. Note that (1) to (5) in the figure correspond to steps S31 to S35 in FIG. 16 described later, respectively.
[0083]
The flash memory 101 or the EEPROM 126 may be configured to store attribute information of the IC card microcomputer, for example, information such as a transfer method and a transfer rate. When the financial settlement function of the IC card microcomputer is used, the IC card microcomputer communicates with the host device 2 using the attribute information. By deleting such information by executing the purge command, the host device 2 cannot recognize the IC card microcomputer and cannot use the financial settlement function of the flash memory card again.
[0084]
FIG. 16 shows an example of reset processing of the IC card microcomputer.
[0085]
In step S31, the IC card microcomputer acquires the attribute information of the IC card microcomputer stored in the flash memory 101 or the EEPROM 126, and performs an initialization operation of the IC card microcomputer in step S32. In step S33, transfer frequency setting and the like are performed based on the attribute information acquired in step S31. In step S34, it is determined whether or not the IC card microcomputer is operating normally. If the IC card microcomputer is operating normally, a command waiting state is set.
[0086]
If the attribute information of the IC card microcomputer has been erased, the frequency setting and the like cannot be performed in step S33. Therefore, in step S34, it is not determined that the IC card microcomputer is operating normally. Then, the IC card microcomputer is inactivated, and the external host device 2 cannot recognize the IC card microcomputer because there is no response from the IC card microcomputer.
[0087]
Further, the order of the acquisition of the attribute information in step S31 and the initialization operation of the IC card microcomputer in step S32 may be reversed.
[0088]
As described above, the invention made by the inventor has been specifically described based on the embodiment. However, the present invention is not limited to the embodiment, and can be variously modified without departing from the gist thereof. Needless to say.
[0089]
For example, in the above embodiment, a flash memory has been described as an example of a memory, but the present invention can be applied to a nonvolatile memory such as an EEPROM.
[0090]
Further, the present invention is effective when applied to a flash memory card as described above, but can be widely applied to all devices such as a memory module and a memory device equipped with a flash memory, a nonvolatile memory, and the like. .
[0091]
【The invention's effect】
The effects obtained by typical aspects of the invention disclosed in the present application will be briefly described as follows.
[0092]
(1) By having a command for executing an operation of erasing all information in the data area and the management information area in the memory, the memory is not issued multiple times as in the erase command, but is issued by the command once. Can be erased, the erasing process can be simplified, and the overall processing time can be shortened.
[0093]
(2) A first command for executing the operation of shifting from the normal state to the state before the execution of the erasing process, and the first command for shifting from the state before the execution of the erasing process to the state of the erasing process, and all the data areas and the management information areas in the memory By having the second command for executing the operation of erasing information, the entire area of the memory can be erased only when the second command is input following the first command, so that the erasing process is simplified. Can be prevented from being executed.
[0094]
(3) By erasing the entire area of the memory after executing the command, the memory card cannot be used again as a memory card. Therefore, it is possible to prevent unauthorized access after discarding the memory card.
[0095]
(4) In a flash memory card having a financial settlement function such as an IC card microcomputer, by erasing all or a part of financial settlement information stored in an EEPROM or a flash memory mounted on the IC card microcomputer, the memory card is erased. It is not possible to use all of the financial settlement functions of this application or the financial settlement function for a specific application, so that unauthorized access after discarding this memory card can be prevented, or prevention of misuse of the specific application. It becomes possible.
[0096]
(5) The host device not only issues a purge command in accordance with an instruction from the user, but also performs an operation that seems to be intended for unauthorized access, for example, repeated input of authentication information such as an incorrect password. In this case, a purge command may be issued. By issuing the purge command, it becomes impossible to use the financial settlement function of the flash memory card, and it is possible to prevent continuation or expansion of unauthorized access. In addition, when an operation that seems to be intended for such unauthorized access is repeated, not only the instruction from the host device but also the controller of the flash memory card detects it and issues a purge command internally. You may make it.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing a system using a memory card according to an embodiment of the present invention.
FIG. 2 is a configuration diagram showing a flash memory in a flash memory card in the system according to the embodiment of the present invention;
FIG. 3 is a configuration diagram showing a management information area in a flash memory in the system according to the embodiment of the present invention;
FIG. 4 is an explanatory diagram showing a processing flow based on a comparison between an erase command and a purge command in the system according to the embodiment of the present invention;
FIG. 5 is a flowchart showing processing by an erase command in the system according to the embodiment of the present invention;
FIG. 6 is a flowchart showing processing by a purge command in the system according to the embodiment of the present invention;
FIG. 7 is an explanatory diagram showing a state transition by a purge command in the system according to the embodiment of the present invention.
FIGS. 8A and 8B are explanatory diagrams showing a purge command in the system according to the embodiment of the present invention.
FIG. 9 is a configuration diagram showing a system using a memory card according to another embodiment of the present invention.
FIG. 10 is a configuration diagram showing a system using a memory card according to another embodiment of the present invention.
FIG. 11 is a timing chart showing processing by a purge command in a system according to another embodiment of the present invention.
FIG. 12 is an explanatory diagram showing a state transition by a purge command in a system according to another embodiment of the present invention.
FIG. 13 is an explanatory diagram showing an example of erasing information in an EEPROM mounted on an IC card microcomputer by executing a purge command in a system according to another embodiment of the present invention.
FIG. 14 is an explanatory diagram showing an example of erasing information in an EEPROM mounted on an IC card microcomputer and information in a flash memory by executing a purge command in a system according to another embodiment of the present invention.
FIG. 15 is an explanatory diagram showing an example of erasing information in a flash memory by executing a purge command in a system according to another embodiment of the present invention.
FIG. 16 is a flowchart showing an example of reset processing of an IC card microcomputer in a system according to another embodiment of the present invention.
[Explanation of symbols]
1,100,200 Flash memory card
2 Host device
11, 101, 201 Flash memory
12, 102, 202 Controller
21, 121, 221 CPU
22, 122, 222 User logic
23, 123, 223 Host interface
24, 124, 224 flash interface
31 Data area
32 Management information area
33 Data replacement area
34 Management information area
35 Defective / expanded registration block area
36 Management information area
103,225 IC card microcomputer
125 IC card interface
126,226 EEPROM

Claims (21)

データを記憶するデータ領域、前記データ領域に記憶されるデータを管理する情報を記憶する管理情報領域を持つメモリと、
外部から供給されるコマンドにより前記メモリ内の各領域に対する動作を制御するコントローラとを有し、
前記コマンドとして、前記メモリ内の前記データ領域と前記管理情報領域との全ての情報を消去する動作を実行させるコマンドを有することを特徴とするメモリカード。
A data area for storing data, a memory having a management information area for storing information for managing data stored in the data area,
A controller for controlling the operation of each area in the memory by a command supplied from the outside,
A memory card having a command for executing an operation of erasing all information in the data area and the management information area in the memory as the command.
請求項1記載のメモリカードにおいて、
前記コントローラは、前記コマンドが1回入力されることにより、前記メモリ内の前記データ領域と前記管理情報領域とを所定のブロック単位で消去する動作を繰り返して実行する機能を有することを特徴とするメモリカード。
The memory card according to claim 1,
The controller has a function of repeatedly executing an operation of erasing the data area and the management information area in the memory in a predetermined block unit when the command is input once. Memory card.
請求項1記載のメモリカードにおいて、
前記メモリは、フラッシュメモリであることを特徴とするメモリカード。
The memory card according to claim 1,
The memory card, wherein the memory is a flash memory.
データを記憶するデータ領域、前記データ領域に記憶されるデータを管理する情報を記憶する管理情報領域を持つメモリと、
外部から供給されるコマンドにより前記メモリ内の各領域に対する動作を制御するコントローラとを有し、
前記コマンドとして、通常状態から消去処理実行前状態に移行する動作を実行させる第1コマンドと、前記消去処理実行前状態から消去処理実行状態に移行し、前記メモリ内の前記データ領域と前記管理情報領域との全ての情報を消去する動作を実行させる第2コマンドとを有することを特徴とするメモリカード。
A data area for storing data, a memory having a management information area for storing information for managing data stored in the data area,
A controller for controlling the operation of each area in the memory by a command supplied from the outside,
As the command, a first command for executing an operation of shifting from a normal state to a state before execution of erasure processing, and a command for shifting from the state before execution of erasure processing to an execution state of erasure processing, A second command for executing an operation of erasing all information in the area.
請求項4記載のメモリカードにおいて、
前記コントローラは、前記第1コマンドに続けて前記第2コマンドが入力されることにより、前記メモリ内の前記データ領域と前記管理情報領域とを所定のブロック単位で消去する動作を繰り返して実行する機能を有することを特徴とするメモリカード。
The memory card according to claim 4,
A function of repeatedly executing an operation of erasing the data area and the management information area in the memory in a predetermined block unit by inputting the second command following the first command. A memory card comprising:
請求項4記載のメモリカードにおいて、
前記メモリは、フラッシュメモリであることを特徴とするメモリカード。
The memory card according to claim 4,
The memory card, wherein the memory is a flash memory.
データを記憶するデータ領域、前記データ領域に記憶されるデータを管理する情報を記憶する管理情報領域を持つメモリと、外部から供給されるコマンドにより前記メモリ内の各領域に対する動作を制御するコントローラとを備えるメモリカードと、
前記メモリカードにコマンドを供給して前記メモリカードの動作を制御するホスト機器とを有し、
前記コマンドとして、前記メモリ内の前記データ領域の情報を消去する動作を実行させる第3コマンドと、前記メモリ内の前記データ領域と前記管理情報領域との全ての情報を消去する動作を実行させる第4コマンドとを有することを特徴とするシステム。
A data area for storing data, a memory having a management information area for storing information for managing data stored in the data area, and a controller for controlling operation of each area in the memory by a command supplied from the outside. A memory card comprising:
A host device that supplies a command to the memory card to control the operation of the memory card,
As the command, a third command for executing an operation of erasing information in the data area in the memory, and a third command for executing an operation of erasing all information in the data area and the management information area in the memory. And four commands.
請求項7記載のシステムにおいて、
前記第4コマンドは、通常状態から消去処理実行前状態に移行する動作を実行させる第1コマンドと、前記消去処理実行前状態から消去処理実行状態に移行し、前記メモリ内の前記データ領域と前記管理情報領域との全ての情報を消去する動作を実行させる第2コマンドとを有することを特徴とするシステム。
The system according to claim 7,
The fourth command is a first command for executing an operation of shifting from a normal state to a state before execution of erasure processing, and a fourth command is for shifting from a state before execution of erasure processing to an execution state of erasure processing, A second command for executing an operation of erasing all information in the management information area.
請求項7記載のシステムにおいて、
前記メモリは、フラッシュメモリであることを特徴とするシステム。
The system according to claim 7,
The system according to claim 1, wherein the memory is a flash memory.
制御部と、
暗号処理部と、
複数の不揮発性メモリセルを有し、暗号処理情報を格納する第1の不揮発性メモリとを有し、
前記制御部は外部からの第1コマンドに応じて前記第1の不揮発性メモリのそれぞれの不揮発性メモリセルを第1状態に設定することを特徴とする半導体処理装置。
A control unit;
An encryption processing unit;
A first nonvolatile memory having a plurality of nonvolatile memory cells and storing encryption processing information,
The semiconductor processing device according to claim 1, wherein the control unit sets each nonvolatile memory cell of the first nonvolatile memory to a first state in response to a first command from the outside.
請求項10記載の半導体処理装置において、
前記制御部は、第2の不揮発性メモリを接続可能とされ、
前記第2の不揮発性メモリは複数のワード線を有し、それぞれのワード線に第1領域と第2領域とに含まれる複数の不揮発性メモリセルを有し、
前記制御部は外部からの第2コマンドに応じて前記第2の不揮発性メモリの複数のワード線を順次選択し、前記第1領域と第2領域とに含まれる複数の不揮発性メモリセルを第1状態に設定することを特徴とする半導体処理装置。
The semiconductor processing device according to claim 10,
The control unit is capable of connecting a second nonvolatile memory,
The second nonvolatile memory has a plurality of word lines, and each word line has a plurality of nonvolatile memory cells included in a first region and a second region,
The control unit sequentially selects a plurality of word lines of the second nonvolatile memory in response to a second command from the outside, and stores a plurality of nonvolatile memory cells included in the first area and the second area in the first area. A semiconductor processing apparatus, wherein the semiconductor processing apparatus is set to one state.
請求項11記載の半導体処理装置において、
前記暗号処理部と前記第1の不揮発性メモリは1の半導体基板上に形成され、
前記制御部は異なる1の半導体基板上に形成され、
前記第2の不揮発性メモリはさらに異なる1の半導体基板上に形成されていることを特徴とする半導体処理装置。
The semiconductor processing device according to claim 11,
The encryption processing unit and the first nonvolatile memory are formed on one semiconductor substrate,
The control unit is formed on one different semiconductor substrate,
The semiconductor processing apparatus according to claim 1, wherein the second nonvolatile memory is formed on another different semiconductor substrate.
第1の半導体処理装置と、
第2の半導体処理装置と、
前記第1の半導体処理装置に接続される第1の不揮発性メモリとを有し、
前記第2の半導体処理装置は第2の不揮発性メモリを有し、
前記第1の半導体処理装置は外部から複数のコマンドを入力され、
第1コマンドの入力に応じて、前記第1の半導体処理装置は前記第1の不揮発性メモリの全ての記憶情報を消去する制御を行い、
第2コマンドの入力に応じて、前記第1の半導体処理装置は前記第2の不揮発性メモリの全ての記憶情報を消去する制御を行うことを特徴とする不揮発性メモリ装置。
A first semiconductor processing device;
A second semiconductor processing device;
A first nonvolatile memory connected to the first semiconductor processing device;
The second semiconductor processing device has a second nonvolatile memory,
The first semiconductor processing device receives a plurality of commands from the outside,
In response to the input of the first command, the first semiconductor processing device performs control for erasing all storage information of the first nonvolatile memory,
The non-volatile memory device according to claim 1, wherein the first semiconductor processing device performs control for erasing all storage information in the second non-volatile memory in response to input of a second command.
請求項13記載の不揮発性メモリ装置において、
前記第1コマンドは、第1処理コマンドと第2処理コマンドとを有し、
前記第1の半導体処理装置は前記第1処理コマンドにより第1状態から第2状態に遷移し、
第2状態に遷移した前記第1の半導体処理装置は第2処理コマンドにより前記第1の不揮発性メモリの全ての記憶情報を消去する制御を行うことを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 13,
The first command has a first processing command and a second processing command,
The first semiconductor processing device transitions from a first state to a second state according to the first processing command,
The non-volatile memory device, wherein the first semiconductor processing device that has transitioned to the second state performs control for erasing all stored information in the first non-volatile memory by a second processing command.
請求項14記載の不揮発性メモリ装置において、
前記第2コマンドは、第1処理コマンドと第3処理コマンドと第4処理コマンドとを有し、
第2状態に遷移した前記第1の半導体処理装置は第3処理コマンドの結果が第1結果である場合に応じて第2状態から第3状態に遷移し、第3処理コマンドの結果が第2結果である場合に応じて第2状態から第1状態に遷移し、
第3状態に遷移した前記第1の半導体処理装置は第4処理コマンドにより前記第2の不揮発性メモリの全ての記憶情報を消去する制御を行うことを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 14,
The second command has a first processing command, a third processing command, and a fourth processing command,
The first semiconductor processing device that has transitioned to the second state transitions from the second state to the third state according to the case where the result of the third processing command is the first result, and the result of the third processing command is the second result. Transits from the second state to the first state depending on the result,
The non-volatile memory device according to claim 1, wherein the first semiconductor processing device that has transitioned to the third state performs control for erasing all stored information in the second non-volatile memory by a fourth processing command.
請求項15記載の不揮発性メモリ装置において、
前記第2の半導体処理装置はICカード用半導体処理装置であることを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 15,
The non-volatile memory device according to claim 2, wherein the second semiconductor processing device is a semiconductor processing device for an IC card.
第1の半導体処理装置と、
第1の不揮発性メモリとを有し、
前記第1の半導体処理装置は、前記第1の不揮発性メモリへのアクセス制御を行う第1の制御部と、第2の不揮発性メモリと、前記第2の不揮発性メモリへのアクセス制御を行う第2の制御部とを有し、1の半導体基板上に形成され、
前記第1の半導体処理装置は外部から複数のコマンドを入力され、
第1コマンドの入力に応じて前記第1の制御部は、前記第1の不揮発性メモリの記憶情報の消去動作制御を行い、
第2コマンドの入力に応じて前記第2の制御部は、前記第2の不揮発性メモリの記憶情報の消去動作制御を行うことを特徴とする不揮発性メモリ装置。
A first semiconductor processing device;
A first non-volatile memory,
The first semiconductor processing device controls a first control unit that controls access to the first nonvolatile memory, a second nonvolatile memory, and controls access to the second nonvolatile memory. A second control unit, formed on one semiconductor substrate,
The first semiconductor processing device receives a plurality of commands from the outside,
In response to the input of the first command, the first control unit performs an erase operation control of information stored in the first nonvolatile memory,
The non-volatile memory device according to claim 2, wherein the second control unit controls an erasing operation of information stored in the second non-volatile memory in response to input of a second command.
請求項17記載の不揮発性メモリ装置において、
前記第1の不揮発性メモリおよび前記第2の不揮発性メモリはそれぞれ複数の不揮発性メモリセルを有し、
それぞれの不揮発性メモリセルはしきい値電圧を有し、複数のしきい値電圧分布のうち、1の分布内になるように制御され、
1のしきい値電圧分布は消去状態を示し、他のしきい値電圧分布は書込状態を示し、
前記消去動作制御は前記不揮発性メモリセルのしきい値電圧を消去状態を示すしきい値電圧分布内になるように制御することを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 17,
The first nonvolatile memory and the second nonvolatile memory each include a plurality of nonvolatile memory cells,
Each of the nonvolatile memory cells has a threshold voltage, and is controlled to be within one of a plurality of threshold voltage distributions,
A threshold voltage distribution of 1 indicates an erased state, other threshold voltage distributions indicate a written state,
The nonvolatile memory device according to claim 1, wherein the erase operation control controls a threshold voltage of the nonvolatile memory cell to be within a threshold voltage distribution indicating an erased state.
請求項18記載の不揮発性メモリ装置において、
前記第1コマンドの入力に応じて、前記第1の制御部は前記第1の不揮発性メモリの全ての記憶情報の消去動作制御を行うことを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 18,
The nonvolatile memory device according to claim 1, wherein the first control unit controls an erasing operation of all the stored information in the first nonvolatile memory in response to the input of the first command.
請求項18記載の不揮発性メモリ装置において、
前記第2コマンドの入力に応じて、前記第2の制御部は前記第2の不揮発性メモリの全ての記憶情報の消去動作制御と、前記第1の不揮発性メモリの一部の記憶情報の消去動作制御とを行うことを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 18,
In response to the input of the second command, the second control unit controls the erasing operation of all the stored information of the second nonvolatile memory and the erasing of a part of the stored information of the first nonvolatile memory. A nonvolatile memory device that performs operation control.
請求項18記載の不揮発性メモリ装置において、
前記第2コマンドの入力に応じて、前記第2の制御部は前記第2の不揮発性メモリの一部の記憶情報の消去動作制御と、前記第1の不揮発性メモリの一部の記憶情報の消去動作制御とを行うことを特徴とする不揮発性メモリ装置。
The nonvolatile memory device according to claim 18,
In response to the input of the second command, the second control unit controls the erasing operation of a part of the storage information of the second nonvolatile memory and the control of the erasing of a part of the storage information of the first nonvolatile memory. A nonvolatile memory device, which performs erasing operation control.
JP2003140066A 2002-05-31 2003-05-19 Memory card, system, semiconductor processor, and non-volatile memory Pending JP2004054904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003140066A JP2004054904A (en) 2002-05-31 2003-05-19 Memory card, system, semiconductor processor, and non-volatile memory

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002158384 2002-05-31
JP2003140066A JP2004054904A (en) 2002-05-31 2003-05-19 Memory card, system, semiconductor processor, and non-volatile memory

Publications (1)

Publication Number Publication Date
JP2004054904A true JP2004054904A (en) 2004-02-19

Family

ID=31949119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003140066A Pending JP2004054904A (en) 2002-05-31 2003-05-19 Memory card, system, semiconductor processor, and non-volatile memory

Country Status (1)

Country Link
JP (1) JP2004054904A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005085882A1 (en) * 2004-03-09 2005-09-15 Matsushita Electric Industrial Co., Ltd. Frequency sensor and semiconductor device
JP2007280330A (en) * 2006-04-12 2007-10-25 Matsushita Electric Ind Co Ltd Nonvolatile storage device and nonvolatile storage system
JP2012221246A (en) * 2011-04-08 2012-11-12 Toshiba Corp Storage device, storage system, and authentication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005085882A1 (en) * 2004-03-09 2005-09-15 Matsushita Electric Industrial Co., Ltd. Frequency sensor and semiconductor device
JPWO2005085882A1 (en) * 2004-03-09 2007-08-09 松下電器産業株式会社 Frequency sensor and semiconductor device
CN100454027C (en) * 2004-03-09 2009-01-21 松下电器产业株式会社 Frequency sensor and semiconductor device
US7504865B2 (en) 2004-03-09 2009-03-17 Panasonic Corporation Frequency sensor and semiconductor device
JP2007280330A (en) * 2006-04-12 2007-10-25 Matsushita Electric Ind Co Ltd Nonvolatile storage device and nonvolatile storage system
JP2012221246A (en) * 2011-04-08 2012-11-12 Toshiba Corp Storage device, storage system, and authentication method

Similar Documents

Publication Publication Date Title
US7185145B2 (en) Memory card
USRE47621E1 (en) Secure transaction microcontroller with secure boot loader
US7054990B1 (en) External storage device using non-volatile semiconductor memory
US9857866B2 (en) Card and host apparatus
US7313682B2 (en) Method and system for updating boot memory that stores a fail-safe reset code and is configured to store boot code and boot updater code
US8996933B2 (en) Memory management method, controller, and storage system
EP2161673A1 (en) Method and system for protecting data
TWI451248B (en) Data protecting method, memory controller and memory storage apparatus
US8250288B2 (en) Flash memory storage system and controller and data protection method thereof
JP2001297038A (en) Data storage device, recording medium, and recording medium control method
TWI454912B (en) Data processing method, memory controller and memory storage device
US8812756B2 (en) Method of dispatching and transmitting data streams, memory controller and storage apparatus
US20030225962A1 (en) Memory card and memory card system
US6948041B2 (en) Permanent memory block protection in a flash memory device
KR100841982B1 (en) Memory card storing host identification information and access method thereof
KR100997813B1 (en) Semiconductor memory device and operation method thereof
TWI521345B (en) Method for reading response and data transmission system
JP2003022216A (en) Storage device
US20120144206A1 (en) Information processing apparatus, removable storage device, information processing method, and information processing system
JP2004054904A (en) Memory card, system, semiconductor processor, and non-volatile memory
JPH0714392A (en) Nonvolatile semiconductor memory and semiconductor disk device using the same
US20160216893A1 (en) Smart card management method, memory storage device and memory control circuit unit
CN107085900A (en) Data processing method, device, system and POS terminal
JPH0729392A (en) Nonvolatile semiconductor memory and semiconductor disk device using the same
US20070274302A1 (en) Data Storage Device, Memory Managing Method, and Program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20050224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050629

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060509

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081111

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090414