JP3886877B2 - PC card detection system and PC card detection processing method - Google Patents
PC card detection system and PC card detection processing method Download PDFInfo
- Publication number
- JP3886877B2 JP3886877B2 JP2002293626A JP2002293626A JP3886877B2 JP 3886877 B2 JP3886877 B2 JP 3886877B2 JP 2002293626 A JP2002293626 A JP 2002293626A JP 2002293626 A JP2002293626 A JP 2002293626A JP 3886877 B2 JP3886877 B2 JP 3886877B2
- Authority
- JP
- Japan
- Prior art keywords
- card
- removal
- host computer
- signal
- clock signal
- 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
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、PCカードがコネクタに挿抜されてホストコンピュータと接続・切断されているか否かを安定的に検出するPCカード検出システム、およびPCカードの検出処理方法に関するものである。
【0002】
【従来の技術】
PCカードとは、米国のPCカードの標準化団体であるPCMCIA(Personal Computer Memory Card International Association)と日本電子工業振興協会(Japan Electric Industry Development Association)が共同で規格化した「PC Card Standard」に準拠したパーソナルコンピュータの周辺機器の総称である。PCカードとホストコンピュータの間には、68ピンのPCカードコネクタが存在し、68ピンのうち、PCカードが挿入されているか否かを判断するCard Detectピン(カード検出ピン)として2ピンを使用している。
【0003】
図7は、従来技術におけるホストコンピュータとPCカードとの間のPCカード検出システムの接続構成を示す図である。従って、図7では通常のデータ通信の信号ラインは省略されている。図7において、ホストコンピュータ201とPCカード202は68ピンコネクタ203によって接続されている。また、ホストコンピュータ201には、カード検出用端子としてCD端子201aがあり、このCD端子201aの電位レベルによってPCカード202が挿入されているか否かを判断する。68ピンコネクタ203には、カード検出ピンとしてCD1,CD2の2ピンがあり、このCD1,CD2の2ピンはロジック素子204を介してホストコンピュータ201に接続されている。また、CD1,CD2の2ピンはプルアップ抵抗205a,205bを介して電源VCCにプルアップされている。一方、PCカード202側のCD1,CD2の2ピンは68ピンコネクタ903のグランド(GND)に接続されている。
【0004】
PCカード202が68ピンコネクタ203に挿入されていない状態では、CD1,CD2の2ピンはプルアップ抵抗205a,205bを介して電源VCCにプルアップされているため、ホストコンピュータ201のCD端子201aはHighレベル(電源VCCの電圧を示すレベルであり、以下「Hレベル」と記す)となり、ホストコンピュータ201では「PCカードなし」と判断される。また、PCカード202が挿入されている状態では、CD1,CD2の2ピンはグランド(GND)に接続されるため、ホストコンピュータ201のCD端子201aはLowレベル(GNDの電圧を示すレベルであり、以下「Lレベル」と記す)となり、ホストコンピュータ201では「PCカードあり」と判断される。
【0005】
ホストコンピュータ201では、PCカード202が挿入されたとき、すなわち、CD端子201aがHレベルからLレベルに変化したとき、PCカードが挿入されたと判断してPCカードに対応した初期化処理を行う。この初期化処理はドライバのロードと呼ばれ、PCカード202に適したドライバがロードされる。ドライバはPCカード202の種類によって異なり、処理に時間がかかるものも存在する。
【0006】
また、68ピンコネクタ203からPCカード202が抜かれたとき、すなわち、ホストコンピュータ201のCD端子201aがLレベルからHレベルに変化したとき、ホストコンピュータ201はPCカードが抜かれたと判断し、PCカードに対応した終了処理を行う。この終了処理は、ドライバのアンロードと呼ばれ、挿入されていたPCカードに対応したドライバのアンロードが実施される。
【0007】
【特許文献1】
特開平9−006482号公報 (図1、段落0022、0023)
【特許文献2】
特開平10−177433号公報 (図1、図3、段落0009、0010)
【0008】
【発明が解決しようとする課題】
しかしながら、ロードされたドライバに不備や不具合があると、PCカードが正常に動作しなかったりシステムが不安定になったりすることがある。そのため、できるだけドライバに不備や不具合のないような構成とし、複数回の挿抜試験を行って問題のないことを確認するが、現実には、ドライバの製品バラツキを考えると全く問題のないドライバを作成することは困難である。
また、PCカードの抜き挿しを短時間で行った場合に、ドライバのアンロードとロードの処理が重なることがあり、このときの処理が適切に行われないとシステムが不安定になる場合がある。ドライバを適切なものにすればよいが、PCカードの抜き差しのようにユーザの手作業を伴う動作については、PCカードの抜き差し時に短時間で複数回の接触・切断の繰り返し(以下、チャタリングという)が発生するなど、ドライバのアンロードとロードのタイミングが一定でない現象が生じるため、ドライバの対策のみでシステムが不安定になる問題を解決することは困難である。
【0009】
本発明は、このような事情に鑑みてなされたもので、第1の目的は、PCカードの挿抜に対応して安定した挿抜検出信号の制御を行うことができるようなPCカード検出システムとPCカードの検出処理方法を提供することにある。また、第2の目的は、PCカードが抜かれたことを判断して、挿抜検出信号の制御を行うことができるようなPCカード検出システムとPCカードの検出処理方法を提供することにある。さらに、第3の目的は、挿抜検出信号の制御は固定周期の信号であるので、PCカードの挿抜時における挿抜検出信号のノイズを除去して正確にPCカードの挿抜状態を検出することができるPCカード検出システムとPCカードの検出処理方法を提供することにある。
【0010】
【課題を解決するための手段】
上記の目的を達成するため、本発明のPCカード検出システムは、PCカードと、このPCカードの挿抜検出を行う挿抜検出回路と、挿抜検出結果に基づいてPCカードの制御を行うホストコンピュータとを備え、PCカードの挿抜状態を検出するPCカード検出システムにおいて、挿抜検出回路が、ホストコンピュータから入力される所定のタイミングの制御信号に基づいて、PCカードから取得した第1の挿抜検出信号を第2の挿抜検出信号に変換する検出信号制御手段を備えている。そして、ホストコンピュータが、検出信号制御手段から第2の挿抜検出信号を入力してPCカードの挿抜状態を判定すると共に、検出信号制御手段へ所定のタイミングの制御信号を出力することを特徴とする。
【0011】
つまり、本発明のPCカード検出システムによれば、制御信号によってPCカードの挿抜検出信号をHレベルにしたりLレベルにしたりするタイミングを制御することができるので、PCカードの実際の挿抜タイミングに関わらず、PCカードの挿抜検出タイミングを安定化させることができる。従って、ユーザによる不安定なPCカードの挿抜動作を吸収して、PCカードの挿抜状態を正確且つ安定的に検出することができる。
【0012】
また、本発明のPCカード検出システムにおいては、ホストコンピュータは、PCカードが挿抜されたことを検出することにより検出信号制御手段への制御信号の出力・停止を制御することを特徴とする。つまり、本発明のPCカード検出システムによれば、例えば、PCカード抜き出し時に挿抜検出信号を所定のタイミングに制御することにより、PCカードがすぐに再挿入されてもホストコンピュータは過度的な挿入を検出しないので、ドライバのアンロード及びロードの処理手順が単純化され、もってドライバの動作を安定化させることができる。
【0013】
また、本発明のPCカード検出システムにおいては、ホストコンピュータが出力する制御信号は所定の周期で動作する信号であって、ホストコンピュータは、この制御信号の周期を任意に変更できることを特徴とする。つまり、本発明のPCカード検出システムによれば、PCカードの挿抜検出信号を所定周期のクロック信号のタイミングでサンプリングしているため、PCカードの挿抜時に発生する挿抜信号のノイズを除去することができる。この場合、制御信号の周期をノイズが除去できるような周期に設定することによって、PCカードの挿抜時には常にノイズを除去することができるので、コンピュータシステムの動作を安定化させることができる。
【0014】
また、本発明におけるPCカードの検出処理方法は、PCカードと、このPCカードの挿抜検出を行う挿抜検出回路と、挿抜検出結果に基づいてPCカードの制御を行うホストコンピュータとを備え、PCカードの挿抜状態を検出するPCカードの検出処理方法において、挿抜検出回路がPCカードから第1の挿抜検出信号を取得する第1のステップと、挿抜検出回路がホストコンピュータからの制御信号の有無を判定する第2のステップと、挿抜検出回路が制御信号の有無に応じてホストコンピュータへHigh/Lowレベルの第2の挿抜検出信号を出力する第3のステップと、ホストコンピュータが第2の挿抜検出信号のHigh/Lowレベルに基づいてPCカードの挿抜状態を判定する第4のステップとを含むことを特徴とする。
【0015】
また、本発明におけるPCカードの検出処理方法は、前記第2のステップにおいて挿抜検出回路が制御信号ありと判定したとき、挿抜検出回路が第1の挿抜検出信号を制御信号のタイミングに基づいて第2の挿抜検出信号に変換し、ホストコンピュータが第2の挿抜検出信号に基づいてPCカードの挿抜状態を判定することを特徴とする。
【0016】
【発明の実施の形態】
以下、図面を用いて、本発明におけるPCカード検出システムの実施の形態の幾つかを詳細に説明する。第1の実施の形態では、PCカードの挿抜に対応して挿抜検出信号の制御を行ったり、PCカードが抜かれたことを判断して挿抜検出信号の制御を行うことができるPCカード検出システムについて説明する。また、第2の実施の形態では、PCカードの挿抜時における挿抜検出信号のノイズを除去して、正確にPCカードの挿抜状態を検出することができるPCカード検出システムについて説明する。
【0017】
第1の実施の形態
第1の実施の形態では、PCカードの挿抜に対応して挿抜検出信号を制御したり、PCカードが抜かれたことを判断して挿抜検出信号を制御するPCカード検出システムについて説明する。図1は、本発明におけるホストコンピュータとPCカードとの間のPCカード検出システムの接続構成を示す図である。つまり、この図は、PCカードの挿抜を正確に検出するPCカード検出システムを示しているので、通常のデータ通信の信号ラインは省略されている。
【0018】
図1において、ホストコンピュータ101とPCカード102は68ピンコネクタ103によって接続されている。ホストコンピュータ101には、カード検出用端子としてCD端子101aがあり、このCD端子101aの電位レベルによってPCカード102が挿入されているか否かを判断する。68ピンコネクタ103にはカード検出用ピンとしてCD1,CD2の2ピンがあり、これらのCD1,CD2の2ピンは、ロジック素子104およびフリップフロップ回路105を介してホストコンピュータ101のCD端子101aに接続されている。また、CD1,CD2の2ピンはプルアップ抵抗106a,106bによって電源VCCにプルアップされている。一方、PCカード102側のCD1,CD2の2ピンは、PCカード102を介して68ピンコネクタ103のグランド(GND)に接続されている。
【0019】
ロジック回路104から出力されるCD1,CD2の接続・切断の信号(つまり、Hレベル・Lレベルの信号)は、フリップフロップ回路105のD端子に入力される。そして、フリップフロップ回路105は、ホストコンピュータ101から出力されるクロック信号の所定のタイミングでサンプリングされたHレベル・Lレベルの信号をQ端子より出力し、ホストコンピュータ101のCD端子101aに入力している。
【0020】
次に、図1に示すホストコンピュータ101とPCカード102の接続構成におけるPCカード検出システムの動作について説明する。図2、本発明の第1の実施の形態における、ホストコンピュータに搭載されているドライバのPCカード挿入時の処理プログラムを示すフローチャートである。また、図3は、本発明の第1の実施の形態における、ホストコンピュータに搭載されているドライバのPCカード抜き出し時の処理プログラムを示すフローチャートである。従って、図1、図2、図3を用いて、第1の実施の形態におけるPCカード検出システムの動作を説明する。
【0021】
先ず、図2のPCカード挿入時の処理の流れについて説明する。ホストコンピュータ101がPCカード102の挿入を検出すると(ステップS1)、PCカード102に初期処理を行うためのドライバのロードが実施される(ステップS2)。そして、ドライバのロードが完了すると(ステップS3)、PCカード102は利用可能な状態となる。
【0022】
次に、図3のPCカード抜き出し時の処理の流れについて説明する。ホストコンピュータ101がPCカード102の抜き出しを検出すると(ステップS11)、ホストコンピュータ101のクロック出力端子101bからのクロック信号の出力を停止する(ステップS12)。これにより、フリップフロップ回路105は、Q端子からホストコンピュータ101のCD端子101aへ出力していたHレベルまたはLレベルのサンプリング信号のレベルを固定状態にする。その後、PCカード102を終了処理するためにドライバのアンロードを実施し(ステップS13)、ドライバのアンロードが完了した後(ステップS14)、再び、ホストコンピュータ101のクロック出力端子101bからフリップフロップ回路105へクロック信号の出力を開始する(ステップS15)。これによって、フリップフロップ回路105は、クロック信号のタイミングに同期してサンプリングされたHレベルまたはLレベルの信号を、Q端子からホストコンピュータ101のCD端子101aへ送出する。
【0023】
図4は、本発明の第1の実施の形態における、PCカード挿抜時のホストコンピュータのクロック信号と、フリップフロップ回路の入力端子の信号および出力端子の信号のタイミング波形である。つまり、図4の(a)は端子111で検出されるホストコンピュータ101のクロック出力端子101bから出力されるクロック信号、(b)は端子112で検出されるフリップフロップ回路105の入力端子信号、(c)は端子113で検出されるフリップフロップ回路の出力端子信号であり、横軸の時間の経過によるタイミング波形を示している。
【0024】
図4の横軸において、時刻T1は図3のステップS11におけるPCカード102の抜き出し検出のタイミングを示し、時刻T2は図3のステップS12におけるホストコンピュータ101からのクロック信号の出力停止のタイミングを示している。従って、この時刻T2はドライバアンロードの開始可能時刻を示すことになり、時刻T2の時点より以降において図3のステップS13におけるドライバアンロードが開始される。また、時刻T3は任意の時刻におけるPCカード102の挿入のタイミングを示している。さらに、時刻T4は図3のステップS14におけるドライバアンロード終了の時刻を示し、時刻T5はPCカード挿入検出のタイミングおよび図3のステップS15におけるクロック信号の出力開始のタイミングを示している。従って、時刻T5において、PCカード102の挿入が検出されると共にドライバのロード処理が開始される。
【0025】
次に、図4の波形を参照しながら、PCカード102の挿抜時の動作について説明する。PCカード102の挿入処理については、時刻T5で示すように、PCカード挿入検出時よりドライバのロード処理が行われる。一方、PCカード102の抜き出し時は、時刻T1のPCカード102の抜き出し検出時に、図4(c)に示すように端子113で検出されるフリップフロップ回路105の出力端子信号はHレベルになる。その後、時刻T2においてクロック信号の出力が停止されるので、図4(a)に示すように端子111で検出されるクロック信号はなくなる。
【0026】
時刻T2の後はフリップフロップ回路105の出力端子113は図4(c)に示すようにHレベルのままとなる。従って、ホストコンピュータ101はPCカード102が抜かれていると判断し、この間にドライバのアンロードを実施する。そして、アンロード処理中の時刻T3のタイミングでPCカード102が挿入されると、図4(b)に示すようにフリップフロップ回路105の入力端子112はHレベルからLレベルとなるが、この期間ではクロック信号が動作していないため、フリップフロップ回路105の出力端子113は図4(c)に示すようにHレベルのままである。つまり、この時点では、ホストコンピュータ101はPCカード102の挿入を認識していない。
【0027】
そして、時刻T4でドライバのアンロードが終了し、時刻T5でPCカード102の挿入が検出された時点より図4(a)に示すようにクロック信号の動作が開始される。従って、時刻T5の時点から、図4(c)に示すようにクロック信号のタイミングに同期してフリップフロップ回路105の出力端子113はLレベルとなる。よって、時刻T5の時点からLレベルの信号がホストコンピュータ101のCD端子101aへ供給される。
【0028】
つまり、時刻T3でPCカード102を挿入しても、時刻T4においてドライバのアンロードが終了した後の時刻T5のPCカード102の挿入検出時点において、ホストコンピュータ101のクロック出力端子101b(つまり端子111)のクロック信号が出力される。従って、図4(c)に示すように、時刻T3のPCカード102の挿入時点には関わらず、時刻T5においてフリップフロップ回路105の出力端子(端子113)の信号はLレベルになる。よって、ホストコンピュータ101は、PCカード102の挿入時(時刻T3)のアンロード中の状態を回避して、時刻T5で確実にPCカード102の挿入検出を行い、この時点よりドライバのロードを実行することができる。
【0029】
このように、任意の時刻T3でPCカード102が挿入されたとき、図4(b)に示すようにフリップフロップ回路105の入力端子112はHレベルからLレベルとなるが、この期間ではクロック信号が動作していないため、フリップフロップ回路105の出力端子113は図4(c)に示すようにHレベルのままである。そして、時刻T4でドライバのアンロードが終了し、PCカード102の挿入が検出された時刻T5の時点よりクロック信号の動作が開始され、フリップフロップ回路105の出力端子113がLレベルとなるので、任意の時点でPCカード102が挿入されても、アンロード終了後に正常なロード動作が開始される。
【0030】
第2の実施の形態
第2の実施の形態では、PCカードの挿抜時における挿抜検出信号のノイズを除去して、正確にPCカードの挿抜状態を検出することができるPCカード検出システムについて説明する。尚、第2の実施の形態の場合も、ホストコンピュータとPCカードの接続におけるPCカード検出システムの構成図は図1と同じである。図5は、本発明の第2の実施の形態における、PCカードを挿入したときのホストコンピュータのクロック信号と、フリップフロップ回路の入力端子の信号および出力端子の信号のタイミング波形である。
【0031】
つまり、図5はPCカード102を挿入したときに検出される各部の波形であり、(a)は端子111で検出されるホストコンピュータ101のクロック出力端子101bから出力されるクロック信号、(b)は端子112で検出されるフリップフロップ回路105の入力端子信号、(c)は端子113で検出されるフリップフロップ回路の出力端子信号であり、横軸の時間の経過によるタイミング波形を示している。
【0032】
PCカード102はユーザによって任意に挿入されるので、時刻T1のPCカード102の挿入時の過度期においては、図5(b)に示すように、端子112で検出されるフリップフロップ回路105の入力端子信号は、チャタリングしながらHレベルからLレベルに変化しているのでノイズが発生する。しかし、図5(c)に示すように、端子113で検出されるフリップフロップ回路105の出力端子信号は、図5(a)に示すような端子111で検出されるクロック信号の所定のタイミングに同期して出力する。このため、図5(c)に示すように、端子113で検出されるフリップフロップ回路105の出力端子信号はノイズに影響されることなく時刻T2で確実にHレベルからLレベルに変化している。これによって、PCカード102の挿入時のノイズに影響されることなく、フリップフロップ回路105の出力端子信号(図5(c)の端子113の出力端子信号)のLレベルは、時刻T2のPCカード挿入検出の時点でホストコンピュータ101のCD端子101aに入力される。よって、PCカード102の挿入時における挿入検出信号のノイズを除去して、正確にPCカードの挿入状態を検出することができる。
【0033】
図6は、本発明の第2の実施の形態における、PCカードを抜き出したときのホストコンピュータのクロック信号と、フリップフロップ回路の入力端子の信号および出力端子の信号のタイミング波形である。つまり、図6はPCカード102を抜き出したときに検出される各部の波形であり、(a)は端子111で検出されるホストコンピュータ101のクロック出力端子101bから出力されるクロック信号、(b)は端子112で検出されるフリップフロップ回路105の入力端子信号、(c)は端子113で検出されるフリップフロップ回路の出力端子信号であり、横軸の時間の経過によるタイミング波形を示している。
【0034】
PCカード102はユーザによって任意に抜き出されるので、時刻T1のPCカード102の抜き出し時の過度期において、図6(b)に示すように、端子112で検出されるフリップフロップ回路105の入力端子信号は、チャタリングしながらLレベルからHレベルに変化しているのでノイズが発生する。しかし、図6(c)に示すように、端子113で検出されるフリップフロップ回路105の出力端子信号は、図6(a)に示すような端子111で検出されるクロック信号の所定のタイミングに同期して出力する。このため、図6(c)に示すように、端子113で検出されるフリップフロップ回路105の出力端子信号はノイズに影響されることなく時刻T2で確実にLレベルからHレベルに変化している。これによって、PCカード102の抜き出し時のノイズに影響されることなく、フリップフロップ回路105の出力端子信号(図5(c)の端子113の出力端子信号)がホストコンピュータ101のCD端子101aに入力される。よって、PCカードの抜き出し時における抜き出し検出信号のノイズを除去して、正確にPCカードの抜き出し状態を検出することができる。
【0035】
【発明の効果】
以上説明したように、本発明のPCカード検出システムによれば、ホストコンピュータが生成する制御信号によってPCカードの挿抜検出信号をHレベルにしたりLレベルにしたりするタイミングを制御することができるので、PCカードの実際の挿抜タイミングに関わらず、PCカードの挿抜検出タイミングを安定化させることができる。従って、ユーザによる不安定なPCカードの挿抜動作を吸収して、PCカードの挿抜状態を正確且つ安定的に検出することができる。また、PCカード抜き出し時に挿抜検出信号を所定のタイミングに制御することにより、PCカードがすぐに再挿入されてもホストコンピュータは過度的な挿抜を検出しないので、ドライバのアンロード及びロードの処理手順が単純化され、もってドライバの動作を安定化させることができる。さらに、PCカードの挿抜検出信号を所定周期のクロック信号のタイミングでサンプリングしているため、PCカードの挿抜時に発生する挿抜信号のノイズを除去することができるので、コンピュータシステムの動作を安定化させることができる。
【図面の簡単な説明】
【図1】 本発明におけるホストコンピュータとPCカードとの間のPCカード検出システムの接続構成を示す図である。
【図2】 本発明の第1の実施の形態における、ホストコンピュータに搭載されているドライバのPCカード挿入時の処理プログラムを示すフローチャートである。
【図3】 本発明の第1の実施の形態における、ホストコンピュータに搭載されているドライバのPCカード抜き出し時の処理プログラムを示すフローチャートである。
【図4】 本発明の第1の実施の形態における、PCカード挿抜時のホストコンピュータのクロック信号と、フリップフロップ回路の入力端子の信号および出力端子の信号のタイミング波形である。
【図5】 本発明の第2の実施の形態における、PCカードを挿入したときのホストコンピュータのクロック信号と、フリップフロップ回路の入力端子の信号および出力端子の信号のタイミング波形である。
【図6】 本発明の第2の実施の形態における、PCカードを抜き出したときのホストコンピュータのクロック信号と、フリップフロップ回路の入力端子の信号および出力端子の信号のタイミング波形である。
【図7】 従来技術におけるホストコンピュータとPCカードとの間のPCカード検出システムの接続構成を示す図である。
【符号の説明】
101,201…ホストコンピュータ、101a,201a…CD端子、101b…クロック出力端子、102,202…PCカード、103,203…68ピンコネクタ、104,204…ロジック回路、105…フリップフロップ回路、106a,106b,205a,205b…プルアップ抵抗、111…クロック信号端子、112…フリップフロップ回路入力端子、113…フリップフロップ回路出力端子[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a PC card detection system that stably detects whether or not a PC card is inserted into and removed from a connector and connected to or disconnected from a host computer, and a PC card detection processing method.
[0002]
[Prior art]
The PC card conforms to the “PC Card Standard” standardized jointly by the PCMCIA (Personal Computer Memory Card International Association), which is a US PC card standardization organization, and the Japan Electric Industry Development Association. A general term for personal computer peripherals. There is a 68-pin PC card connector between the PC card and the host computer. Of the 68 pins, 2 pins are used as the Card Detect pin (card detection pin) to determine whether the PC card is inserted or not. is doing.
[0003]
FIG. 7 is a diagram showing a connection configuration of a PC card detection system between a host computer and a PC card in the prior art. Therefore, in FIG. 7, signal lines for normal data communication are omitted. In FIG. 7, the
[0004]
When the
[0005]
In the
[0006]
When the
[0007]
[Patent Document 1]
Japanese Patent Laid-Open No. 9-006482 (FIG. 1, paragraphs 0022 and 0023)
[Patent Document 2]
JP-A-10-177433 (FIGS. 1 and 3, paragraphs 0009 and 0010)
[0008]
[Problems to be solved by the invention]
However, if the loaded driver is incomplete or defective, the PC card may not operate normally or the system may become unstable. For this reason, the configuration should be such that there are no deficiencies or defects in the driver as much as possible, and it is confirmed that there are no problems by performing multiple insertion / extraction tests. It is difficult to do.
Also, if the PC card is inserted and removed in a short time, the driver unloading and loading processes may overlap, and the system may become unstable if the processes at this time are not performed properly. . It is sufficient to use an appropriate driver. However, for operations involving manual operations such as inserting / removing a PC card, contact / cutting is repeated several times in a short time when the PC card is inserted / removed (hereinafter referred to as chattering). Since the phenomenon of driver unloading and loading timing is not constant, such as the occurrence of a problem, it is difficult to solve the problem that the system becomes unstable only by driver countermeasures.
[0009]
The present invention has been made in view of such circumstances, and a first object is to provide a PC card detection system and a PC that can perform stable control of an insertion / extraction detection signal corresponding to the insertion / extraction of the PC card. The object is to provide a card detection processing method. A second object of the present invention is to provide a PC card detection system and a PC card detection processing method capable of determining that a PC card has been removed and controlling an insertion / extraction detection signal. Further, the third object is that the control of the insertion / removal detection signal is a signal having a fixed period, so that the noise of the insertion / removal detection signal at the time of insertion / removal of the PC card can be removed to accurately detect the insertion / removal state of the PC card. It is an object of the present invention to provide a PC card detection system and a PC card detection processing method.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, a PC card detection system according to the present invention includes a PC card, an insertion / removal detection circuit for detecting insertion / removal of the PC card, and a host computer for controlling the PC card based on the insertion / removal detection result. In the PC card detection system for detecting the insertion / removal state of the PC card, the insertion / removal detection circuit receives the first insertion / removal detection signal acquired from the PC card based on a control signal at a predetermined timing input from the host computer. There are provided detection signal control means for converting into two insertion / extraction detection signals. The host computer inputs a second insertion / extraction detection signal from the detection signal control means to determine the insertion / removal state of the PC card, and outputs a control signal at a predetermined timing to the detection signal control means. .
[0011]
That is, according to the PC card detection system of the present invention, the timing at which the PC card insertion / removal detection signal is set to the H level or the L level can be controlled by the control signal. Therefore, the PC card insertion / removal detection timing can be stabilized. Therefore, an unstable PC card insertion / removal operation by the user can be absorbed, and the insertion / removal state of the PC card can be detected accurately and stably.
[0012]
In the PC card detection system of the present invention, the host computer controls the output / stop of the control signal to the detection signal control means by detecting that the PC card is inserted / removed. That is, according to the PC card detection system of the present invention, for example, by controlling the insertion / removal detection signal at a predetermined timing when the PC card is removed, the host computer can insert excessively even if the PC card is immediately reinserted. Since it is not detected, the driver unloading and loading processing procedure is simplified, and the operation of the driver can be stabilized.
[0013]
In the PC card detection system of the present invention, the control signal output from the host computer is a signal that operates in a predetermined cycle, and the host computer can arbitrarily change the cycle of the control signal. That is, according to the PC card detection system of the present invention, the PC card insertion / removal detection signal is sampled at the timing of the clock signal of a predetermined period, so that noise of the insertion / extraction signal generated when the PC card is inserted / removed can be removed. it can. In this case, by setting the cycle of the control signal to such a cycle that noise can be removed, noise can always be removed when the PC card is inserted and removed, so that the operation of the computer system can be stabilized.
[0014]
The PC card detection processing method according to the present invention includes a PC card, an insertion / removal detection circuit for detecting insertion / removal of the PC card, and a host computer for controlling the PC card based on the insertion / removal detection result. In the PC card detection processing method for detecting the insertion / removal state of the card, a first step in which the insertion / removal detection circuit obtains a first insertion / removal detection signal from the PC card, and the insertion / removal detection circuit determines the presence or absence of a control signal from the host computer A second step in which the insertion / extraction detection circuit outputs a high / low level second insertion / extraction detection signal to the host computer in response to the presence or absence of the control signal, and the host computer outputs the second insertion / extraction detection signal. And a fourth step of determining the insertion / removal state of the PC card based on the High / Low level.
[0015]
In the PC card detection processing method according to the present invention, when the insertion / extraction detection circuit determines that the control signal is present in the second step, the insertion / extraction detection circuit determines the first insertion / extraction detection signal based on the timing of the control signal. And the host computer determines the insertion / removal state of the PC card based on the second insertion / removal detection signal.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, some of the embodiments of the PC card detection system according to the present invention will be described in detail with reference to the drawings. In the first embodiment, a PC card detection system capable of controlling an insertion / removal detection signal in response to insertion / removal of a PC card or determining that a PC card has been removed and controlling the insertion / removal detection signal. explain. In the second embodiment, a PC card detection system capable of accurately detecting the insertion / removal state of the PC card by removing noise from the insertion / removal detection signal when the PC card is inserted / removed will be described.
[0017]
First embodiment
In the first embodiment, a PC card detection system that controls an insertion / removal detection signal in response to insertion / removal of a PC card or that determines that a PC card has been removed and controls the insertion / removal detection signal will be described. FIG. 1 is a diagram showing a connection configuration of a PC card detection system between a host computer and a PC card in the present invention. That is, since this figure shows a PC card detection system that accurately detects insertion / extraction of a PC card, signal lines for normal data communication are omitted.
[0018]
In FIG. 1, the
[0019]
Signals for connecting / disconnecting CD1 and CD2 (that is, H level / L level signals) output from the logic circuit 104 are input to the D terminal of the flip-flop circuit 105. The flip-flop circuit 105 outputs an H level / L level signal sampled at a predetermined timing of the clock signal output from the
[0020]
Next, the operation of the PC card detection system in the connection configuration of the
[0021]
First, the flow of processing when inserting the PC card in FIG. 2 will be described. When the
[0022]
Next, the flow of processing when extracting the PC card in FIG. 3 will be described. When the
[0023]
FIG. 4 is a timing waveform of the clock signal of the host computer, the signal of the input terminal of the flip-flop circuit, and the signal of the output terminal when the PC card is inserted / removed in the first embodiment of the present invention. 4A is a clock signal output from the clock output terminal 101b of the
[0024]
On the horizontal axis of FIG. 4, time T1 indicates the timing of detection of removal of the
[0025]
Next, the operation when the
[0026]
After time T2, the
[0027]
Then, the driver unloading is completed at time T4, and the operation of the clock signal is started as shown in FIG. 4A from the time when insertion of the
[0028]
That is, even if the
[0029]
As described above, when the
[0030]
Second embodiment
In the second embodiment, a PC card detection system capable of accurately detecting the insertion / removal state of a PC card by removing noise from the insertion / removal detection signal when the PC card is inserted / removed will be described. In the second embodiment, the configuration diagram of the PC card detection system in the connection between the host computer and the PC card is the same as that shown in FIG. FIG. 5 is a timing waveform of the clock signal of the host computer, the signal of the input terminal of the flip-flop circuit, and the signal of the output terminal when the PC card is inserted in the second embodiment of the present invention.
[0031]
That is, FIG. 5 is a waveform of each part detected when the
[0032]
Since the
[0033]
FIG. 6 is a timing waveform of the clock signal of the host computer, the signal of the input terminal of the flip-flop circuit, and the signal of the output terminal when the PC card is extracted in the second embodiment of the present invention. That is, FIG. 6 is a waveform of each part detected when the
[0034]
Since the
[0035]
【The invention's effect】
As described above, according to the PC card detection system of the present invention, the timing at which the PC card insertion / removal detection signal is set to H level or L level can be controlled by the control signal generated by the host computer. Regardless of the actual insertion / removal timing of the PC card, the insertion / removal detection timing of the PC card can be stabilized. Therefore, an unstable PC card insertion / removal operation by the user can be absorbed, and the insertion / removal state of the PC card can be detected accurately and stably. Further, by controlling the insertion / removal detection signal at a predetermined timing when the PC card is removed, the host computer does not detect excessive insertion / removal even if the PC card is immediately re-inserted. Is simplified, and the operation of the driver can be stabilized. Furthermore, since the PC card insertion / removal detection signal is sampled at the timing of the clock signal of a predetermined period, noise of the insertion / removal signal generated at the time of insertion / removal of the PC card can be removed, thereby stabilizing the operation of the computer system. be able to.
[Brief description of the drawings]
FIG. 1 is a diagram showing a connection configuration of a PC card detection system between a host computer and a PC card in the present invention.
FIG. 2 is a flowchart showing a processing program when a PC card of a driver mounted on a host computer is inserted in the first embodiment of the present invention.
FIG. 3 is a flowchart showing a processing program for removing a PC card of a driver installed in a host computer in the first embodiment of the present invention.
4 is a timing waveform of a clock signal of a host computer, a signal of an input terminal of a flip-flop circuit, and a signal of an output terminal when the PC card is inserted / removed in the first embodiment of the present invention. FIG.
FIG. 5 is a timing waveform of a host computer clock signal, a flip-flop circuit input terminal signal, and an output terminal signal when a PC card is inserted according to the second embodiment of the present invention;
6 is a timing waveform of a clock signal of a host computer, a signal of an input terminal of a flip-flop circuit, and a signal of an output terminal when the PC card is extracted in the second embodiment of the present invention. FIG.
FIG. 7 is a diagram showing a connection configuration of a PC card detection system between a host computer and a PC card in the prior art.
[Explanation of symbols]
101, 201 ... Host computer, 101a, 201a ... CD terminal, 101b ... Clock output terminal, 102, 202 ... PC card, 103, 203 ... 68-pin connector, 104, 204 ... Logic circuit, 105 ... Flip-flop circuit, 106a, 106b, 205a, 205b ... pull-up resistors, 111 ... clock signal terminals, 112 ... flip-flop circuit input terminals, 113 ... flip-flop circuit output terminals
Claims (2)
前記挿抜検出回路は、 The insertion / extraction detection circuit includes:
PCカードが挿入されている場合には偽の信号を、前記PCカードが挿入されていない場合には真の信号を出力する挿抜検出手段と、 Insertion / extraction detection means for outputting a false signal when a PC card is inserted, and outputting a true signal when the PC card is not inserted,
前記挿抜検出手段からの出力が偽であってクロック信号の入力を受付けた場合に前記PCカード挿入を示す信号をホストコンピュータへ通知し、前記挿抜出力手段からの出力が真であって前記クロック信号の入力を受付けた場合に前記PCカードの抜き出しを示す信号を前記ホストコンピュータへ通知する挿抜通知手段と、を備え、 When the output from the insertion / extraction detection means is false and the input of the clock signal is accepted, a signal indicating the insertion of the PC card is notified to the host computer, the output from the insertion / extraction output means is true, and the clock signal Insertion / removal notification means for notifying the host computer of a signal indicating the removal of the PC card when receiving the input,
前記ホストコンピュータは、 The host computer
前記PCカードの抜き出しを示す信号または前記PCカードの挿入を示す信号に基づいて、当該PCカードの挿抜を検出し、前記PCカードの抜き出しを検出した場合には前記クロック信号の前記挿抜通知手段への送出を停止するクロック信号制御手段と、 Based on the signal indicating the removal of the PC card or the signal indicating the insertion of the PC card, the insertion / removal of the PC card is detected. When the removal of the PC card is detected, the clock signal is sent to the insertion / removal notification means. Clock signal control means for stopping the transmission of
前記クロック信号の前記挿抜通知手段への送出の停止中に、前記PCカードからのドライバのアンロードを処理するドライバアンロード処理手段と、 Driver unload processing means for processing driver unloading from the PC card during stoppage of sending of the clock signal to the insertion / extraction notification means;
を備え、 With
前記ホストコンピュータのクロック信号制御手段は、前記PCカードからのドライバのアンロードを終了した場合には、前記クロック信号の前記挿抜通知手段への送出を開始する The clock signal control means of the host computer starts sending the clock signal to the insertion / extraction notification means when the driver unloading from the PC card is completed.
ことを特徴とするPCカード検出システム。 PC card detection system characterized by the above.
前記挿抜検出回路の挿抜検出手段は、PCカードが挿入されている場合には偽の信号を、前記PCカードが挿入されていない場合には真の信号を出力し、 The insertion / extraction detection means of the insertion / extraction detection circuit outputs a false signal when a PC card is inserted, and outputs a true signal when the PC card is not inserted,
前記挿抜検出回路の挿抜通知手段は、前記挿抜検出手段からの出力が偽であってクロック信号の入力を受付けた場合に前記PCカード挿入を示す信号をホストコンピュータへ通知し、前記挿抜出力手段からの出力が真であって前記クロック信号の入力を受付けた場合に前記PCカードの抜き出しを示す信号を前記ホストコンピュータへ通知し、 The insertion / removal notification means of the insertion / removal detection circuit notifies the host computer of a signal indicating the insertion of the PC card when the output from the insertion / removal detection means is false and accepts the input of a clock signal, from the insertion / removal output means When the output of the signal is true and the input of the clock signal is accepted, a signal indicating the removal of the PC card is notified to the host computer,
前記ホストコンピュータのクロック信号制御手段は、前記PCカードの抜き出しを示す信号または前記PCカードの挿入を示す信号に基づいて、当該PCカードの挿抜を検出し、前記PCカードの抜き出しを検出した場合には前記クロック信号の前記挿抜通知手段への送出を停止し、 The clock signal control means of the host computer detects the insertion / removal of the PC card based on the signal indicating the removal of the PC card or the signal indicating the insertion of the PC card, and detects the removal of the PC card. Stops sending the clock signal to the insertion / extraction notification means,
前記ホストコンピュータのドライバアンロード処理手段は、前記クロック信号の前記挿抜通知手段への送出の停止中に、前記PCカードからのドライバのアンロードを処理し、 The driver unload processing means of the host computer processes driver unloading from the PC card while stopping sending the clock signal to the insertion / extraction notification means,
前記ホストコンピュータのクロック信号制御手段は、前記PCカードからのドライバのアンロードを終了した場合には、前記クロック信号の前記挿抜通知手段への送出を開始する The clock signal control means of the host computer starts sending the clock signal to the insertion / extraction notification means when the driver unloading from the PC card is completed.
ことを特徴とするPCカード検出処理方法。 And a PC card detection processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002293626A JP3886877B2 (en) | 2002-10-07 | 2002-10-07 | PC card detection system and PC card detection processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002293626A JP3886877B2 (en) | 2002-10-07 | 2002-10-07 | PC card detection system and PC card detection processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004127167A JP2004127167A (en) | 2004-04-22 |
JP3886877B2 true JP3886877B2 (en) | 2007-02-28 |
Family
ID=32284486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002293626A Expired - Fee Related JP3886877B2 (en) | 2002-10-07 | 2002-10-07 | PC card detection system and PC card detection processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3886877B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5406541B2 (en) * | 2009-01-28 | 2014-02-05 | パナソニック株式会社 | Supervisory control device |
CA2690585C (en) | 2009-01-21 | 2013-03-26 | Panasonic Electric Works Co., Ltd. | Monitoring and control device |
JP5360401B2 (en) * | 2009-09-01 | 2013-12-04 | 日本電気株式会社 | Device connection detection circuit |
-
2002
- 2002-10-07 JP JP2002293626A patent/JP3886877B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004127167A (en) | 2004-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5555510A (en) | Automatic computer card insertion and removal algorithm | |
JP2008299849A (en) | Card detecting apparatus and method | |
US20070226571A1 (en) | Protocol analyzer for consumer electronics | |
KR100315681B1 (en) | Semiconductor integrated circuit and contact ic card | |
US7686220B2 (en) | Memory card detection circuit and method thereof | |
US20010027032A1 (en) | Mode-switchable PC card and PC card input/output control device | |
JP3886877B2 (en) | PC card detection system and PC card detection processing method | |
US6523071B1 (en) | Process and apparatus for configuring the direct memory access transfer mode of a motherboard or host computer | |
US6892263B1 (en) | System and method for hot swapping daughtercards in high availability computer systems | |
KR100268637B1 (en) | Ic card reader/writer and its control method | |
US20200142626A1 (en) | Hot plug memory device data protection method | |
US6948020B1 (en) | Method and system for increasing control information from GPIOs | |
US20030195716A1 (en) | Interface device for product testing | |
US20090043919A1 (en) | Removable device detecting method | |
US6839857B2 (en) | Interrupt controller in an interface device or information processing system | |
US20080111586A1 (en) | Method for determining a memory type and related electronic device | |
JP2003248796A (en) | Pc card detection device | |
US10228416B2 (en) | Testing integrated circuit, testing method and electronic device | |
US6122689A (en) | Bus termination circuitry and methods for implementing the same | |
CN101833635A (en) | T-card identification method and device | |
US6480907B1 (en) | Apparatus and method for testing the wait signal line of a communication interface socket | |
US8047437B2 (en) | Card access apparatus and electronic apparatus implementing the same | |
JPH1097357A (en) | Data processor and data processing system | |
JPH08234869A (en) | Hot line inserting/ejecting system | |
CN111061515B (en) | User equipment starting control method and user equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040409 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20040413 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060223 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060411 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060609 |
|
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: 20061114 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061122 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091201 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091201 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101201 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111201 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121201 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121201 Year of fee payment: 6 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121201 Year of fee payment: 6 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121201 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131201 Year of fee payment: 7 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313117 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |