Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4413321B2 - Reader / writer unit - Google Patents
[go: Go Back, main page]

JP4413321B2 - Reader / writer unit - Google Patents

Reader / writer unit Download PDF

Info

Publication number
JP4413321B2
JP4413321B2 JP19645899A JP19645899A JP4413321B2 JP 4413321 B2 JP4413321 B2 JP 4413321B2 JP 19645899 A JP19645899 A JP 19645899A JP 19645899 A JP19645899 A JP 19645899A JP 4413321 B2 JP4413321 B2 JP 4413321B2
Authority
JP
Japan
Prior art keywords
control element
interface
signal line
data
transmitted
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 - Fee Related
Application number
JP19645899A
Other languages
Japanese (ja)
Other versions
JP2001022900A (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.)
Toshiba Corp
Toshiba Information Systems Japan Corp
Original Assignee
Toshiba Corp
Toshiba Information Systems Japan Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba Information Systems Japan Corp filed Critical Toshiba Corp
Priority to JP19645899A priority Critical patent/JP4413321B2/en
Publication of JP2001022900A publication Critical patent/JP2001022900A/en
Application granted granted Critical
Publication of JP4413321B2 publication Critical patent/JP4413321B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
この発明は、上位装置と無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御するMPUとからなるリーダライタユニットに関する。
【0002】
【従来の技術】
従来、無線カード用の無線カード処理システムは、ホスト(上位装置、PC)とリーダライタユニット(RWU)と無線カードとからなる。上記リーダライタユニットは、ホスト(PC)と無線カードとを接続するものである。このリーダライタユニットは、このユニットを制御するMPUと様々な通信方式に対応できる汎用的なLSIからなるインターフェースと送受信回路とにより構成されている。このインターフェースは、様々な通信方式に対応できるように、内部にレジスタを有している。このため、インターフェースでは、レジスタを設定するために、バスでMPUと接続する必要があり、また、各制御端子を制御するために多くのピンを必要としていた。さらに、MPUとインターフェースを接続するための多くの線が必要であった。
【0003】
たとえば、シリアルインプットデータ(SI)用の信号線、シリアルアウトプットデータ(SO)用の信号線、送受信モード用の信号線、リセット信号用の信号線、変調モード1用の信号線、変調モード2用の信号線、変調モード3用の信号線、復調モード1用の信号線、復調モード2用の信号線、復調モード3用の信号線、分周比1用の信号線、分周比2用の信号線の12本の信号線が必要であった。
【0004】
このように、上述したような接続が必要なため、MPU側に多くのI/Oポートが要求され、I/Oポートが少ないMPUの場合には使用できないという問題があった。
【0005】
さらに、上記LSIをIP(開発資産(IP:Intellectual Property))化し、MPUを含むシステムLSIにする場合に外部との接続端子が多いため仕様が複雑となるという問題があった。
【0006】
したがって、上位装置と無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御するMPUとからなるものにおいて、MPUとインターフェースを接続するための線を少なくでき、インターフェースのピン(端子)数を少なくすることができ、MPU側でこのインターフェースのために使用するポートも減少でき、ポートの少ないMPUでも使用することができるものが要望されている。
【0007】
【発明が解決しようとする課題】
この発明は、上位装置と無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、制御素子とインターフェースを接続するための線を少なくでき、インターフェースのピン数を少なくすることができ、制御素子側でこのインターフェースのために使用するポートも減少でき、ポートの少ない制御素子でも使用することができるものが要望されているもので、制御素子とインターフェースを接続するための線を少なくでき、インターフェースのピン数を少なくすることができ、制御素子側でこのインターフェースのために使用するポートも減少でき、ポートの少ない制御素子でも使用することができるリーダライタユニットを提供することを目的としている。
【0008】
【課題を解決するための手段】
この発明のリーダライタユニットは、無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する送信手段と、この送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて、上記無線カードとの通信を行う処理手段とからなる。
【0009】
この発明のリーダライタユニットは、送信データを無線カードに送信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、上記制御素子が、コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段と、上記第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、上記送信データを上記第1の信号線を介して送信する第3の送信手段とからなり、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第4の送信手段と、この第4の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて、上記制御素子から上記第1の信号線を介して供給される送信データを上記無線カードへ送信する第5の送信手段とからなる。
【0010】
この発明のリーダライタユニットは、無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線とを具備し、上記制御素子が、コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段とからなり、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第3の送信手段と、この第3の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第3の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第4の送信手段とからなる。
【0011】
この発明のリーダライタユニットは、無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線とを具備し、上記制御素子が、コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段とからなり、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第3の送信手段と、この第3の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第3の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第4の送信手段と、この第4の送信手段の送信に応答して上記制御素子から上記第3の信号線を介してコントロール信号が供給された際に、上記第3の送信手段により送信される同期クロックに基づいて、上記無線カードから受信した受信データのステータスデータを上記第4の信号線を介して上記制御素子へ送信する第5の送信手段とからなる。
【0012】
この発明のリーダライタユニットは、無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのエラーを示す信号が上記制御素子に伝送される第5の信号線とを具備し、上記制御素子が、コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段とからなり、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第3の送信手段と、この第3の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第3の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第4の送信手段と、上記無線カードから受信した受信データによるエラーを判断する判断手段と、この判断手段によりエラーを判断した際に、エラーを示す信号を上記第5の信号線を介して上記制御素子へ送信する第5の送信手段とからなる。
【0013】
この発明のリーダライタユニットは、送信データを無線カードに送信するとともに、無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線とを具備し、上記制御素子が、コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段と、上記第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、上記送信データを上記第1の信号線を介して送信する第3の送信手段とからなり、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第4の送信手段と、この第4の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて、上記制御素子から上記第1の信号線を介して供給される送信データを上記無線カードへ送信する第5の送信手段と、上記設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第4の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第6の送信手段とからなる。
【0014】
この発明のリーダライタユニットは、無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する送信手段と、この送信手段により送信される同期クロックに基づいて、第1の通信速度で通信される上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などに基づいて、上記無線カードとの通信を上記第1の通信速度よりも遅い速度で行う処理手段とからなる。
【0015】
この発明のリーダライタユニットは、無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、上記インターフェースが、上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する送信手段と、この送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、この設定手段により設定される通信方式などと上記同期クロックよりも低い周波数のクロックとに基づいて、上記無線カードとの通信を行う処理手段とからなる。
【0019】
【発明の実施の形態】
以下、この発明の第1の実施形態について図面を参照して説明する。
【0020】
図1は、この発明の無線カード処理システムの概略構成を示すものである。
【0021】
すなわち、無線カード処理システムは、上位装置としてのパーソナルコンピュータ(PC)1と、このPC1に接続されるリーダライタユニット(RWU)2とこのリーダライタユニット2のアンテナ部3との間で無線通信を行う無線カード4、…とにより構成されている。
【0022】
PC1は、図示しない制御部、操作部、表示部、リーダライタユニット2の接続部により構成されている。
【0023】
リーダライタユニット2は、リーダライタユニット2の全体を制御する制御回路(制御素子)としてのMPU5、様々な通信方式に対応できるインターフェースとしての無線カードリーダライタ用のLSI6、送受信回路7、アンテナ部3とにより構成されている。
【0024】
MPU5は、MPU5の全体を制御するCPU11、制御プログラム、各種情報を記憶し、RAM、ROMからなるメモリ12、LSI6との通信用のシリアルデータのインプット、アウトプット用のSIO13により構成されている。
【0025】
CPU11は、上記PC1に接続され、データのやり取りが行われるものであり、たとえばデータリードコマンドの受信に対して、LSI6にデータリードコマンドの送信を行うようになっている。
【0026】
上記SIO13には、シリアルインプットデータ(SI)用のI/Oポート、シリアルアウトプットデータ(SO)用のI/Oポート、シリアルクロック(SCK)用のI/Oポート、コントロール信号(CONT)用のI/Oポートが設けられている。
【0027】
上記SIO13は、無線カード4のデータリードコマンドをSI用のI/OポートからLSI6へ出力するものである。
【0028】
アンテナ部3は、送信アンテナ14、受信アンテナ15により構成されている。
【0029】
上記送受信回路7は、送信回路16、受信回路17により構成されている。
【0030】
送信回路16は、送信アンテナ14に接続され、LSI6からの無線カード4に対する送信データ(TXD)を送信アンテナ14を用いて送信するものである。
【0031】
受信回路17は、受信アンテナ15に接続され、受信アンテナ15にて受信した無線カード4からの受信データ(RXD)をLSI6へ出力するものである。
【0032】
無線カード4は、全体を制御する制御回路、制御プログラム、乱数、ID(認識番号)データ等の各種情報を記憶するメモリ、変調復調回路、電源発生回路、送受信アンテナにより構成されている。
【0033】
上記LSI6は、図2に示すように、MPU5との通信用のシリアルデータのインプット、アウトプット用のSIO21、モード設定用のレジスタ22、分周比設定用のレジスタ23、タイミング設定用のレジスタ24、送信モード、受信モード、停止モードの3つのモード状態に切換わるモード切換器25、基準クロックを分周したクロックを出力する分周器26、タイミング信号を生成するタイミング生成器27、PC1からの送信データを変調した送信データ(TXD)を送信回路16へ出力する変調回路28、受信回路17からの受信データ(RXD)を復調する復調回路29により構成されている。変調回路28、復調回路29は、アナログ回路も含んでいる。
【0034】
上記レジスタ22、23、24は、無線カード4との通信を行うための、通信方式、分周比等の各種設定可能なレジスタである。
【0035】
上記SIO21には、シリアルインプットデータ(SI、シリアルデータ受信信号)端子(ピン)、シリアルアウトプットデータ(SO、シリアルデータ送信信号)端子、シリアルクロック(SCK、クロック送信信号)端子、コントロール信号(CONT)端子が設けられ、それぞれ上記MPU5のSIO13の、シリアルインプットデータ(SI)用のI/Oポート、シリアルアウトプットデータ(SO)用のI/Oポート、シリアルクロック(SCK)用のI/Oポート、コントロール信号(CONT)用のI/Oポートと、信号線(4本)により接続されている。この信号線は、SI用の信号線、SO用の信号線、SCK用の信号線、CONT用の信号線となっている。SI用の信号線は、レジスタを設定するためと無線カード4へデータを送信するための共通なシリアルデータ受信信号線となっている。SO用の信号線は、無線カード4から受信した信号を送信するためのシリアルデータ送信信号線となっている。SCK用の信号線は、2つのシリアルデータと同期を取ることができるように同期クロックを送信するクロック送信信号線となっている。CONT用の信号線は、送信データとレジスタ設定データとを区別するためのコントロール信号を送信するコントロール信号線となっている。
【0036】
上記SIO21は、上記MPU5のSIO13からCONT端子に供給される図3の(c)あるいは(d)に示す、コントロール信号(CONT)に基づいて、図3の(b)に示す、8ビット(1バイト)分の同期クロックとしてのシリアルクロック(SCK)をSCK端子から上記MPU5のSIO13へ出力するものである。上記コントロール信号(CONT)がLレベルとなっている期間は、図3の(c)に示すように、長いものであっても、図3の(d)に示すように、短いものであっても良い。コントロール信号(CONT)は、シリアルインプットデータ(SI)におけるシリアルデータが、レジスタ設定データか送信データかを区別するためのものとなっている。
【0037】
これにより、SIO21は、コントロール信号(CONT)がLレベルの際(Lレベルとなった後)、クロック同期方式に基づいて、上記MPU5のSIO13からSI端子に供給される8ビット構成のシリアルデータであるレジスタ設定データ(後半の4クロックの4ビットがレジスタアドレス、前半の4クロックの4ビットがレジスタの値)を受信するものである。
【0038】
すなわち、図3の(a)(b)に示すように、シリアルクロック(SCK)の立ち下がり時、上記MPU5のSIO13が1ビット分ずつの信号を出力し、シリアルクロック(SCK)の立ち上がり時、上記SIO21がそのMPU5のSIO13からの1ビット分ずつの信号を受信するようになっている。
【0039】
上記レジスタ設定データは、4ビットのレジスタ値と4ビットのレジスタアドレスとからなり、このレジスタアドレスはレジスタ22、23、24のいずれかを示すものである。
【0040】
上記SIO21は、上記MPU5のSIO13から受信したレジスタ設定データ内のアドレスに基づいたレジスタ22、23、24に、上記MPU5のSIO13から受信したレジスタ設定データ内のレジスタ値を出力するものである。
【0041】
上記SIO21は、上記モード切換器25に設定されている送信モードが供給されている際に、上記MPU5のSIO13からSI端子に供給される送信データを変調回路28へ出力するものである。
【0042】
上記SIO21は、上記モード切換器25に設定されている受信モードが供給されている際に、上記復調回路29から供給される復調済みの受信データをSO端子から上記MPU5のSIO13へ出力するものである。
【0043】
モード設定用のレジスタ22は、上記SIO21から供給されるレジスタ値を記憶し、この記憶したレジスタ値をモード切換器25へ出力するものである。
【0044】
分周比設定用のレジスタ23は、上記SIO21から供給されるレジスタ値を記憶し、この記憶したレジスタ値を分周器26へ出力するものである。
【0045】
タイミング設定用のレジスタ24は、上記SIO21から供給されるレジスタ値を記憶し、この記憶したレジスタ値をタイミング生成器27へ出力するものである。
【0046】
モード切換器25は、レジスタ22のレジスタ値に基づいて、変調モード、復調モード、送受信モードの3つのモード状態が設定されるものであり、この設定されているモードはSIO21、変調回路28、復調回路29へ出力される。上記変調モードとしては振幅変調、周波数変調、位相変調の3つのモードがある。上記復調モードとしては振幅変調に対する復調、周波数変調に対する復調、位相変調に対する復調の3つのモードがある。上記送受信モードとしては、送信モード、受信モード、停止モードの3つのモードがある。
【0047】
分周器26は、レジスタ23のレジスタ値に基づく分周比で図示しない発振回路から供給される基準クロックを分周したクロックを出力するものであり、このクロックは変調回路28、復調回路29へ出力される。
【0048】
タイミング生成器27は、レジスタ22のレジスタ値と図示しない発振回路から供給される基準クロックとに基づいて、第1、第2のタイミング信号を生成するものであり、この第1のタイミング信号は変調回路28、復調回路29へ出力され、上記第2のタイミング信号はシリアルクロックとしてSIO21へ出力される。第1のタイミング信号によるクロック周波数は、第2のタイミング信号(シリアルクロック)によるクロック周波数の半分(1/2)となっている。
【0049】
変調回路28は、上記モード切換器25で送信モードが設定されている際に、PC1からMPU5、SIO21を介して供給される送信データを、分周器26からのクロックに基づいて、上記モード切換器25で設定されている変調モードで変調するものであり、この変調された変調データ(TXD)はタイミング生成器27からの第1のタイミング信号に基づいて送信回路16へ出力される。
【0050】
復調回路29は、上記モード切換器25で受信モードが設定されている際に、受信回路17からの受信データ(RXD)を、分周器26からのクロックとタイミング生成器27からの第1のタイミング信号に基づいて、上記モード切換器25で設定されている復調モードで復調するものであり、この復調された復調データはSIO21、MPU5を介してPC1へ出力される。
【0051】
次に、上記構成において、リーダライタユニット2を介して行われるPC1とと無線カード4とのデータの送受信処理として、無線カード4のデータをリードする際の動作を、図4に示すフローチャートと、図5の(a)から(d)と図6の(a)から(e)に示す信号波形図を参照しつつ説明する。
【0052】
たとえば今、図示しない電源スイッチによりリーダライタユニット2の電源をオンする(ST1)。すると、MPU5の初期設定を行う(ST2)。この初期設定としては、SIO21の通信方法(速度)の設定等であり、あらかじめ決まっている複数の内の1つを選択する。MPU5はLSI6の初期設定を送信する(ST3)(図5の(1)参照)。これにより、LSI6の各レジスタ22、23、24にレジスタ値が設定される(ST4)。レジスタ22に変調モードを示すレジスタ値と復調モードを示すレジスタ値とが設定され、レジスタ23に分周比を示すレジスタ値が設定され、レジスタ24にタイミングを示すレジスタ値が設定される。
【0053】
すなわち、図3の(c)に示すように、MPU5からのコントロール信号CONTがLレベルとなった際に、SIO21は、図3の(b)に示すように、同期クロックとしてのシリアルクロック(SCK)をSCK端子からMPU5へ出力する。
【0054】
これにより、SIO21は、クロック同期方式に基づいて、上記MPU5のSIO13からSI端子に供給される8ビット構成のシリアルデータであるレジスタ設定データ(後半の4クロックの4ビットがレジスタアドレス、前半の4クロックの4ビットがレジスタの値)を受信する。
【0055】
すなわち、図3の(a)(b)に示すように、シリアルクロック(SCK)の立ち下がり時、上記MPU5のSIO13が1ビット分ずつの信号を出力し、シリアルクロック(SCK)の立ち上がり時、上記SIO21がそのMPU5のSIO13からの1ビット分ずつの信号を受信する。
【0056】
この結果、SIO21は、まず1バイト目に、変調モードを示すレジスタ値とレジスタ22の変調モードを示すアドレス値の受信を判断し、レジスタ22に変調モードを設定する。ついで、SIO21は、2バイト目に、復調モードを示すレジスタ値とレジスタ22の復調モードを示すアドレス値の受信を判断し、レジスタ22に復調モードを設定する。ついで、SIO21は、3バイト目に、分周比を示すレジスタ値とレジスタ23のアドレス値の受信を判断し、レジスタ23に分周比を設定する。ついで、SIO21は、4バイト目に、タイミングを示すレジスタ値とレジスタ24のアドレス値の受信を判断し、レジスタ24にタイミングを設定する。
【0057】
したがって、モード切換器25の変調モード、復調モードが設定され、分周器26がレジスタ23のレジスタ値に基づく分周比で図示しない発振回路から供給される基準クロックを分周したクロックを出力し、タイミング生成器27がレジスタ22のレジスタ値と図示しない発振回路から供給される基準クロックとに基づいて、第1、第2のタイミング信号を出力する。
【0058】
上記ステップ4によりLSI6の各レジスタ22、23、24にレジスタ値を設定した際に、すべての準備が終了後、MPU5はPC1からのコマンド受信待ち状態となる(ST5)。
【0059】
この状態において、PC1が、無線カード4のデータリードコマンドをリーダライタユニット2のMPU5へ送信する(ST6)。MPU5は、LSI6に無線カード送信用のレジスタ設定データを送信する(ST7)(図5の(b)から(d)、図5の(1)参照)。これにより、LSI6のレジスタ24に送信モードを示すレジスタ値が設定される(ST8)。
【0060】
この際、上述したように、MPU5からのコントロール信号CONTのLレベルにより、LSI6のSIO21から出力されるシリアルクロック(SCK)(第2のタイミング信号より生成)に基づいて、レジスタ設定データをLSI6のSIO21に送信する(図5の(b)から(d)、図5の(1)参照)。LSI6のSIO21は、レジスタ24の送受信モードを送信モードに設定する。この結果、モード切換器25が送信モードに設定される。
【0061】
この設定後、MPU5はLSI6へ送信データ(リードコマンド)を送信する(ST9)。すなわち、MPU5はSIO21から出力されるシリアルクロック(SCK)に基づいて、シリアルインプットデータSIとして8ビット(1バイト)単位の送信データを順次LSI6のSIO21に送信する(図5の(b)(c)、図5の(2)参照)。
【0062】
また、LSI6のSIO21はMPU5からの1バイト単位の送信データを順次、変調回路28に出力する。これにより、変調回路28はモード切換器25からの変調モードと分周器26からのクロックとタイミング生成器27からの第1のタイミング信号とに基づいて送信データを変調し、この変調した送信データ(TXD)が、図5の(a)に示すように、連続データとして、送信回路16を介して送信アンテナ14に出力される(図5の(3)参照)。これにより、送信アンテナ1により送信データが無線カード4へ送信される(ST10)。この結果、無線カード4が送信データを受信する(ST11)。
【0063】
上記シリアルインプットデータSIとしての送信データ(MPU5からSIO21)の通信速度が、変調回路28から出力される送信データTXD(変調回路28から送信回路16)の通信速度の2倍となっている。
【0064】
上記ステップ9による送信データの送信が終了した際に、MPU5はコントロール信号をLレベルにする(ST12)(図5の(d)、図5の(4)参照)(図6の(e)、図6の(4)参照)。これにより、LSI6(SIO21)はMPU5からの送信データの送信を停止する(ST13)。
【0065】
ついで、MPU5は、LSI6に無線カード受信用のレジスタ設定データを送信する(ST14)(図5の(b)から(d)、図5の(1)参照)。これにより、LSI6のレジスタ24に受信モードを示すレジスタ値が設定される(ST15)。
【0066】
この際、上述したように、MPU5からのコントロール信号CONTのLレベルにより、LSI6のSIO21から出力されるシリアルクロック(SCK)(第2のタイミング信号より生成)に基づいて、レジスタ設定データをSIO21に送信する(図5の(b)から(d)、図5の(5)参照)(図6の(b)(c)(e)、図6の(5)参照)。SIO21は、レジスタ24の送受信モードを受信モードに設定する。この結果、モード切換器25が受信モードに設定される。
【0067】
この後、MPU5はコントロール信号をHレベルとし(ST16)、受信待ち状態となる(ST17)(図6の(e)、図6の(6)参照)。
【0068】
また、LSI6は、コントロール信号のHレベルにより、無線カード4からのデータ受信待ちとなる(ST18)。
【0069】
このような状態において、無線カード4からデータが送信される(レスポンスデータ、受信データ)(ST19)。
【0070】
これにより、受信アンテナ15、受信回路17を介して連続データとして受信した無線カード4からの受信データ(RXD)(図6の(a)、図6の(7)参照)が復調回路29に供給される。復調回路29は、上記モード切換器25が受信モードに設定されているため、受信回路17からの受信データ(RXD)を、分周器26からのクロックとタイミング生成器27からの第1のタイミング信号に基づいて、上記モード切換器25で設定されている復調モードで復調され、この復調された復調データはSIO21を介してMPU5へ出力される(ST20)。
【0071】
これにより、MPU5はSIO21から出力されるシリアルクロック(SCK)に基づいて、SIO21からのシリアルアウトプットデータSOとして8ビット(1バイト)単位の受信データを順次、受信する(図6の(c)(d)、図6の(8)参照)(ST21)。この受信データは一旦メモリ12に記憶される。
【0072】
そして、MPU5は無線カード4からの受信データを全て受信した際、コントロール信号をLレベルにする(ST22)(図6の(e)、図6の(9)参照)。これにより、LSI6(SIO21)はMPU5の無線カード4からの受信を停止する(ST23)。この停止動作はステータスデータをMPU5へ送信するきっかけであり、ステータスデータの中身(内容)とは関係ないものとなっている。
【0073】
この際、上述したように、MPU5からのコントロール信号CONTのLレベルにより、LSI6のSIO21から出力されるシリアルクロック(SCK)(第2のタイミング信号より生成)に基づいて、レジスタ設定データをSIO21に送信する(ST24)(図6の(b)(d)、図6の(10)参照)。SIO21は、レジスタ24の送受信モードを停止モードに設定する(ST25)。この結果、モード切換器25が停止モードに設定される。
【0074】
また、LSI6のSIO21はシリアルクロック(SCK)に基づいて、受信ステータスデータをシリアルアウトプットデータSOにより送信する。
【0075】
また、MPU5は、LSI6のSIO21から出力されるシリアルクロック(SCK)に基づいて、SIO21からのシリアルアウトプットデータSOとして受信ステータスデータを受信する(図6の(c)(d)、図6の(10)参照)(ST24)。この受信ステータスデータは、受信データRXDから受信した受信データのステータス(パリティエラー、ストップビット無しによるフレーミングエラーなど)である。また、受信ステータスデータは、MPU5がシリアルアウトプットデータSOの受信データが正しいデータかを判断でき、さらに動作シーケンスも正しいと判断できるためのステータスである。この受信ステータスデータは、受信データRXDの状態(パリティエラーなどの伝送エラー)やコントロール信号CONTがシリアルアウトプットデータSO、シリアルクロックSCKが出力されていない時にLレベルにされている(動作エラー、シーケンスエラーを示すデータとなる)。
【0076】
この後、MPU5はコントロール信号をHレベルとし(ST26)、無線カード4からの受信データと、LSI6からの受信ステータスデータをPC1に送信する(ST27)。
【0077】
この結果、PC1は無線カード4からのデータを受信する(ST28)。これにより、PC1はリードコマンドに基づいて無線カード4からデータのリードを行うことができる。
【0078】
また、PC1はステータスデータにより無線カード4からの受信データの正当性を判断することができる。
【0079】
上述したように、MPU5がコントロール信号(CONT)端子をLレベルにすると、LSI6は、シリアルクロック(SCK)端子から1バイト分(8クロック)またはそれ以上の同期クロックSCKを出力し、その出力された同期クロックSCKにあわせてMPU5側からシリアルデータ(後半の4クロックの4ビットがレジスタアドレス、前半の4クロックの4ビットがレジスタの値)をLSI6へ送信することにより、LSI6の各レジスタ22、23、24の設定を、シリアルインプットデータ(SI)端子、シリアルクロック(SCK)端子、コントロール信号(CONT)端子の3つの端子のみで設定できる機能を有する。
【0080】
また、リーダライタユニット2が無線カード4へ送信データ(TXD)の送信を行う方法として、まずMPU5がコントロール信号CONTをLレベルにし、LSI6のレジスタ22の送受信モードを送信用モードに設定にし、コントロール信号CONTをHレベルにした後、LSI6は送信用クロックとしてのシリアルクロックSCKをMPU5に対し出力し、このシリアルクロックSCKに合わせてLSI6への送信データの送信を開始する。1バイト目の送信データAをLSI6は受け取りその送信データAを変調し送信データTXDとして無線カード4へ送信する。シリアルクロックSCKは、送信データTXDの出力タイミングに合わせて出力が開始される。このため、送信データTXDの送信が停止されるまで繰り返され、送信データA、B、Cはリーダライタユニット2から無線カード4に送信される。
【0081】
次に、送信データTXDの送信を停止する場合に、LSI6から送信回路16への送信データTXDの送信速度より速い通信速度で、MPU5とLSI6が送信データの送信を行うものである。これにより、送信データTXDとシリアルインプットデータSIとの通信速度の差のために、シリアルインプットデータSIとシリアルクロックSCKには空き時間ができ、この空き時間内にコントロール信号CONTをLレベルにし、送信を停止するものである。
【0082】
この空き時間のコントロール信号CONTの状態により、LSI6はMPU5から次の必要の無いデータを受信すること無く送信を終了させることが可能となっている。
【0083】
さらに、このコントロール信号CONTをLレベルにした際に、次の動作を行うため、MPU5に対してシリアルクロックSCKを出力しMPU5からレジスタ設定用データを出力させ、レジスタ設定を行うことが可能である。
【0084】
さらに、このシリアルインプットデータSIの通信速度を送信データTXDの2倍にしたものである。さらに、シリアルインプットデータSIの一本にレジスタ設定用データと送信データをのせ、コントロール信号CONTのレベルによりレジスタの設定かまたは、送信データかを区別することができる。
【0085】
さらに、無線カード4からの受信データ(RXD)の受信を行う方法として、まずMPU5がコントロール信号CONTをLレベルにし、LSI6のレジスタ22の送受信モードを受信用モードに設定にし、コントロール信号CONTをHレベルにした後、無線カード4の送信データの受信待ちになる。
【0086】
次に、無線カード4から送信データを受信すると、LSI6は受信データを復調し、シリアルアウトプットデータSOからシリアルクロックSCKを使用してMPU5にクロックに同期して送信する。
【0087】
この送信方法により、受信データRXDの受信速度より速い通信速度でMPU5にデータの送信を行う。
【0088】
次に、MPU5への無線カード4からの受信データRXDの送信を停止する場合に、この受信データRXDとシリアルアウトプットデータSOとの通信速度の差のために、シリアルアウトプットデータSOとシリアルクロックSCKには空き時間ができ、この空き時間内にコントロール信号CONTをLレベルにし、受信を停止するものである。
【0089】
さらに、このコントロール信号CONTをLレベルにした際に、次の動作を行うためにシリアルクロックSCKを出力しMPU5がレジスタ設定データを送信しレジスタ設定を行うことが可能である。
【0090】
さらに、上記シリアルアウトプットデータSOの通信速度を受信データRXDの2倍にしたものである。
【0091】
また、受信データRXDの受信中に停止した際に、受信データRXDから受信した受信データのステータス(パリティエラーなど)を、MPU5からシリアルアウトプットデータSIに送信したデータでLSI6のレジスタの設定を同時にシリアルアウトプットデータSOでMPU5に送信することができる。
【0092】
また、LSI6において、シリアルインプットデータ(SI)の信号線とシリアルアウトプットデータ(SO)の信号線による通信の通信速度が、無線カード4との通信速度(TXD、RXDの通信速度)より速い速度で行い、SIの信号線とSOの信号線による通信データに隙間を作ることができる。
【0093】
また、LSI6において、同期クロックのクロック周期以上の隙間が空くものである。
【0094】
また、LSI6において、無線カード4との通信速度(TXD、RXDの通信速度)を、シリアルインプットデータ(SI)の信号線とシリアルアウトプットデータ(SO)の信号線による通信の通信速度の、2倍またはそれ以上の整数倍にしたものである。
【0095】
また、LSI6において、同期クロックがない期間に、コントロール信号CONTによる信号の変化により、LSI6の各レジスタ22、23、24の状態を変化させるようにしたものである。
【0096】
また、コントロール信号CONTによる信号変化により無線カード4への送信、無線カード4からの受信状態をリセットするようにしたものである。
【0097】
また、LSI6において、受信を完了する際にコントロール信号CONTによる信号を変化させ受信を終了し、次のレジスタを設定するための同期クロックが出力され、レジスタ設定データ受信する際に同時にこのクロックと同期したステータスデータを出力するようにしたものである。
【0098】
また、LSI6において、コントロール信号CONTがシリアルクロック(同期クロック)SCKが出力されている期間(タイミング)で変化し(Lレベルとなる)、受信データRXDの受信中(受信を完了する前)に停止した際に、シーケンスエラーを表すステータスデータをシリアルアウトプットデータSOでMPU5に送信する。(図6の(c)(d)(f)、図6の(11)(10)参照)次に、上記第1の実施形態では、MPU5とLSI6のSIO21とが、シリアルインプットデータ(SI)、シリアルアウトプットデータ(SO)、シリアルクロック(SCK)、コントロール信号(CONT)の4つの信号線により接続され、SIO21に、シリアルインプットデータ(SI)端子(ピン)、シリアルアウトプットデータ(SO)端子、シリアルクロック(SCK)端子、コントロール信号(CONT)端子が設けられている場合について説明したが、これに限らず、第2の実施形態として、図7に示すように、MPU5とLSI6のSIO21との信号線として、シリアルインプットアウトプットエラー信号SIOERRの信号線を追加し、SIO21に、SIOエラー信号SIOERR端子を設けるようにしても良い。この場合、LSI6内に復調回路29からの復調データの伝送エラーを判定する判定回路30が設けられ、この判定回路30により復調データの伝送エラーを判定した際に出力される信号がSIOエラー信号SIOERRとして、MPU5へ送信されるようになっている。上記伝送エラーの判定は、パリティビットによる判定あるいは最終ビットにストップビットが無いことによるフレーミングエラーの判定等である。また、判定回路30は、SIO21に接続され、伝送エラーの判定結果をSIO21に出力するようになっている。
【0099】
この第2の実施形態では、受信データRXDにエラーがあった場合に、エラー個所を特定でき、エラーが発生した直後に受信を終了することができる。
【0100】
この第2の実施形態の要部の説明を、図4のフローチャートと、図8の(a)から(f)の信号波形図を用いて説明する。この場合、上記第1の実施形態のステップ1から18までは、同一のため、ステップ19から説明する。
【0101】
まず、無線カード4からデータが連続して送信される(レスポンスデータ、受信データ)(ST19)。
【0102】
これにより、受信アンテナ15、受信回路17を介して連続データとして受信した無線カード4からの受信データ(RXD)(図8の(a)、図8の(7)参照)が復調回路29に供給される。復調回路29は、上記モード切換器25が受信モードに設定されているため、受信回路17からの受信データ(RXD)を、分周器26からのクロックとタイミング生成器27からの第1のタイミング信号に基づいて、上記モード切換器25で設定されている復調モードで復調され、この復調された復調データはSIO21を介してMPU5へ出力される(ST20)。
【0103】
これにより、MPU5はSIO21から出力されるシリアルクロック(SCK)に基づいて、SIO21からのシリアルアウトプットデータSOとして8ビット(1バイト)単位の受信データを順次、受信する(図8の(c)(d)、図8の(8)参照)(ST21)。この受信データは一旦メモリ12に記憶される。
【0104】
そして、MPU5が無線カード4からの受信データを全て受信する前、つまりLSI6の判定回路30により復調データの伝送エラーを判定しており、この判定回路30は受信データCによるエラーを判断した際に、SIOエラー信号(SIOERR)をHレベルする。このSIOエラー信号(SIOERR)により、MPU5はコントロール信号CONTをLレベルにする(ST22)(図8の(f)(e)、図8の(9)参照)。これにより、MPU5の無線カード4からの受信を停止する(ST23)。LSI6(SIO21)はエラー発生のデータで受信を止めて、受信回路17からの受信データRXDの受信データCまでをMPU5に送信する。
【0105】
また、MPU5からのコントロール信号CONTのLレベルにより、LSI6のSIO21から出力されるシリアルクロック(SCK)(第2のタイミング信号より生成)に基づいて、レジスタ設定データをSIO21に送信する(ST24)(図8の(b)(d)、図8の(10)参照)。SIO21は、レジスタ24の送受信モードを停止モードに設定する(ST25)。この結果、モード切換器25が停止モードに設定される。
【0106】
また、LSI6のSIO21はシリアルクロック(SCK)に基づいて、受信ステータスデータをシリアルアウトプットデータSOにより送信する。
【0107】
また、MPU5はLSI6のSIO21から出力されるシリアルクロック(SCK)に基づいて、SIO21からのシリアルアウトプットデータSOとして受信ステータスデータ(エラー)を受信する(図8の(c)(d)、図8の(10)参照)(ST24)。
【0108】
この後、MPU5はコントロール信号をHレベルとし(ST26)、無線カード4からの受信データと、LSI6からの受信ステータスデータ(エラー)をPC1に送信する(ST27)。
【0109】
この結果、PC1は無線カード4からのエラーが発生するまでのデータを受信する(ST28)。これにより、PC1はリードコマンドに基づいて無線カード4からエラーが発生するまでのデータのリードを行うことができる。
【0110】
また、上記第1、第2の実施形態では、PCとリーダライタユニットと無線カードからなる無線カード処理システムについて説明したが、これに限らず、第3の実施形態として、図9に示すように、リーダライタユニット(RWU)と無線カードからなる無線カード処理システムを、たとえば入退ゲートに用いるようにしても良い。この入退ゲートとしては、無線カード4とリーダライタユニット(RWU)とのデータの送受信(無線カード4からの送信だけでも良い)により、無線カード4の保持者の入出、退出、通過等を許可(ドアの開閉)するものである。
【0111】
この第3の実施形態の処理を、図9に示すフローチャートを参照して説明する。ただし、図4に示すフローチャートと同一部分には、同じステップを付与し、説明を省略する。まず、ステップ5、6、27、28を削除し、ステップ7、9を、ステップ31、32に変更し、ステップ17と21の間にステップ33を追加し、ステップ26の後にステップ34、35を追加する。
【0112】
すなわち、上記ステップ4によりLSI6の各レジスタ22、23、24にレジスタ値を設定した際に、すべての準備が終了後、MPU5は、LSI6に無線カード送信用のレジスタ設定データを準備後、送信する(ST31)。これにより、LSI6のレジスタ24に送信モードを示すレジスタ値が設定される(ST8)。この設定後、MPU5はLSI6への送信データ(リードコマンド)を準備後、送信する(ST32)。
【0113】
また、ステップ18によるデータ受信待ち後、MPU5は、所定時間経過(タイムアップ)した際(ST33)、ステップ22に進む。
【0114】
また、ステップ26によるコントロール信号をHレベルとした後、MPU5は、データが正しいか否かをチェックし(ST34)、正しい場合に、ドアをオープンし(ST35)、正しくない場合およびドアのオープン後に、ステップ31に戻る。
【0115】
上記したように、PCと無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースとしてのLSIと全体を制御するMPUとからなるリーダライタユニット(RWU)において、MPUとLSIを接続するための線を少なくでき、LSIのピン数を少なくすることができ、MPU側でこのLSIのために使用するポートも減少でき、ポートの少ないMPUでも使用することができる。
【0116】
また、LSIのレジスタの設定も容易にできるようになり、さらに外部との接続が少ないため通信部分のLSIとしての独立性が高くなり、より汎用性が高くなるという利点を持ったものである。
【0117】
【発明の効果】
以上詳述したように、この発明によれば、上位装置と無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるものにおいて、制御素子とインターフェースを接続するための線を少なくでき、インターフェースのピン数を少なくすることができ、MPU側でこのインターフェースのために使用するポートも減少でき、ポートの少ないMPUでも使用することができるリーダライタユニットを提供できる。
【図面の簡単な説明】
【図1】この発明の第1の実施形態の無線カード処理システムの概略構成を示すブロック図。
【図2】リーダライタユニットの概略構成を示すブロック図。
【図3】MPUとLSI間の信号を説明するための信号波形図。
【図4】無線カードのデータをリードする際の動作を説明するためのフローチャート。
【図5】MPUとLSI間の信号を説明するための信号波形図。
【図6】MPUとLSI間の信号を説明するための信号波形図。
【図7】この発明の第2の実施形態のリーダライタユニットの概略構成を示すブロック図。
【図8】MPUとLSI間の信号を説明するための信号波形図。
【図9】無線カードのデータをリードする際の動作を説明するためのフローチャート。
【符号の説明】
1…PC
2…リーダライタユニット
4…無線カード
5…MPU
6…LSI
21…SIO
22、23、24…レジスタ
25…モード切換器
26…分周器
27…タイミング生成器
28…変調回路
29…復調回路
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a reader / writer unit that exchanges data between a host device and a wireless card and includes an interface that can handle various communication methods and an MPU that controls the whole.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a wireless card processing system for a wireless card includes a host (a host device, PC), a reader / writer unit (RWU), and a wireless card. The reader / writer unit connects a host (PC) and a wireless card. The reader / writer unit includes an MPU that controls the unit, an interface composed of a general-purpose LSI that can support various communication methods, and a transmission / reception circuit. This interface has a register inside so as to be compatible with various communication methods. For this reason, in order to set registers, the interface needs to be connected to the MPU via a bus, and many pins are required to control each control terminal. In addition, many lines are required to connect the MPU and the interface.
[0003]
For example, a signal line for serial input data (SI), a signal line for serial output data (SO), a signal line for transmission / reception mode, a signal line for reset signal, a signal line for modulation mode 1, a modulation mode 2 Signal line for modulation mode 3, signal line for demodulation mode 1, signal line for demodulation mode 2, signal line for demodulation mode 3, signal line for division ratio 1, division ratio 2 Twelve signal lines for the signal line were necessary.
[0004]
As described above, since the connection as described above is necessary, there is a problem that many I / O ports are required on the MPU side and cannot be used in the case of an MPU having a small number of I / O ports.
[0005]
Further, when the LSI is converted into an IP (Development Asset (IP)) to form a system LSI including an MPU, there is a problem that the specifications are complicated because there are many connection terminals to the outside.
[0006]
Therefore, data can be exchanged between the host device and the wireless card, and an interface that can cope with various communication methods and an MPU that controls the whole can reduce the number of lines for connecting the MPU and the interface. The number of pins (terminals) of the interface can be reduced, the number of ports used for this interface on the MPU side can be reduced, and an MPU with fewer ports can be used.
[0007]
[Problems to be solved by the invention]
The present invention provides a line for connecting a control element and an interface in an interface that exchanges data between a host device and a wireless card and includes an interface that can handle various communication methods and a control element that controls the whole. The number of pins of the interface can be reduced, the number of ports used for this interface on the control element side can be reduced, and a control element with few ports can be used. The number of wires for connecting the control element and the interface can be reduced, the number of pins of the interface can be reduced, the number of ports used for this interface on the control element side can be reduced, and the control element with few ports can be used. The purpose is to provide a reader / writer unit that can .
[0008]
[Means for Solving the Problems]
A reader / writer unit according to the present invention includes an interface capable of exchanging data with a wireless card and supporting various communication methods and a control element for controlling the whole, and between the control element and the interface. Is provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. A second signal line, and a third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface. Control signal supplied from the control element via the third signal line Based on the first signal line from the control element via the first signal line based on the synchronization clock transmitted by the transmission means and the transmission means for transmitting the synchronous clock to the control element via the second signal line. Receiving means for receiving data indicating the communication method and the like, and setting means for setting a communication method for performing communication with the wireless card by data indicating the communication method received by the receiving means; Based on the communication method set by the setting unit, the processing unit performs communication with the wireless card.
[0009]
The reader / writer unit of the present invention comprises an interface capable of transmitting transmission data to a wireless card and supporting various communication methods and a control element for controlling the whole, and is provided between the control element and the interface. And a first signal line through which serial data from the control element is transmitted to the interface and between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. A second signal line; and a third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface. First transmission means for transmitting a signal to the interface via the third signal line In response to the transmission by the first transmission means, the data indicating the communication method and the like is sent to the first signal line in synchronization with the synchronous clock supplied from the interface via the second signal line. In response to transmission by the second transmission means and the first transmission means, the transmission data is synchronized with a synchronization clock supplied from the interface via the second signal line. And a third transmitting means for transmitting via the first signal line, wherein the interface is based on a control signal supplied from the control element via the third signal line. A fourth transmission means for transmitting a synchronous clock to the control element via a signal line; and the first signal from the control element based on the synchronous clock transmitted by the fourth transmission means. Accepting means for receiving data indicating a communication method supplied via the card, and setting means for setting a communication method for performing communication with the wireless card by the data indicating the communication method received by the receiving means And a fifth transmission means for transmitting transmission data supplied from the control element via the first signal line to the wireless card based on the communication method set by the setting means.
[0010]
The reader / writer unit according to the present invention comprises an interface that receives received data from a wireless card and is compatible with various communication systems and a control element that controls the whole, and is provided between the control element and the interface. A first signal line through which serial data from the control element is transmitted to the interface, and a first clock line that is provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. 2 between the control element and the interface, and a third signal line provided between the control element and the interface, and provided between the control element and the interface. Serial data from the interface is provided to the control element A fourth signal line to be transmitted, wherein the control element transmits a control signal to the interface via the third signal line, and transmission by the first transmission means Second transmission means for transmitting data indicating a communication method or the like via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. And the interface transmits a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line. Based on the synchronous clock transmitted by the third transmitter and the third transmitter, data indicating the communication system supplied from the control element via the first signal line is received. Receiving means, data indicating the communication method received by the receiving means, setting means for setting a communication method for communicating with the wireless card, and a communication method set by the setting means. Based on the synchronous clock transmitted from the third transmission means, the reception data received from the wireless card is transmitted from the fourth transmission means to the control element via the first signal line. Become.
[0011]
The reader / writer unit according to the present invention comprises an interface that receives received data from a wireless card and is compatible with various communication systems and a control element that controls the whole, and is provided between the control element and the interface. A first signal line through which serial data from the control element is transmitted to the interface, and a first clock line that is provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. 2 between the control element and the interface, and a third signal line provided between the control element and the interface, and provided between the control element and the interface. Serial data from the interface is provided to the control element A fourth signal line to be transmitted, wherein the control element transmits a control signal to the interface via the third signal line, and transmission by the first transmission means Second transmission means for transmitting data indicating a communication method or the like via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. And the interface transmits a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line. Based on the synchronous clock transmitted by the third transmitter and the third transmitter, data indicating the communication system supplied from the control element via the first signal line is received. Receiving means, data indicating the communication method received by the receiving means, setting means for setting a communication method for communicating with the wireless card, and a communication method set by the setting means. 4th transmission means for transmitting the received data received from the wireless card to the control element via the first signal line based on the synchronous clock transmitted by the third transmission means; When a control signal is supplied from the control element via the third signal line in response to the transmission of the fourth transmission means, based on the synchronous clock transmitted by the third transmission means, It comprises a fifth transmission means for transmitting status data of received data received from the wireless card to the control element via the fourth signal line.
[0012]
The reader / writer unit according to the present invention comprises an interface that receives received data from a wireless card and is compatible with various communication systems and a control element that controls the whole, and is provided between the control element and the interface. A first signal line through which serial data from the control element is transmitted to the interface, and a first clock line that is provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. 2 between the control element and the interface, and a third signal line provided between the control element and the interface, and provided between the control element and the interface. Serial data from the interface is provided to the control element A fourth signal line to be transmitted; and a fifth signal line provided between the control element and the interface, wherein a signal indicating an error from the interface is transmitted to the control element. A control element transmits a control signal to the interface via the third signal line, and in response to transmission by the first transmission means, the interface transmits the second signal line from the interface. And a second transmission means for transmitting data indicating a communication method or the like via the first signal line in synchronization with a synchronous clock supplied via the interface, and the interface is connected to the control element from the control element. A third transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied via the third signal line; Accepting means for accepting data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the third transmitting means, and the communication accepted by the accepting means Setting means for setting a communication method for performing communication with the wireless card by data indicating the method, etc., and received data received from the wireless card based on the communication method set by the setting means, Based on the synchronous clock transmitted by the third transmission means, a fourth transmission means for transmitting to the control element via the first signal line and an error due to received data received from the wireless card are determined. And a fifth means for transmitting a signal indicating an error to the control element via the fifth signal line when an error is determined by the determination means. The transmission means.
[0013]
The reader / writer unit according to the present invention includes an interface capable of transmitting transmission data to a wireless card, receiving received data from the wireless card, and supporting various communication methods, and a control element for controlling the whole. Provided between the control element and the interface, and is provided between the control element and the interface, and is provided between the first signal line through which serial data from the control element is transmitted to the interface and synchronized with the interface. A second signal line for transmitting a clock to the control element; a third signal line provided between the control element and the interface; and a control signal from the control element transmitted to the interface; Provided between the control element and the interface; And a fourth signal line through which serial data from the case is transmitted to the control element, and the control element transmits a control signal to the interface via the third signal line. In response to transmission by the first transmission means, data indicating a communication method or the like is sent to the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. The transmission data in synchronization with a synchronization clock supplied from the interface via the second signal line in response to transmission by the first transmission means. A control signal supplied from the control element via the third signal line. Based on, it transmits a synchronous clock to the control device via the second signal line Fourth transmission means And this Fourth transmission means Accepting means for accepting data indicating the communication method supplied from the control element via the first signal line based on the synchronous clock transmitted by the control element, and data indicating the communication method accepted by the accepting means Based on the setting means for setting the communication method for performing communication with the wireless card and the communication method set by the setting means, the control element supplies the first signal line via the first signal line. Data to be sent to the wireless card 5th transmission means And the received data received from the wireless card based on the communication method set by the setting means, Fourth transmission means Is transmitted to the control element via the first signal line based on the synchronous clock transmitted by Sixth transmission means It consists of.
[0014]
A reader / writer unit according to the present invention includes an interface capable of exchanging data with a wireless card and supporting various communication methods and a control element for controlling the whole, and between the control element and the interface. Is provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. A second signal line, and a third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface. Control signal supplied from the control element via the third signal line And a transmission means for transmitting a synchronous clock to the control element via the second signal line, and the control element communicated at a first communication speed based on the synchronous clock transmitted by the transmission means. Receiving means for receiving data indicating the communication method and the like supplied via the first signal line, and communication for performing communication with the wireless card using the data indicating the communication method received by the receiving means A setting means for setting a method and the like, and a processing means for performing communication with the wireless card at a speed slower than the first communication speed based on a communication method set by the setting means.
[0015]
A reader / writer unit according to the present invention includes an interface capable of exchanging data with a wireless card and supporting various communication methods and a control element for controlling the whole, and between the control element and the interface. Is provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element. A second signal line, and a third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface. Control signal supplied from the control element via the third signal line Based on the first signal line from the control element via the first signal line based on the synchronization clock transmitted by the transmission means and the transmission means for transmitting the synchronous clock to the control element via the second signal line. Receiving means for receiving data indicating the communication method and the like, and setting means for setting a communication method for performing communication with the wireless card by data indicating the communication method received by the receiving means; It comprises processing means for communicating with the wireless card based on a communication method set by the setting means and a clock having a frequency lower than the synchronous clock.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
[0020]
FIG. 1 shows a schematic configuration of a wireless card processing system according to the present invention.
[0021]
That is, the wireless card processing system performs wireless communication between a personal computer (PC) 1 as a host device, a reader / writer unit (RWU) 2 connected to the PC 1, and an antenna unit 3 of the reader / writer unit 2. It is comprised with the radio card 4 to perform.
[0022]
The PC 1 includes a control unit, an operation unit, a display unit, and a connection unit of a reader / writer unit 2 (not shown).
[0023]
The reader / writer unit 2 includes an MPU 5 as a control circuit (control element) that controls the entire reader / writer unit 2, an LSI 6 for wireless card reader / writer as an interface that can support various communication methods, a transmission / reception circuit 7, and an antenna unit 3. It is comprised by.
[0024]
The MPU 5 stores a CPU 11 that controls the entire MPU 5, a control program, and various types of information. The MPU 5 includes a memory 12 including a RAM and a ROM, serial data input for communication with the LSI 6, and an SIO 13 for output.
[0025]
The CPU 11 is connected to the PC 1 and exchanges data. For example, in response to reception of a data read command, the CPU 11 transmits the data read command to the LSI 6.
[0026]
The SIO 13 includes an I / O port for serial input data (SI), an I / O port for serial output data (SO), an I / O port for serial clock (SCK), and a control signal (CONT) I / O ports are provided.
[0027]
The SIO 13 outputs a data read command of the wireless card 4 from the SI I / O port to the LSI 6.
[0028]
The antenna unit 3 includes a transmission antenna 14 and a reception antenna 15.
[0029]
The transmission / reception circuit 7 includes a transmission circuit 16 and a reception circuit 17.
[0030]
The transmission circuit 16 is connected to the transmission antenna 14 and transmits transmission data (TXD) from the LSI 6 to the wireless card 4 using the transmission antenna 14.
[0031]
The receiving circuit 17 is connected to the receiving antenna 15 and outputs received data (RXD) from the wireless card 4 received by the receiving antenna 15 to the LSI 6.
[0032]
The wireless card 4 includes a control circuit that controls the whole, a control program, a memory that stores various information such as random numbers, ID (recognition number) data, a modulation / demodulation circuit, a power generation circuit, and a transmission / reception antenna.
[0033]
As shown in FIG. 2, the LSI 6 includes serial data input, output SIO 21 for communication with the MPU 5, mode setting register 22, frequency division ratio setting register 23, and timing setting register 24. A mode switch 25 for switching to three mode states, a transmission mode, a reception mode, and a stop mode, a frequency divider 26 that outputs a clock obtained by dividing the reference clock, a timing generator 27 that generates a timing signal, and a PC 1 A modulation circuit 28 that outputs transmission data (TXD) obtained by modulating transmission data to the transmission circuit 16 and a demodulation circuit 29 that demodulates reception data (RXD) from the reception circuit 17 are configured. The modulation circuit 28 and the demodulation circuit 29 also include an analog circuit.
[0034]
The registers 22, 23, and 24 are registers that can be set in various ways such as a communication method and a division ratio for performing communication with the wireless card 4.
[0035]
The SIO 21 includes a serial input data (SI, serial data reception signal) terminal (pin), a serial output data (SO, serial data transmission signal) terminal, a serial clock (SCK, clock transmission signal) terminal, and a control signal (CONT). ) Terminal, and the I / O port for serial input data (SI), the I / O port for serial output data (SO), and the I / O for serial clock (SCK) of the SIO 13 of the MPU 5, respectively. It is connected to a port and an I / O port for a control signal (CONT) by signal lines (four lines). This signal line is a signal line for SI, a signal line for SO, a signal line for SCK, and a signal line for CONT. The SI signal line is a common serial data reception signal line for setting a register and for transmitting data to the wireless card 4. The signal line for SO is a serial data transmission signal line for transmitting a signal received from the wireless card 4. The signal line for SCK is a clock transmission signal line that transmits a synchronous clock so as to be synchronized with two serial data. The CONT signal line is a control signal line for transmitting a control signal for distinguishing between transmission data and register setting data.
[0036]
Based on the control signal (CONT) shown in (c) or (d) of FIG. 3 supplied from the SIO 13 of the MPU 5 to the CONT terminal, the SIO 21 has 8 bits (1) shown in (b) of FIG. A serial clock (SCK) as a synchronous clock for (byte) is output from the SCK terminal to the SIO 13 of the MPU 5. The period during which the control signal (CONT) is at the L level may be long as shown in (c) of FIG. 3 or short as shown in (d) of FIG. good. The control signal (CONT) is used to distinguish whether the serial data in the serial input data (SI) is register setting data or transmission data.
[0037]
As a result, the SIO 21 is 8-bit serial data supplied from the SIO 13 of the MPU 5 to the SI terminal based on the clock synchronization method when the control signal (CONT) is at the L level (after the L level). It receives certain register setting data (4 bits in the latter 4 clocks are register addresses and 4 bits in the first 4 clocks are register values).
[0038]
That is, as shown in FIGS. 3A and 3B, when the serial clock (SCK) falls, the SIO 13 of the MPU 5 outputs a signal for each bit, and when the serial clock (SCK) rises, The SIO 21 receives a signal for each bit from the SIO 13 of the MPU 5.
[0039]
The register setting data includes a 4-bit register value and a 4-bit register address, and this register address indicates one of the registers 22, 23, and 24.
[0040]
The SIO 21 outputs the register value in the register setting data received from the SIO 13 of the MPU 5 to the registers 22, 23, 24 based on the address in the register setting data received from the SIO 13 of the MPU 5.
[0041]
The SIO 21 outputs transmission data supplied from the SIO 13 of the MPU 5 to the SI terminal to the modulation circuit 28 when the transmission mode set in the mode switch 25 is supplied.
[0042]
The SIO 21 outputs demodulated reception data supplied from the demodulation circuit 29 from the SO terminal to the SIO 13 of the MPU 5 when the reception mode set in the mode switch 25 is supplied. is there.
[0043]
The mode setting register 22 stores the register value supplied from the SIO 21 and outputs the stored register value to the mode switch 25.
[0044]
The frequency division ratio setting register 23 stores the register value supplied from the SIO 21 and outputs the stored register value to the frequency divider 26.
[0045]
The timing setting register 24 stores the register value supplied from the SIO 21 and outputs the stored register value to the timing generator 27.
[0046]
The mode switch 25 sets three mode states of a modulation mode, a demodulation mode, and a transmission / reception mode based on the register value of the register 22, and these set modes are the SIO 21, the modulation circuit 28, the demodulation circuit 28, and the demodulation mode. It is output to the circuit 29. As the modulation mode, there are three modes of amplitude modulation, frequency modulation, and phase modulation. The demodulation mode includes three modes: demodulation for amplitude modulation, demodulation for frequency modulation, and demodulation for phase modulation. As the transmission / reception mode, there are three modes: a transmission mode, a reception mode, and a stop mode.
[0047]
The frequency divider 26 outputs a clock obtained by frequency-dividing a reference clock supplied from an oscillation circuit (not shown) at a frequency division ratio based on the register value of the register 23, and this clock is output to the modulation circuit 28 and the demodulation circuit 29. Is output.
[0048]
The timing generator 27 generates first and second timing signals based on a register value of the register 22 and a reference clock supplied from an oscillation circuit (not shown), and the first timing signal is modulated. The second timing signal is output to the SIO 21 as a serial clock. The clock frequency based on the first timing signal is half (1/2) the clock frequency based on the second timing signal (serial clock).
[0049]
When the transmission mode is set by the mode switch 25, the modulation circuit 28 transmits the transmission data supplied from the PC 1 via the MPU 5 and the SIO 21 based on the clock from the frequency divider 26. The modulated data (TXD) is output to the transmission circuit 16 based on the first timing signal from the timing generator 27.
[0050]
When the reception mode is set by the mode switch 25, the demodulation circuit 29 receives the reception data (RXD) from the reception circuit 17 with the clock from the frequency divider 26 and the first from the timing generator 27. Based on the timing signal, demodulation is performed in the demodulation mode set by the mode switch 25, and the demodulated demodulated data is output to the PC 1 via the SIO 21 and the MPU 5.
[0051]
Next, in the above configuration, as a data transmission / reception process between the PC 1 and the wireless card 4 performed via the reader / writer unit 2, an operation when reading the data of the wireless card 4 is shown in the flowchart in FIG. Description will be made with reference to signal waveform diagrams shown in FIGS. 5A to 5D and FIGS. 6A to 6E.
[0052]
For example, the reader / writer unit 2 is turned on by a power switch (not shown) (ST1). Then, initial setting of the MPU 5 is performed (ST2). This initial setting includes setting the communication method (speed) of the SIO 21 and selects one of a plurality of predetermined ones. The MPU 5 transmits the initial setting of the LSI 6 (ST3) (see (1) in FIG. 5). Thereby, register values are set in the respective registers 22, 23 and 24 of the LSI 6 (ST4). A register value indicating the modulation mode and a register value indicating the demodulation mode are set in the register 22, a register value indicating the frequency division ratio is set in the register 23, and a register value indicating the timing is set in the register 24.
[0053]
That is, as shown in FIG. 3C, when the control signal CONT from the MPU 5 becomes L level, the SIO 21 receives the serial clock (SCK) as a synchronous clock as shown in FIG. ) From the SCK terminal to the MPU 5.
[0054]
As a result, the SIO 21 registers, based on the clock synchronization method, the register setting data which is 8-bit serial data supplied from the SIO 13 of the MPU 5 to the SI terminal (the 4 bits of the latter 4 clocks are the register address, the 4th of the first half 4 bits of the clock receive the register value).
[0055]
That is, as shown in FIGS. 3A and 3B, when the serial clock (SCK) falls, the SIO 13 of the MPU 5 outputs a signal for each bit, and when the serial clock (SCK) rises, The SIO 21 receives a signal for each bit from the SIO 13 of the MPU 5.
[0056]
As a result, the SIO 21 first determines reception of the register value indicating the modulation mode and the address value indicating the modulation mode of the register 22 in the first byte, and sets the modulation mode in the register 22. Next, the SIO 21 determines reception of the register value indicating the demodulation mode and the address value indicating the demodulation mode of the register 22 at the second byte, and sets the demodulation mode in the register 22. Next, the SIO 21 determines reception of the register value indicating the frequency division ratio and the address value of the register 23 at the third byte, and sets the frequency division ratio in the register 23. Next, the SIO 21 determines reception of the register value indicating the timing and the address value of the register 24 at the fourth byte, and sets the timing in the register 24.
[0057]
Therefore, the modulation mode and the demodulation mode of the mode switch 25 are set, and the frequency divider 26 outputs a clock obtained by dividing a reference clock supplied from an oscillation circuit (not shown) at a frequency division ratio based on the register value of the register 23. The timing generator 27 outputs first and second timing signals based on the register value of the register 22 and a reference clock supplied from an oscillation circuit (not shown).
[0058]
When the register values are set in the registers 22, 23, and 24 of the LSI 6 in the above step 4, after all the preparations are completed, the MPU 5 waits for receiving a command from the PC 1 (ST5).
[0059]
In this state, the PC 1 transmits a data read command for the wireless card 4 to the MPU 5 of the reader / writer unit 2 (ST6). The MPU 5 transmits register setting data for wireless card transmission to the LSI 6 (ST7) (see (b) to (d) of FIG. 5, (1) of FIG. 5). Thereby, the register value indicating the transmission mode is set in the register 24 of the LSI 6 (ST8).
[0060]
At this time, as described above, based on the serial clock (SCK) (generated from the second timing signal) output from the SIO 21 of the LSI 6 based on the L level of the control signal CONT from the MPU 5, the register setting data is transferred to the LSI 6. The data is transmitted to the SIO 21 (see (b) to (d) in FIG. 5, (1) in FIG. 5). The SIO 21 of the LSI 6 sets the transmission / reception mode of the register 24 to the transmission mode. As a result, the mode switch 25 is set to the transmission mode.
[0061]
After this setting, the MPU 5 transmits transmission data (read command) to the LSI 6 (ST9). That is, the MPU 5 sequentially transmits transmission data in units of 8 bits (1 byte) as serial input data SI to the SIO 21 of the LSI 6 based on the serial clock (SCK) output from the SIO 21 ((b) and (c) of FIG. ), See (2) in FIG.
[0062]
Further, the SIO 21 of the LSI 6 sequentially outputs transmission data in units of 1 byte from the MPU 5 to the modulation circuit 28. Thus, the modulation circuit 28 modulates the transmission data based on the modulation mode from the mode switch 25, the clock from the frequency divider 26, and the first timing signal from the timing generator 27, and this modulated transmission data. As shown in FIG. 5A, (TXD) is output as continuous data to the transmission antenna 14 via the transmission circuit 16 (see (3) in FIG. 5). Thereby, transmission data is transmitted to the wireless card 4 by the transmission antenna 1 (ST10). As a result, the wireless card 4 receives the transmission data (ST11).
[0063]
The communication speed of the transmission data (MPU5 to SIO21) as the serial input data SI is twice the communication speed of the transmission data TXD (modulation circuit 28 to transmission circuit 16) output from the modulation circuit 28.
[0064]
When the transmission of the transmission data in step 9 is completed, the MPU 5 sets the control signal to the L level (ST12) (see (d) in FIG. 5 and (4) in FIG. 5) ((e) in FIG. 6). (See (4) in FIG. 6). Thereby, the LSI 6 (SIO 21) stops transmission of transmission data from the MPU 5 (ST13).
[0065]
Next, the MPU 5 transmits register setting data for wireless card reception to the LSI 6 (ST14) (see (b) to (d) of FIG. 5, (1) of FIG. 5). As a result, a register value indicating the reception mode is set in the register 24 of the LSI 6 (ST15).
[0066]
At this time, as described above, the register setting data is transferred to the SIO 21 based on the serial clock (SCK) (generated from the second timing signal) output from the SIO 21 of the LSI 6 according to the L level of the control signal CONT from the MPU 5. It transmits (see (b) to (d) in FIG. 5, (5) in FIG. 5) (see (b), (c), (e), and (5) in FIG. 6). The SIO 21 sets the transmission / reception mode of the register 24 to the reception mode. As a result, the mode switch 25 is set to the reception mode.
[0067]
Thereafter, the MPU 5 sets the control signal to the H level (ST16) and enters a reception waiting state (ST17) (see (e) in FIG. 6 and (6) in FIG. 6).
[0068]
Further, the LSI 6 waits for data reception from the wireless card 4 due to the H level of the control signal (ST18).
[0069]
In such a state, data is transmitted from the wireless card 4 (response data, received data) (ST19).
[0070]
Thus, the reception data (RXD) (see (a) of FIG. 6 and (7) of FIG. 6) received as the continuous data via the reception antenna 15 and the reception circuit 17 is supplied to the demodulation circuit 29. Is done. Since the mode switch 25 is set to the receiving mode, the demodulating circuit 29 receives the received data (RXD) from the receiving circuit 17 by using the clock from the frequency divider 26 and the first timing from the timing generator 27. Based on the signal, the signal is demodulated in the demodulation mode set by the mode switch 25, and the demodulated demodulated data is output to the MPU 5 via the SIO 21 (ST20).
[0071]
Accordingly, the MPU 5 sequentially receives the reception data in units of 8 bits (1 byte) as the serial output data SO from the SIO 21 based on the serial clock (SCK) output from the SIO 21 ((c) in FIG. 6). (D), see FIG. 6 (8)) (ST21). This received data is temporarily stored in the memory 12.
[0072]
When the MPU 5 receives all the received data from the wireless card 4, it sets the control signal to the L level (ST22) (see (e) in FIG. 6 and (9) in FIG. 6). As a result, the LSI 6 (SIO 21) stops receiving the MPU 5 from the wireless card 4 (ST23). This stop operation is an opportunity to transmit the status data to the MPU 5, and has nothing to do with the contents (contents) of the status data.
[0073]
At this time, as described above, the register setting data is transferred to the SIO 21 based on the serial clock (SCK) (generated from the second timing signal) output from the SIO 21 of the LSI 6 according to the L level of the control signal CONT from the MPU 5. Transmit (ST24) (see (b) and (d) of FIG. 6, (10) of FIG. 6). The SIO 21 sets the transmission / reception mode of the register 24 to the stop mode (ST25). As a result, the mode switch 25 is set to the stop mode.
[0074]
Further, the SIO 21 of the LSI 6 transmits the reception status data by the serial output data SO based on the serial clock (SCK).
[0075]
Further, the MPU 5 receives the reception status data as the serial output data SO from the SIO 21 based on the serial clock (SCK) output from the SIO 21 of the LSI 6 ((c) and (d) in FIG. 6 and FIG. 6). (See (10)) (ST24). This reception status data is the status of the reception data received from the reception data RXD (parity error, framing error due to no stop bit, etc.). The reception status data is a status for allowing the MPU 5 to determine whether the reception data of the serial output data SO is correct and to determine that the operation sequence is also correct. This reception status data is set to the L level when the state of the reception data RXD (transmission error such as a parity error), the control signal CONT is not output, and the serial output data SO and serial clock SCK are output (operation error, sequence). Data indicating an error).
[0076]
Thereafter, the MPU 5 sets the control signal to the H level (ST26), and transmits the reception data from the wireless card 4 and the reception status data from the LSI 6 to the PC 1 (ST27).
[0077]
As a result, the PC 1 receives data from the wireless card 4 (ST28). Thereby, the PC 1 can read data from the wireless card 4 based on the read command.
[0078]
Further, the PC 1 can determine the validity of the data received from the wireless card 4 based on the status data.
[0079]
As described above, when the MPU 5 sets the control signal (CONT) terminal to the L level, the LSI 6 outputs the synchronous clock SCK for one byte (8 clocks) or more from the serial clock (SCK) terminal and outputs it. The serial data is transmitted from the MPU 5 side to the LSI 6 in synchronization with the synchronous clock SCK, and each register 22 of the LSI 6 is transmitted to the LSI 6 by transmitting serial data (4 bits of the latter 4 clocks are register addresses and 4 bits of the first 4 clocks are register values). 23 and 24 can be set only by three terminals, ie, a serial input data (SI) terminal, a serial clock (SCK) terminal, and a control signal (CONT) terminal.
[0080]
As a method for transmitting data (TXD) from the reader / writer unit 2 to the wireless card 4, the MPU 5 first sets the control signal CONT to the L level, sets the transmission / reception mode of the register 22 of the LSI 6 to the transmission mode, and performs control. After setting the signal CONT to H level, the LSI 6 outputs a serial clock SCK as a transmission clock to the MPU 5 and starts transmission of transmission data to the LSI 6 in accordance with the serial clock SCK. The LSI 6 receives the transmission data A of the first byte, modulates the transmission data A, and transmits it to the wireless card 4 as transmission data TXD. The output of the serial clock SCK is started in accordance with the output timing of the transmission data TXD. Therefore, the transmission data TXD is repeated until transmission of the transmission data TXD is stopped, and the transmission data A, B, and C are transmitted from the reader / writer unit 2 to the wireless card 4.
[0081]
Next, when transmission of the transmission data TXD is stopped, the MPU 5 and the LSI 6 transmit the transmission data at a communication speed faster than the transmission speed of the transmission data TXD from the LSI 6 to the transmission circuit 16. As a result, due to the difference in communication speed between the transmission data TXD and the serial input data SI, there is a free time in the serial input data SI and the serial clock SCK, and the control signal CONT is set to the L level within this free time and transmitted. Is to stop.
[0082]
The LSI 6 can finish the transmission without receiving the next unnecessary data from the MPU 5 according to the state of the control signal CONT of the idle time.
[0083]
Further, when the control signal CONT is set to the L level, the next operation is performed. Therefore, it is possible to output the serial clock SCK to the MPU 5 and output the register setting data from the MPU 5 to perform the register setting. .
[0084]
Further, the communication speed of the serial input data SI is twice that of the transmission data TXD. Furthermore, register setting data and transmission data can be put on one of the serial input data SI, and it is possible to distinguish between register setting and transmission data according to the level of the control signal CONT.
[0085]
Further, as a method of receiving the reception data (RXD) from the wireless card 4, the MPU 5 first sets the control signal CONT to L level, sets the transmission / reception mode of the register 22 of the LSI 6 to the reception mode, and sets the control signal CONT to H. After setting the level, the wireless card 4 waits to receive transmission data.
[0086]
Next, when the transmission data is received from the wireless card 4, the LSI 6 demodulates the reception data and transmits it from the serial output data SO to the MPU 5 in synchronization with the clock using the serial clock SCK.
[0087]
By this transmission method, data is transmitted to the MPU 5 at a communication speed faster than the reception speed of the reception data RXD.
[0088]
Next, when the transmission of the reception data RXD from the wireless card 4 to the MPU 5 is stopped, the serial output data SO and the serial clock are caused by the difference in communication speed between the reception data RXD and the serial output data SO. SCK has a free time, and within this free time, the control signal CONT is set to L level and reception is stopped.
[0089]
Further, when the control signal CONT is set to the L level, the serial clock SCK can be output to perform the next operation, and the MPU 5 can transmit the register setting data to perform the register setting.
[0090]
Further, the communication speed of the serial output data SO is twice that of the reception data RXD.
[0091]
When the reception data RXD is stopped during reception, the status of the reception data received from the reception data RXD (parity error, etc.) is set simultaneously with the data transmitted from the MPU 5 to the serial output data SI. The serial output data SO can be transmitted to the MPU 5.
[0092]
Further, in the LSI 6, the communication speed of communication using the serial input data (SI) signal line and the serial output data (SO) signal line is higher than the communication speed with the wireless card 4 (TXD, RXD communication speed). This makes it possible to create a gap in communication data between the SI signal line and the SO signal line.
[0093]
Further, in the LSI 6, there is a gap larger than the clock period of the synchronous clock.
[0094]
Further, in the LSI 6, the communication speed (TXD, RXD communication speed) with the wireless card 4 is set to 2 of the communication speed of the communication using the serial input data (SI) signal line and the serial output data (SO) signal line. It is a multiple of or an integer multiple of it.
[0095]
Further, in the LSI 6, the state of each register 22, 23, 24 of the LSI 6 is changed by the change of the signal by the control signal CONT in the period without the synchronous clock.
[0096]
In addition, transmission to the wireless card 4 and reception state from the wireless card 4 are reset by a signal change caused by the control signal CONT.
[0097]
Further, in the LSI 6, when the reception is completed, the signal by the control signal CONT is changed to end the reception, and a synchronous clock for setting the next register is output. At the same time when receiving the register setting data, this clock is synchronized with this clock. Status data is output.
[0098]
Further, in the LSI 6, the control signal CONT changes during the period (timing) during which the serial clock (synchronous clock) SCK is output (becomes L level) and stops during reception of the reception data RXD (before reception is completed). At this time, status data indicating a sequence error is transmitted to the MPU 5 as serial output data SO. (See (c), (d), and (f) in FIG. 6, and (11) and (10) in FIG. 6) Next, in the first embodiment, the MPU 5 and the SIO 21 of the LSI 6 have serial input data (SI). , Serial output data (SO), serial clock (SCK), and control signal (CONT) are connected by four signal lines. SIO 21 is connected to serial input data (SI) terminal (pin), serial output data (SO). Although the case where the terminal, the serial clock (SCK) terminal, and the control signal (CONT) terminal are provided has been described, the present invention is not limited to this, and the SIO 21 of the MPU 5 and the LSI 6 is used as a second embodiment as shown in FIG. As a signal line, a signal line for serial input output error signal SIOERR is added to SIO21. It may be provided SIO error signal SIOERR terminal. In this case, a determination circuit 30 for determining a transmission error of the demodulated data from the demodulation circuit 29 is provided in the LSI 6, and a signal output when the determination circuit 30 determines a transmission error of the demodulated data is an SIO error signal SIOERR. Is transmitted to the MPU 5. The determination of the transmission error includes determination by a parity bit or determination of a framing error due to the absence of a stop bit in the last bit. The determination circuit 30 is connected to the SIO 21 and outputs a transmission error determination result to the SIO 21.
[0099]
In the second embodiment, when there is an error in the reception data RXD, the error location can be specified, and reception can be terminated immediately after the error has occurred.
[0100]
The main part of the second embodiment will be described with reference to the flowchart of FIG. 4 and signal waveform diagrams of FIGS. In this case, since Steps 1 to 18 of the first embodiment are the same, Step 19 will be described.
[0101]
First, data is continuously transmitted from the wireless card 4 (response data, received data) (ST19).
[0102]
Thereby, the reception data (RXD) (see (a) of FIG. 8 and (7) of FIG. 8) received from the wireless card 4 as continuous data via the reception antenna 15 and the reception circuit 17 is supplied to the demodulation circuit 29. Is done. Since the mode switch 25 is set to the receiving mode, the demodulating circuit 29 receives the received data (RXD) from the receiving circuit 17 by using the clock from the frequency divider 26 and the first timing from the timing generator 27. Based on the signal, the signal is demodulated in the demodulation mode set by the mode switch 25, and the demodulated demodulated data is output to the MPU 5 via the SIO 21 (ST20).
[0103]
Thereby, the MPU 5 sequentially receives the reception data in units of 8 bits (1 byte) as the serial output data SO from the SIO 21 based on the serial clock (SCK) output from the SIO 21 ((c) in FIG. 8). (D), see (8) in FIG. 8) (ST21). This received data is temporarily stored in the memory 12.
[0104]
The MPU 5 determines the transmission error of the demodulated data before receiving all the received data from the wireless card 4, that is, when the determination circuit 30 determines the error due to the reception data C. , SIO error signal (SIOERR) is set to H level. In response to the SIO error signal (SIOERR), the MPU 5 sets the control signal CONT to the L level (ST22) (see (f) and (e) of FIG. 8, and (9) of FIG. 8). As a result, reception of the MPU 5 from the wireless card 4 is stopped (ST23). The LSI 6 (SIO 21) stops receiving the data with the error occurrence and transmits up to the reception data C of the reception data RXD from the reception circuit 17 to the MPU 5.
[0105]
Also, register setting data is transmitted to the SIO 21 based on the serial clock (SCK) (generated from the second timing signal) output from the SIO 21 of the LSI 6 based on the L level of the control signal CONT from the MPU 5 (ST24) (ST24) (See (b) and (d) of FIG. 8, (10) of FIG. 8). The SIO 21 sets the transmission / reception mode of the register 24 to the stop mode (ST25). As a result, the mode switch 25 is set to the stop mode.
[0106]
Further, the SIO 21 of the LSI 6 transmits the reception status data by the serial output data SO based on the serial clock (SCK).
[0107]
The MPU 5 receives the reception status data (error) as the serial output data SO from the SIO 21 based on the serial clock (SCK) output from the SIO 21 of the LSI 6 (FIGS. 8C and 8D). 8 (10)) (ST24).
[0108]
Thereafter, the MPU 5 sets the control signal to the H level (ST26), and transmits the reception data from the wireless card 4 and the reception status data (error) from the LSI 6 to the PC 1 (ST27).
[0109]
As a result, the PC 1 receives data from the wireless card 4 until an error occurs (ST28). Thereby, the PC 1 can read data until an error occurs from the wireless card 4 based on the read command.
[0110]
In the first and second embodiments, the wireless card processing system including the PC, the reader / writer unit, and the wireless card has been described. However, the present invention is not limited to this, and the third embodiment is illustrated in FIG. A wireless card processing system including a reader / writer unit (RWU) and a wireless card may be used for an entrance / exit gate, for example. As this entrance / exit gate, the entry / exit / exit / pass of the holder of the wireless card 4 is permitted by transmitting / receiving data between the wireless card 4 and the reader / writer unit (RWU) (only transmission from the wireless card 4 may be used). (Doors open and close).
[0111]
The processing of the third embodiment will be described with reference to the flowchart shown in FIG. However, the same steps as those in the flowchart shown in FIG. First, steps 5, 6, 27 and 28 are deleted, steps 7 and 9 are changed to steps 31 and 32, step 33 is added between steps 17 and 21, and steps 34 and 35 are added after step 26. to add.
[0112]
That is, when register values are set in the registers 22, 23, and 24 of the LSI 6 in step 4, after all preparations are completed, the MPU 5 prepares and transmits the register setting data for wireless card transmission to the LSI 6. (ST31). Thereby, the register value indicating the transmission mode is set in the register 24 of the LSI 6 (ST8). After this setting, the MPU 5 prepares transmission data (read command) to the LSI 6 and transmits it (ST32).
[0113]
Further, after waiting for data reception in step 18, the MPU 5 proceeds to step 22 when a predetermined time has elapsed (time up) (ST33).
[0114]
After setting the control signal at step 26 to H level, the MPU 5 checks whether the data is correct (ST34), and if it is correct, opens the door (ST35). Return to step 31.
[0115]
As described above, in a reader / writer unit (RWU) comprising an LSI as an interface that exchanges data between a PC and a wireless card and can handle various communication methods and an MPU that controls the whole, the MPU and the LSI As a result, the number of LSI pins can be reduced, the number of ports used for the LSI on the MPU side can be reduced, and an MPU with fewer ports can also be used.
[0116]
In addition, the LSI registers can be easily set. Further, since there are few connections to the outside, the independence of the communication portion as the LSI is increased, and the versatility is increased.
[0117]
【The invention's effect】
As described above in detail, according to the present invention, data is exchanged between the host device and the wireless card, and includes an interface that can handle various communication methods and a control element that controls the whole. The number of lines for connecting elements and interfaces can be reduced, the number of pins of the interface can be reduced, the number of ports used for this interface on the MPU side can be reduced, and a reader that can be used even with an MPU with few ports A writer unit can be provided.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a wireless card processing system according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a schematic configuration of a reader / writer unit.
FIG. 3 is a signal waveform diagram for explaining signals between the MPU and the LSI.
FIG. 4 is a flowchart for explaining an operation when reading data from a wireless card;
FIG. 5 is a signal waveform diagram for explaining signals between the MPU and the LSI.
FIG. 6 is a signal waveform diagram for explaining signals between the MPU and the LSI.
FIG. 7 is a block diagram showing a schematic configuration of a reader / writer unit according to a second embodiment of the present invention.
FIG. 8 is a signal waveform diagram for explaining signals between the MPU and the LSI.
FIG. 9 is a flowchart for explaining an operation when reading data from a wireless card;
[Explanation of symbols]
1 ... PC
2 Reader / writer unit
4 ... Wireless card
5 ... MPU
6 ... LSI
21 ... SIO
22, 23, 24 ... registers
25. Mode selector
26: Frequency divider
27 ... Timing generator
28. Modulation circuit
29. Demodulator circuit

Claims (9)

無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する送信手段と、
この送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて、上記無線カードとの通信を行う処理手段とからなる、
ことを特徴とするリーダライタユニット。
In a reader / writer unit that exchanges data with a wireless card and consists of an interface that can handle various communication methods and a control element that controls the entire system.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface;
The above interface
Transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Accepting means for accepting data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
Based on the communication method set by the setting means, the processing means for communicating with the wireless card,
A reader / writer unit.
送信データを無線カードに送信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、
上記制御素子が、
コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、
この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段と、
上記第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、上記送信データを上記第1の信号線を介して送信する第3の送信手段とからなり、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第4の送信手段と、
この第4の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて、上記制御素子から上記第1の信号線を介して供給される送信データを上記無線カードへ送信する第5の送信手段とからなる、
ことを特徴とするリーダライタユニット。
In a reader / writer unit consisting of an interface capable of transmitting transmission data to a wireless card and supporting various communication methods and a control element for controlling the whole,
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface;
The control element is
First transmission means for transmitting a control signal to the interface via the third signal line;
In response to the transmission by the first transmission means, data indicating a communication method or the like is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. Second transmission means for transmitting
In response to transmission by the first transmission means, the transmission data is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. A third transmission means,
The above interface
Fourth transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Receiving means for receiving data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the fourth transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
Based on the communication method set by the setting means, etc., it comprises a fifth transmission means for transmitting transmission data supplied from the control element via the first signal line to the wireless card.
A reader / writer unit.
無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線と、
を具備し、
上記制御素子が、
コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、
この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段とからなり、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第3の送信手段と、
この第3の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第3の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第4の送信手段とからなる、
ことを特徴とするリーダライタユニット。
In the reader / writer unit that receives the received data from the wireless card and consists of an interface that can handle various communication methods and a control element that controls the whole.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface, through which a control signal from the control element is transmitted to the interface;
A fourth signal line provided between the control element and the interface, through which serial data from the interface is transmitted to the control element;
Comprising
The control element is
First transmission means for transmitting a control signal to the interface via the third signal line;
In response to the transmission by the first transmission means, data indicating a communication method or the like is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. Second transmission means for transmitting
The above interface
Third transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Accepting means for accepting data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the third transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
The received data received from the wireless card based on the communication method set by the setting means is controlled via the first signal line based on the synchronous clock transmitted by the third transmitting means. Comprising a fourth transmitting means for transmitting to the element,
A reader / writer unit.
無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線と、
を具備し、
上記制御素子が、
コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、
この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段とからなり、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第3の送信手段と、
この第3の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第3の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第4の送信手段と、
この第4の送信手段の送信に応答して上記制御素子から上記第3の信号線を介してコントロール信号が供給された際に、上記第3の送信手段により送信される同期クロックに基づいて、上記無線カードから受信した受信データのステータスデータを上記第4の信号線を介して上記制御素子へ送信する第5の送信手段とからなる、
ことを特徴とするリーダライタユニット。
In the reader / writer unit that receives the received data from the wireless card and consists of an interface that can handle various communication methods and a control element that controls the whole.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface, through which a control signal from the control element is transmitted to the interface;
A fourth signal line provided between the control element and the interface, through which serial data from the interface is transmitted to the control element;
Comprising
The control element is
First transmission means for transmitting a control signal to the interface via the third signal line;
In response to the transmission by the first transmission means, data indicating a communication method or the like is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. Second transmission means for transmitting
The above interface
Third transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Accepting means for accepting data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the third transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
The received data received from the wireless card based on the communication method set by the setting means is controlled via the first signal line based on the synchronous clock transmitted by the third transmitting means. A fourth transmission means for transmitting to the element;
When a control signal is supplied from the control element via the third signal line in response to the transmission of the fourth transmission means, based on the synchronous clock transmitted by the third transmission means, Comprising: fifth transmission means for transmitting status data of received data received from the wireless card to the control element via the fourth signal line;
A reader / writer unit.
無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのエラーを示す信号が上記制御素子に伝送される第5の信号線と、
を具備し、
上記制御素子が、
コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、
この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段とからなり、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第3の送信手段と、
この第3の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第3の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第4の送信手段と、
上記無線カードから受信した受信データによるエラーを判断する判断手段と、
この判断手段によりエラーを判断した際に、エラーを示す信号を上記第5の信号線を介して上記制御素子へ送信する第5の送信手段とからなる、
ことを特徴とするリーダライタユニット。
In the reader / writer unit that receives the received data from the wireless card and consists of an interface that can handle various communication methods and a control element that controls the whole.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface, through which a control signal from the control element is transmitted to the interface;
A fourth signal line provided between the control element and the interface, through which serial data from the interface is transmitted to the control element;
A fifth signal line provided between the control element and the interface and transmitting a signal indicating an error from the interface to the control element;
Comprising
The control element is
First transmission means for transmitting a control signal to the interface via the third signal line;
In response to the transmission by the first transmission means, data indicating a communication method or the like is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. Second transmission means for transmitting
The above interface
Third transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Accepting means for accepting data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the third transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
The received data received from the wireless card based on the communication method set by the setting means is controlled via the first signal line based on the synchronous clock transmitted by the third transmitting means. A fourth transmission means for transmitting to the element;
Determining means for determining an error caused by received data received from the wireless card;
When the error is determined by the determination means, the signal is transmitted from the fifth signal line to the control element via the fifth signal line.
A reader / writer unit.
上記インターフェースが、エラーを示す信号を送信した後に、上記制御素子から供給されるコントロール信号に基づいて、上記無線カードからのデータの受信を終了する処理手段を有することを特徴とする請求項5に記載のリーダライタユニット。  6. The interface according to claim 5, further comprising processing means for terminating reception of data from the wireless card based on a control signal supplied from the control element after transmitting a signal indicating an error. The reader / writer unit described. 送信データを無線カードに送信するとともに、無線カードから受信データを受信し、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからのシリアルデータが上記制御素子に伝送される第4の信号線と、
を具備し、
上記制御素子が、
コントロール信号を上記第3の信号線を介して上記インターフェースへ送信する第1の送信手段と、
この第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、通信方式などを示すデータを上記第1の信号線を介して送信する第2の送信手段と、
上記第1の送信手段による送信に応答して、上記インターフェースから上記第2の信号線を介して供給される同期クロックに同期して、送信データを上記第1の信号線を介して送信する第3の送信手段とからなり、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する第4の送信手段と、
この第4の送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて、上記制御素子から上記第1の信号線を介して供給される送信データを上記無線カードへ送信する第5の送信手段と、
上記設定手段により設定される通信方式などに基づいて上記無線カードから受信した受信データを、上記第4の送信手段により送信される同期クロックに基づいて、上記第1の信号線を介して上記制御素子へ送信する第6の送信手段とからなる、
ことを特徴とするリーダライタユニット。
In the reader / writer unit that transmits the transmission data to the wireless card, receives the reception data from the wireless card, and includes an interface that can handle various communication methods and a control element that controls the whole.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface, through which a control signal from the control element is transmitted to the interface;
A fourth signal line provided between the control element and the interface, through which serial data from the interface is transmitted to the control element;
Comprising
The control element is
First transmission means for transmitting a control signal to the interface via the third signal line;
In response to the transmission by the first transmission means, data indicating a communication method or the like is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. Second transmission means for transmitting
In response to transmission by the first transmission means, transmission data is transmitted via the first signal line in synchronization with a synchronous clock supplied from the interface via the second signal line. 3 transmission means,
The above interface
Fourth transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Receiving means for receiving data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the fourth transmitting means ;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
A fifth transmission means for transmitting transmission data supplied from the control element via the first signal line to the wireless card based on a communication method set by the setting means;
The received data received from the wireless card based on the communication method set by the setting means is controlled via the first signal line based on the synchronous clock transmitted by the fourth transmitting means. Comprising sixth transmitting means for transmitting to the element,
A reader / writer unit.
無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する送信手段と、
この送信手段により送信される同期クロックに基づいて、第1の通信速度で通信される上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などに基づいて、上記無線カードとの通信を上記第1の通信速度よりも遅い速度で行う処理手段とからなる、
ことを特徴とするリーダライタユニット。
In a reader / writer unit that exchanges data with a wireless card and consists of an interface that can handle various communication methods and a control element that controls the entire system.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface;
The above interface
Transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Accepting means for accepting data indicating a communication method or the like supplied via the first signal line from the control element communicated at the first communication speed based on the synchronous clock transmitted by the transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
Based on the communication method set by the setting means, the processing means is configured to perform communication with the wireless card at a speed slower than the first communication speed.
A reader / writer unit.
無線カードとの間でデータのやり取りを行い、様々な通信方式に対応できるインターフェースと全体を制御する制御素子とからなるリーダライタユニットにおいて、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのシリアルデータが上記インターフェースに伝送される第1の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記インターフェースからの同期クロックが上記制御素子に伝送される第2の信号線と、
上記制御素子と上記インターフェースとの間に設けられ、上記制御素子からのコントロール信号が上記インターフェースに伝送される第3の信号線とを具備し、
上記インターフェースが、
上記制御素子から上記第3の信号線を介して供給されるコントロール信号に基づいて、上記第2の信号線を介して上記制御素子へ同期クロックを送信する送信手段と、
この送信手段により送信される同期クロックに基づいて、上記制御素子から上記第1の信号線を介して供給される通信方式などを示すデータを受付ける受付手段と、
この受付手段により受付けた通信方式などを示すデータにより、上記無線カードとの通信を行うための通信方式などを設定する設定手段と、
この設定手段により設定される通信方式などと上記同期クロックよりも低い周波数のクロックとに基づいて、上記無線カードとの通信を行う処理手段とからなる、
ことを特徴とするリーダライタユニット。
In a reader / writer unit that exchanges data with a wireless card and consists of an interface that can handle various communication methods and a control element that controls the entire system.
A first signal line provided between the control element and the interface, through which serial data from the control element is transmitted to the interface;
A second signal line provided between the control element and the interface, and a synchronous clock from the interface is transmitted to the control element;
A third signal line provided between the control element and the interface for transmitting a control signal from the control element to the interface;
The above interface
Transmission means for transmitting a synchronous clock to the control element via the second signal line based on a control signal supplied from the control element via the third signal line;
Accepting means for accepting data indicating a communication method or the like supplied from the control element via the first signal line based on the synchronous clock transmitted by the transmitting means;
Setting means for setting a communication method for performing communication with the wireless card based on data indicating the communication method received by the receiving unit;
Based on a communication method set by the setting means and a clock having a frequency lower than the synchronous clock, the processing means performs communication with the wireless card.
A reader / writer unit.
JP19645899A 1999-07-09 1999-07-09 Reader / writer unit Expired - Fee Related JP4413321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19645899A JP4413321B2 (en) 1999-07-09 1999-07-09 Reader / writer unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19645899A JP4413321B2 (en) 1999-07-09 1999-07-09 Reader / writer unit

Publications (2)

Publication Number Publication Date
JP2001022900A JP2001022900A (en) 2001-01-26
JP4413321B2 true JP4413321B2 (en) 2010-02-10

Family

ID=16358153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19645899A Expired - Fee Related JP4413321B2 (en) 1999-07-09 1999-07-09 Reader / writer unit

Country Status (1)

Country Link
JP (1) JP4413321B2 (en)

Also Published As

Publication number Publication date
JP2001022900A (en) 2001-01-26

Similar Documents

Publication Publication Date Title
US5862354A (en) Universal asynchronous receiver/transmitter (UART) slave device containing an identifier for communication on a one-wire bus
US7512726B2 (en) Reconfigurable flash media reader system
EP0409241B1 (en) Ic card with additional terminals and method of controlling the ic card
US5778195A (en) PC card
US6658493B1 (en) Microcomputer exchanging data with host computer
JPH08227444A (en) IC card reader / writer
EP0529887A2 (en) Bidirectional parallel protocol
JPH0217753A (en) Integrated modem operated without exclusive controller
CA1147865A (en) Message interchange system among microprocessors connected by a synchronous transmitting means
US5564061A (en) Reconfigurable architecture for multi-protocol data communications having selection means and a plurality of register sets
JPH1173479A (en) Chip card reader equipped with high-speed communication protocol
US20030217213A1 (en) Method and apparatus for implementing chip-to-chip interconnect bus initialization
JP4413321B2 (en) Reader / writer unit
US20050060458A1 (en) Method and apparatus for sharing a device among multiple CPU systems
WO1985003147A1 (en) Generic communications terminal
JPH01188060A (en) Automatic transmission speed setting system for stepping synchronous transmission
EP0829095B1 (en) Method and apparatus for reducing latency time on an interface by overlapping transmitted packets
TW202427205A (en) Microcontroller and serial peripheral interface system using the same
KR20010074800A (en) Interface circuit and method for transferring data between a serial interface and a processor
KR950004949B1 (en) High speed transceiving circuit in keyphone system
JP3673770B2 (en) Data processing method in IC card reader / writer and IC card reader / writer
KR100295683B1 (en) General call acknowledge apparatus and method for inter-integrated circuit
JP2623816B2 (en) Signal transmission method
JP3395600B2 (en) Data transfer device
KR100531729B1 (en) Apparatus for interface pheriperal device with PC using parallel port and method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060710

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090804

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091005

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: 20091027

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: 20091118

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

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131127

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees