JP2008084340A - Pc card controller, computer system with this pc card controller and pc card identification method - Google Patents
Pc card controller, computer system with this pc card controller and pc card identification method Download PDFInfo
- Publication number
- JP2008084340A JP2008084340A JP2007293331A JP2007293331A JP2008084340A JP 2008084340 A JP2008084340 A JP 2008084340A JP 2007293331 A JP2007293331 A JP 2007293331A JP 2007293331 A JP2007293331 A JP 2007293331A JP 2008084340 A JP2008084340 A JP 2008084340A
- Authority
- JP
- Japan
- Prior art keywords
- card
- identification information
- signal line
- identification
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、PCMCIAに準拠するPCカードの識別装置及びPCカードの識別方法に関する。 The present invention relates to a PC card identification device and a PC card identification method compliant with PCMCIA.
従来より、パーソナルコンピュータ、特にノート型のパーソナルコンピュータでは、PCMCIAに準拠したPCカードの識別装置(いわゆるPCカードスロット)を備えるものが知られている。 2. Description of the Related Art Conventionally, personal computers, particularly notebook personal computers, are known that include a PC card identification device (so-called PC card slot) compliant with PCMCIA.
PCMCIAに準拠するPCカードの短辺側の側部に備えるメス型のコネクタには、PCカード制御装置が備えるオス型コネクタの複数のピンの内、第1及び第2のカード検出信号(PCMCIAにおいてCD1#及びCD2#と定義されており、以下、単にCD1#及びCD2#という)が流れるピンに対応する第1及び第2接続穴、並びに、第1及び第2の電圧選択信号(PCMCIAにおいてVS1#及びVS2#と定義されており、以下、単にVS1#及びVS2#という)に対応する第3及び第4接続穴が用意されている。 The female connector provided on the side of the short side of the PC card conforming to PCMCIA includes first and second card detection signals (in PCMCIA) among the plurality of pins of the male connector provided in the PC card control device. The first and second connection holes corresponding to the pins through which CD1 # and CD2 # flow, and hereinafter simply referred to as CD1 # and CD2 #, and the first and second voltage selection signals (VS1 in PCMCIA). The third and fourth connection holes corresponding to VS1 # and VS2 #) are prepared.
PCカードの内部において、上記第1及び第2接続穴に接続される配線は、接地されているか、または、上記第3及び第4接続穴の少なくとも一方に接続されている。また、PCカード制御装置において、上記CD1#及びCD2#は、共にHighレベルにプルアップされている。PCカード制御装置にPCカードが接続されると、上記CD1#及びCD2#の電位がLowレベルに低下する。PCカード制御装置は、この電位変化からPCカードの接続を検出する。 Inside the PC card, the wiring connected to the first and second connection holes is grounded or connected to at least one of the third and fourth connection holes. In the PC card control device, both the CD1 # and CD2 # are pulled up to the high level. When the PC card is connected to the PC card controller, the potentials of the CD1 # and CD2 # are lowered to the low level. The PC card control device detects the connection of the PC card from this potential change.
PCカード制御装置は、PCカードが接続されたことを検知すると、第3接続穴に流れるVS1#の電位をHighレベルにした場合のCD2#,CD1#,VS2#及びVS1#の状態、並びに、第4接続穴に流れるVS2#の電位をHighレベルにした場合のCD2#,CD1#,VS2#及びVS1#の状態を検出し、これらの信号線の状態を識別情報としてPCカードの種類(使用する信号レベルやバスのビット幅)を特定する。 When the PC card controller detects that the PC card is connected, the state of CD2 #, CD1 #, VS2 # and VS1 # when the potential of VS1 # flowing through the third connection hole is set to the high level, and The state of CD2 #, CD1 #, VS2 #, and VS1 # when the potential of VS2 # flowing through the fourth connection hole is set to a high level is detected, and the state of these signal lines is used as identification information to identify the type of PC card (use The signal level to be used and the bit width of the bus).
例えば、新たなPCカードを認識するPCカード制御装置として、上述したように第3及び第4接続穴に流れるVS1#及びVS2#の電位を選択的にHighレベルにした時のCD2#,CD1#,VS2#及びVS1#の電位状態が、PCMCIAで定める予備のカードの電位状態と一致し、かつ、上記以外の特定の端子の信号状態が予め決めた条件を満足する場合に、予めバスのビット幅及び駆動電圧が特定された拡張カード(スマートカード)を認識するものが提案されている(特開2001−75746号公報を参照)。 For example, as a PC card controller for recognizing a new PC card, CD2 # and CD1 # when the potentials of VS1 # and VS2 # flowing in the third and fourth connection holes are selectively set to the high level as described above. , VS2 # and VS1 # when the potential state of the spare card determined by PCMCIA matches and the signal state of a specific terminal other than the above satisfies a predetermined condition, A device that recognizes an expansion card (smart card) whose width and drive voltage are specified has been proposed (see Japanese Patent Application Laid-Open No. 2001-75746).
しかし、特開2001−75746号公報に開示されるPCカード制御装置は、通常の識別情報取得処理の他に、更に特定の端子の信号状態について調べるため、特別な拡張カード用の識別アルゴリズムを必要とし、設計工数の増加を招く。 However, the PC card control device disclosed in Japanese Patent Application Laid-Open No. 2001-75746 requires a special expansion card identification algorithm in addition to the normal identification information acquisition process to further investigate the signal status of a specific terminal. This leads to an increase in design man-hours.
本発明は、より簡単に拡張カードを認識するPCカード制御装置を提供することを目的とする。 An object of this invention is to provide the PC card control apparatus which recognizes an expansion card more easily.
本発明の第1のPCカード制御装置は、接続されたカードから規格に従う手法で識別情報を取得する識別情報取得部と、上記規格に準拠する1以上の種類のPCカードについてのカード情報と共に、当該各カード情報に対応した識別情報が記録された第1記録部と、上記規格に準拠していない1以上の種類の拡張カードについてのカード情報と共に、当該カード情報に対応した識別情報が記録された第2記録部とを有し、上記接続されたカードについて上記識別情報取得部により取得される識別情報と、第1記録部及び第2記録部に記録されている識別情報の内の少なくとも第2記録部に記録されている識別情報とから接続されているカードの種類を識別し、当該識別結果と共に接続されているカードについてのカード情報を出力するPCカード識別部とを備えたことを特徴とする。 The first PC card control device of the present invention includes an identification information acquisition unit that acquires identification information from a connected card in accordance with a standard, and card information about one or more types of PC cards that conform to the standard, Identification information corresponding to the card information is recorded together with the first recording unit in which the identification information corresponding to each card information is recorded, and the card information about one or more types of expansion cards not compliant with the standard. An identification information acquired by the identification information acquisition unit for the connected card, and at least a first of the identification information recorded in the first recording unit and the second recording unit. 2 PC card that identifies the type of the connected card from the identification information recorded in the recording unit and outputs the card information about the connected card together with the identification result Characterized by comprising a de identification unit.
本発明の第2のPCカード制御装置は、上記第1のPCカード制御装置において、上記PCカード識別部から出力される識別結果に基づいて、接続されたカードと上記規格に準拠した形式での信号の交信を行う回線を確立する信号変換部とを備えることを特徴とする。 The second PC card control device according to the present invention is the first PC card control device, in the format based on the connected card and the standard based on the identification result output from the PC card identification unit. And a signal conversion unit that establishes a line for performing signal communication.
本発明の第3のPCカード制御装置は、上記第1又は第2のPCカード制御装置において、上記規格がPCMCIAであり、上記第2記録部に記録する拡張カードの識別情報は、PCMCIAに準拠するPCカードが備える第1及び第2カード検出信号線と第1及び第2電圧選択信号線を、(1)第1カード検出信号線を第1の電圧選択信号線に接続すると共に、第2カード検出信号線を第2電圧信号線に接続した場合、(2)第1カード検出信号線を第2電圧選択信号線に接続すると共に、第2カード検出信号線を第1電圧選択信号線に接続した場合、(3)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を接地した場合、(4)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を開放した場合、(5)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を接地した場合、(6)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を開放した場合の何れかの状態に接続した場合に、上記識別情報取得部において取得される情報であることを特徴とする。 According to a third PC card control device of the present invention, in the first or second PC card control device, the standard is PCMCIA, and the identification information of the expansion card recorded in the second recording unit is based on PCMCIA. The first and second card detection signal lines and the first and second voltage selection signal lines included in the PC card to be connected are: (1) the first card detection signal line is connected to the first voltage selection signal line; When the card detection signal line is connected to the second voltage signal line, (2) the first card detection signal line is connected to the second voltage selection signal line, and the second card detection signal line is changed to the first voltage selection signal line. When connected, (3) When both the first and second card detection signal lines are connected to the second voltage selection signal line and the first voltage signal line is grounded, (4) First and second card detection signals Connect both wires to the second voltage selection signal wire When the first voltage signal line is opened, (5) When both the first and second card detection signal lines are connected to the first voltage selection signal line and the second voltage signal line is grounded, (6 ) When the first and second card detection signal lines are both connected to the first voltage selection signal line and are connected in any state when the second voltage signal line is opened, the identification information acquisition unit acquires the first and second card detection signal lines. Information.
本発明の第4のPCカード制御装置は、接続されたカードから識別情報を取得する識別情報取得部と、規格に準拠する1以上の種類のPCカードについてのカード情報と共に、当該PCカードについて上記識別情報取得部により得られる識別情報を記録しておく第1記録部と、上記規格に準拠していない1以上の種類の拡張カードについてのカード情報と共に、当該拡張カードについて上記識別情報取得部により取得される識別情報を記録しておく第2記録部とを有し、上記接続されたカードについて上記識別情報取得部により取得される識別情報と、少なくとも第2記録部に記録されている識別情報に基づいて接続されたカードの種類を識別し、当該識別結果と共に接続されたカードについてのカード情報を出力するPCカード識別部と、上記PCカード識別部から出力される識別結果に基づいて、接続されたカードと上記規格に準拠した形式での信号の交信を行う回線を確立する信号変換部とを備え、上記第2記録部に記録されている1以上の種類の拡張カードのカード情報及び識別情報が外部から更新できることを特徴とする。 The fourth PC card control device according to the present invention includes an identification information acquisition unit that acquires identification information from a connected card, and card information about one or more types of PC cards that comply with the standard, and the PC card. Along with the first recording unit for recording the identification information obtained by the identification information acquisition unit and the card information for one or more types of expansion cards that do not comply with the standard, the identification information acquisition unit for the expansion card A second recording unit for recording the acquired identification information, the identification information acquired by the identification information acquisition unit for the connected card, and at least the identification information recorded in the second recording unit PC card identification unit for identifying the type of card connected based on the card, and outputting card information about the connected card together with the identification result; A signal conversion unit that establishes a line for communicating signals in a format compliant with the standard based on the identification result output from the PC card identification unit, and the second recording unit includes The card information and identification information of one or more types of expansion cards recorded can be updated from the outside.
本発明の第5のPCカード制御装置は、上記第4のPCカード制御装置であって、上記規格がPCMCIAであることを特徴とする。 A fifth PC card control device according to the present invention is the fourth PC card control device, wherein the standard is PCMCIA.
本発明の第6のPCカード制御装置は、上記第4又は第5のPCカード制御装置であって、上記第2記録部に記録する拡張カードの識別情報は、PCMCIAに準拠するPCカードが備える第1及び第2カード検出信号線と第1及び第2電圧選択信号線を、(1)第1カード検出信号線を第1の電圧選択信号線に接続すると共に、第2カード検出信号線を第2電圧信号線に接続した場合、(2)第1カード検出信号線を第2電圧選択信号線に接続すると共に、第2カード検出信号線を第1電圧選択信号線に接続した場合、(3)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を接地した場合、(4)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を開放した場合、(5)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を接地した場合、(6)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を開放した場合の何れかの状態に接続した場合に、上記識別情報取得部において取得される情報であることを特徴とする。 A sixth PC card control device according to the present invention is the fourth or fifth PC card control device, wherein the expansion card identification information recorded in the second recording unit is provided in a PC card conforming to PCMCIA. (1) The first card detection signal line is connected to the first voltage selection signal line, and the second card detection signal line is connected to the first and second card detection signal line. When connected to the second voltage signal line, (2) When connecting the first card detection signal line to the second voltage selection signal line and connecting the second card detection signal line to the first voltage selection signal line, 3) When both the first and second card detection signal lines are connected to the second voltage selection signal line and the first voltage signal line is grounded, (4) both the first and second card detection signal lines are second. Connect to the voltage selection signal line and connect the first voltage signal line (5) When both the first and second card detection signal lines are connected to the first voltage selection signal line and when the second voltage signal line is grounded, (6) First and second card detection signals The information is acquired by the identification information acquisition unit when both the lines are connected to the first voltage selection signal line and the second voltage signal line is connected to any state when opened. To do.
本発明の第1のコンピュータシステムは、上記第4乃至第6の何れかのPCカード装置を備えるコンピュータシステムにおいて、上記PCカード識別部から出力されるカード情報に基づいて接続されたカードの種類を認識する認識手段を備えることを特徴とする。 According to a first computer system of the present invention, in the computer system including any one of the fourth to sixth PC card devices, the type of card connected based on the card information output from the PC card identifying unit is determined. Recognizing means for recognizing is provided.
本発明の第2のコンピュータシステムは、上記第4乃至第6の上記何れかのPCカード制御装置を備えるコンピュータシステムであって、上記第2記録部に書きこまれている拡張カードについてのカード情報及び識別情報のデータを更新するデータ更新手段を備えることを特徴とする。 A second computer system of the present invention is a computer system including any one of the fourth to sixth PC card control devices, and card information about an expansion card written in the second recording unit. And data update means for updating the data of the identification information.
本発明のPCカード識別方法は、識別情報取得手段により、接続されたカードから取得される識別情報と、予め記録部に記憶してある規格に準拠した1以上の種類のPCカード及び1以上の種類の拡張カードについてのカード情報と上記識別情報取得手段により取得される識別情報の内、少なくとも拡張カードについての識別情報に基づいて接続されたカードの種類を識別して識別結果を出力し、
上記出力される識別結果に基づいて、接続されたカードと上記規格に準拠した形式での信号の交信を行う回線を確立して行うPCカード識別方法であって、
上記記録部に記憶されている1以上の種類の拡張カードのカード情報及び識別情報が外部から設定されたものであることを特徴とする。
In the PC card identification method of the present invention, the identification information acquisition means acquires identification information acquired from a connected card, one or more types of PC cards and one or more types of cards compliant with a standard stored in the recording unit in advance. Among the card information about the type of expansion card and the identification information acquired by the identification information acquisition means, at least the type of the connected card is identified based on the identification information about the expansion card, and the identification result is output,
A PC card identification method for establishing a line for communicating a signal in a format compliant with the connected card with the connected card based on the output identification result,
The card information and identification information of one or more types of expansion cards stored in the recording unit are set from the outside.
本発明の第1のPCカード制御装置は、特別な識別アルゴリズムを加えることなく規格に準拠する手法により得られる識別情報に基づいて拡張カードを認識することができる。 The first PC card control device of the present invention can recognize an expansion card based on identification information obtained by a technique based on a standard without adding a special identification algorithm.
本発明の第2のPCカード制御装置は、特別な識別アルゴリズムを加えることなく規格に準拠する手法により得られる識別情報に基づいて拡張カードを認識し、当該認識に従い必要な回線を確立することができる。 The second PC card control device according to the present invention can recognize the expansion card based on the identification information obtained by a technique conforming to the standard without adding a special identification algorithm, and establish a necessary line according to the recognition. it can.
本発明の第3のPCカード制御装置は、特別な識別アルゴリズムを加えることなくPCMCIAの規格に準拠する手法により得られる識別情報に基づいて、PCMCIAに準拠していないスマートカード等の拡張カードを認識することができる。 The third PC card controller of the present invention recognizes an expansion card such as a smart card that does not conform to PCMCIA based on identification information obtained by a method conforming to the PCMCIA standard without adding a special identification algorithm. can do.
本発明の第4のPCカード制御装置は、規格に準拠しない拡張カードについてのカード情報及び識別情報が外部から更新可能な第2記録部を備えることで、カードの種類、即ち、バスのビット幅や駆動電圧の異なる新たな拡張カードを新たな識別情報に基づいて識別すると共に、規格に準拠するカードと同様に取り扱うことができる。 The fourth PC card control device according to the present invention includes a second recording unit that can update the card information and the identification information of the expansion card that does not conform to the standard from the outside, so that the card type, that is, the bit width of the bus A new expansion card having a different driving voltage can be identified based on the new identification information and can be handled in the same manner as a card compliant with the standard.
本発明の第5のPCカード制御装置は、PCMCIAに準拠しない拡張カードについてのカード情報及び識別情報が外部から更新可能な第2記録部を備えることで、カードの種類、即ち、バスのビット幅や駆動電圧の異なる新たな拡張カードを新たな識別情報に基づいて識別すると共に、PCMCIAに準拠するカードと同様に取り扱うことができる。 The fifth PC card control device of the present invention includes the second recording unit that can update the card information and the identification information of the expansion card that does not conform to PCMCIA from the outside, so that the card type, that is, the bit width of the bus A new expansion card with a different driving voltage can be identified based on the new identification information and can be handled in the same manner as a card compliant with PCMCIA.
本発明の第6のPCカード制御装置は、上記第5のPCカード制御装置において、PCMCIAにおいて未使用の識別情報に基づいて拡張カードを識別することにより、新たに6種類の拡張カードについて識別することができる。 The sixth PC card control device of the present invention newly identifies six types of expansion cards by identifying expansion cards based on identification information unused in PCMCIA in the fifth PC card control device. be able to.
本発明の第1のコンピュータシステムは、上記第4乃至第6の何れかのPCカード制御装置より出力されるカード情報に基づいて接続されたカードの種類、例えばバスのビット幅や駆動電圧について認識することができる。 The first computer system of the present invention recognizes the type of card connected based on the card information output from any one of the fourth to sixth PC card control devices, for example, the bus bit width and drive voltage. can do.
本発明の第2のコンピュータシステムは、さらに上記第4乃至第6の何れかのPCカード制御装置の第2記録部に記録してある拡張カードについてのカード情報及び識別情報の更新を行うことができる。これにより、従来より使用していた拡張カードの駆動電圧が5Vから3.3Vに低下した場合であっても当該拡張カードを正しく識別することができる。 The second computer system of the present invention may further update the card information and the identification information about the expansion card recorded in the second recording unit of any of the fourth to sixth PC card control devices. it can. As a result, even if the drive voltage of the expansion card that has been used conventionally is lowered from 5V to 3.3V, the expansion card can be correctly identified.
本発明のPCカード識別方法では、外部より設定された拡張カードのカード情報及び識別情報を用いて、当該拡張カードの識別を行う。このため、拡張カードの種類の変更に伴うカード情報や識別情報の変化に迅速に対応することができる。 In the PC card identification method of the present invention, the expansion card is identified using card information and identification information of the expansion card set from the outside. For this reason, it is possible to respond quickly to changes in card information and identification information accompanying changes in the type of expansion card.
(1)実施の形態1
実施の形態1に係るPCカード制御装置100は、PCMCIAに準拠するPCカードと同じ識別方法(他に特別な処理を必要とせずにという意味である。)により拡張カードを識別するが、拡張カードの識別情報に、上記PCMCIAに準拠するPCカードに使用していない識別情報を拡張カード用の識別情報として使用する。これにより、特別な拡張カード用の識別アルゴリズムを追加することなく、拡張カードの識別を行う。
(1)
The PC
また、PCカード制御装置100では、例えば、拡張カードの使用する信号レベルが5Vから3.3Vになり、バスのビット幅が16ビットから32ビットに変わった場合に、当該変更後の拡張カードを正しく認識できるようにすることを目的として、拡張カードを識別するための識別情報、及び、駆動電圧やバスのビット幅といった当該拡張カードの種類を特定するカード情報を外部から更新可能な構成を採用する。これにより簡単かつ柔軟に様々な種類の拡張カードの識別を行う。
Further, in the PC
図1は、実施の形態1に係るPCカード制御装置100を備えるコンピュータシステム1の構成を示す図である。コンピュータシステム1は、CPU10、OSのプログラムが格納されているROM11、RAM12、キーボードやマウスで成る操作部13、ディスプレイ14、PCMCIAに準拠したPCカード用のPCカード制御装置100、及び、上記PCカード制御装置100用の第1制御プログラム(図10を参照)及び第2制御プログラム(図12を参照)の他、様々なアプリケーションプログラムやデータが格納されているハードディスク(図中、HDと表す)15がPCIバス50を介して接続されて成る。
FIG. 1 is a diagram illustrating a configuration of a
PCカード制御装置100には、上記PCカード制御装置100の制御プログラムの実行により登録された拡張カードの識別情報及びカード情報を記憶しているフラッシュROM200が接続されている。図1では、フラッシュROM200は、外付けになっているが、PCカード制御装置100に内蔵しても良い。
Connected to the PC
CPU10は、コンピュータシステム1の立ち上げ時に、ROM11内に記憶しているOSのプログラムをRAM12に読み出して実行すると共に、PCカード制御装置100を含む各部の初期化を行う。
When the
また、フラッシュROM・I/F150は、コンピュータシステム1の電源の投入に伴い、フラッシュROM200に格納してある拡張カードを識別するための識別情報、及び、駆動電圧やバスのビット幅といった当該拡張カードの種類を特定するカード情報を拡張カードレジスタ182に書き込む。
The flash ROM I /
PCカード制御装置100は、PCMCIAに準拠したPCカード250だけでなく、アダプタ300を介してコネクタ190に接続されるスマートカード310を認識する(図2の(a)及び(b)を参照)ことができる。
The PC
PCカード制御装置100は、大きく分けて、コネクタ190に接続されたカードの種類を識別するPCカード識別部160と、当該PCカード識別部160における識別結果に基づいて、コネクタ190に接続されたカードとPCMCIAに準拠した形式で信号のやり取りを行うように回線を確立する信号変換部105とで構成される。
The PC
信号変換部105を構成する各部の働きは以下の通りである。PCIインターフェース110は、PCIバス50とPCカード制御装置100の内部バス(詳細は図示せず)とを接続する。PCMCIAコントローラ120は、セレクタ140を介して、図2の(a)に示すようにコネクタ190に接続されたPCカード250とのデータのやり取りを行う。スマートカードコントローラ130は、拡張カードとして、図2の(b)に示すようにアダプタ300を介してスマートカード310が接続された場合にPCMCIAコントローラ120とスマートカード310との間でデータのやり取りを行う。セレクタ140は、PCMCIAコントローラ120が出力する1ビットのセレクト信号SELの値に基づいてPCMCIAコントローラ120とコネクタ190を接続し、又は、PCMCIAコントローラ120をスマートカードコントローラ130を介してコネクタ190に接続する。
The function of each part constituting the signal conversion unit 105 is as follows. The
フラッシュROM・I/F150は、上述したように、PCカード制御装置100を含むコンピュータシステム1の起動時に、フラッシュROM200から拡張カードであるスマートカード310の識別情報(第1レジスタ(4ビットデータ)及び第2レジスタ(4ビットデータ))、及び、カードの種類(6ビットデータ)についての情報を読み出し、PCカード識別部160内の拡張カードレジスタ182に書き込む。
As described above, the flash ROM • I /
PCカード識別部160は、コネクタ190に差し込まれたカードがPCMCIAにおいて規定される12種類のPCカード、及び、新規に登録された拡張カードの内、何れのカードであるのかを識別し、識別結果をPCMCIAコントローラ120に出力すると共に、当該結果に基づいて特定されるカードの種類(駆動電圧及びバスのビット幅等)を特定する6ビットのカード情報をPCMCIAコントローラ120に出力する。なお、PCカード識別部160の構成及び動作については後に詳しく説明する。
The PC
図3の(a)は、PCMCIAに準拠するPCカード250をコネクタ190に差し込んだ状態を示す図であり、図4の(a)は、拡張カードとしてスマートカード310をアダプタ300を介してコネクタ190に差し込んだ状態を示す図である。PCカード250及びアダプタ300が短辺側の側面に備えるメス型のコネクタには、PCカード制御装置100のオス型のコネクタ190が備える第1及び第2のカード検出信号(PCMCIAにおいてCD1#及びCD2#と定義されており、以下、単にCD1#及びCD2#という)の流れるピンを受け入れる第1接続穴251及び第2接続穴252、並びに、第1及び第2の電圧選択信号(PCMCIAにおいてVS1#及びVS2#と定義されており、以下、単にVS1#及びVS2#という)の流れるピンを受け入れる第3接続穴253及び第4接続穴254が用意されている。
3A is a diagram showing a state in which a
なお、PCカード250及びアダプタ300には、実際には、図2の(a)及び(b)に示すように、コネクタ190が備える多くのピンを受け入れる接続穴が設けられているが、図3の(a)及び図4の(a)では、PCカード制御装置100、PCカード250及びアダプタ300の内部の配線を解りやすく示すため、上記第1接続穴251〜第4接続穴254とこれらに接続される配線のみを示す。
The
PCカード250及びアダプタ300の内部において、上記第1接続穴251及び第2接続穴252に接続される配線は、接地されているか、または、上記第3接続穴253及び第4接続穴254の少なくとも一方に接続されている。また、PCカード制御装置100が備えるオス型コネクタ190のピンの内、上記第1接続穴251及び第2接続穴252に挿入するピンの電位は、共にPCカード制御装置100側に備えるプルアップ回路C1及びC2によりHighレベルにプルアップされている。PCカード制御装置100にPCカード250又はアダプタ300が接続されると、CD1#及びCD2#の電位がLowレベルに低下する。PCカード識別部160は、このCD1#及びCD2#の電位変化からPCカード250又はアダプタ300の接続を検知してカードの識別処理を行うと共に、カードが接続されたことを表すカード検出信号をPCMCIAコントローラ120、PCIインターフェース110及びPCIバス50を介してCPU10に出力する。
Inside the
PCカード識別部160は、CD1#及びCD2#のLowレベルへの切り換りによりコネクタ190へのPCカード250又はアダプタ300の接続の検知に応じて、VS1#の電位をHighレベルにした時のCD2#,CD1#,VS2#及びVS1#の状態、並びに、VS2#の電位をHighレベルにした時のCD2#,CD1#,VS2#及びVS1#の状態を検出し、これらの信号の状態を表す4ビット+4ビットの合計8ビットデータ(識別情報)と、図5に示すPCMCIAに準拠したカードテーブル183に定義されているNo.1〜No.12までの12枚種類のPCカードについての8ビットデータ(識別情報)及び拡張カードレジスタ182に格納されている8ビットデータ(識別情報)とを比較して該当するカードの種類を特定する。
When the PC
図3の(b)は、PCカード制御装置100にPCカード250を接続した場合のCD2#,CD1#,VS2#及びCS1#の状態を示すタイムチャートであり、図4の(b)は、PCカード制御装置100にアダプタ300を介してスマートカード310を接続した場合のCD2#,CD1#,VS2#及びVS1#の状態を示すタイムチャートである。
FIG. 3B is a time chart showing the states of CD2 #, CD1 #, VS2 #, and CS1 # when the
図示するように、PCカード制御装置100にPCカード250又はアダプタ300を接続すると、CD1#及びCD2#のレベルがLowレベルに切り換る。PCカード制御装置100のPCカード識別部160は、このCD1#及びCD2#のレベルの変化からPCカード250又はアダプタ300の装着を検知してVS1#の電位を約1msの期間、Highレベルにする。PCカード識別部160が備える第1レジスタ180(図1を参照)は、VS1#の電位をHighレベルにしてから約0.8ms後のタイミングでCD2#,CD1#,VS2#及びVS1#の状態をラッチする。
As shown in the figure, when the
次に、PCカード識別部160は、VS2#の電位を約1msの期間、Highレベルにする。PCカード識別部160が備える第2レジスタ181(図1を参照)は、VS2#の電位をHighレベルにしてから約0.8ms後のタイミングでCD2#,CD1#,VS2#及びVS1#の状態をラッチする。
Next, the PC
図3の(a)に示すPCカード250の場合、第1レジスタ180には、“0000”がラッチされ、第2レジスタ181には、“1010”がラッチされる。以下に説明するように、PCカード識別部160は、図5に示すカードテーブル183(図1にも図示してある)を参照して、当該PCカード250がカードバスであって、3.3V又はX.XVで駆動されるNo.7のカードに該当することを認識する。なお、上記カードバスであって、3.3V又はX.XVで駆動されるといったカードの種類についての情報は、カードテーブルに予め用意されている6ビットのデータで定義される。この6ビットデータは、上位ビットから順に、16ビットカードであるのか否か、32ビットカードであるのか否か、駆動電圧が5Vであるか否か、駆動電圧が3.3Vであるか否か、駆動電圧がX.XVであるか否か、駆動電圧がY.YVであるか否かをそれぞれ表す。PCカード識別部160は、当該No.7のカードの種類を表す6ビットのデータをカード情報として、PCIバス50を介してCPU10に出力する。
In the case of the
一方、図4の(a)に示すスマートカードアダプタ300の場合、第1レジスタ180には、“0001”がラッチされ、第2レジスタ181には、“1110”がラッチされる。当該アダプタ300は、図5に示すカードテーブル183には定義されていない。以下に説明するように、PCカード識別部160では、拡張カードレジスタ182に“0001”と“1110”を1つにまとめた8ビットデータ“0011110”を識別情報として用意すると共に、スマートカード310の種類を表す6ビットデータ(カード情報)を用意しておくことで、上記アダプタ300を認識すると共に、カードの種類を特定する6ビットデータを、カード情報としてPCIバス50を介してCPU10に出力する。
On the other hand, in the case of the smart card adapter 300 shown in FIG. 4A, “0001” is latched in the
図6は、図5に示したカードテーブル183に示されている第1接続穴251〜第4接続穴254の接続パターン以外に考え得る接続パターン及び当該接続パターン時にVS1#及びVS2#を個々にHighレベルに切り換えた時に第1レジスタ180及び第2レジスタ181にラッチされる各4ビット、合計8ビットのデータを示す図表である。PCカード識別部160の拡張カードレジスタ182には、第1レジスタ180及び第2レジスタ181に得られる各4ビットのデータとして、図6に示す6つのパターンの内の何れか1つのデータが格納される。拡張カードレジスタ182には、更に、当該拡張カードの種類(バスのビット幅や駆動電圧)を特定する6ビットのデータが格納される。
FIG. 6 shows possible connection patterns other than the connection patterns of the
図7は、PCカード識別部160の構成を示す図である。PCカード識別部160は、大きく分けると、コネクタ190に接続されたカードの識別情報(8ビットデータ)を第1及び第2レジスタ180,181に取得する識別情報取得部Dと、当該識別情報取得部Dにおいて取得された識別情報と、第1記録部であるカードテーブル183及び第2記録部である拡張カードレジスタ182に記録されている識別情報と比較し、比較結果を出力する比較器185と、上記比較結果に基づいてカードの種類を特定するカード情報(6ビットデータ)を検出してCPU10に出力するカード情報検出部184とで構成される。
FIG. 7 is a diagram illustrating a configuration of the PC
識別情報取得部D内において、CD2#の入力される端子161の電位は、電源Vcc及び抵抗162で成るプルアップ回路C2によりHighレベルにプルアップされており、CD1#の入力される端子164の電位は、電源Vcc及び抵抗165で成るプルアップ回路C1によりHighレベルにプルアップされている。端子161及び端子164に入力されるCD2#及びCD1#は、それぞれバッファ回路163及び166を介して2入力ORゲート167に入力される。
In the identification information acquisition unit D, the potential of the terminal 161 to which CD2 # is input is pulled up to a high level by the pull-up circuit C2 including the power source Vcc and the
ORゲート167の出力は、D−F/F(ディレイ型フリップフロップ)168に入力されている。D−F/F168の出力は、次段のD−F/F169に入力されている。当該D−F/F169の反転出力端子、D−F/F168の出力、及び、以下に説明するタイマー171の始動と共にHighレベルに切り換るTIM信号線が、3入力のORゲート170の各信号入力端子に接続されている。ORゲート170の出力端子は、タイマー171のスタート信号ST#の入力端子に接続されている。後に説明するようにコネクタ190にPCカード250又はスマートカード310を装着したアダプタ300が挿入されてCD1#及びCD2#の電位がHighレベルからLowレベルに切り換ると、ORゲート170は、一時的にLowレベルの信号をスタート信号ST#として出力する。なお、当該スタート信号は、カード検出信号としてCPU10にも出力される。
The output of the
タイマー171は、上記Lowレベルのスタート信号ST#を受けることで始動し、後に説明するタイミングで所定のレベルの信号T1,T2,L1#,L2#を出力する。 The timer 171 starts upon receiving the low level start signal ST #, and outputs signals T1, T2, L1 #, and L2 # of predetermined levels at a timing described later.
VS2#の入力される端子172は、抵抗173を介して電源Vccに接続されると共に、半導体スイッチであるPチャンネル型のMOSFET175、及びバッファ回路174に接続される。MOSFET175のゲートには、タイマー171の出力するT2信号が入力されている。
A terminal 172 to which VS2 # is input is connected to a power supply Vcc through a
同様に、VS1#の入力される端子176は、抵抗177を介して電源Vccに接続されると共に、半導体スイッチであるPチャンネル型のMOSFET179、及び、バッファ回路178に接続されている。MOSFET179のゲートには、タイマー171の出力する信号T1が入力されている。
Similarly, a terminal 176 to which VS1 # is input is connected to a power supply Vcc via a
バッファ回路163,166,174及び178から出力される4つの信号CD2#,CD1#,VS2#及びVS1#は、第1レジスタ180及び第2レジスタ181にそれぞれ入力される。第1レジスタ180のラッチ端子180aには、タイマー171の出力する信号L1#が入力される。第1レジスタ180では、Lowレベルの信号L1#の入力に応じてCD2#,CD1#,VS2#及びVS1#の状態を記録する。第2レジスタ181のラッチ端子181aには、タイマー171の出力する信号L2#が入力される。第2レジスタ181では、Lowレベルの信号L2#の入力に応じてCD2#,CD1#,VS2#及びVS1#の状態を記録する。
The four signals CD2 #, CD1 #, VS2 #, and VS1 # output from the
図8は、CD1#,CD2#,タイマー171に入力される信号ST#、及び、タイマー171が出力する信号T1,T2,L1#,L2#を示すタイムチャートである。タイマー171は、CD1#及びCD2#の電位がHighレベルからLowレベルに下がり、ORゲート170からLowレベルのスタート信号ST#が入力された時に始動する。
FIG. 8 is a time chart showing CD1 #, CD2 #, signal ST # input to timer 171 and signals T1, T2, L1 #, L2 # output from timer 171. The timer 171 starts when the potential of CD1 # and CD2 # falls from the High level to the Low level and the Low level start signal ST # is input from the
タイマー171の始動に伴い信号TIMがHighレベルに切り換る。これによりORゲート170の出力する信号ST#がHighレベルに切り換る。タイマー171は、まず、信号T1をHighレベルに切り換える。これにより半導体スイッチ179がオフに切り換り、VS1#にHighレベルの信号が出力される。約0.8ms後、タイマー171は、Lowパルスの信号L1#を出力し、バッファ回路163,166,174,178の出力する信号の状態を第1レジスタ180に記憶させる。この後、タイマー171は、信号T1の代わりにT2をHighレベルに切り換える。これにより、半導体スイッチ175がオフに切り換り、VS2#にHighレベルの信号が出力される。約0.8ms後、タイマー171は、Lowパルスの信号L2#を出力し、バッファ回路163,166,173,178の出力する信号の状態を第2レジスタ181に記憶させる。
As the timer 171 starts, the signal TIM switches to a high level. As a result, the signal ST # output from the
なお、VS1#及びVS2#にHighレベルの信号を出力しても、コネクタ190に挿入されたPCカード250又はスマートカード310を装着したアダプタ300内でVS1#及びVS2#が接地されている場合には、VS1#及びVS2#の見かけ上の電位状態はLowになる。
Even when a high level signal is output to VS1 # and VS2 #, when VS1 # and VS2 # are grounded in the adapter 300 to which the
以上に説明するタイミングでタイマー171が所定レベルの信号を出力することでレジスタ180及び181にそれぞれCD2#,CD1#,VS2#及びVS1#の電位状態が格納される。
When the timer 171 outputs a signal of a predetermined level at the timing described above, the potential states of CD2 #, CD1 #, VS2 #, and VS1 # are stored in the
ここで、再び図7を参照する。拡張カードレジスタ182には、拡張カードとしてスマートカード310を装着したアダプタ300の接続時に特定される第1レジスタ180及び第2レジスタ181の値を示す8ビットデータ(識別情報)と、当該カードの種類(バスのビット幅や駆動電圧)を特定する6ビットのデータ(カード情報)が格納されている。拡張カードレジスタ182は、上記8ビットのデータ(識別情報)を比較器185に出力すると共に、上記種類を特定する6ビットのデータ(カード情報)をカード情報検出部184に出力する。
Here, FIG. 7 will be referred to again. The
また、カードテーブル183には、図5に示したカードテーブル183に定義されている合計12種類のカードについての第1レジスタ180及び第2レジスタ181の値を示す8ビットデータ(識別情報)、並びに、カードの種類を特定する6ビットデータ(カード情報)が格納されている。カードテーブル183は、上記12枚分のPCカードの8ビットデータを比較器185にパラレル出力すると共に、上記12枚分のPCカードの6ビットデータをカード情報検出部184に出力する。
The card table 183 includes 8-bit data (identification information) indicating the values of the
比較器185は、第1レジスタ180及び第2レジスタ181に格納された4ビット+4ビットの合計8ビットデータと、拡張カードレジスタ182及びカードテーブル183からパラレルに出力される合計13枚分のカードの8ビットデータとの比較を行い、各カード毎に一致の場合がHighレベルで不一致の場合がLowレベルの1ビットの合計13ビット分の比較結果信号を出力する。当該比較結果信号は、PCMCIAコントローラ120(図1を参照)に出力されると共に、カード情報検出部184に出力される。
The comparator 185 includes a total of 8-bit data of 4 bits + 4 bits stored in the
カード情報検出部184は、セレクタ184a及び6ビット分のレジスタ184bで構成されている。セレクタ184aには、拡張カードレジスタ182に1枚分、及び、カードテーブル183に12枚分が格納されている合計13枚分のカードの種類(バスのビット幅や対応する駆動電圧)を表す6ビットデータがパラレルに入力される。そして、比較器185から出力される比較結果信号がHighレベルのカードについて、当該カードの種類を表す6ビットデータをレジスタ184bに出力する。レジスタ184bのラッチ端子には、タイマー171から信号TIMを反転した信号が入力されている。レジスタ184bは、タイマー171がパルス状の信号L2#を出力し、第2レジスタ181にCD2#,CD1#,VS2#及びVS1#が格納された後、信号TIMがLowレベルに切り換ると同時にセレクタ184aから出力される6ビットのデータをラッチする。
The card
なお、レジスタ184bにラッチされた6ビットデータは、上位ビットから順に、16ビットカードであるのか否か、32ビットカードであるのか否か、駆動電圧が5Vであるか否か、駆動電圧が3.3Vであるか否か、駆動電圧がX.XVであるか否か、駆動電圧がY.YVであるか否かをそれぞれ表す。該当する場合には”1”、該当しない場合には”0”に設定される。
The 6-bit data latched in the
レジスタ184bは、ラッチした6ビットデータを3ステートバッファ191に出力する。3ステートバッファ191は、CPU10からのLowレベルのカード情報要求信号に応じて、上記6ビットデータをコネクタ190に接続されたカードの種類を表すデータとして、PCMCIAコントローラ120、PCIインターフェース110、及び、PCIバス50を介してCPU10に出力する。CPU10は、受け取ったカードの種類についての情報に基づいて、コネクタ190に接続されたカードとのデータのやり取りを行う。
The
図9は、PCMCIAコントローラ120の一部の構成を示す図である。図示するように、PCカード識別部160から入力される比較結果の内、レジスタ180,181に格納された各4ビット合計8ビットのデータと拡張カードレジスタ182に格納されている8ビットデータとの比較結果を2個のCMOSインバータを直列に接続して成るバッファ回路121を介して出力する。即ち、第1レジスタ180及び第2レジスタ181に格納された8ビットデータと拡張カードレジスタ182に格納されている8ビットデータとが一致した場合には、Highレベルの信号がセレクト信号SELとして出力される。他方、不一致の場合には、Lowレベルの信号がセレクト信号SELとして出力される。
FIG. 9 is a diagram illustrating a partial configuration of the
ここで、再び図1を参照する。PCMCIAコントローラ120からHighレベルのセレクト信号SELを受けたセレクタ140は、接続されたカードがスマートカードであると判断してスマートカードコントローラ130とコネクタ190とを接続する。PCMCIAコントローラ120は、上記スマートカードコントローラ130を介することで、スマートカード310を認識することができる。
Here, FIG. 1 will be referred to again. Upon receiving the high level select signal SEL from the
また、セレクタ140は、PCMCIAコントローラ120からLowレベルのセレクト信号SELを受けた場合、接続されたカードがPCカードであると判断し、PCMCIAコントローラ120とコネクタ190を直接接続する。
When the
図10は、CPU10の実行するPCカード制御装置100の第1制御プログラムのフローチャートである。まず、所定の操作部13の操作によりディスプレイ14に図11の(a)に示すPCカードの制御画面400を表示する(ステップS1)。制御画面に表示される新規カード設定ボタン401が、テンキー及びマウスで成る操作部13の操作によってユーザにより選択された場合(ステップS2でYES)、ディスプレイ14に図11の(b)に示す入力画面410を表示する(ステップS3)。
FIG. 10 is a flowchart of the first control program of the PC
ここで、ユーザは、図6に示した表の中から、未使用の第1レジスタ及び第2レジスタのデータの組合せを選択し、選択したデータを第1レジスタの4ビットデータの入力ボックス411、及び、第2レジスタの4ビットデータのボックス412に入力し、更に、カードの種類を特定する6ビットのデータ(カード情報)の入力ボックス413にそれぞれ必要なデータを入力した後に、完了ボタン414を選択する。なお、上記カードの種類を特定する6ビットのデータは、上位ビットから順に、当該拡張カードが16ビットカードであるのか否か、32ビットカードであるのか否か、駆動電圧が5Vであるか否か、駆動電圧が3.3Vであるか否か、駆動電圧がX.XVであるか否か、駆動電圧がY.YVであるか否かを表し、それぞれ該当する場合に“1”に設定される。
Here, the user selects an unused combination of data in the first register and the second register from the table shown in FIG. 6, and selects the selected data in the 4-bit
CPU10は、ユーザによる操作部13の操作により完了ボタン414が選択されると(ステップS4でYES)、PCIバス50、PCカード制御装置100内のPCIインターフェース110、フラッシュROM・I/F150を介してフラッシュROM200内に上記3つの入力ボックス411、412、413に入力された4ビット+4ビット+6ビットの合計14ビットのデータを書き込む(ステップS5)。なお、既に14ビットのデータが書き込まれている場合には、今回入力された14ビットのデータに更新する。また、新規カード設定ボタン401の選択が検出されなかった場合には(ステップS2でNO)、上記ステップS3〜S5の処理はスキップする。その他の処理を実行した後に(ステップS6)、ステップS1に戻る。
When the
図12は、CPUが電源投入御から常時実行する第2制御プログラムのフローチャートである。PCカード制御装置100のカード識別部160からカード検知信号が送られてきた場合(ステップS7でYES)、上記カード識別部のカード情報検出部184にカード情報要求信号を出力する(ステップS8)。上記カード情報要求信号に応じてカード情報検出部184から出力されるカード情報からカードの種類を認識し(ステップS9)、必要なその他の処理を行う(ステップS10)。カード検出信号が送られてきていない場合には(ステップS7でNO)カード検出信号が送られてくるまでステップS7で待機する。
FIG. 12 is a flowchart of the second control program that the CPU always executes after the power is turned on. When a card detection signal is sent from the
上記構成のPCカード制御装置100をPCIバス50に接続して用意すると共に、上記PCカードの制御プログラムを実行することで、図5に示したカードテーブル183に定義される12枚のPCカード以外の新たな種類の拡張カードをCPU10に認識させることができる。
The PC
(2)変形例
以下、実施の形態1に係るPCカード制御装置100が備えるPCカード識別部160の変形例であるPCカード識別部160aについて説明する。
図13は、PCカード識別部160aの構成を示す図である。図中、PCカード識別部160と同じ構成物には同じ参照番号を付して表し、ここでの重複した説明は省く。PCカード識別部160が全てハードウェア回路で実現されるのに対し、PCカード識別部160aは、ソフトウェア処理によりPCカード及び拡張カードの検出を行うことを特徴とする。より具体的には、PCカード識別部160aでは、PCカード識別部160においてCD1#及びCD2#の電位の低下に基づくコネクタ190へのカードの接続の検知、カード検出信号のCPU10への出力、タイマー171、比較器185、及び、カード情報検出部184の実行する処理を制御部186が演算処理により行うことを特徴とする。この結果、PCカード識別部160aは、カード情報検出部184及び比較器185を備えず、代わりに、カード情報メモリ189を備える。
(2) Modified Example Hereinafter, a PC card identifying unit 160a that is a modified example of the PC
FIG. 13 is a diagram illustrating a configuration of the PC card identification unit 160a. In the figure, the same components as those of the PC
図14は、制御部186が実行する演算処理のフローチャートである。バッファ163及び166から出力されるCD2#及びCD1#がLowレベルに成るのを待機し(ステップS20でNO)、Lowレベルに成った時(ステップS201でYES)、コネクタ190にカードが接続されたと判断し、カード検出信号をCPU10に送信した後(ステップS21)、以下の処理を実行する。即ち、Highレベルの信号T1をPチャンネル型MOSFET179に出力してVS1#に1msの間Highレベルの信号を出力する。当該Highレベルの信号の出力開始より約0.8ms後に第1レジスタ180のラッチ端子180aにラッチ信号L1#を出力し、この時にバッファ163,166,174,178から出力されるCD2#,CD1#,VS2#,VS1#のデータを保持させる(ステップS22)。
FIG. 14 is a flowchart of calculation processing executed by the
次に、Highレベルの信号T2をPチャンネル型MOSFET175に出力してVS2#に1msの間Highレベルの信号を出力する。当該Highレベルの信号の出力を開始してから、約0.8ms後に第2レジスタ181のラッチ端子181aにラッチ信号L2#を出力し、この時のバッファ163,166,174,178から出力されるCD2#,CD1#,VS2#,VS1#のデータを保持させる(ステップS23)。
Next, a high-level signal T2 is output to the P-channel MOSFET 175, and a high-level signal is output to VS2 # for 1 ms. The latch signal L2 # is output to the
第1レジスタ180及び第2レジスタ181に保持された合計8ビットのデータと、拡張カードレジスタ182に記憶されている1枚分の8ビットデータとカードテーブル183に記憶されている12枚分の8ビットデータとを比較する(ステップS24)。合計で13枚分のデータとの比較結果をPCMCIAコントローラ120に出力する(ステップS25)。更に、一致したカードについての情報(6ビットデータ)をカード情報メモリ189から読み出して特定し(ステップS26)、CPU10からカード情報要求信号を待機する(ステップS27でNO)。カード情報要求信号を受けた場合(ステップS27でYES)、上記ステップS26において特定したカード情報をCPU10に出力し(ステップS28)、処理を終了する。
A total of 8 bits of data held in the
上記構成のPCカード識別部160aを用意することで、回路構成を簡単にすることができ、装置の小型化を図ることができる。 By preparing the PC card identification unit 160a having the above configuration, the circuit configuration can be simplified, and the apparatus can be downsized.
(3)実施の形態2
以下、実施の形態2に係るPCカード制御装置500について説明する。実施の形態1に係るPCカード制御装置100が拡張カードを1枚しか追加できなかったのに対して、PCカード制御装置500は、拡張カードを3枚まで追加できることを特徴とする。図15は、PCカード制御装置500の構成を示す図である。図中、実施の形態1に係るPCカード制御装置100と同じ構成物には同じ参照番号を付して、重複した説明は省く。
(3)
Hereinafter, the PC
より具体的には、図1に示すPCカード制御装置100と比較すれば明らかなように、信号変換部105に対応する信号変換部505において、PCMCIAコントローラ510とセレクタ550の間に第1カードコントローラ520、第2カードコントローラ530、第3カードコントローラ540を備える。ここで、第1カード〜第3カードとは、例えば、スマートメディア(株式会社東芝の登録商標)、SDカード、メモリースティック(株式会社ソニーの登録商標)のことをいう。後に説明するように、PICMCIAコントローラ510は、PCカード識別部560の比較結果に基づいて2ビットのセレクト信号SELを生成する。セレクタ550は、上記2ビットのセレクト信号に基づいてPCMCIAコントローラ510とコネクタ190を直接接続する場合、第1カードコントローラ520を介して接続する場合、第2カードコントローラを介して接続する場合、第3カードコントローラを介して接続する場合の4つの場合から1つを選択する。
More specifically, as apparent from comparison with the PC
PCカード識別部560は、コネクタ190に接続されたカードから上記実施の形態1のPCカード制御装置100と同様にして得られる第1及び第2レジスタの合計8ビットのデータ(識別情報)と、拡張カードレジスタ570に記憶されている3枚分のカードの8ビットデータ(識別情報)及びカードメモリ183に記憶されている12枚分のカードの8ビットデータ(識別情報)とを比較し、比較結果をPCMCIAコントローラ510に出力すると共に、該当するカードの種類を表す6ビットデータ(カード情報)を特定し、当該6ビットデータ(カード情報)をPCMCIAコントローラ510、PCIインターフェース110及びPCIバス50を介してCPU10に出力する。
The PC
なお、CPU10は、上述した実施の形態1の欄で説明したPCカード制御装置100の第1及び第2制御プログラム(図10及び図12を参照)と同じ内容の処理を実行する。図10に示した第1制御プログラムにおいて、本実施形態2に対応して変更する箇所は、新規の第1、第2レジスタ、カード情報レジスタの入力受付処理(ステップS3)において3枚分の拡張カードのデータを受付ける点だけである。一方、図12に示した第2制御プログラムについては、変更点はない。即ち、PCカード識別部560からカード検出信号を受け取った場合には(ステップS7でYES)、ステップS8及びS9の処理を実行し、コネクタ190に接続されたカードの種類を認識する。
The
図16は、PCカード識別部560の構成を示す図である。実施の形態1のPCカード制御装置100が備えていたPCカード識別部160と同じ構成物には同じ参照番号を付して表し、重複した説明は省く。比較器590は、第1レジスタ180及び第2レジスタ181に記憶された合計8ビットのデータ(識別情報)と、拡張カードレジスタ570に記憶されている3枚分のカードの8ビットデータ(識別情報)及びカードテーブル183に記憶されている12枚分のカードの8ビットデータ(識別情報)を並列に同時に比較し、比較結果をPCMCIAコントローラ510に出力すると共に、カード情報検出部580に出力する。
FIG. 16 is a diagram illustrating a configuration of the PC
カード情報検出部580は、セレクタ580a及び6ビット分のレジスタ580bで構成されている。セレクタ580aには、拡張カードレジスタ570に3枚分、及び、カードテーブル183に12枚分が格納されている合計15枚分のカードの種類(バスのビット幅や対応する駆動電圧)を特定する6ビットデータ(カード情報)がパラレルに入力される。そして、比較器590から出力される比較結果信号がHighレベルのカードについて上記カードの種類を表す6ビットデータをレジスタ580bに出力する。レジスタ580bのイネーブル端子には、タイマー171から信号TIMを反転した信号が入力されている。レジスタ580bは、タイマー171がパルス状の信号L2#を出力し、第2レジスタ181にCD2#,CD1#,VS1#及びVS2#が格納された後、信号TIMがLowレベルに切り換ると同時に、セレクタ580aから出力される6ビットデータをコネクタ190に接続されたカードのカード情報として保存する。
The card
なお、レジスタ580bにラッチされた6ビットのデータは、上位ビットから順に、16ビットカードであるのか否か、32ビットカードであるのか否か、駆動電圧が5Vであるか否か、駆動電圧が3.3Vであるか否か、駆動電圧がX.XVであるか否か、駆動電圧がY.YVであるか否かをそれぞれ該当する場合に“1”で表す。
The 6-bit data latched in the
レジスタ580bは、ラッチした6ビットデータを3ステートバッファ191に出力する。3ステートバッファ191は、CPU10からLowレベルのカード情報要求信号に応じて、上記6ビットデータをコネクタ190に接続されたカードの種類を表すデータ(カード情報)として、PCMCIAコントローラ510、PCIインターフェース110、及び、PCIバス50を介してCPU10に出力する。CPU10は、受け取った6ビットデータ(カード情報)の内容に基づいて、コネクタ190に接続されたカードとのデータのやり取りを行う。
The
図17は、PCMCIAコントローラ510の一部の構成を示す図である。図示するように、PCカード識別部560から入力される比較結果の内、レジスタ180,181に格納された各4ビット合計8ビットのデータ(識別情報)と拡張カードレジスタ570に格納されている3枚分の8ビットデータ(識別情報)との比較結果を2つのORゲート511,512を用いて2ビットのセレクト信号SELとして出力する。具体的には、1枚目の比較結果の1ビットデータと3枚目の比較結果の1ビットデータとの論理和をORゲート512で求め、当該ORゲート512の出力を2ビットのセレクト信号の下位ビットのデータとして出力する。2枚目の比較結果の1ビットデータと3枚目の比較結果の1ビットデータの論理和をORゲート511で求め、当該ORゲート511の出力を2ビットのセレクト信号SELの上位ビットのデータとして出力する。即ち、第1レジスタ180及び第2レジスタ181に格納された8ビットデータと拡張カードレジスタ182に格納されている8ビットデータとが一致した場合には、Highレベルの信号がセレクト信号SELとして出力される。他方、不一致の場合には、Lowレベルの信号がセレクト信号SELとして出力される。
FIG. 17 is a diagram showing a partial configuration of the
ここで、再び図15を参照する。PCMCIAコントローラ510から“00”のセレクト信号SELを受けたセレクタ550は、接続されたカードがPCMCIAに準拠したPCカードであると判断してPCMCIAコントローラ510とコネクタ190を直接接続する。また、“01”のセレクト信号SELを受けた場合、第1カードであると判断して、第1カードコントローラ520とコネクタ190とを接続する。PCMCIAコントローラ510は、上記第1カードコントローラ520を介することで、第1カードを認識することができる。同様に、“10”、“11”のセレクト信号SELを受けた場合、第2、第3カードであると判断して、第2カードコントローラ520、第3カードコントローラ530とコネクタ190とを接続する。PCMCIAコントローラ510は、上記第2カードコントローラ530又は第3カードコントローラ540を介することで、第2カード又は第3カードを認識することができる。
Here, FIG. 15 will be referred to again. Upon receiving the “00” select signal SEL from the
以上に説明したように、PCカード制御装置100及び500によれば、特別なカードの識別アルゴリズムを用意せず、従来より知られているPCMCIAに準拠するカード識別手法を用いつつも、新しい種類の拡張カードの認識をおこなうことができる。更には、既に認識していた拡張カードの種類が変更又は修正された場合(例えば、駆動電圧が5Vから3.3Vに改良された場合)に、フラッシュROM200の内容を書き換えるだけで柔軟に対応することができる。
As described above, according to the PC
なお、上記実施の形態1のPCカード制御装置100及び実施の形態2のPCカード制御装置500では、拡張カードレジスタに設定する第1レジスタ及び第2レジスタの合計8ビットのデータの値を、図6に示すようなPCMCIAにおいて未定義の組合せのものを用いることとしたが、例えば、図5に示すカードテーブルにおけるNo.5及びNo.9のようにカードの種類が未定義となっている予備の組合せについては、これを利用することとしてもよい。更には、上記以外の既に定義されている組合せについても改めて定義することができるようにすることも考えられる。これらの場合、カードテーブル及び拡張カードレジスタの両方に該当するカードが検出されることになるが、例えば、実施の形態1のPCカード制御装置100の備えるPCMCIAコントローラ120が実行するように、拡張カードレジスタについての比較結果だけに基づいて、セレクト信号SELを生成するようにすれば良い。
In the PC
1 コンピュータシステム、 10 CPU、11 ROM、
12 RAM、13 操作部、 14 ディスプレイ、 15 HD、 100,500 PCカード制御装置、 130 スマートカードコントローラ、 150 フラッシュROM・I/F、 160,160a,560 PCカード識別部、 180 第1レジスタ、 181 第2レジスタ、 182,570 拡張カードレジスタ、183 カードテーブル、 184,580 カード情報検出部、 190 PCカード用コネクタ、 200 フラッシュROM、 250 PCカード、 300 スマートカード用アダプタ、 310 スマートカード、 520 第1カードコントローラ、 530 第2カードコントローラ、 540 第3カードコントローラ。
1 computer system, 10 CPU, 11 ROM,
12 RAM, 13 operation unit, 14 display, 15 HD, 100,500 PC card control device, 130 smart card controller, 150 flash ROM I / F, 160, 160a, 560 PC card identification unit, 180 first register, 181 2nd register, 182,570 expansion card register, 183 card table, 184,580 card information detection unit, 190 PC card connector, 200 flash ROM, 250 PC card, 300 smart card adapter, 310 smart card, 520 1st Card controller, 530 Second card controller, 540 Third card controller.
Claims (9)
上記規格に準拠する1以上の種類のPCカードについてのカード情報と共に、当該各カード情報に対応した識別情報が記録された第1記録部と、
上記規格に準拠していない1以上の種類の拡張カードについてのカード情報と共に、当該カード情報に対応した識別情報が記録された第2記録部とを有し、
上記接続されたカードについて上記識別情報取得部により取得される識別情報と、第1記録部及び第2記録部に記録されている識別情報の内の少なくとも第2記録部に記録されている識別情報とから接続されているカードの種類を識別し、当該識別結果と共に接続されているカードについてのカード情報を出力するPCカード識別部とを備えたことを特徴とするPCカード制御装置。 An identification information acquisition unit for acquiring identification information from a connected card in accordance with a standard,
A first recording unit in which identification information corresponding to each card information is recorded together with card information about one or more types of PC cards conforming to the above-mentioned standard;
A second recording unit in which identification information corresponding to the card information is recorded together with card information about one or more types of expansion cards that do not comply with the standard,
The identification information acquired by the identification information acquisition unit for the connected card and the identification information recorded in at least the second recording unit among the identification information recorded in the first recording unit and the second recording unit A PC card control device comprising: a PC card identifying unit that identifies a type of a card connected to the card and outputs card information about the connected card together with the identification result.
上記PCカード識別部から出力される識別結果に基づいて、接続されたカードと上記規格に準拠した形式での信号の交信を行う回線を確立する信号変換部とを備えることを特徴とするPCカード制御装置。 In the PC card control device according to claim 1,
A PC card comprising: a connected card and a signal conversion unit for establishing a line for signal communication in a format compliant with the standard based on the identification result output from the PC card identification unit Control device.
上記規格がPCMCIAであり、
上記第2記録部に記録する拡張カードの識別情報は、PCMCIAに準拠するPCカードが備える第1及び第2カード検出信号線と第1及び第2電圧選択信号線を、(1)第1カード検出信号線を第1の電圧選択信号線に接続すると共に、第2カード検出信号線を第2電圧信号線に接続した場合、(2)第1カード検出信号線を第2電圧選択信号線に接続すると共に、第2カード検出信号線を第1電圧選択信号線に接続した場合、(3)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を接地した場合、(4)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を開放した場合、(5)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を接地した場合、(6)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を開放した場合の何れかの状態に接続した場合に、上記識別情報取得部において取得される情報であるPCカード制御装置。 In the PC card control device according to claim 1 or 2,
The above standard is PCMCIA,
The expansion card identification information recorded in the second recording unit includes the first and second card detection signal lines and the first and second voltage selection signal lines provided in the PC card conforming to PCMCIA. (1) First card When the detection signal line is connected to the first voltage selection signal line and the second card detection signal line is connected to the second voltage signal line, (2) the first card detection signal line is changed to the second voltage selection signal line. When the second card detection signal line is connected to the first voltage selection signal line, (3) both the first and second card detection signal lines are connected to the second voltage selection signal line and the first voltage is connected. When the signal line is grounded, (4) When both the first and second card detection signal lines are connected to the second voltage selection signal line and when the first voltage signal line is opened, (5) First and second Both card detection signal lines are connected to the first voltage selection signal line. In both cases, when the second voltage signal line is grounded, (6) either the first or second card detection signal line is connected to the first voltage selection signal line and the second voltage signal line is opened. A PC card control device that is information acquired by the identification information acquisition unit when connected to a state.
上記PCカード識別部から出力される識別結果に基づいて、接続されたカードと上記規格に準拠した形式での信号の交信を行う回線を確立する信号変換部とを備え、
上記第2記録部に記録されている1以上の種類の拡張カードのカード情報及び識別情報が外部から更新できることを特徴とするPCカード制御装置。 The identification information acquisition unit that acquires identification information from the connected card and the card information about one or more types of PC cards that comply with the standard are recorded together with the identification information obtained by the identification information acquisition unit for the PC card. A first recording unit that stores information, and card information about one or more types of expansion cards that do not conform to the standard, together with the identification information acquired by the identification information acquisition unit for the expansion card. And identifying the type of the connected card based on the identification information acquired by the identification information acquisition unit for the connected card and at least the identification information recorded in the second recording unit. A PC card identification unit that outputs card information about the connected card together with the identification result;
Based on the identification result output from the PC card identification unit, comprising a connected card and a signal conversion unit for establishing a line for signal communication in a format compliant with the standard,
A PC card control device, wherein card information and identification information of one or more types of expansion cards recorded in the second recording unit can be updated from the outside.
上記規格がPCMCIA規格であるPCカード制御装置。 The PC card control device according to claim 4, wherein
A PC card control device in which the standard is the PCMCIA standard.
上記第2記録部に記録する拡張カードの識別情報は、PCMCIAに準拠するPCカードが備える第1及び第2カード検出信号線と第1及び第2電圧選択信号線を、(1)第1カード検出信号線を第1の電圧選択信号線に接続すると共に、第2カード検出信号線を第2電圧信号線に接続した場合、(2)第1カード検出信号線を第2電圧選択信号線に接続すると共に、第2カード検出信号線を第1電圧選択信号線に接続した場合、(3)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を接地した場合、(4)第1及び第2カード検出信号線を共に第2電圧選択信号線に接続すると共に、第1電圧信号線を開放した場合、(5)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を接地した場合、(6)第1及び第2カード検出信号線を共に第1電圧選択信号線に接続すると共に、第2電圧信号線を開放した場合の何れかの状態に接続した場合に、上記識別情報取得部において取得される情報であるPCカード制御装置。 In the PC card control device according to claim 5,
The expansion card identification information recorded in the second recording unit includes the first and second card detection signal lines and the first and second voltage selection signal lines provided in the PC card conforming to PCMCIA. (1) First card When the detection signal line is connected to the first voltage selection signal line and the second card detection signal line is connected to the second voltage signal line, (2) the first card detection signal line is changed to the second voltage selection signal line. When the second card detection signal line is connected to the first voltage selection signal line, (3) both the first and second card detection signal lines are connected to the second voltage selection signal line and the first voltage is connected. When the signal line is grounded, (4) When both the first and second card detection signal lines are connected to the second voltage selection signal line and when the first voltage signal line is opened, (5) First and second Both card detection signal lines are connected to the first voltage selection signal line. In both cases, when the second voltage signal line is grounded, (6) either the first or second card detection signal line is connected to the first voltage selection signal line and the second voltage signal line is opened. A PC card control device that is information acquired by the identification information acquisition unit when connected to a state.
上記PCカード識別部から出力されるカード情報に基づいて接続されたカードの種類を認識する認識手段を備えることを特徴とするコンピュータシステム。 In a computer system provided with the PC card control apparatus in any one of Claims 4-6,
A computer system comprising recognition means for recognizing the type of card connected based on card information output from the PC card identification unit.
上記第2記録部に書きこまれている拡張カードについてのカード情報及び識別情報のデータを更新するデータ更新手段を備えることを特徴とするコンピュータシステム。 In a computer system provided with the PC card control apparatus in any one of Claims 4-6,
A computer system comprising data update means for updating data of card information and identification information about an expansion card written in the second recording unit.
上記出力される識別結果に基づいて、接続されたカードと上記規格に準拠した形式での信号の交信を行う回線を確立して行うPCカード識別方法であって、
上記記録部に記憶されている1以上の種類の拡張カードのカード情報及び識別情報が外部から設定されたものであることを特徴とするPCカード識別方法。 Identification information acquired from the connected card by the identification information acquisition means, and card information about one or more types of PC cards and one or more types of expansion cards that conform to a standard stored in the recording unit in advance Among the identification information acquired by the identification information acquisition means, the type of the connected card is identified based on at least the identification information about the expansion card, and the identification result is output.
A PC card identification method for establishing a line for communicating a signal in a format compliant with the connected card with the connected card based on the output identification result,
A PC card identification method, wherein card information and identification information of one or more types of expansion cards stored in the recording unit are set from the outside.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007293331A JP2008084340A (en) | 2007-11-12 | 2007-11-12 | Pc card controller, computer system with this pc card controller and pc card identification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007293331A JP2008084340A (en) | 2007-11-12 | 2007-11-12 | Pc card controller, computer system with this pc card controller and pc card identification method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002269935A Division JP4113750B2 (en) | 2002-09-17 | 2002-09-17 | PC card control device and computer system including this PC card control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008084340A true JP2008084340A (en) | 2008-04-10 |
Family
ID=39355064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007293331A Pending JP2008084340A (en) | 2007-11-12 | 2007-11-12 | Pc card controller, computer system with this pc card controller and pc card identification method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008084340A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023277865A1 (en) * | 2021-06-28 | 2023-01-05 | Hewlett-Packard Development Company, L.P. | Identification of option cards using multiple voltage inputs |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0756847A (en) * | 1993-08-18 | 1995-03-03 | Toshiba Corp | Portable computer |
JPH08305654A (en) * | 1995-05-10 | 1996-11-22 | Canon Inc | Terminal equipment |
JPH0934595A (en) * | 1995-07-24 | 1997-02-07 | Toshiba Corp | Computer system and card type interface device applied to computer system |
JPH10512067A (en) * | 1994-11-04 | 1998-11-17 | インテル・コーポレーション | PCMCIA automatic configuration PC card |
JP2000284871A (en) * | 1999-03-30 | 2000-10-13 | Matsushita Electric Ind Co Ltd | Information processor having pc card slot which can be switched to exclusive interface |
JP2001273241A (en) * | 2000-03-27 | 2001-10-05 | Fujitsu Kiden Ltd | Information processor, card type adapter and external equipment connecting method |
JP2002073522A (en) * | 2000-08-25 | 2002-03-12 | Ricoh Co Ltd | Memory card bridge |
JP2002157056A (en) * | 2001-07-16 | 2002-05-31 | Jst Mfg Co Ltd | Card connecting adaptor |
JP2006338481A (en) * | 2005-06-03 | 2006-12-14 | Tdk Corp | Memory controller, flash memory system, and method for controlling flash memory |
-
2007
- 2007-11-12 JP JP2007293331A patent/JP2008084340A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0756847A (en) * | 1993-08-18 | 1995-03-03 | Toshiba Corp | Portable computer |
JPH10512067A (en) * | 1994-11-04 | 1998-11-17 | インテル・コーポレーション | PCMCIA automatic configuration PC card |
JPH08305654A (en) * | 1995-05-10 | 1996-11-22 | Canon Inc | Terminal equipment |
JPH0934595A (en) * | 1995-07-24 | 1997-02-07 | Toshiba Corp | Computer system and card type interface device applied to computer system |
JP2000284871A (en) * | 1999-03-30 | 2000-10-13 | Matsushita Electric Ind Co Ltd | Information processor having pc card slot which can be switched to exclusive interface |
JP2001273241A (en) * | 2000-03-27 | 2001-10-05 | Fujitsu Kiden Ltd | Information processor, card type adapter and external equipment connecting method |
JP2002073522A (en) * | 2000-08-25 | 2002-03-12 | Ricoh Co Ltd | Memory card bridge |
JP2002157056A (en) * | 2001-07-16 | 2002-05-31 | Jst Mfg Co Ltd | Card connecting adaptor |
JP2006338481A (en) * | 2005-06-03 | 2006-12-14 | Tdk Corp | Memory controller, flash memory system, and method for controlling flash memory |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023277865A1 (en) * | 2021-06-28 | 2023-01-05 | Hewlett-Packard Development Company, L.P. | Identification of option cards using multiple voltage inputs |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4113750B2 (en) | PC card control device and computer system including this PC card control device | |
US7831794B2 (en) | Memory card and host device thereof | |
US8055824B2 (en) | Interface unit for interfacing host unit and peripheral unit | |
CN104054064B (en) | Flexible port configuration based on interface coupling | |
JP2001319209A (en) | Pc card capable of switching specification mode, and pc card input/output controller | |
US10977206B2 (en) | Data communication device and method for data communication | |
US7930532B2 (en) | Systems and methods for basic input output system (BIOS) management | |
KR20080080799A (en) | Method and device for memory of serial interface | |
US9495315B2 (en) | Information processing device and data communication method | |
KR100441533B1 (en) | Method of identifying peripheral device employed in a semiconductor device | |
JP2008084340A (en) | Pc card controller, computer system with this pc card controller and pc card identification method | |
JP2007293857A (en) | Pc card controller | |
US7895381B2 (en) | Data accessing system | |
CN113535213A (en) | Firmware updating method and system for programmable logic device | |
US10228416B2 (en) | Testing integrated circuit, testing method and electronic device | |
JP3220026B2 (en) | Master / slave automatic setting system | |
JP4578855B2 (en) | Disk drive status recognition method and system | |
CN116028414B (en) | Power consumption control circuit and control device | |
JP2008204104A (en) | Memory card controller and electronic equipment | |
EP4068107A1 (en) | Audio control circuit, host device and associated control method | |
JP4526836B2 (en) | Card recognition system and new card recognition method | |
JPH10198524A (en) | Hard disk controller | |
JP3064267U (en) | Serial identification code reading circuit | |
CN115185478A (en) | Audio control circuit, main device and related control method | |
JP4713122B2 (en) | Card controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100720 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100921 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110208 |