JPH06348423A - Ic card - Google Patents

Ic card

Info

Publication number
JPH06348423A
JPH06348423A JP5165884A JP16588493A JPH06348423A JP H06348423 A JPH06348423 A JP H06348423A JP 5165884 A JP5165884 A JP 5165884A JP 16588493 A JP16588493 A JP 16588493A JP H06348423 A JPH06348423 A JP H06348423A
Authority
JP
Japan
Prior art keywords
card
host
terminals
processor unit
detection 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.)
Granted
Application number
JP5165884A
Other languages
Japanese (ja)
Other versions
JP3331525B2 (en
Inventor
Teruo Ueda
照夫 上田
Hirohisa Aoyanagi
博久 青柳
Hiromasa Kawamura
浩正 川村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
N T T INTELLIGENT TEKUNOROJI K
N T T INTELLIGENT TEKUNOROJI KK
Nippon Telegraph and Telephone Corp
Nakayo Telecommunications Inc
Original Assignee
N T T INTELLIGENT TEKUNOROJI K
N T T INTELLIGENT TEKUNOROJI KK
Nippon Telegraph and Telephone Corp
Nakayo Telecommunications Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by N T T INTELLIGENT TEKUNOROJI K, N T T INTELLIGENT TEKUNOROJI KK, Nippon Telegraph and Telephone Corp, Nakayo Telecommunications Inc filed Critical N T T INTELLIGENT TEKUNOROJI K
Priority to JP16588493A priority Critical patent/JP3331525B2/en
Publication of JPH06348423A publication Critical patent/JPH06348423A/en
Application granted granted Critical
Publication of JP3331525B2 publication Critical patent/JP3331525B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To automatically inform a host of the connection state or the like of an IC card having a processor part at the time of initializing the card. CONSTITUTION:When an IC card 100 connected to a connector 60 is connected to the host 200, the processor part 12 in the card 100 detects that upper bits are in the high level and lower bits are in the low level through I/O ports 22-1, 22-2 directly connected to logic signal I/O terminals 71-1, 71-2, and after completing the execution of initialization, turns the upper bits to the low level. Then the host 200 detects that both the upper and lower bits are in the low level and starts communication with the card 100.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パソコン等のICカー
ドスロットに挿入し、ICカード上のプロセッサ部によ
り通信制御等種々の処理を行うICカードに関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card which is inserted into an IC card slot of a personal computer or the like and which performs various processes such as communication control by a processor section on the IC card.

【0002】[0002]

【従来の技術】図6に、従来のICカードの構成を示
す。100はICカード、200はパソコン等のホスト
である。10は前記ホスト200との情報や信号の授受
に必要な入出力端子やICカード100の接続状態をホ
スト200に通知する複数のカード検出信号端子等を持
つホストインターフェース部で、カード接続時はホスト
200側のカードインタフェース部50と接続される。
これらインタフェース部10,50の代表的な例として
は最近標準化が進んでいるJEIDAのインタフェース
がある(詳しくは日本電子工業振興協会パーソナルコン
ピュータ業務委員会から発行されている「ICメモリカ
ードガイドライン」等の資料を参照)。11−1〜11
−nは、ICカード100の接続状態(カード検出信
号)をホスト200に通知するn個のカード検出信号端
子で、説明の都合上ホストインタフェース部10の他の
信号端子(図示は省略)と特に区別して記述している。
該カード検出信号端子11−1〜11−nはカードイン
タフェース部50の対応するカード検出信号端子51−
1〜51−nにそれぞれ接続される。カード検出信号端
子11−1〜11−nは、一般にはカード側では図のよ
うにグランドGNDに接続されており、また、ホスト2
00側のカード検出端子51−1〜51−nは、ホスト
200側で図のようにプルアップ抵抗体52を介して電
源+Vに接続されている。従って、ICカード100が
接続されていない時は、カード検出信号端子51−1〜
51−nはハイレベル、ICカード100が接続された
時は、ロウレベルになることによりホスト200はカー
ドの接続状態を検知できる。12はCPUやメモリから
なりホスト200との情報送受信処理や各種アプリケー
ション処理を行うプロセッサ部、13はICカード10
0内の信号バスで、プロセッサ部12やホストインタフ
ェース部10の対応する端子に接続されている。
2. Description of the Related Art FIG. 6 shows the structure of a conventional IC card. Reference numeral 100 is an IC card, and 200 is a host such as a personal computer. Reference numeral 10 denotes a host interface unit having input / output terminals required for exchanging information and signals with the host 200, a plurality of card detection signal terminals for notifying the host 200 of the connection state of the IC card 100, and the like when the card is connected. It is connected to the card interface unit 50 on the 200 side.
A typical example of these interface units 10 and 50 is the JEIDA interface that has been standardized recently (for details, refer to "IC Memory Card Guidelines" issued by the Personal Computer Business Committee of Japan Electronics Industry Association). See material). 11-1 to 11
Reference numeral -n denotes n card detection signal terminals for notifying the host 200 of the connection state (card detection signal) of the IC card 100. For convenience of description, other signal terminals (not shown) of the host interface unit 10 are used. They are described separately.
The card detection signal terminals 11-1 to 11-n are corresponding card detection signal terminals 51- of the card interface section 50.
1 to 51-n, respectively. The card detection signal terminals 11-1 to 11-n are generally connected to the ground GND as shown in the figure on the card side, and the host 2
The card detection terminals 51-1 to 51-n on the 00 side are connected to the power supply + V via the pull-up resistor 52 on the host 200 side as shown in the figure. Therefore, when the IC card 100 is not connected, the card detection signal terminals 51-1 to 51-1 are connected.
51-n is high level, and when the IC card 100 is connected, it becomes low level so that the host 200 can detect the connection state of the card. Reference numeral 12 denotes a processor unit which is composed of a CPU and a memory and performs information transmission / reception processing with the host 200 and various application processing, and 13 denotes an IC card 10.
The signal bus within 0 is connected to the corresponding terminals of the processor unit 12 and the host interface unit 10.

【0003】[0003]

【発明が解決しようとする課題】このような従来のIC
カード100の構成において、ICカード100がホス
ト200に接続されると、ホスト200はカード検出信
号端子51−1〜51−nの信号レベルを検出し、ロウ
レベルであればICカード100が接続されたことを検
知し、ホスト200およびICカード100の各インタ
フェース部50,10を介してプロセッサ部12との情
報の送受を開始しようとする。しかし、プロセッサ部1
2はICカード100がホスト200に接続され、ホス
ト200から電力が供給されてからICカード100内
の初期化処理,動作テストが終了するまでホスト200
からの情報送受に対応できず、対応できないという情報
の送信すらできないため、ホスト200はICカード1
00の接続を検知しても、いつから動作可能かを知るこ
とができない。単なるメモリカードであれば接続と同時
に信号の授受が可能であるから、ホスト200でICカ
ード100の接続を検出して直後にアドレス信号やリー
ド/ライト信号を相互のインタフェース部50,10を
介してICカード100に出力してICカード100を
利用することができるが、プロセッサ部12を有してい
るICカード100では、上記応答不可期間が存在する
ため、それをホスト200に通知する必要があるにもか
かわらず、従来はその手だてがなかった。
SUMMARY OF THE INVENTION Such a conventional IC
In the configuration of the card 100, when the IC card 100 is connected to the host 200, the host 200 detects the signal level of the card detection signal terminals 51-1 to 51-n, and if it is low level, the IC card 100 is connected. Then, it tries to start transmitting and receiving information to and from the processor unit 12 via the interface units 50 and 10 of the host 200 and the IC card 100. However, the processor unit 1
Reference numeral 2 denotes the host 200 until the IC card 100 is connected to the host 200 and power is supplied from the host 200 until the initialization processing and the operation test in the IC card 100 are completed.
Since the host 200 cannot send and receive information from the IC card 1 and cannot even send information that it cannot.
Even if the 00 connection is detected, it is not possible to know when the operation is possible. Since a signal can be transferred at the same time as a connection if it is a simple memory card, immediately after the connection of the IC card 100 is detected by the host 200, an address signal and a read / write signal are transmitted via the mutual interface units 50 and 10. It is possible to output to the IC card 100 and use the IC card 100. However, in the IC card 100 having the processor unit 12, since there is the unresponsive period, it is necessary to notify the host 200 of it. Nevertheless, in the past it was not possible.

【0004】さらに、標準的なインタフェースであって
も、そのバージョンやパソコンの機種により一部動作に
違いがあることがあり、ホスト200からの設定でなく
ICカード100内のプロセッサ部12の起動時から機
種に応じた動作設定をしておく必要がある場合がある。
また、複数サービスに対応する複数プログラムやカード
デバグ時の複数のテストプログラムの内のいずれを選択
するか等、動作モードの指定をプロセッサ初期設定時に
行いたい場合がある。しかし、従来ではどの動作を実行
するかは一旦ホスト200にICカード100が接続さ
れ、動作モードに関する指示応答の情報交換をしてから
でないと変更できなかった。
Further, even with a standard interface, there are some differences in the operation depending on the version and the model of the personal computer, so that when the processor unit 12 in the IC card 100 is started instead of the setting from the host 200. It may be necessary to set the operation settings according to the model from.
Further, there is a case where it is desired to specify an operation mode at the time of initial setting of the processor, such as selecting which of a plurality of programs corresponding to a plurality of services or a plurality of test programs for card debugging. However, conventionally, which operation to execute can be changed only after the IC card 100 is once connected to the host 200 and the information of the instruction response regarding the operation mode is exchanged.

【0005】さらに、デバグ時等にカード内部に障害が
あった場合、ホスト200とICカード100が情報交
換できない時、その障害部位または内容・状態を外部に
通知することができなかった。
Further, when there is a failure inside the card at the time of debugging, etc., when the host 200 and the IC card 100 cannot exchange information, the failure part or the content / state cannot be notified to the outside.

【0006】本発明の目的は、プロセッサ部を有するI
Cカードにおける上記種々の課題を解決することにあ
る。
An object of the present invention is to have an I having a processor section.
It is to solve the above-mentioned various problems in the C card.

【0007】[0007]

【課題を解決するための手段】本発明にかかるICカー
ドは、外部からの論理信号を前記プロセッサ部に通知す
るための複数の外部端子,これら外部端子に接続され外
部端子からの論理信号を前記プロセッサ部に入力し、か
つ前記カード検出信号端子に接続され前記プロセッサ部
からの論理信号をカード検出信号として出力するための
複数の入出力ポートとを有し、前記複数の外部端子と、
前記ホストインタフェース部における前記複数のカード
検出信号端子と、前記プロセッサ部に接続された入出力
ポートとを直結接続したものである。
An IC card according to the present invention comprises a plurality of external terminals for notifying a logical signal from the outside to the processor section, and a logical signal from the external terminal connected to these external terminals. Inputting to the processor unit, and having a plurality of input / output ports connected to the card detection signal terminal for outputting a logic signal from the processor unit as a card detection signal, the plurality of external terminals,
The plurality of card detection signal terminals in the host interface section are directly connected to the input / output ports connected to the processor section.

【0008】[0008]

【作用】本発明においては、カード検出信号端子をIC
カード内のプロセッサ部が入出力ポートを介してハイレ
ベルやロウレベルに制御する機能を設けたことにより、
ICカードをホストに接続した時点では入出力ポートの
出力レベルを、まずハイレベルにしておき、プロセッサ
部が初期化処理,動作テスト等を終了した時点で入出力
ポートを介してカード検出信号端子を接地レベルにおと
すことができ、プロセッサ部がホストとの情報交換が可
能となった時以降の任意の時期にホストにICカード接
続を通知することが可能となる。
In the present invention, the card detection signal terminal is connected to the IC.
By providing the function that the processor in the card controls to high level or low level via the I / O port,
When the IC card is connected to the host, the output level of the input / output port is first set to high level, and when the processor section completes initialization processing, operation test, etc., the card detection signal terminal is connected via the input / output port. The level can be set to the ground level, and it becomes possible to notify the host of the IC card connection at any time after the processor unit can exchange information with the host.

【0009】また、ICカードに任意の論理レベルを与
えられる外部端子、およびプロセッサ部に該外部端子の
論理信号を入力するための入出力ポートを設けることに
より、外部端子を介してプロセッサ部に起動するプログ
ラムの種類を指示することが可能になる。従って、ホス
トのパソコンの機種によるICカードの一部動作の違い
等を、ICカード上のプロセッサ部の起動時から予め設
定しておくことが可能である。また、複数サービスに対
応する複数プログラムやカードデバグ時の複数のテスト
プログラムのいずれを選択するか等、動作モードの指定
をプロセッサ初期設定時に可能となる。
Further, by providing an external terminal for giving an arbitrary logic level to the IC card and an input / output port for inputting a logical signal of the external terminal to the processor section, the processor section is activated through the external terminal. It is possible to specify the type of program to be executed. Therefore, it is possible to preset some differences in the operation of the IC card depending on the model of the host personal computer from the time of starting the processor unit on the IC card. In addition, it is possible to specify an operation mode such as which of a plurality of programs corresponding to a plurality of services and a plurality of test programs for card debugging to select at the time of initial setting of the processor.

【0010】さらに、上記プロセッサ部の入出力ポート
をカード検出信号端子,外部端子と直結接続することに
よりテスト時に内部に障害があった場合、プロセッサ部
が該障害情報をコード等にして入出力ポートに出力する
ことにより、その障害部位または内容,状態等を外部端
子に出力することで外部からその内容を知ることができ
る。
Further, when an internal failure occurs during the test by directly connecting the input / output port of the processor section to the card detection signal terminal and the external terminal, the processor section uses the failure information as a code to input / output the port. To the external terminal, the contents can be known from the outside.

【0011】また、カード検出信号端子と外部端子が直
結接続されていることにより、ICカード内部にプロセ
ッサ部以外の回路または処理ブロックがある場合、プロ
セッサ部に異常があって上記のようにカード検出信号端
子を接続状態(ロウレベル)に設定できない場合でも、
外部端子をロウレベルにすることで強制的にICカード
を接続状態として、上記回路または処理ブロックを動作
可能として、ホストからICカードの回路部分や処理ブ
ロックをアクセスすることが可能となり、インタフェー
ス部を介してホストが故障情報を知ることができる。
Further, since the card detection signal terminal and the external terminal are directly connected to each other, if there is a circuit or a processing block other than the processor section inside the IC card, there is an abnormality in the processor section and the card detection is performed as described above. Even if the signal terminal cannot be set to the connected state (low level),
By setting the external terminal to the low level, the IC card is forcibly connected and the above circuits or processing blocks can be operated, and the host can access the circuit parts and processing blocks of the IC card. The host can know the failure information.

【0012】[0012]

【実施例】図1は、本発明を利用したICカードの一実
施例である。本実施例では、通信用カードのように外部
と通信線により接続されており、カード検出信号端子は
11−1,11−2の2端子を用いる場合を示す。図に
おいて、21−1,21−2は外部端子で、それぞれ入
出力ポート22−1,22−2を介してプロセッサ部1
2に論理レベルを与えたり、プロセッサ部12からのコ
ード化された障害情報等を出力する。入出力ポート22
−1,22−2は外部端子21−1,21−2からの信
号を入力したり、外部端子21−1,21−2にプロセ
ッサ部12からのコード化された障害情報等を出力した
り、カード検出信号端子11−1,11−2にカード接
続信号を出力したりする。30は前記外部装置300と
の間の通信信号をプロセッサ部12に授受する通信信号
入出力ポート、31は通信ケーブル61と接続される通
信線、60はコネクタで、ICカード100と外部装置
300を接続するケーブル61をICカードに接続す
る。71−1,71−2は前記コネクタ60内にあるI
Cカード100上の外部端子21−1,21−2に対応
する論理信号入出力端子、24は前記ICカード100
の外部にグランドレベルを供給するグランドレベル端
子、74は前記コネクタ60におけるグランドレベル供
与端子で、ICカード100のグランドレベル端子24
に対向する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of an IC card utilizing the present invention. In the present embodiment, a case where the card is connected to the outside by a communication line like a communication card and two card detection signal terminals 11-1 and 11-2 are used is shown. In the figure, reference numerals 21-1 and 21-2 denote external terminals, which are connected to the processor unit 1 via input / output ports 22-1 and 22-2, respectively.
2 is given a logic level, and coded fault information or the like from the processor unit 12 is output. I / O port 22
-1, 22-2 inputs signals from the external terminals 21-1, 21-2 and outputs coded fault information and the like from the processor unit 12 to the external terminals 21-1, 21-2. , And outputs a card connection signal to the card detection signal terminals 11-1 and 11-2. Reference numeral 30 is a communication signal input / output port for exchanging communication signals with the external device 300 to the processor unit 12, 31 is a communication line connected to the communication cable 61, and 60 is a connector for connecting the IC card 100 and the external device 300. The connecting cable 61 is connected to the IC card. 71-1 and 71-2 are I in the connector 60.
The logic signal input / output terminals corresponding to the external terminals 21-1 and 21-2 on the C card 100, and 24 are the IC card 100
, A ground level terminal for supplying a ground level to the outside of the IC card, 74 is a ground level providing terminal in the connector 60, which is the ground level terminal 24 of the IC card 100
To face.

【0013】次に、動作について説明する。まず、コネ
クタ60が接続されたICカード100がホスト200
に接続されたとする。この時用いられるコネクタ60
は、例えば、図1のように論理信号入出力端子71−1
はオープンで、71−2がグランドレベル供与端子74
に接続されているとする。ホスト200は論理信号入出
力端子71−1,71−2に直結接続されているカード
検出信号端子51−1(上位ビット)、51−2(下位
ビット)を介して上位ビットがハイレベル、下位ビット
がロウレベルであることを検知する。しかし、ホスト2
00は論理信号入出力端子71−1,71−2の両ビッ
トが共にロウレベルになるまでICカード100が正常
に接続されたと解釈しないので、ホスト200がICカ
ード100上のプロセッサ部12にアクセスすることは
ない。
Next, the operation will be described. First, the IC card 100 to which the connector 60 is connected is the host 200
Connected to. Connector 60 used at this time
Is a logic signal input / output terminal 71-1 as shown in FIG.
Is open and 71-2 is the ground level terminal 74
Connected to. In the host 200, the upper bit is high level and the lower bit is lower through the card detection signal terminals 51-1 (upper bit) and 51-2 (lower bit) directly connected to the logic signal input / output terminals 71-1 and 71-2. Detects that the bit is low level. But host 2
Since 00 does not mean that the IC card 100 is normally connected until both bits of the logic signal input / output terminals 71-1 and 71-2 become low level, the host 200 accesses the processor unit 12 on the IC card 100. There is no such thing.

【0014】一方、ICカード100上のプロセッサ部
12はホスト200に接続されて電力が供給されると、
入出力ポート22の2ビットの情報を読み取る。今の場
合、入出力ポート22−1(上位ビット)はハイレベ
ル、入出力ポート22−2(下位ビット)はロウレベル
であるので、それに対応したプログラムの格納番地から
動作を開始し、初期設定,動作試験を行う。それらが終
了するとプロセッサ部12は入出力ポート22−1にロ
ウレベルを出力する。この時、ホスト200はカード検
出信号端子51−1,51−2が共にロウレベルになっ
たことを検出し、ICカード100が正常に接続された
ことを知り、両インタフェース部50,10を介してプ
ロセッサ部12と情報交換を開始する。このようにIC
カード100上のプロセッサ部12が初期設定等を終了
し、ホスト200と情報交換可能となった時点で、ホス
ト200がICカード100の正常接続を認識するの
で、カード接続直後でプロセッサ部12が応答不能の段
階で、ホスト200からプロセッサ部12にアクセスす
ることがない。
On the other hand, when the processor unit 12 on the IC card 100 is connected to the host 200 and supplied with power,
The 2-bit information of the input / output port 22 is read. In this case, since the input / output port 22-1 (upper bit) is at the high level and the input / output port 22-2 (lower bit) is at the low level, the operation is started from the storage address of the program corresponding to the initial setting, Perform an operation test. When they are completed, the processor unit 12 outputs a low level to the input / output port 22-1. At this time, the host 200 detects that both the card detection signal terminals 51-1 and 51-2 have become low level, knows that the IC card 100 has been normally connected, and through the both interface units 50 and 10. Information exchange with the processor unit 12 is started. IC like this
When the processor unit 12 on the card 100 finishes the initial setting and the like and information can be exchanged with the host 200, the host unit 200 recognizes the normal connection of the IC card 100, and the processor unit 12 responds immediately after the card connection. At the disabled stage, the host 200 does not access the processor unit 12.

【0015】図2は図1の実施例におけるICカード1
00上のプロセッサ部12の動作を説明するためのフロ
ーチャートである。なお、(S1)〜(S6)は各ステ
ップを示す。
FIG. 2 shows an IC card 1 in the embodiment shown in FIG.
10 is a flow chart for explaining the operation of the processor unit 12 on 00. Note that (S1) to (S6) indicate each step.

【0016】ICカード100をホスト200に接続す
ると、ICカード100に電源が供給され、プロセッサ
部12が起動する(S1)。プロセッサ部12は外部端
子21−1がハイレベル”H”、外部端子21−2がロ
ウレベル”L”であることを検出し(S2)、これに対
応するプログラムの起動を開始する(S3)。初期設定
が終了すると、入出力ポート22−1を”L”に設定す
ることで、情報交換可能であることををホスト200に
報知する(S4)。以降、ホスト200とICカード1
00との情報交換が行われ(S5)、情報交換が終了し
たところでICカード100をホスト200から切り離
す(S6)。
When the IC card 100 is connected to the host 200, power is supplied to the IC card 100 and the processor section 12 is activated (S1). The processor unit 12 detects that the external terminal 21-1 is at high level "H" and the external terminal 21-2 is at low level "L" (S2), and starts the program corresponding to this (S3). When the initial setting is completed, the input / output port 22-1 is set to "L" to notify the host 200 that information can be exchanged (S4). After that, the host 200 and the IC card 1
Information exchange with 00 (S5), and when the information exchange is completed, the IC card 100 is separated from the host 200 (S6).

【0017】次に、外部端子から与える論理信号による
動作モードの指定の説明をする。図3は、コネクタ60
における結線状態を示す図である。図3(a)は論理信
号入出力端子71−1,71−2,グランドレベル供与
端子74がそれぞれオープン状態になったもの、図3
(b)は同じく71−1はオープン、72−2と74が
接続されたもの、図3(c)は同じく71−1と74が
接続され、71−2がオープンのもの、図3(d)は7
1−1,71−2ともに74に接続されたものである。
デバグ時、まず、図3(a)の結線状態のコネクタ60
をもつケーブルを接続した場合を考える。ICカード1
00がホスト200に接続されると、上記説明と同様I
Cカード100上のプロセッサ部12は入出力ポート2
2−1,22−2を介して外部端子状態を検出する。外
部端子21−1,21−2の状態はコネクタ60の結線
状態が図3(a)、すなわち論理信号入出力端子71−
1および71−2がともにオープンであることからとも
にハイレベルである。従って、プロセッサ部12は上
位,下位ビットともにハイレベルのコードに対応した予
め定められたプログラムの初期設定を行い、設定が終了
すれば入出力ポート22−1,22−2にロウレベルを
出力することにより、カード検出信号端子11−1,1
1−2をロウレベルに設定し、ホスト200側のカード
検出信号端子51−1,51−2に伝えられてホスト2
00にICカード100が正常に接続されたこと(動作
可能になったこと)を知らせる。これにより、ホスト2
00はICカード100上のプロセッサ部12との間で
情報の授受を始める。図3(b),図3(c)の結線状
態のコネクタ60をもつケーブルを接続してICカード
100をホスト200に接続した場合は、前記同様IC
カード100がホスト200に接続されると、ICカー
ド100上のプロセッサ部12は入出力ポート22−
1,22−2を介して外部端子状態を検出する。図3
(b)の場合は、論理信号入出力端子71−1がオープ
ンであるから上位ビットがハイレベル、論理信号入出力
端子71−2はグランドレベル供与端子74に接続され
ており、従ってグランドレベル端子24を介してグラン
ドレベルになっているから、下位ビットがロウレベル、
図3(c)の場合は同様に上位ビットがロウレベル、下
位ビットがハイレベルを検出することにより、それぞれ
図3(a)とは、異なった番地に格納されているプログ
ラムから開始することになり、デバグ時等においては、
複数の外部端子に与える論理レベルの異なるコネクタ6
0を有する通信ケーブル等を利用することにより、異な
る試験プログラムの動作モードで立ち上げることがで
き、デバグを効率的に実行できる。
Next, the designation of the operation mode by the logic signal given from the external terminal will be described. FIG. 3 shows the connector 60.
It is a figure which shows the connection state in. 3A shows the logic signal input / output terminals 71-1 and 71-2 and the ground level providing terminal 74 which are in an open state.
In FIG. 3B, 71-1 is open and 72-2 and 74 are connected. In FIG. 3C, 71-1 and 74 are also connected and 71-2 is open, and FIG. ) Is 7
Both 1-1 and 71-2 are connected to 74.
When debugging, first, the connector 60 in the connected state shown in FIG.
Consider the case where a cable with is connected. IC card 1
When 00 is connected to the host 200, I
The processor unit 12 on the C card 100 is the input / output port 2
The external terminal state is detected via 2-1 and 22-2. Regarding the state of the external terminals 21-1 and 21-2, the connection state of the connector 60 is as shown in FIG.
Both 1 and 71-2 are open because both are open. Therefore, the processor unit 12 initializes a predetermined program corresponding to a high-level code for both upper and lower bits, and outputs a low level to the input / output ports 22-1 and 22-2 when the setting is completed. The card detection signal terminals 11-1, 1
1-2 is set to a low level and transmitted to the card detection signal terminals 51-1 and 51-2 on the host 200 side to notify the host 2
00 is informed that the IC card 100 is normally connected (ready to operate). This allows host 2
00 starts exchanging information with the processor unit 12 on the IC card 100. When the IC card 100 is connected to the host 200 by connecting the cable having the connector 60 in the wired state shown in FIGS. 3B and 3C, the same IC as described above is used.
When the card 100 is connected to the host 200, the processor unit 12 on the IC card 100 receives the input / output port 22-
The external terminal state is detected via 1 and 22-2. Figure 3
In the case of (b), since the logic signal input / output terminal 71-1 is open, the upper bits are at a high level, and the logic signal input / output terminal 71-2 is connected to the ground level providing terminal 74. Since it is at the ground level via 24, the lower bit is at the low level,
In the case of FIG. 3C, similarly, by detecting the low level of the high-order bit and the high level of the low-order bit, it is possible to start from a program stored in an address different from that in FIG. 3A. When debugging,
Connector 6 with different logic levels applied to a plurality of external terminals
By using a communication cable having 0, it is possible to start up in a different test program operation mode, and debug can be executed efficiently.

【0018】図4はデバグ時等において内部に障害があ
った場合の障害情報の通知方法の説明図である。400
は試験機で、コネクタ60の論理信号入出力端子71−
1,71−2と接続されている。試験機400の内部で
は、論理信号入出力端子71−1,71−2と対向する
入出力端子80−1,80−2に任意の論理信号を入出
力できるようになっている。試験を開始するとき、試験
機400からは上記説明のように目的の試験プログラム
を動作させるための論理信号を入出力端子80−1,8
0−2に出力し、一定時間後、入出力端子80を入力モ
ードにする。その後の動作は前述の如くであるが、プロ
セッサ部12が入出力ポート22−1,22−2にロウ
レベルを出力した時点で、試験機400は入出力端子8
0−1,80−2がロウレベルになったのを検出するこ
とにより、試験プログラムの動作を認識する。その後、
内部に障害があった場合、プロセッサ部12はその障害
の内容に応じて予め定めておいたともにロウレベルでは
ない2ビットのコードを入出力ポート22−1,22−
2に出力することにより、外部端子21−1,21−2
を介して論理信号入出力端子71−1,71−2に伝え
る。同時に試験機400も入出力端子80を介して該2
ビットコードを検出し、そのビット情報を解析すること
により障害の内容・状態を知ることができる。
FIG. 4 is an explanatory diagram of a method of notifying failure information when there is an internal failure during debugging or the like. 400
Is a tester, which is a logical signal input / output terminal 71- of the connector 60.
1, 71-2 is connected. Inside the tester 400, arbitrary logic signals can be input / output to / from the input / output terminals 80-1 and 80-2 facing the logic signal input / output terminals 71-1 and 71-2. When the test is started, the tester 400 outputs logical signals for operating the target test program as described above from the input / output terminals 80-1, 8.
It outputs to 0-2, and after a certain time, the input / output terminal 80 is set to the input mode. The operation thereafter is as described above. However, when the processor unit 12 outputs a low level to the input / output ports 22-1 and 22-2, the testing machine 400 outputs the input / output terminal 8
The operation of the test program is recognized by detecting the low level of 0-1, 80-2. afterwards,
When there is an internal failure, the processor unit 12 outputs a 2-bit code which is predetermined according to the content of the failure and which is not low level, to the input / output ports 22-1, 22.
By outputting to external terminals 21-1 and 21-2
To the logic signal input / output terminals 71-1 and 71-2. At the same time, the tester 400 also outputs the data via the input / output terminal 80.
By detecting the bit code and analyzing the bit information, it is possible to know the content / state of the fault.

【0019】図5は、カード検出信号端子11−1,1
1−2と外部端子21−1,21−2の直結接続による
効果を示す図である。ICカード100内部にプロセッ
サ部12以外の回路または処理ブロック14がある場
合、プロセッサ部12に異常があって上記のようにカー
ド検出信号端子11−1,11−2を接続状態(ロウレ
ベル)に設定できない場合でも、例えば、図3の(d)
タイプのコネクタ60を用いる方法等により、外部端子
21−1,21−2をロウレベルにすることで強制的に
ICカード100を接続状態として、上記回路または処
理ブロック14を動作可能として、ホスト200からI
Cカード100の回路部分や処理ブロック14をアクセ
スすることが可能となり、インタフェース10,50を
介してホスト200が故障情報を知ることができる。
FIG. 5 shows card detection signal terminals 11-1 and 1-1.
It is a figure which shows the effect by the direct connection of 1-2 and external terminals 21-1 and 21-2. When there is a circuit or processing block 14 other than the processor unit 12 inside the IC card 100, there is an abnormality in the processor unit 12 and the card detection signal terminals 11-1 and 11-2 are set to the connection state (low level) as described above. Even if it is not possible, for example, (d) of FIG.
The external terminals 21-1 and 21-2 are forced to the low level by a method using the type connector 60 or the like to forcibly bring the IC card 100 into the connected state and enable the circuit or the processing block 14 to operate. I
It becomes possible to access the circuit portion of the C card 100 and the processing block 14, and the host 200 can know the failure information via the interfaces 10 and 50.

【0020】[0020]

【発明の効果】本発明は以上説明したように、外部から
の論理信号を前記プロセッサ部に通知するための複数の
外部端子,これら外部端子に接続され外部端子からの論
理信号を前記プロセッサ部に入力し、かつカード検出信
号端子に接続され前記プロセッサ部からの論理信号をカ
ード検出信号として出力するための複数の入出力ポート
とを有し、前記複数の外部端子と、前記ホストインタフ
ェース部における前記複数のカード検出信号端子と、前
記プロセッサ部に接続された入出力ポートとを直結接続
したので、下記の利点を有する。
As described above, according to the present invention, a plurality of external terminals for notifying a logic signal from the outside to the processor section, and logic signals from the external terminals connected to these external terminals are sent to the processor section. And a plurality of input / output ports for inputting and outputting to the card detection signal terminal a logic signal from the processor section as a card detection signal, the plurality of external terminals, and the host interface section Since the plurality of card detection signal terminals and the input / output ports connected to the processor section are directly connected, the following advantages are provided.

【0021】(1)ICカードをホストに接続した時点で
すぐにホストに接続されたことを通知せず、プロセッサ
部が初期化処理,動作テスト等を終了し、プロセッサ部
がホストとの情報交換が可能となった時等、任意の時期
にホストにカード接続を通知することが可能となり、プ
ロセッサ部がホストと情報授受が可能な状態になるまで
ホストからのアクセスを制限することができる。
(1) Immediately after the IC card is connected to the host, the processor unit does not notify that it is connected to the host, the processor unit finishes the initialization process, the operation test, etc., and the processor unit exchanges information with the host. It becomes possible to notify the host of the card connection at any time, such as when the host is enabled, and it is possible to restrict access from the host until the processor unit is ready to exchange information with the host.

【0022】(2)外部端子を介してプロセッサ部に起動
するプログラムの種類を指示することが可能になる。従
って、ホストのパソコンの機種によるICカードの一部
動作の違い等をICカード内プロセッサ起動時から予め
設定しておくことが可能である。また、複数サービスに
対応する複数プログラムやカードデバグ時の複数のテス
トプログラム等のいずれを選択するか等、動作モードの
指定がプロセッサ初期設定時に可能となり、カード機能
に柔軟性をもたせることができる。
(2) It becomes possible to instruct the processor section through the external terminal what kind of program to start. Therefore, it is possible to set in advance some differences in the operation of the IC card depending on the model of the host personal computer from the time of starting the processor in the IC card. Further, it is possible to specify an operation mode such as which one of a plurality of programs corresponding to a plurality of services or a plurality of test programs when a card is debugged is selected at the time of initial setting of the processor, so that the card function can be made flexible.

【0023】(3)テスト時に内部に障害があった場合、
プロセッサ部が該障害情報をコード等にして出力ポート
に出力することにより、その障害部位または内容・状態
等を外部端子に出力することで外部からその内容を知る
ことができる。
(3) If there is an internal failure during the test,
The processor unit outputs the failure information as a code or the like to the output port, and outputs the failure site or the content / state thereof to the external terminal, whereby the content can be known from the outside.

【0024】(4)カード検出信号端子と外部端子が直結
接続されていることにより、ICカード内部にプロセッ
サ部以外の回路または処理ブロックがある場合、CPU
に異常があって上記のようにカード検出信号端子を接続
状態に(ロウレベル)に設定できない場合でも、外部端
子をロウレベルにすることで強制的にICカードを接続
状態として、該回路または処理ブロックを動作可能とし
て、ホストからICカードの回路部分や処理ブロックを
アクセスすることが可能となり、インタフェースを介し
てホストが故障情報を知ることができる。
(4) When the card detection signal terminal and the external terminal are directly connected to each other so that there is a circuit or processing block other than the processor in the IC card, the CPU
Even if the card detection signal terminal cannot be set to the connection state (low level) as described above due to an abnormality in the IC card, the IC card is forcibly placed in the connection state by setting the external terminal to the low level, and the circuit or processing block is It becomes operable, and the host can access the circuit portion and processing block of the IC card, and the host can know the failure information through the interface.

【0025】(5)外部端子にICカードとホスト間のカ
ード検出信号端子と同様の機能を持たせることにより、
外部装置との間のケーブルの接続の有無を検出でき、通
信端末における通信ケーブル抜け等のチェックにも利用
できる。
(5) By providing the external terminal with the same function as the card detection signal terminal between the IC card and the host,
Whether or not a cable is connected to an external device can be detected, and it can also be used to check for a communication cable disconnection in a communication terminal.

【0026】(6)上記のようにカード検出信号端子をプ
ロセッサ部で制御する場合、プロセッサ部の動作に異常
があるとカード検出信号端子をカード接続状態にできな
いが、外部端子とカード検出信号端子が直結されている
ので、外部端子を強制的にカード接続状態とすることに
より、カード内部回路へのホストからのアクセスが可能
になる。
(6) When the card detection signal terminal is controlled by the processor unit as described above, if the operation of the processor unit is abnormal, the card detection signal terminal cannot be connected to the card, but the external terminal and the card detection signal terminal Is directly connected, the host can access the internal circuit of the card by forcibly setting the external terminal to the card connection state.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明を利用したICカードの実施例を示す構
成図である。
FIG. 1 is a configuration diagram showing an embodiment of an IC card using the present invention.

【図2】図1の実施例のプロセッサ部の動作説明のため
のフローチャートである。
FIG. 2 is a flowchart for explaining an operation of a processor unit of the embodiment of FIG.

【図3】コネクタにおける端子の結線状態を示す図であ
る。
FIG. 3 is a diagram showing a connection state of terminals in a connector.

【図4】本発明における障害情報の通知方法の説明する
ための図である。
FIG. 4 is a diagram illustrating a fault information notification method according to the present invention.

【図5】本発明におけるカード検出信号端子と外部端子
の直結による効果を説明するための図である。
FIG. 5 is a diagram for explaining the effect of the direct connection between the card detection signal terminal and the external terminal in the present invention.

【図6】従来のICカードの構成図である。FIG. 6 is a block diagram of a conventional IC card.

【符号の説明】[Explanation of symbols]

10 ホストインタフェース部 11 カード検出信号端子 12 プロセッサ部 13 信号バス 14 処理ブロック 21 外部端子 22 入出力ポート 24 グランドレベル端子 30 通信信号入出力ポート 31 通信線 50 カードインタフェース部 51 カード検出信号端子 52 プルアップ抵抗 60 コネクタ 61 通信ケーブル 71 論理信号入出力端子 74 グランドレベル供与端子 80 入出力端子 100 ICカード 200 ホスト 300 外部装置 400 試験機 10 host interface section 11 card detection signal terminal 12 processor section 13 signal bus 14 processing block 21 external terminal 22 input / output port 24 ground level terminal 30 communication signal input / output port 31 communication line 50 card interface section 51 card detection signal terminal 52 pull-up Resistor 60 Connector 61 Communication cable 71 Logic signal input / output terminal 74 Ground level providing terminal 80 Input / output terminal 100 IC card 200 Host 300 External device 400 Testing machine

───────────────────────────────────────────────────── フロントページの続き (72)発明者 上田 照夫 東京都千代田区内幸町1丁目1番6号 日 本電信電話株式会社内 (72)発明者 青柳 博久 東京都渋谷区桜丘町24番4号 株式会社ナ カヨ通信機内 (72)発明者 川村 浩正 神奈川県横浜市中区不老町二丁目9番1号 エヌ・ティ・ティ・インテリジェントテ クノロジ株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Teruo Ueda Teruo Ueda 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Nihon Telegraph and Telephone Corporation (72) Hirohisa Aoyagi 24-4 Sakuragaoka-cho, Shibuya-ku, Tokyo Stocks Company Nakayo Tsushinki (72) Inventor Hiromasa Kawamura 2-9-1, Furomachi, Naka-ku, Yokohama-shi, Kanagawa NTT Intelligent Technology Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ホストとの情報や信号の授受に必要な入
出力端子やICカードの接続状態を前記ホストに通知す
る複数のカード検出信号端子等を持つホストインタフェ
ース部、前記ホストとの情報送受信処理や各種アプリケ
ーション処理を行うプロセッサ部、とを有するICカー
ドにおいて、外部からの論理信号を前記プロセッサ部に
通知するための複数の外部端子,これら外部端子に接続
され外部端子からの論理信号を前記プロセッサ部に入力
し、かつ前記カード検出信号端子に接続され前記プロセ
ッサ部からの論理信号をカード検出信号として出力する
ための複数の入出力ポートとを有し、前記複数の外部端
子と、前記ホストインタフェース部における前記複数の
カード検出信号端子と、前記プロセッサ部に接続された
入出力ポートとを直結接続したことを特徴とするICカ
ード。
1. A host interface unit having an input / output terminal required for exchanging information and signals with a host, a plurality of card detection signal terminals for notifying the host of a connection state of an IC card, and information transmission / reception with the host. In an IC card having a processor unit for performing processing and various application processes, a plurality of external terminals for notifying the processor unit of a logical signal from the outside, and a logical signal from the external terminal connected to these external terminals A plurality of external terminals for inputting to the processor unit and connected to the card detection signal terminal for outputting a logic signal from the processor unit as a card detection signal; Directly connect the plurality of card detection signal terminals in the interface section and the input / output ports connected to the processor section. An IC card that is connected and connected.
JP16588493A 1993-06-14 1993-06-14 IC card Expired - Lifetime JP3331525B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16588493A JP3331525B2 (en) 1993-06-14 1993-06-14 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16588493A JP3331525B2 (en) 1993-06-14 1993-06-14 IC card

Publications (2)

Publication Number Publication Date
JPH06348423A true JPH06348423A (en) 1994-12-22
JP3331525B2 JP3331525B2 (en) 2002-10-07

Family

ID=15820812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16588493A Expired - Lifetime JP3331525B2 (en) 1993-06-14 1993-06-14 IC card

Country Status (1)

Country Link
JP (1) JP3331525B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024772A (en) * 2000-07-04 2002-01-25 Dainippon Printing Co Ltd Ic card information reader and ic card state display device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024772A (en) * 2000-07-04 2002-01-25 Dainippon Printing Co Ltd Ic card information reader and ic card state display device
JP4673470B2 (en) * 2000-07-04 2011-04-20 大日本印刷株式会社 IC card information reading device and IC card status display device

Also Published As

Publication number Publication date
JP3331525B2 (en) 2002-10-07

Similar Documents

Publication Publication Date Title
US5263168A (en) Circuitry for automatically entering and terminating an initialization mode in a data processing system in response to a control signal
JPH0324608A (en) Expanded function board
US7882395B2 (en) Debug device for embedded systems and method thereof
JPH09330151A (en) Card
US7930535B1 (en) Method and apparatus for loading configuration data
US20080021695A1 (en) ROM emulator and ROM testing method using the same
US8015448B2 (en) System and method for conducting BIST operations
US20030120970A1 (en) Method and apparatus for debugging an electronic product using an internal I/O port
US5940783A (en) Microprocessor and method of testing the same
US5751641A (en) Microprocessor memory test circuit and method
JPH0562785B2 (en)
US6393558B1 (en) Peripheral component interconnect (PCI) card for selectively processing a PCI bus reset signal and method for resetting the PCI card
JPH06348423A (en) Ic card
US6598176B1 (en) Apparatus for estimating microcontroller and method thereof
CN113760800A (en) Serial port path selection method, system, terminal and storage medium based on BMC
US20050125583A1 (en) Detecting method for PCI system
EP0556138A1 (en) A bus for connecting extension cards to a data processing system and test method
JPH10326203A (en) Debugging devices capable of taking over operation from each other between hardware environments while running programs therein
US6016517A (en) Data processing system and method for optimizing connector usage
JP3265284B2 (en) emulator
US20020007263A1 (en) Apparatus for supporting microprocessor development system
CN117667554A (en) Method and system for intelligently switching same physical serial port of communication module
KR200175057Y1 (en) An apparatus for debugging an error of a computer
JP2704935B2 (en) Processor with test function
KR20020096661A (en) computer system and booting control method thereof

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080726

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080726

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Year of fee payment: 8

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

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110726

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120726

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130726

Year of fee payment: 11

EXPY Cancellation because of completion of term