JP4160808B2 - Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system - Google Patents

Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system Download PDF

Info

Publication number
JP4160808B2
JP4160808B2 JP2002272328A JP2002272328A JP4160808B2 JP 4160808 B2 JP4160808 B2 JP 4160808B2 JP 2002272328 A JP2002272328 A JP 2002272328A JP 2002272328 A JP2002272328 A JP 2002272328A JP 4160808 B2 JP4160808 B2 JP 4160808B2
Authority
JP
Japan
Prior art keywords
data
memory
read
write
circuit
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.)
Expired - Lifetime
Application number
JP2002272328A
Other languages
Japanese (ja)
Other versions
JP2004110436A (en
Inventor
由雄 岩橋
仁 田中
真琴 木村
龍雄 酒井
康仁 中島
訓司 永野
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.)
Koatsu Gas Kogyo Co Ltd
Original Assignee
Koatsu Gas Kogyo 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 Koatsu Gas Kogyo Co Ltd filed Critical Koatsu Gas Kogyo Co Ltd
Priority to JP2002272328A priority Critical patent/JP4160808B2/en
Publication of JP2004110436A publication Critical patent/JP2004110436A/en
Application granted granted Critical
Publication of JP4160808B2 publication Critical patent/JP4160808B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は大容量化及び高速アクセス化に適したメモリのリード/ライト制御回路、無接点メモリカード、リード/ライト装置及び無接点メモリカードのリード/ライトシステムに関する。
【0002】
【従来の技術】
無接点メモリカードの従来例として以下のような構成のものがある。同カードは、リード/ライト装置から電力及び同期クロックを供給するための電源・クロック用コイルと、主装置からリード/ライト信号をリード/ライト装置を通じて入出力するためのリード/ライト信号用コイルと、主装置からコマンドをリード/ライト装置を通じて入力するためのコマンド用コイル等を有した基本構成となっている。
【0003】
即ち、電源・クロック用コイルを通じて電力及び同期クロックが無接点メモリカードに供給されると、同カードが通電されて動作可能になる。この状態で、ライトコマンドがコマンド用コイルを通じて入力されると、同様にライト信号用コイルを通じて入力されたライトデータがメモリが記録される一方、リードコマンドがコマンド用コイルを通じて入力されると、メモリに記録されたデータが読み出されてリード信号用コイルを通じて出力されるようになっている(例えば、特許公報1参照。)
【0004】
【特許公報1】
特開昭62−8281号号公報(第1図)
【0005】
【発明が解消しようとする課題】
しかしながら、上記従来例による場合、以下の問題が指摘されている。まず、電力及び同期クロックが1つの電源・クロック用コイルを通じて無接点メモリカードに供給されていることから、同期クロックの周波数をメモリの種類に合わせて随時変更させると、回路特性が不安定になることがある。そのため同期クロックの周波数については、アクセス速度が最も速いメモリではなく、アクセス速度が最も遅いメモリに合わせて設定されており、この点で高速アクセス化を実現することが困難となっている。
【0006】
もっとも、リード/ライト装置からリード/ライトデータ等をパラレルで入力するようにすると、メモリカードにおいてシリアル/パラレル変換を行う必要がない分だけ高速アクセス化を図ることが可能であるが、コイル数が増加し、データの信頼性が低下するだけでなく、メモリカードの寸法や消費電流が大きくなり、カードの小型化や低コスト化を図ることが困難になる。
【0007】
また、無接点メモリカードにS−RAM等に比べてアクセスプロトコルが非常に複雑なフラッシュメモリを搭載したときは、無接点メモリカードにおいてアドレスセット時やデータセット時に制御信号等を生成するに当たり、主装置がその都度関与することから、この点で高速アクセス化を図ることが非常に困難となっている。一方、無接点メモリカードにCPUを搭載したときは、高速アセクス化を図ることが可能であるものの、消費電力が大きくなり、無接点メモリカードの薄型化や低コスト化を図ること困難になっている。加えて、メモリの種類に応じてアクセスプロトコルを変更するための制御プログラムが必要となり、この点でもコスト高になっている。
【0008】
更に、1バイトのデータをメモリに転送する際のメモリへのアクセスは1サイクル期間中1回だけであり、これ以外の期間についてはウェイトとなっている。この点も高速アクセス化を妨げる大きな要因となっている。
【0009】
本発明は上記した背景の下で創作されたものであり、その目的とするところは、上記した問題を解消することが可能なメモリのリード/ライト制御回路、無接点メモリカード、リード/ライト装置及び無接点メモリカードのリード/ライトシステムを提供することにある。
【0010】
【課題を解決するための手段】
本発明のメモリのリード/ライト制御回路は、主装置から転送されたアドレス、データ及びコントロールデータを少なくとも含んだ各種データを保持するレジスター回路を有し且つ当該各種データに基づいてメモリに対するリード/ライト動作に必要な制御を行う制御部と、前記レジスター回路の後段に接続されており且つ制御部からの命令を受けて前記レジスター回路上のデータをメモリに出力するデータ出力回路とを備え、制御部は、レジスター回路上のコントロールデータにデータ固定の選択に関するコードが含まれているときは、当該レジスト回路上のデータがメモリに出力されるように設定する一方、レジスター回路上のコントロールデータにデータ変化の選択に関するコードが含まれているときは、レジスター回路を経ることなく主装置から転送されたライトデータが前記メモリに順次ライトさせるように設定する機能を有した構成となっている
【0011】
各種データとライトデータとが共通のラインを用いて主装置から時分割で転送される場合には、以下のようなリード/ライト制御回路にすると良い。即ち、主装置から転送されたアドレス、データ及びコントロールデータを少なくとも含んだ各種データを保持するレジスター回路を有し且つ当該各種データに基づいてメモリに対するリード/ライト動作に必要な制御を行う制御部と、レジスター回路の前段に設けられており且つ主装置から各種データとは別に転送されたセレクトデータに基づいて主装置から転送された各種データの出力先をレジスター回路から前記メモリに切り換えるデータ入力切り替え回路と、レジスター回路の後段に接続されており且つ前記制御部からの命令を受けて前記レジスター回路上のデータをメモリに出力するデータ出力回路とを備え、制御部は、レジスター回路上のコントロールデータにデータ固定の選択に関するコードが含まれているときは、当該レジスト回路上のデータが前記メモリに出力されるように設定する一方、前記レジスター回路上のコントロールデータにデータ変化の選択に関するコードが含まれているときは、レジスター回路を経ることなく主装置から転送されたライトデータが前記メモリに順次ライトさせるように設定する機能を有した構成となっている。
【0012】
好ましくは、制御部は、レジスター回路上のコントロールデータにライトの選択に関するコードが含まれているときは、メモリに対してライトが行われるように設定し、レジスター回路上のコントロールデータにリードの選択に関するコードが含まれているときは、メモリに対してリードが行われるように設定する機能を有した構成となっているものを用いることが望ましい。
また、制御部からの命令を受けてアドレス信号を生成してメモリに出力するアドレス出力回路を備えると良い。この場合、制御部は、レジスター回路上のコントロールデータにアドレスの設定に関するコードが含まれているときは、アドレス出力回路と前記メモリとの間のアドレスバスラインのビット長を当該設定の通りに設定する機能を有した構成となっているものを用いることが望ましい。
さらに、制御部は、主装置から順次転送された各種データがn(n≧1)個のレジスター回路1、2・・・nに各々保持可能であり、当該レジスター回路1上の各種データに基づいてメモリに対するリード/ライト動作に必要な制御を行い、その後、当該レジスター回路2・・・n上の各種データに基づいてメモリに対するリード/ライト動作に必要な制御を順次的に行う機能を有した構成となっているものを用いることが望ましい。
【0013】
好ましくは、制御部は、リード/ライト動作が繰り返し行われる際のリード/ライトの処理回数を計数するカウンター回路を有しており、レジスター回路上のコントロールデータに1回処理に関するコード含まれているときには、当該各種データに基づいて行われるリード/ライト動作を1回だけ行う一方、レジスター回路上のコントロールデータに連続処理に関するコード含まれているときには、当該各種データに基づいて行われるリード/ライト動作を当該各種データに含まれるカウント数の回数だけ行う機能を有した構成となっているものを用いることが望ましい。
【0014】
好ましくは、制御部は、レジスター回路上のコントロールデータにアドレスセットに関するコードまれているときには、当該コントロールデータに含められたアドレスの設定、アドレスマスク有無の選択、アドレスセット数の選択、マスクアドレスの選択、メモリの属性を示すデータの主装置への転送の有無の選択及び各種制御信号の出力の有無の各選択(CSのクロック同期出力/常時出力の選択を含む)に関するコードに従って前記メモリに対するアドレスセットの設定を行う一方、レジスター回路上のコントロールデータにデータセットに関するコードが含まれているときには、当該コントロールデータに含められたアドレスの設定、メモリ制御の設定、データの変化/固定の設定、各種制御信号の出力の有無の各選択(CSのクロック同期出力/常時出力の選択を含む)及びR/B信号の主装置への転送の有無の選択に関するコードに従ってメモリに対するデータセットの設定を行う機能を有した構成となっているものを用いることが望ましい。
【0015】
好ましくは、適応可能なメモリのうち使用するメモリの種類を設定入力するスイッチであって当該設定結果を信号として前記制御部に出力するモード切り替え回路と、メモリの種類を設定に基づいて当該メモリの属性を示すデータを生成するアトリビュート入力回路を備えると良い。この場合、制御部は、レジスター回路上のコントロールデータに各種制御信号の出力に関するコードまれているときには、メモリに出力すべき当該制御信号をアクティブにする一方、コントロールデータにメモリの属性を示すデータの主装置への転送に関するコードまれているときには、アトリビュート入力回路にて生成されたデータを主装置に転送させる機能を有した構成となっているものを用いることが望ましい。
【0016】
制御部は、レジスター回路上のコントロールデータに予備の制御信号の出力に関するコードまれているときには、メモリに出力すべき当該制御信号をアクティブにする機能を有した構成となっているものを用いることが望ましい。
【0017】
本発明の無接点メモリカードは、リード/ライト装置から電力を入力するための電源用コイルと、リード/ライト装置から同期クロックを入力するための同期クロック用コイルと、主装置からリード/ライト装置を通じて転送されたセレクトデータをシリアル形式で入力するためのセレクト用コイルと、主装置からリード/ライト装置を通じて転送された各種データをシリアル形式で入力するための入力用コイルと、リード/ライト装置を通じて主装置に転送すべきリードデータ等をシリアル形式で出力するための出力用コイルとを具備している。
【0018】
本発明のリード/ライト装置は、主装置に接続されており且つ上記無接点メモリカードがセットされる装置であって、上記無接点メモリカードに電力を供給するための電源用コイルと、無接点メモリカードに同期クロックを供給するための同期クロック用コイルと、主装置から転送されたセレクトデータを前記無接点メモリカードにシリアル形式で出力するためのセレクト用コイルと、主装置から転送された各種データを無接点メモリカードにシリアル形式で出力するための出力用コイルと、無接点メモリカードから主装置に向けて転送された少なくともリードデータをシリアル形式で入力するための入力用コイルとを具備している。
【0019】
本発明の無接点メモリカードのリード/ライトシステムは、上記無接点メモリカードと、上記リード/ライト装置と、リード/ライト装置に接続された主装置とを備えており、主装置は、無接点メモリカードにおいて各種データをレジスター回路に保持させる前処理段階とレジスター回路に保持された各種データに基づいて前処理及びリード/ライト動作を行わせる本動作段階とを切り替えるためのセレクトデータを生成してリード/ライト装置を通じて無接点メモリカードに転送し、これとは別に、前処理段階においては各種データを生成してリード/ライト装置を通じて無接点メモリカードに転送し、本動作段階においてはライト時に必要なライトデータを生成しリード/ライト装置を通じて無接点メモリカードに転送する一方、リード時には無接点メモリカードからリード/ライト装置を通じて転送された少なくともリードデータを入力する構成となっている。
【0020】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して説明する。図1は無接点メモリカードのリード/ライトシステムの構成図、図2は無接点メモリカードに適応可能なメモリ及びそのバスラインを示す説明図、図3は主装置から無接点メモリカードに転送される各種データの内容を示す説明図、図4は図2(B)及び(C)に示すタイプのメモリについて用いられるコントロール1、2の内容を示す説明図、図5は図2(A)に示すタイプのメモリについて用いられるコントロール1、2の内容を示す説明図、図6乃至図17は無接点メモリカードに搭載されたリード/ライト制御回路のリード/ライト動作の例を説明するための図である。
【0021】
ここに掲げる無接点メモリカードのリード/ライトシステムは、図1に示すように主装置300、リード/ライト装置200及び無接点メモリカード100を有した構成となっている。無接点メモリカード100は、リード/ライト装置200にセットされた状態で、同カード100に搭載されたメモリ130に対してデータのリード/ライトを行う。このようなリード/ライトを制御しているのはリード/ライト装置200にCPUバス301を介して相互接続された主装置300である。
【0022】
主装置300は、無接点メモリカード100に対してデータのリード/ライトを行うとともに全体として所定の処理を行うコンピュータであり、次のような基本構成となっている。即ち、無接点メモリカード100に対してデータのリード/ライト動作を行う段階(これを本動作段階と称する)においては、ライト時にライトデータを生成してリード/ライト装置200を通じて無接点メモリカード100に転送する一方、リード時には無接点メモリカード100からリード/ライト装置200を通じて転送されたリードデータ等を入力するようになっている。このような本動作段階を行う前準備として、アドレス、データ、カウント数及びコントロール1、2(コントロールデータ)からなる各種データ(詳しいことは後述する)を生成してリード/ライト装置200を通じて無接点メモリカード100に転送し、後述するレジスター回路1221に保持させるようになっている(この段階を前処理段階と称する)。そして、無接点メモリカード100において前処理段階と本動作段階とを切り替えるために、セレクトデータを生成して各種データとは別にリード/ライト装置200を通じて無接点メモリカード100に転送するようになっている。
【0023】
リード/ライト装置200は、無接点メモリカード100がセットされた状態で、主装置300と無接点メモリカード100との間のインターフェイスの役割を果たす装置であって、無接点メモリカード100に電力や同期クロックを供給したり、無接点メモリカード100との間でデータの転送を行うために、シート状又はコイル状をなした合計5個のコイルが備えられている。
【0024】
即ち、リード/ライト装置200には、無接点メモリカード100に電力を入力するための電源用コイル201と、無接点メモリカード100に同期クロックを入力するための同期クロック用コイル202と、主装置300から転送されたセレクトデータをシリアル形式で無接点メモリカード100に出力するためのセレクト用コイル203と、主装置300から転送された各種データをシリアル形式で無接点メモリカード100に出力するための出力用コイル204と、無接点メモリカード100から主装置300に向けて転送されたリードデータ等をシリアル形式で入力するための入力用コイル205が備えられている。
【0025】
また、コイル201〜205以外に以下の回路が備えられている。即ち、無接点メモリカード100に電力を供給するために電源電圧をパルス化して電源用コイル201に出力するコイル駆動回路210と、無接点メモリカード100に供給すべき同期クロックを生成して同期クロック用コイル202に出力するタイミング回路220と、主装置300にCPUバス301を通じて接続されており且つ主装置300から出力された命令に従ってコイル駆動回路210のオンオフ及びタイミング回路220の同期クロック周波数を制御するコントロール回路230と、主装置300からCPUバス301、データ入力切り替え回路240を通じて入力された各種データをラッチするレジスター回路250と、主装置300からCPUバス301、データ入力切り替え回路240を通じて入力されたセレクトデータをパラレル/シリアル変換してセレクト用コイル203に出力するパラレル/シリアル変換回路260と、レジスター回路250から出力された各種データをパラレル/シリアル変換して出力用コイル204に出力するパラレル/シリアル変換回路270と、入力用コイル205を通じて入力されたリードデータ等をシリアル/パラレル変換してCPUバス301を介して主装置300に出力するシリアル/パラレル変換回路280とが備えられている。
【0026】
上記のような構成のリード/ライト装置200において、コイル201〜205以外の上記回路はその殆どがゲートアレイにより作成されている。
【0027】
一方、無接点メモリカード100は、メモリ130及びリード/ライト制御回路120を有しており、リード/ライト装置200のコイル201〜205に対応してシート状又はコイル状をなした合計5個のコイルが備えられている。即ち、リード/ライト装置200から電力を入力するための電源用コイル101と、リード/ライト装置200から同期クロックを入力するための同期クロック用コイル102と、主装置300からリード/ライト装置200を通じて転送されたセレクトデータをシリアル形式で入力するためのセレクト用コイル103と、主装置300からリード/ライト装置200を通じて転送された各種データをシリアル形式で入力するための入力用コイル104と、リード/ライト装置200を通じて主装置300に転送すべきリードデータ等をシリアル形式でリード/ライト装置200に出力するための出力用コイル105とが備えられている。
【0028】
また、無接点メモリカード100には、メモリ130、リード/ライト制御回路120及びコイル101〜105以外に以下の回路が備えられている。即ち、電源用コイル101の出力電流に基づいて電源電圧を生成して各回路に電力を供給する整流回路106と、同期クロック用コイル102を通じて入力された同期クロックを各回路に供給するタイミング回路107と、セレクト用コイル103を通じて入力されたセレクトデータをシリアル/パラレル変換してリード/ライト制御回路120に出力するシリアル/パラレル変換回路108と、入力用コイル104を通じて入力された各種データをシリアル/パラレル変換してリード/ライト制御回路120に出力するシリアル/パラレル変換回路109と、リード/ライト制御回路120から出力されたリードデータ等をパラレル/シリアル変換して出力用コイル105に出力するパラレル/シリアル変換回路110等が備えられている。
【0029】
上記のような構成のリード/ライト装置200において、コイル101〜105以外の上記回路に関してはその殆どがゲートアレイにより作成されている。以下、リード/ライト制御回路120の構成について詳しく説明する。
【0030】
リード/ライト制御回路120は、セレクト用コイル103、シリアル/パラレル変換回路108を通じて入力されたセレクトデータ及び入力用コイル104、シリアル/パラレル変換回路109を通じて入力された各種データに基づいて動作し、これによりメモリ130に対してデータのリード/ライトを行う基本構成となっている。
【0031】
リード/ライト制御回路120は、各種データに基づいてリード/ライト動作に必要な制御を行う制御部122と、制御部122のレジスター回路1221の前段に設けられており且つ主装置300から各種データとは別に転送されたセレクトデータに基づいて入力データの出力先を切り替える回路であって、主装置300から転送された各種データをレジスター回路1221に、主装置300から転送されたライトデータをメモリ130に各々出力するデータ入力切り替え回路121とを有している。加えて、モード切り替え回路123、アドレス出力回路124、データ出力回路125、制御信号回路126、汎用制御信号回路127、データ入力回路128、汎用入力回路129、アトリビュート入力回路1231及びデータ出力切り替え回路1211を有した構成となっている。
【0032】
リード/ライト制御回路120は図2に示す3種類のタイプのメモリに適応可能になっている。図2(A)はアドレスバスとデータバスが共通化され且つ特殊な制御信号が必要になるタイプのメモリであり、その代表例としてNAND型フラッシュメモリがある。図2(B)、(C)はアドレスバスとデータバスが分離され且つ特殊な制御信号が不要であるタイプのメモリであり、その代表例としてNOR型フラッシュメモリ、S−RAMがある。但し、説明の都合上、図1中ではメモリ130としてNAND型フラッシュメモリを表している。
【0033】
以下、リード/ライト制御回路120を構成する各回路の詳細な構成について説明する。
【0034】
データ入力切り替え回路121は、入力されたセレクトデータに基づいて動作するセレクト回路であって、別に入力された各種データをレジスター回路1221とメモリ130とに振り分けて出力するようになっている。この結果、前処理段階において各種データがレジスター回路1221に出力され、本動作段階においてライトデータがメモリ130に各々出力される。
【0035】
制御部122は、入力された各種データを順次保持する複数個のレジスター回路1221と、リード/ライト動作が行われる過程でのリード/ライトの処理回数を計数するカウンター回路1222とを有しており、レジスター回路1221上の各種データに基づいてアドレス出力回路124等に対して命令を与え、これらの回路を制御する回路構成となっている。ここで5つの各種データ1〜5がレジスター回路1221に順次入力されたと仮定し、各種データ1〜5を各々保持するレジスターを説明の都合上レジスタ1〜5として表すとすると、制御部122の基本的な機能は以下の通りとなる。
【0036】
即ち、レジスタ1上の各種データ1に基づいてリード/ライト動作上の前処理を行い、この状態で、ライト時には、レジスター回路1221を経ることなく主装置300から転送されたライトデータをメモリ130にライトさせる一方、リード時には、メモリ130に記録されたデータ等をリードさせて主装置300に転送させるようになっている。このように各種データ1に基づいて前処理及びリード/ライト動作が行われ、これが終了すると、レジスター2〜5上の各種データ2〜5に基づいて前処理及びリード/ライト動作を同様に順次的に行う。そして、このような一連の処理(各種データ1〜5に基づく各処理)を繰り返すことによりメモリ130に対するリード/ライトを連続して行うようになっている。
【0037】
即ち、制御部122においては、レジスター回路1221に複数の各種データを保持することが可能であり、これらの各種データに基づいて前処理及びリード/ライト動作を順次且つ繰り返し行うようになっている。レジスター回路1221に保持されている各種データが1つであるときも全く同様であり、レジスタ1に保持された各種データ1に基づく前処理及びリード/ライト動作を行い、その後、同様のリード/ライト動作を繰り返し、これによりメモリ130に対するリード/ライトを連続して行うようになっている。
【0038】
主装置300から転送されレジスター回路1221に保持される各種データは図3に示すような内容であり、アドレス、データ、カウンタ数、コントロール1,2から構成された合計9バイトのデジタル値となっている。アドレスはメモリ130に対してリード/ライトを繰り返し行う際の最初のアドレスの設定を示している。データはメモリ130に対してライトすべきデータの内容の設定を示している。カウント数はリード/ライトの処理回数の設定を示している。コントロール1はアドレス24又は32ビットの選択(アドレスの設定)、アトリビュートリード有無の選択(メモリの属性を示すデータの主装置への転送の有無の選択)、連続処理/1回処理の選択(連続処理/1回処理の設定)、データ又はアドレスの選択(アドレスセット/データセットの設定)、データ入力又は汎用ポート入力の選択(リードデータの主装置への転送の有無の選択、R/B信号の主装置への転送の有無の選択)、データ固定又は変化の選択(データの変化/固定の設定)、ライト、リード又はライト/リードの選択(メモリ制御の設定)等の設定に関するビットコード群を示している。コントロール2は汎用制御信号制御(各種制御信号の出力の有無の各選択(CSのクロック同期出力/常時出力の選択を含む)、カウンター16又は24ビットの選択(カウンター回路のカウントビット長の設定)の設定に関するビットコード群を示している。
【0039】
このようにレジスター回路1221に各種データが保持された時点で、各種データに基づいて行われる前処理の内容、ひいてはリード/ライト動作の内容が決定されるようになっている。ただ、コントロール1、2の内容はメモリ130の種類により一部が異なっている。
【0040】
コントロール1、2は、NOR型フラッシュメモリを代表例とする図2(B)に示すタイプのメモリ及びS−RAMを代表例とする図2(C)に示すタイプのメモリである場合、図4に示す通りの内容になっている。これに対してNAND型フラッシュメモリを代表例とする図2(A)に示すタイプのメモリである場合図5に示す通りの内容になっている。
【0041】
図2(A)に示すタイプのメモリである場合、図2(B)及び(C)に示すタイプのものとは異なり、コントロール1にはアドレスセット/データセットの設定に関するビットコードが、コントロール2には各種制御信号の出力の有無の各選択(CSのクロック同期出力/常時出力の選択を含む)に関するビットコードが各々含められている。特に、コントロール1にアドレスセットの設定に関するビットコードを含んでいるとき、即ち、アドレスセット設定時には、アドレスマスク有無の選択、アドレスセット数の選択、マスクアドレスの選択、メモリの属性を示すデータの主装置への転送の有無の選択に関する各ビットコードが含められる。一方、コントロール1にデータセットの設定に関するビットコードを含んでいるとき、即ち、データセット設定時には、メモリ制御の設定、データの変化/固定の設定(ライト時)、リードデータの主装置への転送の有無の選択(リード時)、R/B信号の主装置への転送の有無の選択(リード時)、連続処理/1回処理の設定及びメモリの属性を示すデータの主装置への転送の有無の選択に関する各ビットコードが含められる。
【0042】
以下、モード切り替え回路123等の構成について説明し、併せて制御部122により行われる前処理の内容を説明する。
【0043】
モード切り替え回路123は、無接点メモリカード100に搭載されたメモリ130の種類等を設定入力するのに使用されるスイッチ群であり、その設定結果を信号として制御部122に出力するようになっている。
【0044】
アドレス出力回路124は、制御部122からの命令を受けて、アドレス信号を生成してメモリ130に出力する回路である。同回路に関連して以下のような前処理が行われるようになっている。
【0045】
コントロール1の「アドレス24又は32ビットの選択」に関するビットコードを通じて、アドレス出力回路124とメモリ130との間のアドレスバスラインのビット長が24ビット又は34ビットに設定される。
【0046】
コントロール1の「1回処理の選択」に関するビットコードを通じて、メモリ130に対するデータのリード/ライト動作が1回行われ、その処理終了後にアドレスが1つ分増加するように設定される。
【0047】
コントロール1の「連続処理の選択」に関するビットコードを通じて、メモリ130に対するデータのリード/ライト動作がレジスター回路1221上のカウント数の回数だけ行われ、この過程でアドレスが当該回数の分だけ順次増加するように設定される。
【0048】
メモリ130の種類の設定が図2(A)に示すタイプのメモリを示す場合にのみ次のような前処理が行われる。即ち、コントロール1の「アドレスの選択」に関するビットコードを通じて、アドレスがメモリ130に出力されるように設定される。また、「アドレスセット数の選択」に関するビットコードを通じて、アドレスセット数が1/2/3バイトアドレスに設定される。即ち、コントロール1に「アドレスの選択」に関するビットコードを含んでいるときには、レジスター回路1221上のアドレスが1バイト単位でアドレスセット数の分だけメモリ130にライトされるように設定される。更に、「アドレスマスク有無の選択」に関するビットコードを通じて、アドレスマスクの有無が設定される。「マスクアドレスの選択」に関するビットコードを通じて、マスクすべきアドレスがA10/A9/A8に設定される。
【0049】
なお、コントロール2の「カウンター16又は24ビットの選択」に関するビットコードを通じて、カウンター回路1222のカウントビット長が設定される。
【0050】
データ出力回路125は、制御部122からの命令を受けて、レジスター回路1222上のデータをメモリ130に出力する回路である。同回路に関連して以下のような前処理が行われるようになっている。
【0051】
コントロール1の「データ固定の選択」に関するビットコードを通じて、レジスター回路1221上のデータがメモリ130に出力されるように設定される。一方、「データ変化の選択」に関するビットコードを通じて、レジスター回路1221を経ることなく主装置300から転送されたライトデータがメモリ130に出力されるように設定される。
【0052】
メモリ130の種類の設定が図2(A)に示すタイプのメモリを示す場合にのみ次のような前処理が行われる。即ち、コントロール1の「データの選択」に関するビットコードを通じて、レジスター回路1221上のデータ又は主装置300から転送されたライトデータがメモリ130に出力されるように設定される。
【0053】
制御信号回路126は、制御部122からの命令を受けて、多種類のメモリに必須であるCS(メモリーチップセレクト)、OE(アウトプットイネーブル)及びWE(メモリーライトイネーブル)の制御信号を生成してメモリ130に出力する回路である。同回路に関連して以下のような前処理が行われるようになっている。
【0054】
コントロール1の「ライトの選択」に関するビットコードを通じて、CS、WEの制御信号がアクティブとなり、メモリ130に対してライトが行われるように設定される。「リードの選択」を通じて、CS、OEの制御信号がアクティブ、WEの制御信号が非アクティブとなり、メモリ130に対してリードが行われるように設定される。「ライト/リード選択」を通じて、メモリ130に対してライトとリードとが1サイクル期間毎に変化し、リード/ライトが繰り返し行われるように設定される。
【0055】
但し、メモリ130の種類の設定が図2(A)に示すタイプのメモリを示す場合には、CSの制御信号に関しては、コントロール2の「CSのクロック同期出力/常時出力の選択」に関するビットコードを通じて前処理されるようになっている。即ち、「CSのクロック同期出力の選択」に関するビットコードを通じて、CSの制御信号が同期クロック(CLKP)に同期してアクティブになるように設定される。一方、「CSの常時出力の選択」に関するビットコードを通じて、CSの制御信号がアクティブになり、この状態が維持されるように設定される。
【0056】
汎用制御信号回路127は、制御部122からの命令を受けて、ALE(メモリーアドレスラッチイネーブル)、CLE(メモリーコマンドラッチイネーブル)等の特殊制御信号を生成してメモリ130に出力する回路である。ALE、CLEの制御信号については、図2(A)に示すタイプのメモリに必要な制御信号であるが、これ以外の新種のメモリにも適応可能にするために予備の制御信号を生成してメモリ130に出力する機能も含まれている。即ち、汎用制御信号回路127とメモリ130との間に新たなバスラインを複数予め用意しておき、新種のメモリを用いるときには、当該メモリに出力することが必要な新たな制御信号をこのバスライン上に出力するようにしている。同回路に関連して以下のような前処理が行われるようになっている。
【0057】
メモリ130の種類の設定が図2(A)に示すタイプのメモリを示す場合に汎用制御信号回路127が動作し得るようになっており、コントロール2の「CLEの制御信号の出力の選択」に関するビットコードを通じて、CLEの制御信号がアクティブになるように設定される。同様に「CLEの制御信号の出力の選択」に関するビットコードを通じて、CLEの制御信号がアクティブになるように設定される。また、「予備の制御信号出力の選択」に関するビットコードを通じて、予備の制御信号がアクティブとなるように設定される。
【0058】
データ入力回路128はメモリ130から読み出されたリードデータをデータ出力切り替え回路1211に出力する回路である。
【0059】
汎用入力回路129は、メモリ130から出力されたR/B(レディ/ビジィ)信号をデータ出力切り替え回路1211に出力する回路である。
【0060】
アトリビュート入力回路1231は、メモリ130の種類の設定に基づいてメモリ130の属性(メモリ130の種類及び容量等)を示すデータを生成してデータ出力切り替え回路1211に出力する回路である。
【0061】
データ出力切り替え回路1211は、データ入力回路128、汎用入力回路129、アトリビュート入力回路1231から出力された各データが入力されており、制御部122からの命令を受けて、これらのデータを選択してパラレル/シリアル変換回路110に出力する回路である。同回路に関連して以下のような前処理が行われるようになっている。
【0062】
コントロール1の「データ入力の選択」に関するビットコードを通じて、データ出力切り替え回路1211によりデータ入力回路128の出力が選択され、その結果、メモリ130から読み出されたリードデータがリード/ライト装置200を通じて主装置300に転送されるように設定される。
【0063】
コントロール1の「汎用ポート入力の選択」に関するビットコードを通じて、データ出力切り替え回路1211により汎用入力回路129の出力が選択され、その結果、メモリ130のR/B信号がリード/ライト装置200を通じて主装置300に転送されるように設定される。同様に、「アトリビュートリード有の選択」に関するビットコードを通じて、データ出力切り替え回路1211によりアトリビュート入力回路1231の出力が選択され、その結果、メモリの属性を示すデータがリード/ライト装置200を通じて主装置300に転送されるように設定される。
【0064】
以下、上記のように構成されたリード/ライト制御回路120のリード/ライト動作の例を図6乃至図17を参照して説明する。
【0065】
図6及び図7はNAND型フラッシュメモリを代表例とする図2(A)に示すタイプのメモリについてのライト動作の例を示す図である。図6(A)はレジスター回路1221上の各種データの内容、図6(B)は同各種データに含まれるコントロール1、2に含まれるビットコードの内容、図7は同各種データに基づいてリード/ライト制御回路120が動作したときの制御信号等のタイミングチャートを各々示している。
【0066】
このライト動作例の場合、主装置300から5つの各種データ1〜5が転送されレジスター回路1221(レジスタ1〜5)に保持される。
【0067】
レジスタ1上に保持されたアドレス、データ及びカウント数は12345678h、80h(プログラムコマンド)及び0200hである。コントロール1、2には、「アドレス32ビットの選択」、「データの選択」、「ライトの選択」、「データ固定の選択」、「CSの常時出力の選択」及び「CLEの出力の選択」等に関するビットコード群が含まれている。
【0068】
よって、「アドレス32ビットの選択」に関するビットコードにより、アドレスバスのビット長が32ビットに設定される。「カウンター16ビットの選択」に関するビットコードにより、カウンター回路1222のカウントビット長が16ビットに設定される。「データの選択」及び「データ固定の選択」に関するビットコードにより、レジスタ1上のデータがメモリ130に出力される状態に設定される。「CSの常時出力の選択」に関するビットコードにより、CSの制御信号がアクティブとなり、以後この状態が維持される。「CLEの出力の選択」に関するビットコードにより、CLEの制御信号がアクティブとなる。「ライトの選択」に関するビットコードにより、WEの制御信号がアクティブとなる。
【0069】
この結果、レジスタ1上のデータである80h(プログラムコマンド)がメモリ130にライトされる(図7中1−1) 。このようなレジスタ1に基づく前処理及びライト動作が終了すると、レジスタ2に基づく処理に移行する。
【0070】
レジスタ2上に保持されたアドレスは12345678hである。コントロール1、2には、「アドレスの選択」、「アドレスマスク有の選択」、「アドレスセット数(3バイト)の選択」、「マスクアドレス(A8)の選択」、「CSの常時出力の選択」及び「ALEの出力の選択」等に関するビットコード群が含まれている。
【0071】
よって、「アドレスの選択」に関するビットコードにより、レジスター回路2上のアドレスがメモリ130に出力される状態に設定される。「アドレスマスク有の選択」及び「マスクアドレス(A8)の選択」に関するビットコードにより、マスクアドレスがA8に設定される。「CSの常時出力の選択」に関するビットコードにより、CSの制御信号が引き続いてアクティブとなる。「ALEの出力の選択」及び「アドレスセット数(3バイト)の選択」のビットコードにより、ALE及びWEの制御信号が3回連続してアクティブとなる。
【0072】
この結果、レジスタ2上のアドレスである12345678hをマスクした1Ah、2Bh、78hがメモリ130に順次ライトされ(図7中2−1〜2−3)、メモリ130に対してアドレス121A2B78hが設定される。このようなレジスタ2に基づく前処理及びライト動作が終了すると、レジスタ3に基づく処理に移行する。
【0073】
レジスタ3上に保持されたカウント数は0200hである。コントロール1、2には「データの選択」、「ライトの選択」、「データ変化の選択」、「連続処理の選択」及び「CSの常時出力の選択」等に関するビットコード群が含まれている。
【0074】
よって、「データの選択」及び「データ変化の選択」に関するビットコードにより、レジスター回路1221を経ることなく主装置300から転送されたライトデータがメモリ130に出力される状態に設定される。「CSの常時出力の選択」のビットコードにより、CSの制御信号が引き続いてアクティブとなる。「ライトの選択」及び「連続処理の選択」のビットコードにより、WEの制御信号が1サイクル期間毎に1回アクティブとなり、これがレジスタ3上のカウント数0200hの回数分続けられる一方、この過程でメモリ130内のアドレスが順次インクリメントされる。
【0075】
この結果、主装置300から転送された512個のライトデータがメモリ130のアドレス121A2B78hから121A2D77hにかけて1サイクル期間毎に順次ライトされる(図7中3−1〜3−512)。このようなレジスタ3に基づく前処理及びライト動作が終了すると、レジスタ4に基づく処理に移行する。
【0076】
レジスタ4上に保持されたデータは10h(プログラムコマンド)である。コントロール1、2には、「データの選択」、「ライトの選択」、「データ固定の選択」、「CSの常時出力の選択」及び「CLEの出力の選択」等に関するビットコード群が含まれている。
【0077】
よって、「データの選択」及び「データ固定の選択」に関するビットコードにより、レジスタ4上のデータがメモリ130に出力される状態に設定される。「CSの常時出力の選択」に関するビットコードにより、CSの制御信号が引き続いてアクティブとなる。「CLEの出力の選択」に関するビットコードにより、CLEの制御信号がアクティブとなる。「ライトの選択」に関するビットコードにより、WEの制御信号がアクティブとなる。
【0078】
この結果、レジスター4上のデータである10h(プログラムコマンド)がメモリ130にライトされる(図7中4−1) 。このようなレジスタ4に基づく前処理及びライト動作が終了すると、レジスタ5に基づく処理に移行する。
【0079】
レジスタ5に保持されたコントロール1、2には、「データの選択」、「リードの選択」、「汎用ポート入力の選択」及び「CSの常時出力の選択」等に関するビットコード群が含まれている。
【0080】
よって、「CSの常時出力の選択」に関するビットコードにより、CSの制御信号が引き続いてアクティブとなる。「データの選択」、「リードの選択」及び「1回処理の選択」及び「汎用ポート入力の選択」に関するビットコードにより、メモリ130のR/B信号が1サイクル期間毎に主装置300に順次転送される。
【0081】
この結果、メモリ130のR/B信号が汎用入力回路129、データ出力切り替え回路1211等を通じて主装置300に1サイクル期間毎に順次転送される(図7中5−1、5−2)。図6(C)中5−1で示す時点においてR/B信号がビジィ状態になっているが、1サイクル期間経過後の図6(C)中5−2で示す時点でR/B信号がレディ状態に変化したので、この時点でレジスタ5に基づく処理が終了となる。
【0082】
このようにしてレジスタ1〜5に基づく前処理及びリード/ライト動作が終了すると、1回目のループ処理が終了となる。その後、引き続いてレジスタ1に基づく処理に再び移行し、レジスタ1〜5に基づく処理が上記と同様にして順次行われる。2回目のループ処理を行う際には、メモリ130のアドレスについては、レジスター1〜5上のアドレスではなく、これに処理回数を計数するカウンター回路1222の計数値を加算した値が用いられる。このようなループ処理が繰り返し行われるので、結果として、メモリ130には主装置300から順次転送されたライトデータがアドレス121A2B78hから順番にライトされ、このライト動作が連続して行われることになる。
【0083】
図8及び図9はNAND型フラッシュメモリを代表例とする図2(A)に示すタイプのメモリについてのリード動作の例を示す図である。図8(A)はレジスター回路1221上の各種データの内容、図8(B)は同各種データに含まれるコントロール1、2に含まれるビットコードの内容、図9は同各種データに基づいてリード/ライト制御回路120が動作したときの制御信号等のタイミングチャートを各々示している。
【0084】
このリード動作例の場合、主装置300から5つの各種データ1〜5が転送されレジスター回路1221(レジスタ1〜5)に保持される。
【0085】
レジスタ1上に保持されたアドレス、データ及びカウント数は12345678h、00h(プログラムコマンド)及び0200hである。コントロール1、2には、「アドレス32ビットの選択」、「データの選択」、「ライトの選択」、「データ固定の選択」、「CSのクロック同期出力の選択」、「CLEの出力の選択」及び「カウンター16ビットの選択」等に関するビットコード群が含まれている。
【0086】
よって、「アドレス32ビットの選択」に関するビットコードにより、アドレスバスのビット長が32ビットに設定される。「カウンター16ビットの選択」に関するビットコードにより、カウンター回路1222のカウントビット長が16ビットに設定される。「データの選択」及び「データ固定の選択」に関するビットコードにより、レジスタ1上のデータがメモリ130に出力される状態に設定される。「CSのクロック同期出力の選択」に関するビットコードにより、CSの制御信号が同期クロック(CLKP)に同期してアクティブとなる。「CLEの出力の選択」に関するビットコードにより、CLEの制御信号がアクティブとなる。「ライトの選択」に関するビットコードにより、WEの制御信号がアクティブとなる。
【0087】
この結果、レジスタ1上のデータである00h(プログラムコマンド)がメモリ130にライトされる(図9中1−1) 。このようなレジスタ1に基づく前処理及びライト動作が終了すると、レジスタ2に基づく処理に移行する。
【0088】
レジスタ2上に保持されたアドレスは12345678hである。コントロール1、2には、「アドレスの選択」、「アドレスマスク有の選択」、「アドレスセット数(3バイト)の選択」、「マスクアドレス(A8)の選択」、「CSのクロック同期出力の選択」及び「ALEの出力の選択」等に関するビットコード群が含まれている。
【0089】
よって、「アドレスの選択」に関するビットコードにより、レジスタ2上のアドレスがメモリ130に出力される状態に設定される。「アドレスマスク有の選択」及び「マスクアドレス(A8)の選択」に関するビットコードにより、マスクアドレスがA8に設定される。「CSのクロック同期出力の選択」に関するビットコードにより、CSの制御信号が同期クロック(CLKP)に同期してアクティブとなる。「ALEの出力の選択」及び「アドレスセット数(3バイト)の選択」のビットコードにより、ALEの制御信号がアクティブとなり、WEの制御信号が3回連続してアクティブとなる。
【0090】
この結果、レジスタ2上のアドレスである12345678hをマスクした1Ah、2Bh、78hがメモリ130に順次ライトされ(図9中2−1〜2−3)、メモリ130に対してアドレス121A2B78hが設定される。このようなレジスタ2に基づく前処理及びライト動作が終了すると、レジスタ3に基づく処理に移行する。
【0091】
レジスタ3に保持されたコントロール1、2には、「データの選択」、「リードの選択」、「汎用ポート入力の選択」及び「CSのクロック同期出力の選択」等に関するビットコード群が含まれている。
【0092】
よって、「CSのクロック同期出力の選択」に関するビットコードにより、CSの制御信号が同期クロックに同期してアクティブとなる。「データの選択」、「リードの選択」及び「汎用ポート入力の選択」に関するビットコードにより、メモリ130のR/B信号が1サイクル期間毎に主装置300に順次転送されるように設定される。
【0093】
この結果、メモリ130のR/B信号が汎用入力回路129、データ出力切り替え回路1211等を通じて主装置300に転送される(図9中3−1)。図9中3−1で示す時点においてR/B信号がレディ状態になったので、レジスタ3に基づく処理はこの時点で終了となり、レジスタ4に基づく処理に移行する。
【0094】
レジスタ4上に保持されたカウント数は0200hである。コントロール1、2には「データの選択」、「リードの選択」、「データ変化の選択」、「連続処理の選択」及び「CSの常時出力の選択」及び等に関するビットコード群が含まれている。
【0095】
よって、「データの選択」、「データ変化の選択」及び「リードの選択」に関するビットコードにより、メモリ130のリードデータが主装置300に転送される状態に設定される。「CSの常時出力の選択」に関するビットコードにより、CSの制御信号がアクティブとなり、以後この状態が続けられる。「リードの選択」及び「連続処理の選択」のビットコードにより、WEの制御信号が非アクティブのまま維持される一方、OEの制御信号が1サイクル期間毎に1回アクティブとなり、これがレジスタ4上のカウント数0200hの回数分続けられる。この過程でメモリ130内のアドレスが順次インクリメントされる。
【0096】
この結果、メモリ130に記録されたデータがアドレス121A2B78hから121A2D77hにかけて1サイクル期間毎に順次リードされ(図94−1〜4−512)、データ入力回路128、データ出力切り替え回路1211等を通じて主装置300に順次転送される。このようなレジスタ4に基づく前処理及びリード動作が終了すると、レジスタ5に基づく処理に移行する。
【0097】
レジスタ5に保持されたコントロール1、2には、「データの選択」、「リードの選択」、「汎用ポート入力の選択」及び「CSのクロック同期出力の選択」等に関するビットコード群が含まれている。
【0098】
よって、「CSのクロック同期出力の選択」に関するビットコードにより、CSの制御信号が同期クロック(CLKP)に同期してアクティブとなる。「データの選択」、「リードの選択」及び「汎用ポート入力の選択」に関するビットコードにより、メモリ130のR/B信号が1サイクル期間毎に主装置300に順次転送されるように設定される。
【0099】
この結果、メモリ130のR/B信号が汎用入力回路129、データ出力切り替え回路1211等を通じて主装置300に1サイクル期間毎に順次転送される(図9中5−1、5−2)。図9中5−1で示す時点ではR/B信号がビジィ状態になっているが、1サイクル期間経過後の図9中5−2で示す時点ではR/B信号がレディ状態に変化したので、この時点でレジスタ5に基づく処理が終了となる。
【0100】
このようにしてレジスタ1〜5に基づく前処理及びリード/ライト動作が終了すると、1回目のループ処理が終了となる。その後、引き続いてレジスタ1に基づく処理に再び移行し、レジスタ1〜5に基づく処理が上記と同様にして行われる。2回目のループ処理を行う際には、メモリ130のアドレスについては、レジスタ1〜5上のアドレスではなく、これに処理回数を計数するカウンター回路1222計数値を加算した値が用いられている。このようループ処理が繰り返し行われるので、結果として、メモリ130に記録されたデータがアドレス12345678hから順番にリードされるとともに主装置300に順次転送され、このリード動作が連続して行われる。
【0101】
図10及び図11はNOR型フラッシュメモリを代表例とする図2(B)に示すタイプのメモリについてのバイトライトの動作例を示す図である。図10(A)はレジスター回路1221上の各種データの内容、図10(B)は同各種データに含まれるコントロール1、2に含まれるビットコードの内容、図11は同各種データに基づいてリード/ライト制御回路120が動作したときの制御信号等のタイミングチャートを各々示している。
【0102】
このバイトライト動作例の場合、主装置300から2つの各種データ1、2が転送されレジスター回路1221(レジスタ1、2)に保持される。
【0103】
レジスタ1上に保持されたアドレス、データ及びカウント数は12345678h、40h(プログラムコマンド)及び0001hである。コントロール1、2には「アドレス32ビットの選択」、「ライトの選択」、「データ固定の選択」及び「カウンター16ビットの選択」等に関するビットコード群が含まれている。
【0104】
よって、「アドレス32ビットの選択」に関するビットコードにより、アドレスバスのビット長が32ビットに設定される。「カウンター16ビットの選択」に関するビットコードにより、カウンター回路1222のカウントビット長が16ビットに設定される。「データ固定の選択」に関するビットコードにより、レジスタ1上のデータがメモリ130に出力される状態に設定される。「ライトの選択」に関するビットコードにより、CS及びWEの制御信号がアクティブとなる。
【0105】
この結果、レジスタ1上のデータである40h(プログラムコマンド)がメモリ130にライトされる(図11中1−1) 。このようなレジスタ1に基づく前処理及びライト動作が終了すると、レジスタ2に基づく処理に移行する。
【0106】
レジスタ2上に保持されたアドレス及びカウント数は12345678h及び0001hである。コントロール1、2には「連続処理の選択」、「データ変化の選択」及び「ライトの選択」及び等に関するビットコード群が含まれている。
【0107】
よって、「データ変化の選択」に関するビットコードにより、レジスター回路1221を経ることなく主装置300から転送されたライトデータがメモリ130に出力される状態に設定される。「ライトの選択」及び「連続処理の選択」のビットコードにより、CS及びWEの制御信号が1サイクル期間毎にアクティブとなるものの、レジスタ3上のカウント数が0001hであるので、CS及びWEの制御信号のアクティブは1回だけであり、メモリ130のアドレスも1つ分インクリメントされるに止まる。
【0108】
この結果、主装置300から転送された1個のライトデータがメモリ130のアドレス12345678hにライトされる(図11中2−1)。
【0109】
このようなレジスタ1、2に基づく前処理及びライト動作が終了すると、1回目のループ処理が終了となる。その後、引き続いてレジスタ1に基づく処理に再び移行し、レジスタ1、2に基づく処理が上記と同様にして行われる。2回目のループ処理を行う際には、メモリ130のアドレスについては、レジスタ1、2上のアドレスではなく、これに処理回数を計数するカウンター回路1222計数値を加算した値が用いられている。その結果、メモリ130には、2回目のループ処理により40h(プログラムコマンド)及びライトデータが記録され(図11中1−2、2−2)、3、4、5・・回目のループ処理により40h(プログラムコマンド)及びライトデータが順次記録される(図11中1−3、2−3等)。即ち、メモリ130のアドレス12345678hから順番にライトデータが順次記録され、このライト動作が連続して行われる。
【0110】
図12及び図13はNOR型フラッシュメモリを代表例とする図2(B)に示すタイプのメモリについてのページライトの動作例を示す図である。図12(A)はレジスター回路1221上の各種データの内容、図12(B)は同各種データに含まれるコントロール1、2に含まれるビットコードの内容、図13は同各種データに基づいてリード/ライト制御回路120が動作したときの制御信号等のタイミングチャートを各々示している。
【0111】
このページライト動作例の場合、主装置300から4つの各種データ1〜4が転送されレジスター回路1221(レジスタ1〜4)に保持される。
【0112】
レジスタ1上に保持されたアドレス、データ及びカウント数は12345678h、E8h(プログラムコマンド)及び0020hである。コントロール1、2には「アドレス32ビットの選択」、「ライトの選択」及び「データ固定の選択」及び「カウンター16ビットの選択」等に関するビットコード群が含まれている。
【0113】
よって、「アドレス32ビットの選択」に関するビットコードにより、メモリ130のアドレスバスのビット長が32ビットに設定される。「カウンター16ビットの選択」に関するビットコードにより、カウンター回路1222のカウントビット長が16ビットに設定される。「データ固定の選択」に関するビットコードにより、レジスタ1上のデータがメモリ130に出力される状態に設定される。「ライトの選択」に関するビットコードにより、CS及びWEの制御信号がアクティブとなる。
【0114】
この結果、レジスタ1上のデータであるE8h(プログラムコマンド)がメモリ130にライトされる(図13中1−1) 。このようなレジスタ1に基づく前処理及びライト動作が終了すると、レジスタ2に基づく処理に移行する。
【0115】
レジスタ2上に保持されたデータは1Fh(データ数32バイト)である。コントロール1、2には、「ライトの選択」及び「データ固定の選択」等に関するビットコード群が含まれている。
【0116】
よって、「データ固定の選択」に関するビットコードにより、レジスタ1上のデータがメモリ130に出力される状態に設定される。「ライトの選択」に関するビットコードにより、CS及びWEの制御信号がアクティブとなる。
【0117】
この結果、レジスタ1上のデータである1Fh(データ数32バイト)がメモリ130にライトされる(図13中2−1) 。このようなレジスタ2に基づく前処理及びライト動作が終了すると、レジスタ3に基づく処理に移行する。
【0118】
レジスタ3上に保持されたアドレス及びカウント数は12345678h及び0020hである。コントロール1、2には「連続処理の選択」、「データ変化の選択」及び「ライトの選択」等に関するビットコード群が含まれている。
【0119】
よって、「データ変化の選択」に関するビットコードにより、レジスター回路1221を経ることなく主装置300から転送されたライトデータがメモリ130に出力される状態に設定される。「ライトの選択」及び「連続処理の選択」のビットコードにより、CS及びWEの制御信号が1サイクル期間毎に合計32回アクティブとなり、この過程でメモリ130のアドレスが順次インクリメントされる。
【0120】
この結果、主装置300から転送された32個のライトデータがメモリ130のアドレス12345678hから1234569hにかけて順次ライトされる(図13中3−1〜3−32)。このようなレジスタ3に基づく前処理及びライト動作が終了すると、レジスタ4に基づく処理に移行する。
【0121】
レジスタ4上に保持されたデータはD0h(プログラムコマンド)である。コントロール1、2には、「ライトの選択」及び「データ固定の選択」等に関するビットコード群が含まれている。
【0122】
よって、「データ固定の選択」に関するビットコードにより、レジスタ4上のデータがメモリ130に出力される状態に設定される。「ライトの選択」に関するビットコードにより、CS及びWEの制御信号がアクティブとなる。
【0123】
この結果、レジスタ4上のデータであるD0h(プログラムコマンド)がメモリ130にライトされ(図13中4−1) 、この時点でレジスタ4に基づく前処理及びライト動作が終了する。
【0124】
このようにしてレジスタ1〜4に基づく前処理及びリード/ライト動作が終了すると、1回目のループ処理が終了となる。その後、引き続いてレジスタ1に基づく処理に再び移行し、レジスタ1〜4に基づく処理が上記と同様にして行われる。2回目のループ処理を行う際には、メモリ130のアドレスについては、レジスタ1〜4上のアドレスではなく、これに処理回数を計数するカウンター回路1222計数値を加算した値が用いられる。このようなループ処理が繰り返し行われるので、結果として、メモリ130には主装置300から転送されたライトデータがアドレス12345678hから順番にライトされ、このライト動作が連続して行われる。
【0125】
図14及び図15はNOR型フラッシュメモリを代表例とする図2(B)及び(C)に示すタイプのメモリについてのリード動作例を示す図である。図14(A)はレジスター回路1221上の各種データの内容、図14(B)は同各種データに含まれるコントロール1、2に含まれるビットコードの内容、図15は同各種データに基づいてリード/ライト制御回路120が動作したときの制御信号等のタイミングチャートを各々示している。
【0126】
このリード動作例の場合、主装置300から1つの各種データ1が転送されレジスター回路1221(レジスタ1)に保持される。
【0127】
レジスタ1上に保持されたアドレス及びカウント数は12345678h及び1234hである。コントロール1、2には「アドレス32ビットの選択」、「連続処理の選択」、「データ変化の選択」、「リードの選択」及び「カウンター16ビットの選択」等に関するビットコード群が含まれている。
【0128】
よって、「アドレス32ビットの選択」に関するビットコードにより、メモリ130のアドレスバスのビット長が32ビットに設定される。「カウンター16ビットの選択」に関するビットコードにより、カウンター回路1222のカウントビット長が16ビットに設定される。「データ変化の選択」及び「リードの選択」に関するビットコードにより、メモリ130のリードデータが主装置300に転送される状態に設定される。「リードの選択」及び「連続処理の選択」のビットコードにより、WEの制御信号が非アクティブのまま維持される一方、CS及びOEの制御信号が1サイクル期間毎に1回アクティブとなり、これがレジスタ1上のカウント数1234hの回数分続けられる。この過程でメモリ130のアドレスが順次インクリメントされる。
【0129】
この結果、メモリ130に記録されたデータがアドレス12345678hから1サイクル期間毎に順次リードされ(図15中1−1〜1−6等)、データ入力回路128、データ出力切り替え回路1211等を通じて主装置300に順次転送される。
【0130】
このようなレジスタ1に基づく前処理及びリード動作が終了すると、1回目のループ処理が終了となる。その後、引き続いてレジスタ1に基づく処理に再び移行し、同様のリード動作が行われる。2回目のループ処理を行う際には、メモリ130のアドレスについては、レジスタ1上のアドレスではなく、これに処理回数を計数するカウンター回路1222計数値を加算した値が用いられる。このようなループ処理が繰り返し行われるので、結果として、メモリ130に記録されたデータがアドレス12345678hから1サイクル期間毎に順次リードされ、このリード動作が連続して行われる。
【0131】
図16及び図17はS−RAMを代表例とする図2(C)に示すタイプのメモリについてのライト動作例を示す図である。図16(A)はレジスター回路1221上の各種データの内容、図16(B)は同各種データに含まれるコントロール1、2に含まれるビットコードの内容、図17は同各種データに基づいてリード/ライト制御回路120が動作したときの制御信号等のタイミングチャートを各々示している。
【0132】
このライト動作例の場合、主装置300から1つの各種データ1が転送されレジスター回路1221(レジスタ1)に保持される。
【0133】
レジスタ1上に保持されたアドレス及びカウント数は12345678h及び1234hである。コントロール1、2には「アドレス32ビットの選択」、「連続処理の選択」、「データ変化の選択」、「ライトの選択」及び「カウンター16ビットの選択」等に関するビットコード群が含まれている。
【0134】
よって、「アドレス32ビットの選択」に関するビットコードにより、メモリ130のアドレスバスのビット長が32ビットに設定される。「カウンター16ビットの選択」に関するビットコードにより、カウンター回路1222のカウントビット長が16ビットに設定される。「データ変化の選択」及び「ライトの選択」に関するビットコードにより、主装置300から転送されたライトデータがメモリ130にライトされる状態に設定される。「ライトの選択」及び「連続処理の選択」のビットコードにより、CS及びWEの制御信号が1サイクル期間毎に1回アクティブとなり、これがレジスタ1上のカウント数1234hの回数分続けられる。この過程でメモリ130のアドレスが順次インクリメントされる。
【0135】
この結果、主装置300から転送されたライトデータがメモリ130にアドレス12345678hから1サイクル期間毎に順次ライトされる(図17中1−1〜1−6等)。
【0136】
このようなレジスタ1に基づく前処理及びライト動作が終了すると、1回目のループ処理が終了となる。その後、引き続いてレジスタ1に基づく処理に再び移行し、同様のライト動作が行われる。2回目のループ処理を行う際には、メモリ130のアドレスについては、レジスタ1上のアドレスではなく、これに処理回数を計数するカウンター回路1222計数値を加算した値が用いられる。このようなループ処理が繰り返し行われるので、結果として、主装置300から転送されたライトデータがメモリ130にアドレス12345678hから1サイクル期間毎に順次ライトされ、このライト動作が連続して行われる。
【0137】
なお、S−RAMを代表例とする図2(C)に示すタイプのメモリについてのリード動作例については、図14及び図15で示したNOR型フラッシュメモリを代表例とする図2(B)に示すタイプのメモリについての例と全く同一であるので、その説明については省略する。
【0138】
以下、以上のように構成された無接点メモリカードのリード/ライトシステムの基本的な動作について説明する。
【0139】
まず、リード/ライト装置200に無接点メモリカード100がセットされると、リード/ライト装置200のコイル201〜205と無接点メモリカード100のコイル101〜105とが各々対向する。と同時に、主装置300から出力された命令によりリード/ライト装置200が動作する。これに伴って、リード/ライト装置200により生成された電源電圧及び同期クロックが無接点メモリカード100に供給され、同カードが動作状態となる。
【0140】
主装置300は、無接点メモリカード100に対してデータのリード/ライトを行う前準備を行うために、「アトリビュートリード有の選択」に関するビットコードを有する各種データを無接点メモリカード100に転送する。このコントロールデータを転送する際には、この転送とは別に、セレクトデータを無接点メモリカード100に転送し、各種データがレジスター回路1221に保持されるようにする。すると、「アトリビュートリード有の選択」に関するビットコードにより、アトリビュート入力回路1231にて生成されたメモリの属性を示すデータがデータ出力取り替え回路1211等を通じて主装置300に転送される。
【0141】
もし、メモリの属性を示すデータから判断して、現在の同期クロックの周波数が無接点メモリカード100に搭載されているメモリ130にとって最適なものでないときには、リード/ライト装置200に対して同期クロックの周波数を変更させるための命令を発する。すると、無接点メモリカード100に供給される同期クロックの周波数が変化し、結果として、無接点メモリカード100に供給される同期クロックの周波数が最適なものとなる。
【0142】
また、メモリの属性のデータから無接点メモリカード100に搭載されているメモリ130の種類が判ることから、前処理段階においては、当該メモリの種類に合致し且つ本来のリード/ライトを行うための各種データを生成して無接点メモリカード100に転送し、本動作段階においては、無接点メモリカード100と同期を保ちつつ、ライト時にライトデータを転送する一方、リード時にはメモリ130から読み出されたリードデータ等を入力する。そして、前処理段階において、各種データを無接点メモリカード100のレジスター回路1221に保持させるためのセレクトデータを転送する一方、本動作段階において、無接点メモリカード100との間でライトデータ/リードデータ等の相互転送をするためのセレクトデータを転送する。
【0143】
無接点メモリカード100のリード/ライト制御回路120において、レジスター回路1221上に保持された各種データに基づいてメモリ130に対してリード/ライトが行われることは上述した通りである。また、モード切り替え回路123の設定を通じてコントロール1、2の内容が切り替えられるようになっているので、無接点メモリカード100に図2に示すいずれのタイプのメモリ130が搭載されても適応可能になっている。
【0144】
特に、レジスター回路1221上の各種データを組み合わせることにより、単純な内容でありながら従来多大な時間を必要としていた処理、例えば、固定データを書き込んで読み出す、固定データでカウント数書き込む、同一アドレスに対しプログラムコマンド又は制御データを複数セットする等の処理を容易に行うことが可能になる。また、アドレスバスとデータバスとを分離して用いるNAND型フラッシュメモリ等についてもアドレスセットやデータセット等を容易に行うことも可能になる。
【0145】
上記のように構成された無接点メモリカードのリード/ライトシステムの場合、主装置300から無接点メモリカード100に各種データを転送すると、この各種データに基づいてリード/ライト動作上の前処理を行うようになっている。そのため、メモリ130に与えるアドレス、データ、制御信号及び/又はメモリコントロールを任意に設定したり又は変更させることができ、メモリ130に対して1サイクル期間内に複数回のアクセスを行うことが可能となる。また、プログラムコマンドを与えることが必要なNOR型等のフラッシュメモリについては、プログラムコマンドの与え方も任意に設定することも可能になる。
【0146】
従来例による場合、1バイトのデータをフラッシュメモリに転送するに当たり、16クロック期間中において実際のメモリへのアクセスは4クロック期間だけであり、その後の12クロック期間についてはウェイトとなっていた。これに対して本案システムによる場合、そのウエイト期間においても処理を行うことが可能になり、高速アクセス化が実現される。また、従来単純な内容でありながら多大な時間を必要としていた処理を短時間に行うことが可能であるので、この点で大幅な高速アクセス化が実現される。
【0147】
従来例による場合、無接点メモリカードにS−RAM等に比べてアクセスプロトコルが非常に複雑なフラッシュメモリを搭載したときは、主装置がアクセスに必要な処理を同メモリに対してその都度行う必要があることから、この点で高速アクセス化を図ることが非常に困難となっていた。これに対して本案システムによる場合、主装置300がアクセスに必要な処理をメモリ130に対してその都度行う必要がない。なぜなら、主装置300は、各種データを転送するだけで、無接点メモリカード100においてリード/ライト動作上の前処理が行われ、その後、ライト時にはライトデータを転送し、リード時にはリードデータ等を入力するだけで良いからである。この点で高速アクセス化を実現することが可能になる。また、無接点メモリカード100にCPUを搭載していないことから、消費電力が小さく、無接点メモリカードの薄型化や低コスト化を図ることが可能になる。しかも多品種のメモリに適応可能でありながら、アクセスプロトコルを変更するための制御プログラムが不要であり、この点でも低コスト化を図ることが可能になる。
【0148】
更に、リード/ライト装置200から無接点メモリカード100に電力と同期クロックとが別々に供給される構成となっているので、同期クロックの周波数をメモリ130の種類に合わせて随時変更させても、無接点メモリカード100に供給される電源電圧が変化せず、回路特性が不安定にならない。そのため、無接点メモリカード100に搭載されるメモリ130の種類に合わせて同期クロックの周波数を変更し、アクセス速度を最大に設定することが可能になり、この点で高速アクセス化が実現される。従来、アクセス速度として500Kbps〜1Mbps程度であったが、本案システムの場合、5Mbps程度の高速アクセスを実現することが可能になった。
【0149】
加えて、同期クロック用コイル102を別途追加する必要があるものの、リード/ライト装置200と無接点メモリカード100との間のデータの送受信がシリアル形式で行われている以上、パラレルで入力する場合に比べて、無接点メモリカード100の寸法や消費電流が大きくならず、無接点メモリカード100にCPUを搭載していない点を含めて、無接点メモリカード100の薄型化及び低コスト化を図ることが可能になる。
【0150】
なお、本発明に係るメモリのリード/ライト制御回路については無接点メモリカードだけの適用に止まらず、マイコン等を代表とするメモリを内蔵した回路にも同様に適用可能である。即ち、レジスター回路上の各種データに基づいてリード/ライト動作上の前処理を行い、この状態で、ライト時には、レジスター回路を経ることなく主装置から転送されたライトデータをメモリに順次ライトさせる一方、リード時には、メモリに記録されたデータを順次リードさせて主装置に転送させる機能を有する限り、各種データの種類、前処理の内容、回路の構成及びメモリの種類等については問われない。
【0151】
本発明に係る無接点メモリカードについては上記実施の形態に限定されることはない。即ち、上記リード/ライト制御回路が搭載されており、リード/ライト装置から電力を入力するための電源用コイルと、リード/ライト装置から同期クロックを入力するための同期クロック用コイルとが別々にされ、主装置からリード/ライト装置を通じて転送されたセレクトデータがセレクト用コイルを通じてシリアル形式で入力され、主装置からリード/ライト装置を通じて転送されたセレクトデータ以外の各種データが入力用コイルを通じてシリアル形式で入力され、リード/ライト装置を通じて主装置に出力すべきリードデータ等が出力用コイルを通じてシリアル形式で出力される構成である限り、コイルの周辺回路の構成等については問われない。
【0152】
本発明に係るリード/ライト装置についても同様である。即ち、主装置に接続されており且つ上記無接点メモリカードがセットされる装置であって、リード/ライト装置から無接点メモリカードに電力を供給するための電源用コイルと、リード/ライト装置から無接点メモリカードに同期クロックを供給するための同期クロック用コイルとが別々にされており、主装置から転送されたセレクトデータがセレクト用コイルを通じてシリアル形式で出力され、主装置から転送されたセレクトデータ以外の各種データが出力用コイルを通じてシリアル形式で出力され、無接点メモリカードから主装置に向けて出力されたリードデータ等が入力用コイルを通じて入力される構成である限り、コイルの周辺回路の構成等については問われない。
【0153】
本発明に係る無接点メモリカードのリード/ライトシステムについても同様である。即ち、主装置、リード/ライト装置と無接点メモリカードとを備えた構成である限り、いかなる形態であってもかまわない。特に、主装置は、無接点メモリカードにおいて各種データをレジスター回路に保持させる前処理段階とレジスター回路に保持された各種データに基づいて前処理及びリード/ライト動作を行わせる本動作段階とを切り替えるためのセレクトデータを生成してリード/ライト装置を通じて無接点メモリカードに転送し、これとは別に、前処理段階においては各種データを生成してリード/ライト装置を通じて無接点メモリカードに転送し、本動作段階においてはライト時に必要なライトデータを生成しリード/ライト装置を通じて無接点メモリカードに転送する一方、リード時には無接点メモリカードからリード/ライト装置を通じて転送された少なくともリードデータを入力する機能を有する限り、どのような構成のものを用いてもかまわない。
【0154】
【発明の効果】
以上、本発明の請求項1、2、3、4又は5に係るメモリのリード/ライト制御回路による場合、主装置から各種データが転送されるだけでリード/ライト動作上の前処理を行い、この状態で、主装置から転送されたデータをメモリに順次ライトさせる一方、メモリに記録されたデータを順次リードさせて主装置に転送させる基本構成となっているので、リード/ライト動作を繰り返し行うに際し、従来に比べて主装置の関与する割合が小さくなる。また、フラッシュメモリを用いたときには、1サイクル期間内に複数回のアクセスを行うことが可能になり、これに伴って、従来ウエイトであった期間にリード/ライト動作を行わせることが可能になる。更に、複数の各種データを組み合わせて前処理及びリード/ライト動作を順次を行うことにより、たとえアクセスプロトコルが複雑なフラッシュメモリであっても簡単に対応することが可能になるだけでなく、単純な内容でありながら従来多大な時間を必要としていた処理が極めて容易且つ短時間に行うことが可能になる。これらの結果、大幅な高速アクセス化が実現される。
【0155】
本発明の請求項6に係るメモリのリード/ライト制御回路による場合、請求項1の構成に加えて、主装置から各種データが転送されるだけでメモリに対するアドレスセットを行う構成となっているので、NAND型フラッシュメモリ等であっても大幅な高速アクセス化が実現される。
【0156】
本発明の請求項7に係るメモリのリード/ライト制御回路による場合、請求項1の構成に加えて、主装置から各種データが転送されるだけで各種制御信号を生成する構成となっているので、多種類のメモリが適応可能になる。また、主装置から各種データが転送されるだけでメモリの属性を示すデータを主装置に転送する構成となっているので、主装置においてメモリの属性を速やかに認識することができ、この点で一層の高速アクセス化を図ることが可能になる。
【0157】
本発明の請求項8に係るメモリのリード/ライト制御回路による場合、請求項7の構成に加えて、主装置から各種データが転送されるだけで予備の制御信号を生成する構成となっているので、新種のメモリが開発されたとしても、従来のメモリとは制御信号の種類が異なるだけであるならば、新種のメモリも適応可能になり、この点で高性能化を図ることが可能になる。
【0158】
本発明の請求項9に係る無接点メモリカードによる場合、請求項1乃至8のメモリのリード/ライト制御回路が搭載された構成となっているので、請求項1乃至8のメリットを奏する。特に、アクセスプロトコルが複雑なフラッシュメモリを用いたときであっても、従来とは異なりCPUを用いる必要がない。そのため、消費電力が小さくなり、この点でカードの薄型化及び低コスト化を図ることが可能になる。また、リード/ライト装置から電力と同期クロックとが別々に供給される構成となっているので、同期クロックの周波数を変更させても、回路特性が不安定にならない。そのため、メモリの種類に合わせて同期クロックの周波数を変更し、アクセス速度を最大に設定することが可能になり、この点でも高速アクセス化が実現される。
【0159】
本発明の請求項10に係るリード/ライト装置による場合、請求項8の無接点メモリカードと組み合わせて使用される構成となっているので、請求項8と同様のメリットを奏する。
【0160】
本発明の請求項11に係る無接点メモリカードのリード/ライトシステムによる場合、請求項9の無接点メモリカードと請求項10のリード/ライト装置と主装置とを有した構成となっているので、請求項9と同様のメリットを奏する。
【図面の簡単な説明】
【図1】本発明の実施の形態を説明するための図であって、無接点メモリカードのリード/ライトシステムの構成図である。
【図2】無接点メモリカードに適応可能なメモリ及びそのバスラインを示す説明図である。
【図3】主装置から無接点メモリカードに転送される各種データの内容を示す説明図である。
【図4】図2(B)及び(C)に示すタイプのメモリについて用いられるコントロール1、2の内容を示す説明図である。
【図5】図2(A)に示すタイプのメモリについて用いられるコントロール1、2の内容を示す説明図である。
【図6】図2(A)に示すタイプのメモリについてのライト動作の例を示す図であって、(A)はレジスター回路上の各種データの内容、(B)は同各種データに含まれるコントロールに含まれるビットコードの内容を各々示す図である。
【図7】図2(A)に示すタイプのメモリについてのライト動作の例を示す図であって、図6(A)に示す各種データに基づいてリード/ライト制御回路が動作したときの制御信号等のタイミングチャートを示す図である。
【図8】図2(A)に示すタイプのメモリについてのリード動作の例を示す図であって、(A)はレジスター回路上の各種データの内容、(B)は同各種データに含まれるコントロールに含まれるビットコードの内容を各々示す図である。
【図9】図2(A)に示すタイプのメモリについてのリード動作の例を示す図であって、図8(A)に示す各種データに基づいてリード/ライト制御回路が動作したときの制御信号等のタイミングチャートを示す図である。
【図10】図2(B)に示すタイプのメモリについてのバイトライト動作の例を示す図であって、(A)はレジスター回路上の各種データの内容、(B)は同各種データに含まれるコントロールに含まれるビットコードの内容を各々示す図である。
【図11】図2(B)に示すタイプのメモリについてのバイトライト動作の例を示す図であって、図10(A)示す各種データに基づいてリード/ライト制御回路が動作したときの制御信号等のタイミングチャートを示す図である。
【図12】図2(B)に示すタイプのメモリについてのページライト動作の例を示す図であって、(A)はレジスター回路上の各種データの内容、(B)は同各種データに含まれるコントロールに含まれるビットコードの内容を各々示す図である。
【図13】図2(B)に示すタイプのメモリについてのページライト動作の例を示す図であって、図12(A)に示す各種データに基づいてリード/ライト制御回路が動作したときの制御信号等のタイミングチャートを示す図である。
【図14】図2(B)及び(C)に示すタイプのメモリについてのリード動作の例を示す図であって、(A)はレジスター回路上の各種データの内容、(B)は同各種データに含まれるコントロールに含まれるビットコードの内容を各々示す図である。
【図15】図2(B)及び(C)に示すタイプのメモリについてのリード動作の例を示す図であって、図14(A)に示す各種データに基づいてリード/ライト制御回路が動作したときの制御信号等のタイミングチャートを示す図である。
【図16】図2(C)に示すタイプのメモリについてのライト動作の例を示す図であって、(A)はレジスター回路上の各種データの内容、(B)は同各種データに含まれるコントロールに含まれるビットコードの内容を各々示す図である。
【図17】図2(C)に示すタイプのメモリについてのライト動作の例を示す図であって、図16(A)に示す各種データに基づいてリード/ライト制御回路が動作したときの制御信号等のタイミングチャートを示す図である。
【符号の説明】
100 無接点メモリカード
101 電源用コイル
102 同期クロック用コイル
103 セレクト用コイル
104 入力用コイル
105 出力用コイル
120 リード/ライト制御回路
122 制御部
1221 レジスター回路
121 データ入力切り替え回路
123 モード切り替え回路
1231 アトリビュート入力回路
130 メモリ
200 リード/ライト装置
201 電源用コイル
202 同期クロック用コイル
203 セレクト用コイル
204 出力用コイル
205 入力用コイル
300 主装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a memory read / write control circuit, a non-contact memory card, a read / write device, and a non-contact memory card read / write system suitable for large capacity and high-speed access.
[0002]
[Prior art]
A conventional contactless memory card has the following configuration. The card includes a power / clock coil for supplying power and a synchronous clock from the read / write device, and a read / write signal coil for inputting / outputting a read / write signal from the main device through the read / write device. The basic configuration includes a command coil for inputting a command from the main device through the read / write device.
[0003]
That is, when power and a synchronous clock are supplied to the contactless memory card through the power supply / clock coil, the card is energized to be operable. In this state, when the write command is input through the command coil, the write data similarly input through the write signal coil is recorded in the memory, while when the read command is input through the command coil, the memory is recorded. The recorded data is read out and output through a read signal coil (see, for example, Patent Publication 1).
[0004]
[Patent Publication 1]
Japanese Patent Laid-Open No. 62-8281 (FIG. 1)
[0005]
[Problems to be solved by the invention]
However, in the case of the conventional example, the following problems have been pointed out. First, since the power and the synchronous clock are supplied to the contactless memory card through one power source / clock coil, the circuit characteristics become unstable if the frequency of the synchronous clock is changed according to the type of memory as needed. Sometimes. Therefore, the frequency of the synchronous clock is set according to the memory with the slowest access speed, not the memory with the fastest access speed, and it is difficult to realize high-speed access in this respect.
[0006]
However, if read / write data and the like are input in parallel from the read / write device, it is possible to achieve high-speed access as much as it is not necessary to perform serial / parallel conversion in the memory card. Not only does this increase the data reliability, but the size and current consumption of the memory card increase, making it difficult to reduce the size and cost of the card.
[0007]
In addition, when a non-contact memory card is equipped with a flash memory whose access protocol is much more complicated than that of S-RAM, etc., when generating control signals at the time of address setting and data setting in the non-contact memory card, Since the apparatus is involved each time, it is very difficult to achieve high-speed access in this respect. On the other hand, when a CPU is mounted on a contactless memory card, high-speed access can be achieved, but power consumption increases, making it difficult to reduce the thickness and cost of the contactless memory card. Yes. In addition, a control program for changing the access protocol according to the type of memory is required, which also increases the cost.
[0008]
Furthermore, when transferring 1-byte data to the memory, the memory is accessed only once during one cycle period, and the other periods are a wait. This is also a major factor that hinders high-speed access.
[0009]
The present invention has been created under the above-described background, and its object is to provide a memory read / write control circuit, a contactless memory card, and a read / write device capable of solving the above-described problems. And a read / write system for a contactless memory card.
[0010]
[Means for Solving the Problems]
The memory read / write control circuit of the present invention has a register circuit for holding various data including at least the address, data and control data transferred from the main device, and based on the various data. For memory A control unit for performing control necessary for the read / write operation; A data output circuit that is connected to the subsequent stage of the register circuit and outputs data on the register circuit to a memory in response to an instruction from a control unit; The control unit comprises If the control data on the register circuit contains a code related to data fix selection, the data on the register circuit is set to be output to the memory, while the control data on the register circuit is selected for data change. When the code related to the data is included, the write data transferred from the main device without passing through the register circuit has a function of setting so that the memory is sequentially written to the memory. It is composed
[0011]
When various data and write data are transferred in a time-sharing manner from the main apparatus using a common line, the following read / write control circuit may be used. That is, it has a register circuit for holding various data including at least the address, data and control data transferred from the main device, and based on the various data For memory A control unit for performing control necessary for the read / write operation; Based on the select data provided in the previous stage of the register circuit and transferred separately from the various data from the main unit Various data transferred from the main unit The output destination from the register circuit to the memory A data input switching circuit; A data output circuit connected to a subsequent stage of the register circuit and receiving a command from the control unit and outputting data on the register circuit to a memory; The control unit comprises When the control data on the register circuit includes a code related to data fixing selection, the data on the register circuit is set to be output to the memory, while the control data on the register circuit changes data. When the code relating to the selection is included, the write data transferred from the main unit without passing through the register circuit has a function of setting to sequentially write to the memory. It has a configuration.
[0012]
Preferably, the controller is Write selection for control data on register circuit Concerning When a code is included, the memory is set to be written. When the control data on the register circuit includes a code related to read selection, the memory is read. Had the function to set It is desirable to use a configuration.
Further, it is preferable to provide an address output circuit that receives an instruction from the control unit, generates an address signal, and outputs the address signal to the memory. In this case, when the control data on the register circuit includes a code related to the address setting, the control unit sets the bit length of the address bus line between the address output circuit and the memory according to the setting. It has a configuration with a function to It is desirable to use one.
Further, the control unit can hold various data sequentially transferred from the main apparatus in n (n ≧ 1) register circuits 1, 2,... N, and based on the various data on the register circuit 1. Has a function of sequentially performing the control necessary for the read / write operation to the memory based on various data on the register circuit 2... N. Composition It is desirable to use what is present.
[0013]
Preferably, the controller is When the read / write operation is repeated It has a counter circuit that counts the number of read / write processes, and the control data on the register circuit is a code related to one-time processing. But Included When it is While the read / write operation performed based on the various data is performed only once, On the register circuit Code for continuous processing in control data But Included Is In some cases, it is desirable to use a configuration having a function of performing a read / write operation performed based on the various data as many times as the number of counts included in the various data.
[0014]
Preferably, the control unit includes a code related to the address set in the control data on the register circuit. But Including Rarely When you are Concerned For control data Included Address setting, selection of presence / absence of address mask, selection of number of address sets, selection of mask address, selection of presence / absence of transfer of data indicating memory attribute to main device, and selection of output of various control signals (CS Clock synchronization output / always output selection) The address set for the memory is set according to the control code, and when the control data on the register circuit includes a code related to the data set, it is included in the control data. Address setting, memory control setting, data change / fixed setting, selection of whether or not to output various control signals (including selection of CS clock synchronous output / always output), and R / B signal main unit Code for selecting whether or not to transfer Set the data set for the memory according to It is desirable to use a configuration having a function.
[0015]
Preferably, the type of memory to be used among the applicable memories is set and input. The switch outputs the setting result as a signal to the control unit Mode switching circuit and attribute input circuit that generates data indicating the memory attribute based on the memory type setting It is good to have. in this case, The control unit is a code related to the output of various control signals to the control data on the register circuit. But Including Rarely When the control signal to be output to the memory is activated, the code relating to the transfer of the data indicating the attribute of the memory to the control data to the main device is activated. But Including Rarely If it is, it is desirable to use one having a function of transferring data generated by the attribute input circuit to the main device.
[0016]
The control unit is a code related to the output of the spare control signal to the control data on the register circuit. But Including Rarely When it is, it is desirable to use a device having a function of activating the control signal to be output to the memory.
[0017]
The contactless memory card of the present invention includes a power supply coil for inputting power from a read / write device, a synchronous clock coil for inputting a synchronous clock from the read / write device, and a read / write device from the main device. A selection coil for inputting select data transferred through the serial device in a serial format, an input coil for inputting various data transferred from the main device through the read / write device in a serial format, and a read / write device. And an output coil for outputting read data to be transferred to the main device in a serial format.
[0018]
A read / write device of the present invention is a device connected to a main device and in which the contactless memory card is set, a power supply coil for supplying power to the contactless memory card, a contactless The synchronous clock coil for supplying the synchronous clock to the memory card and the select data transferred from the main unit Above Select coil for serial output to contactless memory card, output coil to output various data transferred from main device to contactless memory card in serial format, and main device from contactless memory card And an input coil for inputting at least the read data transferred to the terminal in a serial format.
[0019]
A contactless memory card read / write system according to the present invention includes the contactless memory card, the read / write device, and a main device connected to the read / write device. Select data for switching between a preprocessing stage for holding various data in the register circuit in the memory card and a main operation stage for performing preprocessing and read / write operations based on the various data held in the register circuit. It is transferred to the contactless memory card through the read / write device. Separately, various data is generated in the preprocessing stage and transferred to the contactless memory card through the read / write device. Read data is generated and transferred to a contactless memory card through a read / write device, while read And it has a configuration for inputting at least read data transferred from the non-contact memory card via the read / write device to.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of a read / write system of a contactless memory card, FIG. 2 is an explanatory diagram showing a memory and its bus line applicable to the contactless memory card, and FIG. 3 is transferred from the main device to the contactless memory card. 4 is an explanatory diagram showing the contents of various types of data, FIG. 4 is an explanatory diagram showing the contents of controls 1 and 2 used for the type of memory shown in FIGS. 2B and 2C, and FIG. 5 is FIG. FIG. 6 to FIG. 17 are diagrams for explaining an example of the read / write operation of the read / write control circuit mounted on the contactless memory card. It is.
[0021]
The non-contact memory card read / write system shown here includes a main device 300, a read / write device 200, and a non-contact memory card 100 as shown in FIG. The contactless memory card 100 reads / writes data from / to the memory 130 mounted on the card 100 while being set in the read / write device 200. Such a read / write is controlled by the main device 300 interconnected to the read / write device 200 via the CPU bus 301.
[0022]
The main device 300 is a computer that reads / writes data from / to the contactless memory card 100 and performs predetermined processing as a whole, and has the following basic configuration. That is, in the stage of performing a data read / write operation on the contactless memory card 100 (referred to as this operation stage), write data is generated at the time of writing and the contactless memory card 100 is read through the read / write device 200. On the other hand, at the time of reading, read data transferred from the contactless memory card 100 through the read / write device 200 is input. As preparations before performing this operation stage, various data (details will be described later) including addresses, data, count numbers, and controls 1 and 2 (control data) are generated and contactless through the read / write device 200. The data is transferred to the memory card 100 and held in a register circuit 1221 described later (this stage is referred to as a preprocessing stage). In order to switch between the preprocessing stage and the main operation stage in the contactless memory card 100, select data is generated and transferred to the contactless memory card 100 through the read / write device 200 separately from various data. Yes.
[0023]
The read / write device 200 is a device that serves as an interface between the main device 300 and the contactless memory card 100 in a state where the contactless memory card 100 is set. In order to supply a synchronous clock and to transfer data to and from the contactless memory card 100, a total of five coils having a sheet shape or a coil shape are provided.
[0024]
That is, the read / write device 200 includes a power supply coil 201 for inputting power to the contactless memory card 100, a synchronization clock coil 202 for inputting a synchronization clock to the contactless memory card 100, and a main device. Select coil 203 for outputting select data transferred from 300 to contactless memory card 100 in a serial format and various data transferred from main device 300 to contactless memory card 100 in a serial format An output coil 204 and an input coil 205 for inputting read data transferred from the contactless memory card 100 toward the main device 300 in a serial format are provided.
[0025]
In addition to the coils 201 to 205, the following circuits are provided. That is, in order to supply power to the contactless memory card 100, the coil drive circuit 210 that pulses the power supply voltage and outputs it to the power supply coil 201, and generates a synchronization clock to be supplied to the contactless memory card 100 to generate the synchronization clock The timing circuit 220 for outputting to the coil 202 and the main device 300 are connected to the main device 300 through the CPU bus 301, and the on / off of the coil driving circuit 210 and the synchronous clock frequency of the timing circuit 220 are controlled according to the command output from the main device 300. A control circuit 230, a register circuit 250 that latches various data input from the main apparatus 300 through the CPU bus 301 and the data input switching circuit 240, and a select input from the main apparatus 300 through the CPU bus 301 and the data input switching circuit 240. Day Parallel / serial conversion circuit 260 for parallel / serial conversion and output to select coil 203, and parallel / serial conversion circuit for parallel / serial conversion of various data output from register circuit 250 and output to output coil 204 270 and a serial / parallel conversion circuit 280 that converts the read data or the like input through the input coil 205 to serial / parallel and outputs the data to the main device 300 via the CPU bus 301.
[0026]
In the read / write device 200 configured as described above, most of the circuits other than the coils 201 to 205 are formed by a gate array.
[0027]
On the other hand, the contactless memory card 100 includes a memory 130 and a read / write control circuit 120, and has a total of five sheets or coils corresponding to the coils 201 to 205 of the read / write device 200. A coil is provided. That is, the power supply coil 101 for inputting power from the read / write device 200, the synchronous clock coil 102 for inputting the synchronous clock from the read / write device 200, and the main device 300 through the read / write device 200. A selection coil 103 for inputting the transferred select data in a serial format, an input coil 104 for inputting various data transferred from the main device 300 through the read / write device 200 in a serial format, An output coil 105 is provided for outputting read data and the like to be transferred to the main device 300 through the write device 200 to the read / write device 200 in a serial format.
[0028]
The contactless memory card 100 includes the following circuits in addition to the memory 130, the read / write control circuit 120, and the coils 101 to 105. That is, a rectifier circuit 106 that generates a power supply voltage based on the output current of the power supply coil 101 and supplies power to each circuit, and a timing circuit 107 that supplies a synchronous clock input through the synchronous clock coil 102 to each circuit. A serial / parallel conversion circuit 108 that performs serial / parallel conversion on select data input through the select coil 103 and outputs it to the read / write control circuit 120; and various data input through the input coil 104 are serial / parallel. The serial / parallel conversion circuit 109 that converts and outputs to the read / write control circuit 120, and the parallel / serial that converts the read data and the like output from the read / write control circuit 120 into parallel / serial and outputs to the output coil 105 A conversion circuit 110 and the like are provided.
[0029]
In the read / write device 200 configured as described above, most of the circuits other than the coils 101 to 105 are formed by a gate array. Hereinafter, the configuration of the read / write control circuit 120 will be described in detail.
[0030]
The read / write control circuit 120 operates based on the selection data input through the selection coil 103 and the serial / parallel conversion circuit 108 and the various data input through the input coil 104 and the serial / parallel conversion circuit 109. Thus, the basic configuration for reading / writing data from / to the memory 130 is provided.
[0031]
The read / write control circuit 120 is provided in the preceding stage of the control unit 122 that performs a control necessary for the read / write operation based on various data, and the register circuit 1221 of the control unit 122, and receives various data from the main device 300. A circuit for switching the output destination of input data based on select data transferred separately, in which various data transferred from the main device 300 are stored in the register circuit 1221, and write data transferred from the main device 300 are stored in the memory 130. It has a data input switching circuit 121 for outputting each. In addition, a mode switching circuit 123, an address output circuit 124, a data output circuit 125, a control signal circuit 126, a general-purpose control signal circuit 127, a data input circuit 128, a general-purpose input circuit 129, an attribute input circuit 1231, and a data output switching circuit 1211 are provided. It has the composition that it has.
[0032]
The read / write control circuit 120 can be adapted to the three types of memories shown in FIG. FIG. 2A illustrates a type of memory in which an address bus and a data bus are shared and a special control signal is required. A typical example is a NAND flash memory. 2B and 2C are types of memory in which an address bus and a data bus are separated and a special control signal is unnecessary, and typical examples include a NOR flash memory and an S-RAM. However, for convenience of explanation, a NAND flash memory is shown as the memory 130 in FIG.
[0033]
Hereinafter, the detailed configuration of each circuit constituting the read / write control circuit 120 will be described.
[0034]
The data input switching circuit 121 is a select circuit that operates based on input select data. The data input switching circuit 121 distributes various input data to the register circuit 1221 and the memory 130 and outputs them. As a result, various data is output to the register circuit 1221 in the preprocessing stage, and write data is output to the memory 130 in the operation stage.
[0035]
The control unit 122 includes a plurality of register circuits 1221 that sequentially hold various types of input data, and a counter circuit 1222 that counts the number of read / write processes in the process of performing a read / write operation. The circuit configuration is such that an instruction is given to the address output circuit 124 and the like based on various data on the register circuit 1221 to control these circuits. Here, assuming that the various data 1 to 5 are sequentially input to the register circuit 1221 and the registers respectively holding the various data 1 to 5 are represented as registers 1 to 5 for convenience of explanation, the basics of the control unit 122 are described. The typical functions are as follows.
[0036]
That is, preprocessing for read / write operation is performed based on various data 1 on the register 1, and in this state, write data transferred from the main device 300 without passing through the register circuit 1221 is written to the memory 130 during writing. On the other hand, at the time of reading, data or the like recorded in the memory 130 is read and transferred to the main apparatus 300. Thus, preprocessing and read / write operations are performed based on the various data 1, and when this is completed, the preprocessing and read / write operations are sequentially performed in the same manner based on the various data 2-5 on the registers 2-5. To do. Then, by repeating such a series of processing (each processing based on various data 1 to 5), the memory 130 is continuously read / written.
[0037]
In other words, the control unit 122 can hold a plurality of various data in the register circuit 1221, and the preprocessing and the read / write operation are sequentially and repeatedly performed based on these various data. The same is true when there is only one piece of various data held in the register circuit 1221. Preprocessing and read / write operations based on the various data 1 held in the register 1 are performed, and then the same read / write operation is performed. The operation is repeated so that the memory 130 is continuously read / written.
[0038]
The various data transferred from the main apparatus 300 and held in the register circuit 1221 have the contents as shown in FIG. 3 and become a digital value of a total of 9 bytes composed of address, data, number of counters, and controls 1 and 2. Yes. The address indicates the setting of the first address when reading / writing is repeatedly performed on the memory 130. Data indicates the setting of the content of data to be written to the memory 130. The count number indicates the setting of the number of read / write processes. Control 1 selects address 24 or 32 bits (address setting), selection of presence / absence of attribute read (selection of presence / absence of transfer of data indicating memory attribute to main device), selection of continuous processing / single processing (continuous) Processing / one-time processing setting), data or address selection (address set / data set setting), data input or general-purpose port input selection (selection of presence / absence of transfer of read data to main device, R / B signal) Bit code group related to settings such as selection of whether or not data is transferred to the main device), data fixation or change selection (data change / fixed setting), write, read or write / read selection (memory control setting), etc. Is shown. Control 2 is general-purpose control signal control (selection of whether or not various control signals are output (including selection of CS clock synchronous output / always output), selection of counter 16 or 24 bits (setting of count bit length of counter circuit) The bit code group regarding the setting of is shown.
[0039]
As described above, when various data is held in the register circuit 1221, the contents of the preprocessing performed based on the various data, and thus the contents of the read / write operation, are determined. However, the contents of the controls 1 and 2 are partially different depending on the type of the memory 130.
[0040]
In the case where the controls 1 and 2 are the type of memory shown in FIG. 2B typified by a NOR type flash memory and the type of memory shown in FIG. The contents are as shown in. On the other hand, in the case of a memory of the type shown in FIG. 2A with a NAND flash memory as a representative example, the contents are as shown in FIG.
[0041]
In the case of the type of memory shown in FIG. 2 (A), unlike the type shown in FIGS. 2 (B) and 2 (C), the control 1 has a bit code relating to the setting of the address set / data set. Each bit code includes a bit code regarding each selection of whether or not various control signals are output (including selection of CS synchronous output / always output). In particular, when the control 1 includes a bit code related to the setting of the address set, that is, when the address set is set, the selection of the presence / absence of the address mask, the selection of the number of address sets, the selection of the mask address, and the main data indicating the memory attribute Each bit code related to the selection of whether or not to transfer to the device is included. On the other hand, when the control 1 includes a bit code related to data set setting, that is, at the time of data set setting, memory control setting, data change / fixed setting (during writing), transfer of read data to the main unit Selection of presence / absence of data (when reading), selection of presence / absence of transfer of R / B signal to main device (when reading), setting of continuous processing / single processing, and transfer of data indicating memory attributes to main device Each bit code related to presence / absence selection is included.
[0042]
Hereinafter, the configuration of the mode switching circuit 123 and the like will be described, and details of preprocessing performed by the control unit 122 will be described.
[0043]
The mode switching circuit 123 is a group of switches used to set and input the type of the memory 130 mounted on the contactless memory card 100, and outputs the setting result as a signal to the control unit 122. Yes.
[0044]
The address output circuit 124 is a circuit that receives an instruction from the control unit 122, generates an address signal, and outputs it to the memory 130. The following preprocessing is performed in relation to the circuit.
[0045]
The bit length of the address bus line between the address output circuit 124 and the memory 130 is set to 24 bits or 34 bits through the bit code regarding “selection of address 24 or 32 bits” of the control 1.
[0046]
A bit read / write operation for the memory 130 is performed once through the bit code related to “selection of one-time processing” of the control 1, and the address is set to increase by one after the processing is completed.
[0047]
Through the bit code relating to “selection of continuous processing” of the control 1, data read / write operation to the memory 130 is performed for the number of counts on the register circuit 1221, and in this process, the address is sequentially increased by the number of times. Is set as follows.
[0048]
The following preprocessing is performed only when the setting of the type of the memory 130 indicates the type of memory shown in FIG. That is, the address is set to be output to the memory 130 through the bit code regarding “address selection” of the control 1. In addition, the address set number is set to a 1/2/3 byte address through a bit code related to “selection of the number of address sets”. That is, when the control 1 includes a bit code related to “address selection”, the address on the register circuit 1221 is set to be written to the memory 130 by the number of address sets in units of 1 byte. Further, the presence / absence of an address mask is set through a bit code related to “selection of presence / absence of address mask”. The address to be masked is set to A10 / A9 / A8 through the bit code relating to “selection of mask address”.
[0049]
Note that the count bit length of the counter circuit 1222 is set through a bit code related to “selection of the counter 16 or 24 bits” of the control 2.
[0050]
The data output circuit 125 is a circuit that receives data from the control unit 122 and outputs data on the register circuit 1222 to the memory 130. The following preprocessing is performed in relation to the circuit.
[0051]
The data on the register circuit 1221 is set to be output to the memory 130 through the bit code related to “selection of data fixation” of the control 1. On the other hand, the write data transferred from the main device 300 without passing through the register circuit 1221 is set to be output to the memory 130 through the bit code related to “selection of data change”.
[0052]
The following preprocessing is performed only when the setting of the type of the memory 130 indicates the type of memory shown in FIG. That is, the data on the register circuit 1221 or the write data transferred from the main device 300 is set to be output to the memory 130 through the bit code related to “data selection” of the control 1.
[0053]
The control signal circuit 126 receives a command from the control unit 122 and generates control signals for CS (memory chip select), OE (output enable), and WE (memory write enable) that are essential for various types of memories. The circuit that outputs to the memory 130. The following preprocessing is performed in relation to the circuit.
[0054]
The CS and WE control signals are activated through the bit code relating to “write selection” of the control 1 so that the memory 130 is written. Through the “read selection”, the CS and OE control signals become active and the WE control signals become inactive, and the memory 130 is read. Through the “write / read selection”, the setting is such that writing and reading with respect to the memory 130 change every cycle period, and reading / writing is repeated.
[0055]
However, when the setting of the type of the memory 130 indicates a memory of the type shown in FIG. 2A, the bit code relating to “selection of CS clock synchronous output / always output” of control 2 for the CS control signal. Is pre-processed through. That is, the CS control signal is set to be active in synchronization with the synchronous clock (CLKP) through the bit code related to “selection of CS clock synchronous output”. On the other hand, the control signal of CS becomes active through the bit code related to “selection of CS always output”, and this state is set to be maintained.
[0056]
The general-purpose control signal circuit 127 is a circuit that receives a command from the control unit 122, generates special control signals such as ALE (memory address latch enable), CLE (memory command latch enable), and outputs the special control signals to the memory 130. The ALE and CLE control signals are necessary for the memory of the type shown in FIG. 2A, but a spare control signal is generated to make it adaptable to other types of memory. A function for outputting to the memory 130 is also included. That is, when a plurality of new bus lines are prepared in advance between the general-purpose control signal circuit 127 and the memory 130 and a new type of memory is used, a new control signal that needs to be output to the memory is sent to the bus line. Outputs above. The following preprocessing is performed in relation to the circuit.
[0057]
The general-purpose control signal circuit 127 can operate when the setting of the type of the memory 130 indicates a memory of the type shown in FIG. 2A, and relates to “selection of CLE control signal output” of the control 2 The CLE control signal is set to be active through the bit code. Similarly, the CLE control signal is set to be active through a bit code related to “selection of CLE control signal output”. Further, the spare control signal is set to be active through the bit code regarding “selection of spare control signal output”.
[0058]
The data input circuit 128 is a circuit that outputs read data read from the memory 130 to the data output switching circuit 1211.
[0059]
The general-purpose input circuit 129 is a circuit that outputs an R / B (ready / busy) signal output from the memory 130 to the data output switching circuit 1211.
[0060]
The attribute input circuit 1231 is a circuit that generates data indicating the attributes of the memory 130 (such as the type and capacity of the memory 130) based on the setting of the type of the memory 130 and outputs the data to the data output switching circuit 1211.
[0061]
The data output switching circuit 1211 receives each data output from the data input circuit 128, the general-purpose input circuit 129, and the attribute input circuit 1231, and selects these data in response to a command from the control unit 122. This is a circuit for outputting to the parallel / serial conversion circuit 110. The following preprocessing is performed in relation to the circuit.
[0062]
The output of the data input circuit 128 is selected by the data output switching circuit 1211 through the bit code relating to “selection of data input” of the control 1, and as a result, the read data read from the memory 130 is mainly transmitted through the read / write device 200. It is set to be transferred to the device 300.
[0063]
The output of the general-purpose input circuit 129 is selected by the data output switching circuit 1211 through the bit code relating to “selection of general-purpose port input” of the control 1, and as a result, the R / B signal of the memory 130 is transmitted through the read / write device 200 to the main device. 300 is set to be transferred. Similarly, the output of the attribute input circuit 1231 is selected by the data output switching circuit 1211 through the bit code related to “selection with attribute read”, and as a result, the data indicating the attribute of the memory passes through the read / write device 200 to the main device 300. Set to be forwarded to.
[0064]
Hereinafter, an example of the read / write operation of the read / write control circuit 120 configured as described above will be described with reference to FIGS.
[0065]
6 and 7 are diagrams showing an example of a write operation for the memory of the type shown in FIG. 2A with a NAND flash memory as a representative example. 6A shows the contents of various data on the register circuit 1221. FIG. 6B shows the contents of bit codes included in the controls 1 and 2 included in the various data. FIG. 7 shows reading based on the various data. / Timing charts of control signals and the like when the write control circuit 120 operates are shown.
[0066]
In the case of this write operation example, five kinds of data 1 to 5 are transferred from the main device 300 and held in the register circuit 1221 (registers 1 to 5).
[0067]
The addresses, data, and counts held on the register 1 are 12345678h, 80h (program command), and 0200h. Controls 1 and 2 include “address 32-bit selection”, “data selection”, “write selection”, “data fixed selection”, “CS constant output selection”, and “CLE output selection”. And so on.
[0068]
Therefore, the bit length of the address bus is set to 32 bits by the bit code related to “selection of 32-bit address”. The count bit length of the counter circuit 1222 is set to 16 bits by the bit code related to “selection of 16 bits of counter”. The bit code relating to “data selection” and “data fixed selection” is set to a state in which data on the register 1 is output to the memory 130. The CS control signal is activated by the bit code relating to “CS always output selection”, and this state is maintained thereafter. The CLE control signal is activated by the bit code related to “selection of CLE output”. The WE control signal is activated by the bit code relating to “selection of light”.
[0069]
As a result, 80h (program command) as data on the register 1 is written to the memory 130 (1-1 in FIG. 7). When such preprocessing and write operation based on the register 1 are completed, the processing shifts to processing based on the register 2.
[0070]
The address held on register 2 is 12345678h. Controls 1 and 2 include “address selection”, “selection with address mask”, “selection of number of address sets (3 bytes)”, “selection of mask address (A8)”, “selection of constant output of CS” ”And“ ALE output selection ”and the like are included.
[0071]
Therefore, the bit code related to “address selection” is set to a state in which the address on the register circuit 2 is output to the memory 130. The mask address is set to A8 by the bit code regarding “selection with address mask” and “selection of mask address (A8)”. The CS control signal is subsequently activated by the bit code relating to “CS always output selection”. The ALE and WE control signals are activated three times in succession by the bit code of “selection of ALE output” and “selection of number of address sets (3 bytes)”.
[0072]
As a result, 1Ah, 2Bh, and 78h masking 12345678h that is the address on the register 2 are sequentially written to the memory 130 (2-1 to 2-3 in FIG. 7), and the address 121A2B78h is set to the memory 130. . When such pre-processing and write operation based on the register 2 are completed, the process proceeds to processing based on the register 3.
[0073]
The count number held on the register 3 is 0200h. Controls 1 and 2 include bit code groups related to “data selection”, “write selection”, “data change selection”, “continuous processing selection”, “CS continuous output selection”, and the like. .
[0074]
Therefore, the bit code related to “data selection” and “data change selection” is set so that the write data transferred from the main device 300 without being passed through the register circuit 1221 is output to the memory 130. The CS control signal is subsequently activated by the bit code of “CS always output selection”. The WE control signal is activated once every cycle period by the bit code of “write selection” and “continuous processing selection”, and this is continued for the number of counts 0200h on the register 3, while in this process The address in the memory 130 is incremented sequentially.
[0075]
As a result, 512 pieces of write data transferred from the main device 300 are sequentially written from the addresses 121A2B78h to 121A2D77h of the memory 130 every cycle period (3-1 to 3-512 in FIG. 7). When such pre-processing and write operation based on the register 3 are completed, the process proceeds to processing based on the register 4.
[0076]
The data held on the register 4 is 10h (program command). Controls 1 and 2 include bit code groups related to "Data selection", "Write selection", "Data fixed selection", "CS constant output selection", "CLE output selection", etc. ing.
[0077]
Therefore, the bit code related to “data selection” and “data fixed selection” is set to a state in which data on the register 4 is output to the memory 130. The CS control signal is subsequently activated by the bit code relating to “CS always output selection”. The CLE control signal is activated by the bit code related to “selection of CLE output”. The WE control signal is activated by the bit code relating to “selection of light”.
[0078]
As a result, 10h (program command) as data on the register 4 is written to the memory 130 (4-1 in FIG. 7). When such pre-processing and write operation based on the register 4 are completed, the process proceeds to processing based on the register 5.
[0079]
Controls 1 and 2 held in the register 5 include bit codes related to “data selection”, “read selection”, “general port input selection”, “CS always output selection”, and the like. Yes.
[0080]
Therefore, the CS control signal is subsequently activated by the bit code relating to “CS always output selection”. The R / B signal of the memory 130 is sequentially sent to the main unit 300 every cycle period according to bit codes related to “data selection”, “read selection”, “selection of one-time processing”, and “selection of general-purpose port input”. Transferred.
[0081]
As a result, the R / B signal of the memory 130 is sequentially transferred to the main apparatus 300 through the general-purpose input circuit 129, the data output switching circuit 1211 and the like every cycle period (5-1 and 5-2 in FIG. 7). The R / B signal is in a busy state at the time indicated by 5-1 in FIG. 6C, but the R / B signal is at the time indicated by 5-2 in FIG. Since the state is changed to the ready state, the processing based on the register 5 is ended at this point.
[0082]
Thus, when the preprocessing and the read / write operation based on the registers 1 to 5 are finished, the first loop processing is finished. After that, the process again proceeds to the process based on the register 1, and the processes based on the registers 1 to 5 are sequentially performed in the same manner as described above. When the second loop processing is performed, the address of the memory 130 is not the address on the registers 1 to 5, but a value obtained by adding the count value of the counter circuit 1222 for counting the number of times of processing to this. Since such loop processing is repeatedly performed, as a result, the write data sequentially transferred from the main device 300 is written in order from the address 121A2B78h to the memory 130, and this write operation is continuously performed.
[0083]
FIG. 8 and FIG. 9 are diagrams showing an example of the read operation for the memory of the type shown in FIG. 2A with a NAND flash memory as a representative example. 8A shows the contents of various data on the register circuit 1221. FIG. 8B shows the contents of bit codes contained in the controls 1 and 2 contained in the various data. FIG. 9 shows reading based on the various data. / Timing charts of control signals and the like when the write control circuit 120 operates are shown.
[0084]
In the case of this read operation example, five various data 1 to 5 are transferred from the main device 300 and held in the register circuit 1221 (registers 1 to 5).
[0085]
The addresses, data, and counts held on the register 1 are 12345678h, 00h (program command), and 0200h. Controls 1 and 2 include “address 32-bit selection”, “data selection”, “write selection”, “data fixed selection”, “CS clock synchronous output selection”, “CLE output selection” ”And“ counter 16 bit selection ”and the like are included.
[0086]
Therefore, the bit length of the address bus is set to 32 bits by the bit code related to “selection of 32-bit address”. The count bit length of the counter circuit 1222 is set to 16 bits by the bit code related to “selection of 16 bits of counter”. The bit code relating to “data selection” and “data fixed selection” is set to a state in which data on the register 1 is output to the memory 130. The CS control signal becomes active in synchronization with the synchronous clock (CLKP) by the bit code relating to “selection of CS clock synchronous output”. The CLE control signal is activated by the bit code related to “selection of CLE output”. The WE control signal is activated by the bit code relating to “selection of light”.
[0087]
As a result, 00h (program command) as data on the register 1 is written to the memory 130 (1-1 in FIG. 9). When such preprocessing and write operation based on the register 1 are completed, the processing shifts to processing based on the register 2.
[0088]
The address held on register 2 is 12345678h. Controls 1 and 2 include “address selection”, “selection with address mask”, “selection of number of address sets (3 bytes)”, “selection of mask address (A8)”, “CS clock synchronous output” A bit code group related to “selection” and “selection of ALE output” is included.
[0089]
Therefore, the bit code relating to “address selection” is set so that the address on the register 2 is output to the memory 130. The mask address is set to A8 by the bit code regarding “selection with address mask” and “selection of mask address (A8)”. The CS control signal becomes active in synchronization with the synchronous clock (CLKP) by the bit code relating to “selection of CS clock synchronous output”. According to the bit code of “selection of ALE output” and “selection of number of address sets (3 bytes)”, the ALE control signal becomes active and the WE control signal becomes active three times in succession.
[0090]
As a result, 1Ah, 2Bh, and 78h masking 12345678h, which is the address on register 2, are sequentially written to memory 130 (2-1 to 2-3 in FIG. 9), and address 121A2B78h is set to memory 130. . When such pre-processing and write operation based on the register 2 are completed, the process proceeds to processing based on the register 3.
[0091]
Controls 1 and 2 held in the register 3 include bit code groups related to “data selection”, “read selection”, “general port input selection”, “CS clock synchronous output selection”, and the like. ing.
[0092]
Therefore, the CS control signal becomes active in synchronization with the synchronous clock by the bit code relating to “selection of CS clock synchronous output”. The bit code relating to “data selection”, “read selection”, and “general-purpose port input selection” is set so that the R / B signal of the memory 130 is sequentially transferred to the main device 300 every cycle period. .
[0093]
As a result, the R / B signal of the memory 130 is transferred to the main device 300 through the general-purpose input circuit 129, the data output switching circuit 1211, etc. (3-1 in FIG. 9). Since the R / B signal is ready at the time indicated by 3-1 in FIG. 9, the processing based on the register 3 ends at this time, and the processing based on the register 4 is started.
[0094]
The count number held on the register 4 is 0200h. Controls 1 and 2 include bit code groups related to “data selection”, “read selection”, “data change selection”, “continuous processing selection”, “CS constant output selection”, etc. Yes.
[0095]
Therefore, the read data of the memory 130 is set to a state to be transferred to the main device 300 by the bit code related to “data selection”, “data change selection”, and “read selection”. The CS control signal is activated by the bit code relating to “CS always output selection”, and this state is continued thereafter. The WE control signal is kept inactive by the “read selection” and “continuous processing selection” bit codes, while the OE control signal becomes active once every cycle period, and this is stored in the register 4. For the number of times of 0200h. In this process, the address in the memory 130 is sequentially incremented.
[0096]
As a result, the data recorded in the memory 130 is sequentially read from the address 121A2B78h to 121A2D77h for each cycle period (FIGS. 94-1 to 4-512), and the main device 300 through the data input circuit 128, the data output switching circuit 1211, and the like. Are sequentially transferred. When such pre-processing and read operation based on the register 4 are completed, the process proceeds to processing based on the register 5.
[0097]
Controls 1 and 2 held in the register 5 include bit codes related to “data selection”, “read selection”, “general port input selection”, “CS clock synchronous output selection”, and the like. ing.
[0098]
Therefore, the CS control signal becomes active in synchronization with the synchronous clock (CLKP) by the bit code relating to “selection of CS clock synchronous output”. The bit code relating to “data selection”, “read selection”, and “general-purpose port input selection” is set so that the R / B signal of the memory 130 is sequentially transferred to the main device 300 every cycle period. .
[0099]
As a result, the R / B signal of the memory 130 is sequentially transferred to the main apparatus 300 through the general-purpose input circuit 129, the data output switching circuit 1211, and the like every cycle period (5-1 and 5-2 in FIG. 9). The R / B signal is in the busy state at the time indicated by 5-1 in FIG. 9, but the R / B signal has changed to the ready state at the time indicated by 5-2 in FIG. At this time, the processing based on the register 5 is completed.
[0100]
Thus, when the preprocessing and the read / write operation based on the registers 1 to 5 are finished, the first loop processing is finished. Thereafter, the process again proceeds to the processing based on the register 1, and the processing based on the registers 1 to 5 is performed in the same manner as described above. When the second loop processing is performed, the address of the memory 130 is not the address on the registers 1 to 5, but the value obtained by adding the count value of the counter circuit 1222 for counting the number of processing times. Since the loop processing is repeatedly performed as described above, as a result, data recorded in the memory 130 is sequentially read from the address 12345678h and sequentially transferred to the main device 300, and this read operation is continuously performed.
[0101]
FIG. 10 and FIG. 11 are diagrams showing an example of byte write operation for the type of memory shown in FIG. 2B, with a NOR flash memory as a representative example. FIG. 10A shows the contents of various data on the register circuit 1221. FIG. 10B shows the contents of bit codes included in the controls 1 and 2 included in the various data. FIG. 11 shows reading based on the various data. / Timing charts of control signals and the like when the write control circuit 120 operates are shown.
[0102]
In the case of this byte write operation example, two kinds of data 1 and 2 are transferred from the main device 300 and held in the register circuit 1221 (registers 1 and 2).
[0103]
The addresses, data, and counts held on the register 1 are 12345678h, 40h (program command), and 0001h. Controls 1 and 2 include bit code groups related to “address 32-bit selection”, “write selection”, “data fixed selection”, “counter 16-bit selection”, and the like.
[0104]
Therefore, the bit length of the address bus is set to 32 bits by the bit code related to “selection of 32-bit address”. The count bit length of the counter circuit 1222 is set to 16 bits by the bit code related to “selection of 16 bits of counter”. The bit code relating to “selection of data fixed” is set so that the data on the register 1 is output to the memory 130. The CS and WE control signals are activated by the bit code relating to “selection of light”.
[0105]
As a result, 40h (program command) as data on the register 1 is written to the memory 130 (1-1 in FIG. 11). When such preprocessing and write operation based on the register 1 are completed, the processing shifts to processing based on the register 2.
[0106]
The addresses and count numbers held on the register 2 are 12345678h and 0001h. The controls 1 and 2 include bit code groups related to “selection of continuous processing”, “selection of data change”, “selection of write”, and the like.
[0107]
Therefore, the bit code related to “selection of data change” is set so that the write data transferred from the main device 300 without being passed through the register circuit 1221 is output to the memory 130. Although the CS and WE control signals are activated every cycle period by the bit codes of “write selection” and “continuous processing selection”, the count number on the register 3 is 0001h. The control signal is active only once, and the address of the memory 130 is only incremented by one.
[0108]
As a result, one write data transferred from the main device 300 is written to the address 12345678h of the memory 130 (2-1 in FIG. 11).
[0109]
When the preprocessing and the write operation based on the registers 1 and 2 are finished, the first loop processing is finished. Thereafter, the process again proceeds to the process based on the register 1, and the process based on the registers 1 and 2 is performed in the same manner as described above. When the second loop processing is performed, the address of the memory 130 is not the address on the registers 1 and 2, but a value obtained by adding the count value of the counter circuit 1222 for counting the number of times of processing to this. As a result, 40h (program command) and write data are recorded in the memory 130 by the second loop processing (1-2, 2-2 in FIG. 11), and the third, fourth, fifth,. 40h (program command) and write data are sequentially recorded (1-3, 2-3 in FIG. 11). That is, the write data is sequentially recorded from the address 12345678h of the memory 130, and this write operation is continuously performed.
[0110]
FIG. 12 and FIG. 13 are diagrams showing an example of page write operation for the type of memory shown in FIG. 2B, with a NOR flash memory as a representative example. 12A shows the contents of various data on the register circuit 1221. FIG. 12B shows the contents of bit codes included in the controls 1 and 2 included in the various data. FIG. 13 shows reading based on the various data. / Timing charts of control signals and the like when the write control circuit 120 operates are shown.
[0111]
In the case of this page write operation example, four kinds of data 1 to 4 are transferred from the main device 300 and held in the register circuit 1221 (registers 1 to 4).
[0112]
The address, data, and count number held on the register 1 are 12345678h, E8h (program command), and 0020h. Controls 1 and 2 include bit code groups relating to “address 32-bit selection”, “write selection”, “data fixed selection”, “counter 16-bit selection”, and the like.
[0113]
Therefore, the bit length of the address bus of the memory 130 is set to 32 bits by the bit code related to “selection of 32-bit address”. The count bit length of the counter circuit 1222 is set to 16 bits by the bit code related to “selection of 16 bits of counter”. The bit code relating to “selection of data fixed” is set so that the data on the register 1 is output to the memory 130. The CS and WE control signals are activated by the bit code relating to “selection of light”.
[0114]
As a result, E8h (program command), which is data on the register 1, is written to the memory 130 (1-1 in FIG. 13). When such preprocessing and write operation based on the register 1 are completed, the processing shifts to processing based on the register 2.
[0115]
The data held on the register 2 is 1Fh (data number 32 bytes). Controls 1 and 2 include a bit code group related to “selection of write” and “selection of data fixation”.
[0116]
Therefore, the bit code relating to “data fixed selection” is set to a state in which the data on the register 1 is output to the memory 130. The CS and WE control signals are activated by the bit code relating to “selection of light”.
[0117]
As a result, 1Fh (data count of 32 bytes), which is data on the register 1, is written to the memory 130 (2-1 in FIG. 13). When such pre-processing and write operation based on the register 2 are completed, the process proceeds to processing based on the register 3.
[0118]
Addresses and count numbers held on the register 3 are 12345678h and 0020h. Controls 1 and 2 include bit code groups relating to “selection of continuous processing”, “selection of data change”, “selection of write”, and the like.
[0119]
Therefore, the bit code related to “selection of data change” is set so that the write data transferred from the main device 300 without being passed through the register circuit 1221 is output to the memory 130. The CS and WE control signals are activated a total of 32 times per cycle period by the “write selection” and “continuous processing selection” bit codes. In this process, the address of the memory 130 is sequentially incremented.
[0120]
As a result, the 32 write data transferred from the main device 300 are sequentially written from the address 12345678h to 1234569h of the memory 130 (3-1 to 3-32 in FIG. 13). When such pre-processing and write operation based on the register 3 are completed, the process proceeds to processing based on the register 4.
[0121]
The data held on the register 4 is D0h (program command). Controls 1 and 2 include a bit code group related to “selection of write” and “selection of data fixation”.
[0122]
Therefore, the data on the register 4 is set to be output to the memory 130 by the bit code related to “data fixed selection”. The CS and WE control signals are activated by the bit code relating to “selection of light”.
[0123]
As a result, D0h (program command), which is data on the register 4, is written to the memory 130 (4-1 in FIG. 13), and the preprocessing and write operation based on the register 4 are completed at this point.
[0124]
In this way, when the preprocessing and the read / write operation based on the registers 1 to 4 are completed, the first loop processing is completed. Thereafter, the process again proceeds to the process based on the register 1, and the process based on the registers 1 to 4 is performed in the same manner as described above. When the second loop processing is performed, the address of the memory 130 is not the address on the registers 1 to 4, but a value obtained by adding the count value of the counter circuit 1222 that counts the number of times of processing to this. Since such a loop process is repeatedly performed, as a result, the write data transferred from the main device 300 is sequentially written in the memory 130 from the address 12345678h, and this write operation is continuously performed.
[0125]
14 and 15 are diagrams showing an example of a read operation for the type of memory shown in FIGS. 2B and 2C, in which a NOR flash memory is a representative example. 14A shows the contents of various data on the register circuit 1221. FIG. 14B shows the contents of bit codes contained in the controls 1 and 2 contained in the various data. FIG. 15 shows reading based on the various data. / Timing charts of control signals and the like when the write control circuit 120 operates are shown.
[0126]
In the case of this read operation example, one piece of various data 1 is transferred from the main device 300 and held in the register circuit 1221 (register 1).
[0127]
The addresses and count numbers held on the register 1 are 12345678h and 1234h. Controls 1 and 2 include bit code groups related to "32-bit address selection", "continuous processing selection", "data change selection", "read selection", "counter 16-bit selection", etc. Yes.
[0128]
Therefore, the bit length of the address bus of the memory 130 is set to 32 bits by the bit code related to “selection of 32-bit address”. The count bit length of the counter circuit 1222 is set to 16 bits by the bit code related to “selection of 16 bits of counter”. The bit code relating to “selection of data change” and “selection of read” is set so that the read data of the memory 130 is transferred to the main device 300. The WE control signal is maintained inactive by the “read selection” and “continuous processing selection” bit codes, while the CS and OE control signals become active once every cycle period. It continues for the number of counts 1234h above 1. In this process, the address of the memory 130 is sequentially incremented.
[0129]
As a result, the data recorded in the memory 130 is sequentially read from the address 12345678h every cycle period (1-1 to 1-6 in FIG. 15), and the main device through the data input circuit 128, the data output switching circuit 1211, and the like. 300 are sequentially transferred.
[0130]
When the preprocessing and the read operation based on the register 1 are completed, the first loop process is completed. Thereafter, the process again proceeds to the processing based on the register 1, and a similar read operation is performed. When the second loop processing is performed, the address of the memory 130 is not the address on the register 1 but a value obtained by adding the count value of the counter circuit 1222 for counting the number of times of processing to this. Since such loop processing is repeatedly performed, as a result, data recorded in the memory 130 is sequentially read from the address 12345678h every cycle period, and this read operation is continuously performed.
[0131]
FIG. 16 and FIG. 17 are diagrams showing an example of the write operation for the memory of the type shown in FIG. 16A shows the contents of various data on the register circuit 1221. FIG. 16B shows the contents of bit codes included in the controls 1 and 2 included in the various data. FIG. / Timing charts of control signals and the like when the write control circuit 120 operates are shown.
[0132]
In the case of this write operation example, one piece of various data 1 is transferred from the main device 300 and held in the register circuit 1221 (register 1).
[0133]
The addresses and count numbers held on the register 1 are 12345678h and 1234h. Controls 1 and 2 include bit code groups related to “32-bit address selection”, “continuous processing selection”, “data change selection”, “write selection”, “counter 16-bit selection”, etc. Yes.
[0134]
Therefore, the bit length of the address bus of the memory 130 is set to 32 bits by the bit code related to “selection of 32-bit address”. The count bit length of the counter circuit 1222 is set to 16 bits by the bit code related to “selection of 16 bits of counter”. The bit code relating to “selection of data change” and “selection of write” is set so that the write data transferred from the main device 300 is written to the memory 130. The CS and WE control signals are activated once every cycle period by the “write selection” and “continuous processing selection” bit codes, and this is continued for the number of counts 1234h on the register 1. In this process, the address of the memory 130 is sequentially incremented.
[0135]
As a result, the write data transferred from the main device 300 is sequentially written into the memory 130 from the address 12345678h every cycle period (1-1 to 1-6 in FIG. 17).
[0136]
When such preprocessing and write operation based on the register 1 are completed, the first loop processing is completed. Thereafter, the process again proceeds to the processing based on the register 1, and a similar write operation is performed. When the second loop processing is performed, the address of the memory 130 is not the address on the register 1 but a value obtained by adding the count value of the counter circuit 1222 for counting the number of times of processing to this. Since such loop processing is repeatedly performed, as a result, the write data transferred from the main device 300 is sequentially written to the memory 130 from the address 12345678h every cycle period, and this write operation is continuously performed.
[0137]
Note that for a read operation example of the type of memory shown in FIG. 2C using S-RAM as a representative example, FIG. 2B showing the NOR flash memory shown in FIG. 14 and FIG. 15 as a representative example. The description of the type of memory shown in FIG.
[0138]
The basic operation of the contactless memory card read / write system configured as described above will be described below.
[0139]
First, when the contactless memory card 100 is set in the read / write device 200, the coils 201 to 205 of the read / write device 200 and the coils 101 to 105 of the contactless memory card 100 face each other. At the same time, the read / write device 200 operates according to a command output from the main device 300. Along with this, the power supply voltage and the synchronous clock generated by the read / write device 200 are supplied to the contactless memory card 100, and the card enters an operating state.
[0140]
The main device 300 transfers various data having a bit code related to “selection with attribute read” to the contactless memory card 100 in order to prepare for reading / writing data to the contactless memory card 100. . When transferring this control data, separately from this transfer, select data is transferred to the contactless memory card 100 so that various data are held in the register circuit 1221. Then, data indicating the attribute of the memory generated by the attribute input circuit 1231 is transferred to the main device 300 through the data output replacement circuit 1211 or the like by the bit code related to “selection with attribute read”.
[0141]
If the current synchronous clock frequency is not optimal for the memory 130 mounted on the contactless memory card 100 as judged from the data indicating the memory attribute, the read / write device 200 is informed of the synchronous clock. Issue a command to change the frequency. Then, the frequency of the synchronous clock supplied to the contactless memory card 100 changes, and as a result, the frequency of the synchronous clock supplied to the contactless memory card 100 is optimized.
[0142]
Further, since the type of the memory 130 mounted on the contactless memory card 100 can be determined from the data of the memory attribute, in the pre-processing stage, it matches with the type of the memory and the original read / write is performed. Various data is generated and transferred to the contactless memory card 100. In this operation stage, while maintaining the synchronization with the contactless memory card 100, the write data is transferred at the time of writing, while read from the memory 130 at the time of reading. Input the read data. In the pre-processing stage, select data for transferring various data to the register circuit 1221 of the contactless memory card 100 is transferred. On the other hand, in this operation stage, write data / read data is exchanged with the contactless memory card 100. The select data for mutual transfer is transferred.
[0143]
As described above, the read / write control circuit 120 of the contactless memory card 100 performs the read / write on the memory 130 based on various data held on the register circuit 1221. Further, since the contents of the controls 1 and 2 can be switched through the setting of the mode switching circuit 123, it becomes possible to adapt to any type of memory 130 shown in FIG. ing.
[0144]
In particular, by combining various data on the register circuit 1221, processing that has been simple but has required a lot of time in the past, for example, writing and reading fixed data, writing a count number with fixed data, for the same address Processing such as setting a plurality of program commands or control data can be easily performed. It is also possible to easily perform address setting, data setting, etc. for a NAND flash memory that uses an address bus and a data bus separately.
[0145]
In the case of the non-contact memory card read / write system configured as described above, when various data is transferred from the main device 300 to the non-contact memory card 100, preprocessing on the read / write operation is performed based on the various data. To do. Therefore, the address, data, control signal and / or memory control given to the memory 130 can be arbitrarily set or changed, and the memory 130 can be accessed a plurality of times within one cycle period. Become. In addition, for a NOR type flash memory that needs to be provided with a program command, it is also possible to arbitrarily set the method of giving the program command.
[0146]
According to the conventional example, when transferring 1-byte data to the flash memory, the actual access to the memory is only 4 clock periods during the 16 clock period, and the subsequent 12 clock periods are a wait. On the other hand, according to the proposed system, processing can be performed even during the wait period, and high-speed access can be realized. In addition, since it is possible to perform processing that has conventionally required a lot of time with simple contents in a short time, a large speed access can be realized in this respect.
[0147]
In the case of the conventional example, when a non-contact memory card is equipped with a flash memory whose access protocol is much more complicated than S-RAM, the main device needs to perform processing necessary for access to the memory each time. Therefore, it has been very difficult to achieve high-speed access in this respect. On the other hand, according to the proposed system, the main device 300 does not need to perform processing necessary for access to the memory 130 each time. This is because the main device 300 only transfers various data, and the pre-processing for the read / write operation is performed in the contactless memory card 100, and then the write data is transferred at the time of writing and the read data is input at the time of reading. Because you only need to do it. In this respect, high speed access can be realized. Further, since the CPU is not mounted on the contactless memory card 100, power consumption is small, and the contactless memory card can be reduced in thickness and cost. In addition, while being adaptable to various types of memories, a control program for changing the access protocol is unnecessary, and in this respect as well, the cost can be reduced.
[0148]
Furthermore, since power and a synchronous clock are separately supplied from the read / write device 200 to the contactless memory card 100, even if the frequency of the synchronous clock is changed according to the type of the memory 130 as needed, The power supply voltage supplied to the contactless memory card 100 does not change, and the circuit characteristics do not become unstable. Therefore, it becomes possible to change the frequency of the synchronous clock in accordance with the type of the memory 130 mounted on the contactless memory card 100 and set the access speed to the maximum, and high speed access is realized in this respect. Conventionally, the access speed is about 500 Kbps to about 1 Mbps, but in the case of the proposed system, high-speed access of about 5 Mbps can be realized.
[0149]
In addition, the synchronous clock coil 102 etc However, since data transmission / reception between the read / write device 200 and the contactless memory card 100 is performed in a serial format, the contactless memory card is compared with the case of inputting in parallel. The size and current consumption of 100 do not increase, and the contactless memory card 100 can be reduced in thickness and cost, including that the CPU is not mounted on the contactless memory card 100.
[0150]
Note that the memory read / write control circuit according to the present invention is not limited to the application of a contactless memory card, and can be similarly applied to a circuit incorporating a memory such as a microcomputer. That is, preprocessing for read / write operation is performed based on various data on the register circuit, and in this state, the write data transferred from the main unit is sequentially written to the memory without passing through the register circuit. At the time of reading, as long as it has a function of sequentially reading the data recorded in the memory and transferring it to the main device, the type of various data, the contents of preprocessing, the configuration of the circuit, the type of memory, etc. are not questioned.
[0151]
The contactless memory card according to the present invention is not limited to the above embodiment. That is, the read / write control circuit is mounted, and the power supply coil for inputting power from the read / write device and the synchronous clock coil for inputting the synchronous clock from the read / write device are separately provided. The select data transferred from the main device through the read / write device is input in a serial format through the select coil, and various data other than the select data transferred from the main device through the read / write device is serialized through the input coil. As long as the read data to be output to the main device through the read / write device is output in serial form through the output coil, the configuration of the peripheral circuit of the coil is not questioned.
[0152]
The same applies to the read / write device according to the present invention. That is, a device that is connected to the main device and in which the contactless memory card is set, the power supply coil for supplying power from the read / write device to the contactless memory card, and the read / write device. The synchronous clock coil for supplying the synchronous clock to the contactless memory card is separated, and the select data transferred from the main unit is output in serial form through the select coil, and the select transferred from the main unit As long as various data other than data are output in serial form through the output coil, and read data output from the contactless memory card to the main unit is input through the input coil, the peripheral circuit of the coil It does not matter about the configuration.
[0153]
The same applies to the read / write system of the contactless memory card according to the present invention. That is, any configuration may be used as long as the main device, the read / write device, and the contactless memory card are provided. In particular, the main device switches between a preprocessing stage in which various data is held in the register circuit in the contactless memory card and a main operation stage in which preprocessing and read / write operations are performed based on the various data held in the register circuit. In addition to this, select data is generated and transferred to the contactless memory card through the read / write device. Separately, in the preprocessing stage, various data is generated and transferred to the contactless memory card through the read / write device. In this operation stage, the write data required for writing is generated and transferred to the contactless memory card through the read / write device, while at least the read data transferred from the contactless memory card through the read / write device is input at the time of reading. As long as you have .
[0154]
【The invention's effect】
As described above, in the case of the memory read / write control circuit according to the first, second, third, fourth, or fifth aspect of the present invention, the preprocessing on the read / write operation is performed only by transferring various data from the main device In this state, the data transferred from the main device is sequentially written to the memory, while the data recorded in the memory is sequentially read and transferred to the main device, so the read / write operation is repeated. At this time, the proportion of the main apparatus involved is smaller than that of the conventional apparatus. Further, when a flash memory is used, it is possible to perform a plurality of accesses within one cycle period, and accordingly, it becomes possible to perform a read / write operation during a period of a conventional wait. . Furthermore, by combining a plurality of various data and sequentially performing preprocessing and read / write operations, not only can a flash memory with a complicated access protocol be easily handled, but also a simple Although it is the content, the processing which has conventionally required a great amount of time can be performed very easily and in a short time. As a result, significant high speed access is realized.
[0155]
In the case of the memory read / write control circuit according to claim 6 of the present invention, in addition to the configuration of claim 1, the address set for the memory is performed only by transferring various data from the main unit. Even with a NAND flash memory or the like, significant high-speed access can be realized.
[0156]
In the memory read / write control circuit according to the seventh aspect of the present invention, in addition to the configuration of the first aspect, various control signals are generated only by transferring various data from the main unit. Many types of memory can be adapted. In addition, since the data indicating the memory attribute is transferred to the main device simply by transferring various data from the main device, the main device can quickly recognize the memory attribute. It becomes possible to achieve higher speed access.
[0157]
In the memory read / write control circuit according to claim 8 of the present invention, in addition to the configuration of claim 7, the configuration is such that a spare control signal is generated only by transferring various data from the main unit. Therefore, even if a new type of memory is developed, if only the type of control signal is different from that of the conventional memory, the new type of memory can also be adapted, and it is possible to improve performance in this respect. Become.
[0158]
In the case of the contactless memory card according to claim 9 of the present invention, since the memory read / write control circuit according to claims 1 to 8 is mounted, the advantages of claims 1 to 8 are achieved. In particular, even when a flash memory having a complicated access protocol is used, it is not necessary to use a CPU unlike the conventional case. Therefore, power consumption is reduced, and in this respect, it is possible to reduce the thickness and cost of the card. In addition, since the power and the synchronous clock are separately supplied from the read / write device, the circuit characteristics do not become unstable even if the frequency of the synchronous clock is changed. Therefore, it becomes possible to change the frequency of the synchronous clock in accordance with the type of memory and set the access speed to the maximum, and also in this respect, high speed access is realized.
[0159]
In the case of the read / write device according to the tenth aspect of the present invention, since it is configured to be used in combination with the contactless memory card according to the eighth aspect, the same advantages as in the eighth aspect are obtained.
[0160]
According to the non-contact memory card read / write system of the eleventh aspect of the present invention, the non-contact memory card has the non-contact memory card of the ninth aspect, the read / write device of the tenth aspect, and the main apparatus. The same advantages as those of the ninth aspect are obtained.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining an embodiment of the present invention, and is a block diagram of a read / write system for a contactless memory card.
FIG. 2 is an explanatory diagram showing a memory applicable to a contactless memory card and its bus line.
FIG. 3 is an explanatory diagram showing the contents of various data transferred from the main device to the contactless memory card.
4 is an explanatory diagram showing the contents of controls 1 and 2 used for the type of memory shown in FIGS. 2B and 2C. FIG.
FIG. 5 is an explanatory diagram showing the contents of controls 1 and 2 used for the type of memory shown in FIG.
6 is a diagram showing an example of a write operation for the memory of the type shown in FIG. 2A, where FIG. 6A is the contents of various data on the register circuit, and FIG. 6B is included in the various data. It is a figure which shows each the content of the bit code contained in control.
7 is a diagram showing an example of a write operation for a memory of the type shown in FIG. 2A, and is a control when a read / write control circuit is operated based on various data shown in FIG. 6A. It is a figure which shows timing charts, such as a signal.
8 is a diagram showing an example of a read operation for the type of memory shown in FIG. 2 (A), where (A) is the contents of various data on the register circuit, and (B) is included in the various data. It is a figure which shows each the content of the bit code contained in control.
9 is a diagram showing an example of a read operation for the type of memory shown in FIG. 2A, and is a control when the read / write control circuit is operated based on various data shown in FIG. 8A. It is a figure which shows timing charts, such as a signal.
10A and 10B are diagrams showing examples of byte write operations for the type of memory shown in FIG. 2B, where FIG. 10A shows the contents of various data on the register circuit, and FIG. It is a figure which shows each the content of the bit code contained in the control to be performed.
11 is a diagram showing an example of a byte write operation for the type of memory shown in FIG. 2B, and is a control when the read / write control circuit is operated based on various data shown in FIG. It is a figure which shows timing charts, such as a signal.
FIGS. 12A and 12B are diagrams showing an example of a page write operation for a memory of the type shown in FIG. 2B, where FIG. 12A shows the contents of various data on the register circuit, and FIG. It is a figure which shows each the content of the bit code contained in the control to be performed.
13 is a diagram showing an example of a page write operation for a memory of the type shown in FIG. 2B, when the read / write control circuit is operated based on various data shown in FIG. It is a figure which shows timing charts, such as a control signal.
FIGS. 14A and 14B are diagrams showing an example of a read operation for the type of memory shown in FIGS. 2B and 2C, where FIG. 14A shows the contents of various data on the register circuit, and FIG. It is a figure which shows each the content of the bit code contained in the control contained in data.
15 is a diagram showing an example of a read operation for the type of memory shown in FIGS. 2B and 2C, in which the read / write control circuit operates based on various data shown in FIG. 14A. It is a figure which shows a timing chart of the control signal etc. at the time of doing.
FIGS. 16A and 16B are diagrams showing an example of a write operation for the memory of the type shown in FIG. 2C, where FIG. 16A shows the contents of various data on the register circuit, and FIG. It is a figure which shows each the content of the bit code contained in control.
17 is a diagram showing an example of a write operation for the memory of the type shown in FIG. 2C, and is a control when the read / write control circuit is operated based on various data shown in FIG. It is a figure which shows timing charts, such as a signal.
[Explanation of symbols]
100 contactless memory card
101 Coil for power supply
102 Coil for synchronous clock
103 Select coil
104 Coil for input
105 Output coil
120 Read / write control circuit
122 Control unit
1221 Register circuit
121 Data input switching circuit
123 Mode switching circuit
1231 Attribute input circuit
130 memory
200 Read / write device
201 Coil for power supply
202 Coil for synchronous clock
203 Coil for selection
204 Output coil
205 Input coil
300 Main unit

Claims (12)

主装置から転送されたアドレス、データ及びコントロールデータを少なくとも含んだ各種データを保持するレジスター回路を有し且つ当該各種データに基づいてメモリに対するリード/ライト動作に必要な制御を行う制御部と、前記レジスター回路の後段に接続されており且つ前記制御部からの命令を受けて前記レジスター回路上のデータをメモリに出力するデータ出力回路とを備え、前記制御部は、前記レジスター回路上のコントロールデータにデータ固定の選択に関するコードが含まれているときは、当該レジスト回路上のデータが前記メモリに出力されるように設定する一方、前記レジスター回路上のコントロールデータにデータ変化の選択に関するコードが含まれているときは、前記レジスター回路を経ることなく主装置から転送されたライトデータが前記メモリに順次ライトさせるように設定する機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。Transferred address from the main unit, and a control unit that performs control necessary for read / write operation to the memory based on the data and control data to and the various data have register circuit for holding at least inclusive various data, wherein and it is connected to the subsequent stage of the register circuit receiving a command from the control unit and a data output circuit for outputting data on the register circuit to the memory, the control unit, the control data on the register circuit When a code related to data fixing selection is included, data on the register circuit is set to be output to the memory, while control data on the register circuit includes a code related to data change selection. Is transferred from the main unit without going through the register circuit. Write data is read / write control circuit of the memory, characterized in that has a structure having a function of setting so as to sequentially write into the memory has. 主装置から転送されたアドレス、データ及びコントロールデータを少なくとも含んだ各種データを保持するレジスター回路を有し且つ当該各種データに基づいてメモリに対するリード/ライト動作に必要な制御を行う制御部と、前記レジスター回路の前段に設けられており且つ主装置から各種データとは別に転送されたセレクトデータに基づいて主装置から転送された各種データの出力先をレジスター回路から前記メモリに切り換えるデータ入力切り替え回路と、前記レジスター回路の後段に接続されており且つ前記制御部からの命令を受けて前記レジスター回路上のデータをメモリに出力するデータ出力回路とを備え、前記制御部は、前記レジスター回路上のコントロールデータにデータ固定の選択に関するコードが含まれているときは、当該レジスト回路上のデータが前記メモリに出力されるように設定する一方、前記レジスター回路上のコントロールデータにデータ変化の選択に関するコードが含まれているときは、前記レジスター回路を経ることなく主装置から転送されたライトデータが前記メモリに順次ライトさせるように設定する機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。Transferred address from the main unit, and a control unit that performs control necessary for read / write operation to the memory based on the data and control data to and the various data have register circuit for holding at least inclusive various data, wherein A data input switching circuit which is provided in a preceding stage of the register circuit and switches an output destination of various data transferred from the main device from the register circuit to the memory based on select data transferred separately from the various data from the main device; And a data output circuit connected to a subsequent stage of the register circuit and receiving a command from the control unit and outputting data on the register circuit to a memory, and the control unit controls the register circuit If your data contains code related to data pinning, When the data on the registration circuit is set to be output to the memory, and the control data on the register circuit includes a code relating to the selection of data change, the main device without going through the register circuit A read / write control circuit for a memory having a function of setting so that write data transferred from the memory is sequentially written to the memory. 請求項1又は2記載のメモリのリード/ライト制御回路において、前記制御部は、前記レジスター回路上のコントロールデータにライトの選択に関するコードが含まれているときは、前記メモリに対してライトが行われるように設定し、前記レジスター回路上のコントロールデータにリードの選択に関するコードが含まれているときは、前記メモリに対してリードが行われるように設定する機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。3. The read / write control circuit for a memory according to claim 1, wherein the control unit performs a write to the memory when a control data on the register circuit includes a code related to a write selection. When the control data on the register circuit includes a code related to read selection, the memory has a function of setting so that the memory is read . A memory read / write control circuit. 請求項1又は2記載のメモリのリード/ライト制御回路において、前記制御部からの命令を受けてアドレス信号を生成してメモリに出力するアドレス出力回路を備えており、前記制御部は、前記レジスター回路上のコントロールデータにアドレスの設定に関するコードが含まれているときは、前記アドレス出力回路と前記メモリとの間のアドレスバスラインのビット長を当該設定の通りに設定する機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路 3. The memory read / write control circuit according to claim 1, further comprising an address output circuit that receives an instruction from the control unit and generates an address signal and outputs the address signal to the memory. A configuration having a function of setting a bit length of an address bus line between the address output circuit and the memory when the control data on the circuit includes an address setting code, according to the setting; A memory read / write control circuit . 請求項1又は2記載のメモリのリード/ライト制御回路において、前記制御部は、主装置から順次転送された各種データがn(n≧1)個のレジスター回路1、2・・・nに各々保持可能であり、当該レジスター回路1上の各種データに基づいてメモリに対するリード/ライト動作に必要な制御を行い、その後、当該レジスター回路2・・・n上の各種データに基づいてメモリに対するリード/ライト動作に必要な制御を順次的に行う機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。3. The read / write control circuit for a memory according to claim 1, wherein the control unit receives various data sequentially transferred from the main unit in n (n ≧ 1) register circuits 1, 2,. is capable of holding, and controls necessary for read / write operation to the memory on the basis of various data on the register circuit 1, then read to the memory on the basis of various data on the register circuit 2 · · · n / A memory read / write control circuit having a function of sequentially performing control necessary for a write operation . 請求項1又は2記載のメモリのリード/ライト制御回路において、前記制御部は、リード/ライト動作が繰り返し行われる際のリード/ライトの処理回数を計数するカウンター回路を有しており、レジスター回路上のコントロールデータに1回処理に関するコード含まれているときには、当該各種データに基づいて行われるリード/ライト動作を1回だけ行う一方、前記レジスター回路上のコントロールデータに連続処理に関するコード含まれているときには、当該各種データに基づいて行われるリード/ライト動作を当該各種データに含まれるカウント数の回数だけ行う機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。3. The read / write control circuit for a memory according to claim 1 , wherein the control unit includes a counter circuit for counting the number of read / write processes when the read / write operation is repeatedly performed. when the code contains about once processed in the control data of the above, while performing read / write operations to be performed on the basis of the various data only once, the control data on the register circuit contains code for continuous treatment sometimes is, memory read / write control, characterized in that has a configuration in which the read / write operation performed on the basis of the various data has a function of performing many times of the number of counts contained in the various data circuit. アドレスバスとデータバスとが共通化されているタイプのメモリが適応可能な請求項1又は2記載のメモリのリード/ライト制御回路において、前記制御部は、前記レジスター回路上のコントロールデータにアドレスセットに関するコードまれているときには、当該コントロールデータに含められたアドレスの設定、アドレスマスク有無の選択、アドレスセット数の選択、マスクアドレスの選択、メモリの属性を示すデータの主装置への転送の有無の選択及び各種制御信号の出力の有無の各選択(CSのクロック同期出力/常時出力の選択を含む)に関するコードに従って前記メモリに対するアドレスセットの設定を行う一方、前記レジスター回路上のコントロールデータにデータセットに関するコードが含まれているときには、当該コントロールデータに含められたアドレスの設定、メモリ制御の設定、データの変化/固定の設定、各種制御信号の出力の有無の各選択(CSのクロック同期出力/常時出力の選択を含む)及びR/B信号の主装置への転送の有無の選択に関するコードに従って前記メモリに対するデータセットの設定を行う機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。In the address bus and the data bus and the common Display Types of memory of a memory according to claim 1 or 2, wherein adaptable read / write control circuit, wherein the control unit, the address set in the control data on the register circuit about when the code is present contains Marete is the control data to the included address settings, selection of address mask presence, the choice of address set number, the selection of mask address, transfer to the main unit of the data indicating the attribute of the memory while in accordance with the presence or absence of selection and related that code to each selection of the presence or absence of an output (including selection of the clock synchronization output / constant output CS) of the various control signal for setting the address set for the memory, controls on the register circuit If the data contains a code related to a dataset, Setting of addresses included in the trawl data, setting of the memory control, data of the changing / fixing settings (including selection of clocked out / constant output CS) each selection of presence or absence of an output of the various control signals and R / A read / write control circuit for a memory having a function of setting a data set for the memory according to a code relating to selection of whether or not to transfer a B signal to a main device. 多種類のメモリが適応可能な請求項1又は2記載のメモリのリード/ライト制御回路において、適応可能なメモリのうち使用するメモリの種類を設定入力するスイッチであって当該設定結果を信号として前記制御部に出力するモード切り替え回路と、前記メモリの種類を設定に基づいて当該メモリの属性を示すデータを生成するアトリビュート入力回路を備え、前記制御部は、前記レジスター回路上のコントロールデータに各種制御信号の出力に関するコードまれているときには、前記メモリに出力すべき当該制御信号をアクティブにする一方、前記コントロールデータにメモリの属性を示すデータの主装置への転送に関するコードまれているときには、前記アトリビュート入力回路にて生成されたデータを主装置に転送させる機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。3. The read / write control circuit for a memory according to claim 1, wherein a plurality of types of memories can be applied. The switch is a switch for setting and inputting a type of a memory to be used among the applicable memories, and the setting result is used as a signal. a mode switching circuit for outputting to the control unit includes an attribute input circuit for generating data indicating the attribute of the memory based on the type of the memory to the setting, the control unit stores various control in the control data on the register circuit when the code for the output signals are free Marete is the one that activates the control signal to be output to the memory, code for transfer to the main unit of the data indicating the attribute of the memory to the control data is present contains Marete sometimes, it functions to transfer data generated by said attribute input circuit to the main unit Memory, characterized in that has a has a configuration read / write control circuit. 請求項記載のメモリのリード/ライト制御回路において、前記制御部は、前記レジスター回路上のコントロールデータに予備の制御信号の出力に関するコードまれているときには、前記メモリに出力すべき当該制御信号をアクティブにする機能を有した構成となっていることを特徴とするメモリのリード/ライト制御回路。In the read / write control circuit of the memory of claim 8, wherein, when the code is present contains Marete regarding the output of the preliminary control signal to the control data on the register circuit, the control to be output to the memory A read / write control circuit for a memory, which has a function of activating a signal. 請求項2、3、4、5、6、7、8又はのメモリのリード/ライト制御回路が搭載された無接点メモリカードであって、前記リード/ライト装置から電力を入力するための電源用コイルと、前記リード/ライト装置から同期クロックを入力するための同期クロック用コイルと、主装置からリード/ライト装置を通じて転送されたセレクトデータをシリアル形式で入力するためのセレクト用コイルと、主装置からリード/ライト装置を通じて転送された各種データをシリアル形式で入力するための入力用コイルと、前記リード/ライト装置を通じて主装置に転送すべきリードデータ等をシリアル形式で出力するための出力用コイルとを具備したことを特徴とする無接点メモリカード。A claim 2,3,4,5,6,7,8 or 9 memory read / write control circuit contactless memory card installed in the power supply for inputting power from the read / write device and use the coil, the coil of the synchronous clock for inputting the synchronous clock from the read / write device, the select-purpose coil for inputting a select data transferred through the read / write device in serial form from the main unit, the main an input coil for inputting various data transferred through the read / write device from a device in serial form, for output for outputting the read data and the like to be transferred to the main unit in serial form through the read / write device A contactless memory card comprising a coil. 主装置に接続されており且つ請求項10の無接点メモリカードがセットされるリード/ライト装置において、前記無接点メモリカードに電力を供給するための電源用コイルと、前記無接点メモリカードに同期クロックを供給するための同期クロック用コイルと、主装置から転送されたセレクトデータを前記無接点メモリカードにシリアル形式で出力するためのセレクト用コイルと、主装置から転送された各種データを前記無接点メモリカードにシリアル形式で出力するための出力用コイルと、前記無接点メモリカードから主装置に向けて転送された少なくともリードデータをシリアル形式で入力するための入力用コイルとを具備したことを特徴とするリード/ライト装置。In the read / write device contactless memory card provided and claim 10 is connected to the main unit is set, and a power supply coil for supplying power to the contactless memory card, synchronized with the contactless memory card Mu said coil for a synchronous clock for providing a clock, a select-purpose coil for outputting in serial form the select data transferred to the contactless memory card from the main unit, various data transferred from the main unit an output coil for outputting the contact memory card in serial form, that at least the read data transferred toward the main unit from the non-contact memory card equipped with the input coil for inputting in serial form Characteristic read / write device. 請求項10の無接点メモリカードと、請求項11のリード/ライト装置と、リード/ライト装置に接続された主装置とを備えており、主装置は、無接点メモリカードにおいて各種データをレジスター回路に保持させる前処理段階とレジスター回路に保持された各種データに基づいて前処理及びリード/ライト動作を行わせる本動作段階とを切り替えるためのセレクトデータを生成して前記リード/ライト装置を通じて無接点メモリカードに転送し、これとは別に、前処理段階においては各種データを生成してリード/ライト装置を通じて無接点メモリカードに転送し、本動作段階においてはライト時に必要なライトデータを生成しリード/ライト装置を通じて無接点メモリカードに転送する一方、リード時には無接点メモリカードからリード/ライト装置を通じて転送された少なくともリードデータを入力する構成となっていることを特徴とする無接点メモリカードのリード/ライトシステム。A contactless memory card according to claim 10 , a read / write device according to claim 11 , and a main device connected to the read / write device, wherein the main device registers various data in the contactless memory card. Solid state through the pretreatment and the read / write device to generate a select data for switching between the operation steps to perform read / write operations on the basis of various data stored in the pre-processing stage and a register circuit for holding the Separately, the data is transferred to the memory card. Separately, in the preprocessing stage, various data are generated and transferred to the contactless memory card through the read / write device. In this operation stage, the write data required for writing is generated and read. / Transfers to a contactless memory card through a write device, while reading from a contactless memory card Contactless memory card read / write system, characterized in that it is configured for inputting at least read data transferred through the light device.
JP2002272328A 2002-09-18 2002-09-18 Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system Expired - Lifetime JP4160808B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002272328A JP4160808B2 (en) 2002-09-18 2002-09-18 Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002272328A JP4160808B2 (en) 2002-09-18 2002-09-18 Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system

Publications (2)

Publication Number Publication Date
JP2004110436A JP2004110436A (en) 2004-04-08
JP4160808B2 true JP4160808B2 (en) 2008-10-08

Family

ID=32269369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002272328A Expired - Lifetime JP4160808B2 (en) 2002-09-18 2002-09-18 Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system

Country Status (1)

Country Link
JP (1) JP4160808B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142093A (en) * 2011-03-24 2011-08-03 青岛海信移动通信技术股份有限公司 Operation method and device for memory card

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5045229B2 (en) * 2007-05-14 2012-10-10 富士ゼロックス株式会社 Storage system and storage device
US9208108B2 (en) 2008-12-19 2015-12-08 Nvidia Corporation Method and system for improved flash controller commands selection
US8732350B2 (en) 2008-12-19 2014-05-20 Nvidia Corporation Method and system for improving direct memory access offload
US9594675B2 (en) 2009-12-31 2017-03-14 Nvidia Corporation Virtualization of chip enables
US9465728B2 (en) * 2010-11-03 2016-10-11 Nvidia Corporation Memory controller adaptable to multiple memory devices
CN110413224A (en) * 2019-06-26 2019-11-05 深圳佰维存储科技股份有限公司 Data storage method and device and memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142093A (en) * 2011-03-24 2011-08-03 青岛海信移动通信技术股份有限公司 Operation method and device for memory card

Also Published As

Publication number Publication date
JP2004110436A (en) 2004-04-08

Similar Documents

Publication Publication Date Title
US5732250A (en) Multi-function microprocessor wait state mechanism using external control line
US5423009A (en) Dynamic sizing bus controller that allows unrestricted byte enable patterns
US20040054864A1 (en) Memory controller
US6907514B2 (en) Microcomputer and microcomputer system
US7165126B2 (en) Direct memory access device
JP2000076066A (en) Signal processing circuit
JP4160808B2 (en) Memory read / write control circuit, contactless memory card, read / write device, and contactless memory card read / write system
JPH0528097A (en) Microprocessor
CN106980587B (en) General input/output time sequence processor and time sequence input/output control method
US7747832B2 (en) Method for controlling a memory access
JPH06103225A (en) Chain type dma system and dma controller therefor
JPH0844560A (en) Memory control circuit and integrated circuit element incorporating this circuit
CN114641763B (en) Protocol converter module system and method for using the same
CN112835842A (en) Terminal sequence processing method, circuit, chip and electronic terminal
WO2021089303A1 (en) Protocol translator module system and method using said protocol translator module system
JP2933848B2 (en) Data processing device
SU1737440A1 (en) Device for software processing of digital data
WO2004051465A2 (en) Data processing device with microprocessor and with additional arithmetic unit and associated method
CN109558076A (en) A kind of configurable virtual SPI-FLASH
JP2005209224A (en) Direct memory access device
WO1995022110A1 (en) Write-read data operation for microprocessor
JPH09167148A (en) Data processor
JPH0567035A (en) Data alignment system for dma transfer
JPH0375957A (en) Dma transfer control system
JPH1173315A (en) Variable length instruction processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050916

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070907

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080415

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080616

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080715

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080718

R150 Certificate of patent or registration of utility model

Ref document number: 4160808

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110725

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120725

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120725

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130725

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term