JPH02282885A - Portable data storage carrier - Google Patents

Portable data storage carrier

Info

Publication number
JPH02282885A
JPH02282885A JP1104948A JP10494889A JPH02282885A JP H02282885 A JPH02282885 A JP H02282885A JP 1104948 A JP1104948 A JP 1104948A JP 10494889 A JP10494889 A JP 10494889A JP H02282885 A JPH02282885 A JP H02282885A
Authority
JP
Japan
Prior art keywords
data
data storage
card
command
external device
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
Application number
JP1104948A
Other languages
Japanese (ja)
Inventor
Norio Umehara
紀夫 梅原
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1104948A priority Critical patent/JPH02282885A/en
Publication of JPH02282885A publication Critical patent/JPH02282885A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the deterioration of the application processing speed even with increase of the write command ratio by preparing a 2nd data storage part having the unit data writing/reading time approximately equal to the time required for reading the unit data out of a 1st storage part in addition to this first storage part. CONSTITUTION:When the power is supplied to an IC card, a microprocessor 7 copies all data on a PROM 10 to a RAM 11. Then the microprocessor 7 analyzes the type of a command received from an external device and writes data into the RAM 11 when a write command is confirmed. Meanwhile the microprocessor 7 reads data out of the RAM 11 with a read command. The microprocessor 7 sends these writing/reading results back to the external device and waits for the command transmitted again from the external device. When the received command is equal to an end command, the data are compared between the RAM 11 and the PROM 10. Then only different data are copied to the PROM 10 from the RAM 11. As a result, the application processing speed is never deteriorated despite increase of the ratio of write commands to a portable data storage means.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、例えばマイクロコンピュータやメモリなどの
集積回路を内蔵するICカードなどの携帯可能データ記
憶担体に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to portable data storage carriers, such as IC cards, containing integrated circuits such as microcomputers and memories.

従来の技術 内部にメモリなどの集積回路が内蔵された携帯可能デー
タ記憶担体、とりわけ磁気カードと同一サイズのプラス
チックカード内にマイクロプロセッサとメモリとを備え
たICカードは、自身にデータ処理能力を有するインテ
リジェント性、記憶しているデータに対するランダムア
クセス性。
BACKGROUND OF THE INVENTION Portable data storage carriers with integrated circuits such as memories built inside them, in particular IC cards with a microprocessor and memory in a plastic card of the same size as a magnetic card, have their own data processing capabilities. Intelligence, random access to stored data.

磁気カードより格段に大きい記憶容量などから、IDカ
ードや銀行カード、クレジットカード、情報ファイルな
どの用途に広く利用されるようになってきた。
Due to their much larger storage capacity than magnetic cards, they have come to be widely used for ID cards, bank cards, credit cards, information files, etc.

以下に図面を参照しながら従来の携帯可能データ記憶担
体について説明する。
A conventional portable data storage carrier will be described below with reference to the drawings.

第3図は従来の携帯可能データ記1i!担体の一例であ
るICカードの形状を示す外観図である。第3図に於て
、1はICカード、2はICカード内部の集積回路とI
Cカード外部機器との接続に用いられる複数の端子から
成る端子部、28〜2hは端子部2を構成する端子であ
る。
Figure 3 shows a conventional portable data recorder 1i! FIG. 2 is an external view showing the shape of an IC card, which is an example of a carrier. In Figure 3, 1 is an IC card, 2 is an integrated circuit inside the IC card, and I
Terminals 28 to 2h constitute the terminal section 2, which is a terminal section consisting of a plurality of terminals used for connection with the C card external device.

第4図はICカードに内蔵されている集積回路モジュー
ルの構成を示すブロック図である。第4図に於いて2a
〜2hは、第3図に於ける28〜2hと同一で、2aは
集積回路モジュールの電源端子、2bは集積回路モジュ
ールを初期化するリセット端子、2cは集積回路モジュ
ールにクロックを供給するクロック端子、2dは予II
子、2eは集積回路モジュールのアースであるアース端
子、2fは集積回路モジュール内のメモリへの書き込み
に使用する書き込み電R端子、2gは集積回路モジュー
ルとICカード外部機器との間で通信を行うためのI1
0端子、2hは予備端子である。3は集積回路モジュー
ル全体を制御するマイクロプロセッサ、3aは外部機器
との通信制御を行う通信制御手段、3bはデータ記憶部
への書き込み読み出しをi制御するアクセス制御手段で
ある。4はマイクロプロセッサ3のプログラムを格納し
ているROM、5はマイクロプロセッサ3が動作する際
にワーキングエリアとして使用するRAM、6はデータ
を記憶するためのデータ記憶部であるFROMである。
FIG. 4 is a block diagram showing the configuration of an integrated circuit module built into the IC card. 2a in Figure 4
2h is the same as 28 to 2h in FIG. 3, 2a is a power supply terminal of the integrated circuit module, 2b is a reset terminal for initializing the integrated circuit module, and 2c is a clock terminal for supplying a clock to the integrated circuit module. , 2d is Preliminary II
2e is the ground terminal that is the ground of the integrated circuit module, 2f is the write power R terminal used for writing to the memory in the integrated circuit module, and 2g is for communication between the integrated circuit module and the IC card external device. I1 for
0 terminal and 2h are spare terminals. 3 is a microprocessor that controls the entire integrated circuit module, 3a is a communication control means that controls communication with external equipment, and 3b is an access control means that controls reading and writing to the data storage section. 4 is a ROM that stores programs for the microprocessor 3; 5 is a RAM that is used as a working area when the microprocessor 3 operates; and 6 is a FROM that is a data storage section for storing data.

第4図の集積回路モジュールから成るICカードは、外
部機器からI10端子2gを経由して与えられるコマン
ドに従ってマイクロプロセッサ3が集積回路モジュール
を制御し、処理結果をレスポンスとしてI10端子2g
を経由して前記外部機器に返す。I10端子2gを経由
する通信は、一般に半二重調歩同期式で、第4図の集積
回路モジュールから成るIcカードでは伝送速度は96
00ボー、キャラクタフォーマットはスタートビット1
ビツト、データビット7ビツト、パリティビット1ビツ
ト、ストップビット1ビツトであるものとする。
In the IC card consisting of an integrated circuit module shown in FIG. 4, a microprocessor 3 controls the integrated circuit module according to a command given from an external device via an I10 terminal 2g, and the processing result is sent as a response to an I10 terminal 2g.
is returned to the external device via. Communication via the I10 terminal 2g is generally a half-duplex start-stop synchronization type, and the transmission speed is 96 cm for the IC card consisting of the integrated circuit module shown in Figure 4.
00 baud, character format is start bit 1
7 data bits, 1 parity bit, and 1 stop bit.

前記コマンドがリードコマンドである場合にはマイクロ
プロセッサ3はFROM6からデータを読み出してこの
データをレスポンスとして前記外部機器に返す。逆に前
記コマンドがライトコマンドである場合には、マイクロ
プロセッサ3は前記コマンドに含まれているデータをF
ROM6に書き込んだ後、正常に書き込みが行われたか
否かという結果をレスポンスとして前記外部機器に返す
If the command is a read command, the microprocessor 3 reads data from the FROM 6 and returns this data to the external device as a response. Conversely, if the command is a write command, the microprocessor 3 converts the data included in the command into F.
After writing into the ROM 6, the result indicating whether or not the writing was performed normally is returned to the external device as a response.

下記表1は前記コマンドのフォーマットとバイト数の一
例を示している。表1に於て、コマンド種別は、ICカ
ードの処理内容を指定するものであり、少なくともリー
ドコマンド、ライトコマンドの2種類を備えているもの
とする。リファレンスは前記コマンド種別の内容を補足
するものであり、例えばリードコマンドあるいはライト
コマンドの場合には第4図に於けるFROM6のアドレ
スとなる。コマンドデータはコマンド種別で指定した処
理の対象であり、例えばライトコマンドの場合にはFR
OM6+こ書き込むべきデータを示している。BCCは
コマンドの伝送誤りを検出するための検査コードである
Table 1 below shows an example of the format and number of bytes of the command. In Table 1, the command type specifies the processing content of the IC card, and includes at least two types: read command and write command. The reference supplements the content of the command type, and for example, in the case of a read command or a write command, it is the address of FROM 6 in FIG. 4. Command data is the target of processing specified by the command type, for example, in the case of a write command, the FR
OM6+ indicates the data to be written. BCC is a check code for detecting command transmission errors.

下記表2は前記リファレンスのフォーマットとバイト数
の一例を示している。
Table 2 below shows an example of the format and number of bytes of the reference.

表2に於て、コマンド複写は外部機器からrCカードに
送信されてきた最新のコマンド中のコマンド種別である
。ステータスはICカードでの処理結果を表わす。レス
ポンスデータは外部機器に送信すべき対象であり、例え
ば前記リードに対するリファレンスでは、FROM6か
ら読み出したデータである。BCCはレスポンスの伝送
誤りを検出するための検査コードである。
In Table 2, the command copy is the command type of the latest command sent from the external device to the rC card. The status represents the processing result on the IC card. The response data is a target to be transmitted to an external device, and for example, in the reference to the read, it is data read from FROM6. BCC is a check code for detecting transmission errors in responses.

このようにして、ICカードは外部機器との間でデータ
の送受信を実現する。
In this way, the IC card realizes data transmission and reception with an external device.

発明が解決しようとする課題 しかしながら、上記のような従来のICカードは、以下
のような課題を有している。
Problems to be Solved by the Invention However, the conventional IC cards as described above have the following problems.

第4図に於て、マイクロプロセッサ3が外部機器からコ
マンドを受信するのに要する時間を10、マイクロプロ
セッサ3から外部機器にレスポンスを送信するのに必要
な時間をtl、マイクロプロセッサ3がコマンド解析に
要する時間をt2、マイクロプロセッサ3がレスポンス
組み立てに要する時間をt3、マイクロプロセッサ3が
1バイトのデータをFROM6から読み出すのに要する
時間をt4.マイクロプロセッサ3が1バイトのデータ
をFROM6に書き込むのに要する時間をt5とする。
In FIG. 4, the time required for the microprocessor 3 to receive a command from an external device is 10, the time required for the microprocessor 3 to send a response to the external device is tl, and the microprocessor 3 analyzes the command. The time required for the microprocessor 3 to assemble the response is t2, the time required for the microprocessor 3 to read 1 byte of data from the FROM 6 is t4. Let t5 be the time required for the microprocessor 3 to write 1 byte of data to the FROM 6.

外部機器とICカードとの間でコマンドとレスポンスの
送受信を行って1バイトのデータをICカード内のメモ
リから外部機器に読み出すのに要する時間は to+t2+t4+t3+t 1 である。
The time required to send and receive commands and responses between the external device and the IC card and read 1 byte of data from the memory in the IC card to the external device is to+t2+t4+t3+t1.

逆に外部機器とICカードとの間でコマンドとレスポン
スの送受信を行って、1バイトのデータを外部機器から
ICカードのメモリに書き込むのに要する時間は to+t2+t5+t3+t 1 である。
Conversely, the time required to send and receive commands and responses between the external device and the IC card and write 1 byte of data from the external device to the memory of the IC card is to+t2+t5+t3+t1.

同様に外部機器とICカードとの間でコマンドとレスポ
ンスの送受信を行って、NバイトのデータをICカード
内のメモリから外部機器に読み出すのに要する時間は NX (to+t2+t4+t3+tl)外部機器とI
Cカードとの間でコマンドとレスポンスの送受信を行っ
て、Nバイトのデータを外部機器からICカードのメモ
リに書き込むのに要する時間は NX (tO+t2+t5−)−t3+tl)である。
Similarly, the time required to send and receive commands and responses between the external device and the IC card and read N bytes of data from the memory in the IC card to the external device is NX (to + t2 + t4 + t3 + tl) between the external device and the IC card.
The time required to send and receive commands and responses to and from the C card and write N bytes of data from the external device to the memory of the IC card is NX (tO+t2+t5-)-t3+tl).

第4図の集積回路モジュールから成るICカードで表1
9表2のコマンド及びレスポンスに従う場合、10は5
ms、tlは5ms、t2は0.5tns、t3は0.
5ms、t4は2μs、t5は10m5である。
Table 1 shows the IC card consisting of the integrated circuit module shown in Figure 4.
9 If you follow the commands and responses in Table 2, 10 is 5.
ms, tl is 5ms, t2 is 0.5tns, t3 is 0.
5ms, t4 is 2μs, and t5 is 10m5.

従って、N l<イトのデータをICカード内のメモリ
から外部機器に読み出すのに要する時間は約NX11m
5.Nバイトのデータを外部機器からICカード内のメ
モリに書き込むのに要する時間は杓NX21m5である
。読み出しと書き込み時間の違いは、t4とt5の違い
によって発生している。即ち、ICカード内のデータを
記憶するためのFROM6は通常電気書き込み電気消去
型のE E P ROMが使用されるが、現在の技術で
はE E P R’OMは読み出し時間は数100ns
であるのに対して書き込み時間は短くとも10m5必要
だからである。
Therefore, the time required to read the data of N l<ite from the memory in the IC card to the external device is approximately NX11m.
5. The time required to write N bytes of data from an external device to the memory in the IC card is approximately NX21m5. The difference in read and write time is caused by the difference in t4 and t5. That is, the FROM 6 for storing data in the IC card is normally an electrically written/erasable EEPROM, but with the current technology, the readout time of the EEPROM is several 100 ns.
This is because, on the other hand, the writing time requires at least 10 m5.

ICカードを使用したアプリケーションではICカード
に対して読み出しと書き込みを繰り返しながら処理を遂
行する。しかし、以上に示した従来のICカードを用い
るとアプリケーションの処理速度はICカードへの書き
込み時間によって規制され、この結果ICカードへのコ
マンド数が同一でもライトコマンドが多いアプリケーシ
ョンはど処理速度が低下するという課題があった。
An application using an IC card performs processing by repeatedly reading and writing to the IC card. However, when using the conventional IC card described above, the processing speed of an application is regulated by the write time to the IC card, and as a result, even if the number of commands to the IC card is the same, the processing speed of an application that has many write commands will decrease. There was an issue to do.

これまでは、FROM6としてEEPROMの場合に付
いて説明したがEEFROMの代わりにEPROMが用
いられても同様であることは言うまでもない。
Up to now, the case where EEPROM is used as FROM6 has been explained, but it goes without saying that the same applies even if EPROM is used instead of EEFROM.

更に、携帯可能データ記憶担体としてICノノ−ドを例
にとって説明したが、ICカード以外でもデータ記憶部
とアクセス制御手段から構成される携帯可能データ記憶
担体でも同様である。
Furthermore, although the description has been made by taking an IC node as an example of a portable data storage carrier, the same applies to a portable data storage carrier other than an IC card, which is composed of a data storage section and an access control means.

本発明は上記従来の課題を解決するもので、携帯可能デ
ータ記憶担体への書き込み時間と、携帯可能データ記憶
担体からの読み出し時間がほぼ等しく、携帯可能データ
記憶担体を使用したアプリケーションの処理速度が単位
時間あたりに携帯可能データ記憶担体に対して送信する
コマンド数のみで決定でき、携帯可能データ記憶担体へ
のライトコマンドの比率が増加してもアプリケーション
の処理速度は低下しない携帯可能データ記憶担体を提供
することを目的とする。
The present invention solves the above-mentioned conventional problems, and the time required to write to a portable data storage carrier is approximately equal to the time required to read from the portable data storage carrier, thereby increasing the processing speed of an application using a portable data storage carrier. The portable data storage carrier can be determined only by the number of commands to be sent to the portable data storage carrier per unit time, and the processing speed of the application does not decrease even if the ratio of write commands to the portable data storage carrier increases. The purpose is to provide.

課題を解決するための手段 この目的を達成するために本発明の携帯可能データ記憶
担体は、第1のデータ記憶部に加えて、第1のデータ記
憶部からの単位データ読み出しに要する時間とほぼ等し
い単位データ書き込み時間及び読み出し時間を有する第
2のデータ記憶部を設けるものである。
Means for Solving the Problems To achieve this object, the portable data storage carrier of the present invention provides a first data storage with a time approximately equal to the time required to read a unit of data from the first data storage. A second data storage section having equal unit data write time and read time is provided.

作用 この構成によって、携帯可能データ記憶担体へのデータ
書き込み及び読み出しを第2のデータ記憶部から行えば
、携帯可能データ記憶担体への書き込み時間と読み出し
時間をほぼ等しくできるので、携帯可能データ記憶担体
を使用したアプリケーションの処理速度は単位時間あた
りに携帯可能データ記憶担体に対して送信するコマンド
数のみで決定でき、携帯可能データ記憶担体へのライト
コマンドの比率が変わっても一定となる。
Effect: With this configuration, when data is written to and read from the portable data storage carrier from the second data storage section, the writing time and the reading time from the portable data storage carrier can be made approximately equal. The processing speed of an application using the portable data storage carrier can be determined only by the number of commands sent to the portable data storage carrier per unit time, and remains constant even if the ratio of write commands to the portable data storage carrier changes.

実施例 以下本発明の一実施例について、図面を参照しながら説
明する。
EXAMPLE An example of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例に於ける携帯可能データ記憶
担体の一例であるICカードに内蔵されている集積回路
モジュールの構成を示すブロック図である。第1図に於
いて、2a〜2hは、第4図に於ける2a〜2hと同一
で、2aは集積回路モジュールの電源端子、2bは集積
回路モジュールを初期化するリセット端子、2Cは集積
回路モジュールにクロックを供給するクロック端子、2
dは予備端子、2eは集積回路モジュールのアースであ
るアース端子、2fは集積回路モジュール内のメモリへ
の書き込みに使用する書き込み電源端子、2gは集積回
路モジュールとICカード外部機器との間で通信を行う
ためのI10端子、2hは予備端子である。7は集積回
路モジュール全体を制御するマイクロプロセッサ、7a
は外部機器との通信制御を行う通信制御手段、7bはデ
ータ記憶部への書き込み読み出しを制御するアクセス制
御手段である。8はマイクロプロセッサ7のプログラム
を格納しているROM、9はマイクロプロセッサ7が動
作する際にワーキングエリアとして使用するRAM、1
0はデータを記憶するための第1のデータ記憶部である
FROM、11はデータを記憶するための第2のデータ
記憶部であるRAMである。
FIG. 1 is a block diagram showing the configuration of an integrated circuit module built into an IC card, which is an example of a portable data storage carrier according to an embodiment of the present invention. In FIG. 1, 2a to 2h are the same as 2a to 2h in FIG. 4, 2a is the power supply terminal of the integrated circuit module, 2b is the reset terminal for initializing the integrated circuit module, and 2C is the integrated circuit module. Clock terminal that supplies clock to the module, 2
d is a spare terminal, 2e is a ground terminal which is the ground of the integrated circuit module, 2f is a write power supply terminal used for writing to the memory in the integrated circuit module, and 2g is a communication between the integrated circuit module and the IC card external device. The I10 terminal and 2h are reserved terminals for performing this. 7 is a microprocessor that controls the entire integrated circuit module; 7a;
7b is a communication control means for controlling communication with an external device, and 7b is an access control means for controlling reading and writing to the data storage section. 8 is a ROM that stores the program for the microprocessor 7; 9 is a RAM that is used as a working area when the microprocessor 7 operates;
0 is a FROM which is a first data storage section for storing data, and 11 is a RAM which is a second data storage section for storing data.

第1図の集積回路モジュールから成るICカードは、第
4図の集積回路モジョールから成るICカードと同様に
外部機器からI10端子2gを経由して与えられるコマ
ンドに従ってマイクロプロセッサ7が集積回路モジュー
ルを制御し、処理結果をレスポンスとしてI10端子2
gを経由して前記外部機器に返す。I10端子2gを経
由する通信は、一般に半二重調歩同期式で、第1図のI
Cカードでは伝送速度は9600ボー、キャラクタフォ
ーマットはスタートビット1ビツト、データ゛ビット7
ビツト、パリティビット1ビツト、ストップビット1ビ
ツトであるものとする。
In the IC card consisting of the integrated circuit module shown in FIG. 1, the microprocessor 7 controls the integrated circuit module in accordance with a command given from an external device via the I10 terminal 2g, similar to the IC card consisting of the integrated circuit module shown in FIG. Then, the processing result is sent to I10 terminal 2 as a response.
The data is returned to the external device via g. Communication via the I10 terminal 2g is generally a half-duplex start-stop synchronization type, and is
For the C card, the transmission speed is 9600 baud, and the character format is 1 start bit and 7 data bits.
Assume that there are 1 bit, 1 parity bit, and 1 stop bit.

コマンドのフォーマットとバイト数は上記表1と同様で
ある。但しコマンド種別は、少なくとも、リードコマン
ド、ライトコマンド、終了コマンドの3fl類を備えて
いるものとする。リファレンスのフォーマットとバイト
数のは上記表2と同様である。
The command format and number of bytes are the same as in Table 1 above. However, it is assumed that the command types include at least three fl types: read command, write command, and end command. The reference format and number of bytes are the same as in Table 2 above.

第2図は第1図の集積回路モジュールから成るICカー
ドの動作を示すフローチャートである。
FIG. 2 is a flowchart showing the operation of the IC card comprising the integrated circuit module of FIG.

以下に、第2図のフローチャートに従って第1図の集積
回路モジュールから成るICカードの動作を説明する。
The operation of the IC card comprising the integrated circuit module shown in FIG. 1 will be explained below in accordance with the flowchart shown in FIG.

まず、第1図の集積回路モジュールから成るICカード
に電源が供給されるとマイクロプロセッサ7はFROM
IOのデータを全てRAMIIにコピーする、この後マ
イクロプロセッサ7はICカ−ドが接続されている外部
機器からコマンドが送信されてくるのを待つ。外部機器
からコマンドが送信されるとマイクロプロセッサ7は、
コマンド種別を解析する。コマンドがライトコマンドで
ある場合にはRAMI 1にデータを書き込み、コマン
ドがリードコマンドである場合にはRAMI 1からデ
ータを読み出す。この後結果をレスポンスで外部機器に
返し、再び外部機器からコマンドが送信されてくるのを
待つ。
First, when power is supplied to the IC card consisting of the integrated circuit module shown in FIG.
After copying all IO data to RAMII, the microprocessor 7 waits for a command to be sent from the external device to which the IC card is connected. When a command is sent from an external device, the microprocessor 7
Analyze the command type. If the command is a write command, data is written to RAMI 1, and if the command is a read command, data is read from RAMI 1. After this, the result is returned to the external device as a response, and the device waits for a command to be sent from the external device again.

コマンドがライトコマンドでもリードコマンドでもなけ
れば終了コマンドであるかどうかを検査する、終了コマ
ンドでない場合は該当する処理を行った後結果をレスポ
ンスで外部機器に返し、再び外部機器からコマンドが送
信されてくるのを待つ。
If the command is neither a write command nor a read command, it is checked whether it is an end command. If it is not an end command, the corresponding processing is performed and the result is returned to the external device as a response, and the command is sent from the external device again. wait for it to come.

終了コマンドである場合、RAMIIとFROMIOと
のデータを比較して、異なるデータのみをRAMIIか
らFROMIOにコピーする。続いて結果をレスポンス
で外部機器に返した後、ICカードは全ての処理を終了
する。
If it is an end command, the data in RAMII and FROMIO are compared and only the different data is copied from RAMII to FROMIO. Subsequently, after returning the result to the external device as a response, the IC card ends all processing.

このように、外部機器とICカードとのデータ送受信は
ICカード内のRAMI 1を対象として実施される。
In this way, data transmission and reception between the external device and the IC card is performed using RAMI 1 in the IC card.

本実施例に於ける処理時間を以下に計算する。The processing time in this example is calculated below.

第1図及び第2図に於て、マイクロプロセッサ7が外部
機器からコマンドを受信するのに要する時間をtlo、
マイクロプロセッサ7から外部機器にレスポンスを送信
するのに必要な時間をtll、マイクロプロセッサ7が
コマンド解析に要する時間をt12、マイクロプロセッ
サ7がレスポンス組み立てに要する時間をt13、マイ
クロプロセッサ7が1バイトのデータをRAMIIから
読み出すのに要する時間をt14、マイクロプロセッサ
7が1バイトのデータをRAMIIに書き込むのに要す
る時間をt15、マイクロプロセッサ7が1バイトのデ
ータをFROMIOから読み出すのに要する時間をtl
o、マイクロプロセッサ7が1バイトのデータをFRO
MIOに書き込むのに要する時間をtll、マイクロプ
ロセッサ7が二つのデータを比較するのに要する時間を
t18、マイクロプロセッサ7がアドレスをインクリメ
ントするのに要する時間をt19、マイクロプロセッサ
7がFROMIOのアドレスが最終アドレスかどうか判
定するのに要する時間をt20とする。またFROMI
OとRAMIIは容量が同一でLバイト、P ROM 
10とRAMIIとで異なっているデータのバイト数が
Jバイトであるとする。
In FIGS. 1 and 2, the time required for the microprocessor 7 to receive a command from an external device is tlo,
tll is the time required for the microprocessor 7 to send a response to an external device, t12 is the time required for the microprocessor 7 to analyze the command, t13 is the time required for the microprocessor 7 to assemble the response, and t13 is the time required for the microprocessor 7 to assemble the response. The time required for reading data from RAMII is t14, the time required for microprocessor 7 to write 1 byte of data to RAMII t15, the time required for microprocessor 7 to read 1 byte of data from FROMIO tl
o, microprocessor 7 sends 1 byte of data FRO
The time required for writing to MIO is tll, the time required for the microprocessor 7 to compare two data t18, the time required for the microprocessor 7 to increment the address is t19, and the time required for the microprocessor 7 to increment the address is tll. Let t20 be the time required to determine whether the address is the final address. Also FROMI
O and RAMII have the same capacity, L bytes, P ROM
Assume that the number of bytes of data that differs between RAMII and RAMII is J bytes.

外部機器とICカードとの間でコマンドとレスポンスの
送受信を行って、1バイトのデータをICカード内のR
AMIIから外部機器に読み出すのに要する時間は t10+t12+t14+t13+tllである。
Commands and responses are sent and received between the external device and the IC card, and 1 byte of data is transferred to the R in the IC card.
The time required to read data from AMII to an external device is t10+t12+t14+t13+tll.

逆に外部機器とICカードとの間でコマンドとレスポン
スの送受信を行って、1バイトのデータを外部機器から
ICカード内のRAMIIに書き込むのに要する時間は t10+t12+t15+t13+tllである。
Conversely, the time required to send and receive commands and responses between the external device and the IC card and write 1 byte of data from the external device to the RAM II in the IC card is t10+t12+t15+t13+tll.

同様に外部機器とICカードとの間でコマンドとレスポ
ンスの送受信を行って、NバイトのデータをICカード
内のRAMIIから外部機器に読み出すのに要する時間
は、 NX(t 1 o+t 12+t 14”t 13+t
 l l)外部機器とICカードとの間でコマンドとレ
スポンスの送受信を行って、Nバイトのデータを外部機
器からICカード内のRAMIIに書き込むのに要する
時間は NX(t10+t12+t15+t13+tll)FR
OMIOのデータを全てRAM1.1にコピーするのに
要する時間は Lx (t16+t15+t19+t20)RAMII
とFROMIOとのデータを比較して、異なるデータの
みをRAMIIからFROMIOにコピーするのに要す
る時間は J (t14+t18+t17+tL9+t20)で与
えられる。
Similarly, the time required to send and receive commands and responses between the external device and the IC card and read N bytes of data from the RAM II in the IC card to the external device is NX (t 1 o + t 12 + t 14"t 13+t
l l) The time required to send and receive commands and responses between the external device and the IC card, and write N bytes of data from the external device to the RAM II in the IC card is NX (t10+t12+t15+t13+tll)FR
The time required to copy all OMIO data to RAM1.1 is Lx (t16+t15+t19+t20)RAMII
The time required to compare the data between RAMII and FROMIO and copy only the different data from RAMII to FROMIO is given by J (t14+t18+t17+tL9+t20).

第1図のICカードで表11表2のコマンド及びレスポ
ンスに従う場合、tloは5ms、tllは5ms、t
l2は0.5ms、tl3は0.5ms、t ]、 4
は2μs、tl5は2μs、tl、6は2μS、tl7
はloms、tl8は2μs、tl9は21ts、t2
0は2μsである。
When using the IC card in Figure 1 and following the commands and responses in Table 11 and Table 2, tlo is 5ms, tll is 5ms, and t
l2 is 0.5ms, tl3 is 0.5ms, t ], 4
is 2μs, tl5 is 2μs, tl,6 is 2μS, tl7
is loms, tl8 is 2μs, tl9 is 21ts, t2
0 is 2 μs.

これから、外部機器とICカードとの間でコマンドとレ
スポンスの送受信を行って、NバイトのデータをICカ
ード内のRAMIIから外部機器に読み出すのに要する
時間は約NX11m5、Nバーr トのデータを外部機
器からICカード内のRAMIIに書き込むのに要する
時間は約N×11m5である。
From now on, the time required to send and receive commands and responses between the external device and the IC card, and read N bytes of data from RAMII in the IC card to the external device, is approximately NX11m5, and N bytes of data. The time required to write data from the external device to the RAM II in the IC card is approximately N×11 m5.

また、FROMIOのデータを全てRAMIIにコピー
するのに要する時間はLX8μs、RAM11とF R
OM 10とのデータを比較して、異なるデータのみを
RAMIIからFROMIOにコピーするのに要する時
間は約JX10msである。
Also, the time required to copy all the data from FROMIO to RAMII is LX8μs, and the time required to copy all data from FROMIO to RAMII is
The time required to compare data with OM 10 and copy only the different data from RAMII to FROMIO is approximately JX10ms.

このように本実施例によれば、外部機器とICカードと
のデータ送受信はICカード内のRAM11を対象とし
て実施されるから、ICカードに対して読み出しeMき
込みを繰り返しながら処理を遂行するICカードを使用
したアプリケーションの処理速度は単位時間あたりのI
Cカードへのコマンド数のみによって決定されるので、
ICカードへのコマンド数が同一ならライトコマンドが
多いアプリケーションでも処理速度が低下すると言うこ
とはない。
According to this embodiment, data transmission and reception between the external device and the IC card is carried out using the RAM 11 in the IC card, so that the IC card performs processing while repeating reading and eM loading to the IC card. The processing speed of applications using cards is I per unit time.
Since it is determined only by the number of commands to the C card,
As long as the number of commands to the IC card is the same, there will be no reduction in processing speed even if the application has many write commands.

FROMIOのデータを全てRAMIIにコピーするの
に要する時間と、RAMIIとP ROMloとのデー
タを比較して、異なるデータのみをRAMIIからPR
OM10にコピーするのに要する時間とは、従来の技術
によるICカードにはなかったものである。
Compare the time required to copy all the data in FROMIO to RAMII and the data in RAMII and PROMlo, and copy only the different data from RAMII to PR.
The time required to copy to OM 10 is something that prior art IC cards did not have.

ICカードのメモリ容量は外部機器から見た場合、前X
a Lバイトである。ICカードのメモリ容量は一般的
に8192バイトを上限とするものが多い。この場合F
ROMIOのデータを全てRAM11にコピーするのに
要する時間は約65m5である。これは外部機器からI
Cカードに対して6バイトのデータを書き込みもしくは
読み出すのに要する時間にほぼ等しい。ICカードへの
書き込み或は読み出しに要する時間が問題となるのはI
Cカード七の間で大量のデータを書き込み或は読み出し
する必要のあるアプリケーションである。たとえばIc
カードとの間で100バイトのデータを書き込み或は読
み出すアプリケーションではこの読み出し或は書き込み
に約1100msを必要である。このようなアプリケー
ションにとっては、F ROM 10のデータを全てR
AMIIにコピーするのに要する時間約65m5はほぼ
無視し得る値である。
The memory capacity of an IC card is
a L byte. The memory capacity of IC cards generally has an upper limit of 8192 bytes. In this case F
The time required to copy all the ROMIO data to the RAM 11 is approximately 65m5. This is from an external device.
This is approximately equal to the time required to write or read 6 bytes of data to or from a C card. The problem is the time required to write to or read from an IC card.
This is an application that requires writing or reading a large amount of data between C cards. For example, Ic
An application that writes or reads 100 bytes of data to/from a card requires approximately 1100 ms for this read or write. For such applications, all data in F ROM 10 must be
The time required to copy to AMII, approximately 65m5, is almost negligible.

また、RAMIIとFROMIOとのデータを比較して
、異なるデータのみをRAMI 1からFROMIOに
コピーするのは、ICカードの使用を終了する時点、例
えばICカードを外部機器から分離する時点で良く、こ
の時点ではアプリケーションの処理は全て終了している
からアプリケーションの処理速度を低下させることはな
い。
In addition, it is sufficient to compare the data in RAMII and FROMIO and copy only the different data from RAMI 1 to FROMIO when you finish using the IC card, for example, when you separate the IC card from an external device. At this point, all the processing of the application has finished, so the processing speed of the application will not be reduced.

更に、終了コマンドが発行されなければRAM11から
PROMl0にデータをコピーしないと言う本発明によ
るICカードの特徴を生かせば、アプリケーションにと
ってICカードを一時的な処理データ記憶用メモリとし
て、FROMIOのデータに影響を与える事なく使用で
きると言う利点もある。
Furthermore, by taking advantage of the feature of the IC card according to the present invention that data is not copied from RAM 11 to PROM 10 unless a termination command is issued, it is possible for the application to use the IC card as a temporary processing data storage memory and influence the FROMIO data. It also has the advantage of being able to be used without giving any damage.

第1図に於いではFROMIOはEEPROMでもEP
ROMでも良いことは言うまでもない。
In Figure 1, FROMIO is either EEPROM or EP.
Needless to say, ROM is fine.

これまでは、携帯可能データ記憶担体としてICカード
を例にとって説明したが、ICカード以外でもデータ記
憶部とアクセス制御手段から構成される携帯可能データ
記憶担体であれば同様である。
Up to now, the explanation has been given using an IC card as an example of a portable data storage carrier, but the same applies to other portable data storage carriers that are composed of a data storage section and an access control means.

発明の効果 以上のように本発明は、第1のデータ記憶部に加えて、
第1のデータ記憶部からの単位データ読み出しに要する
時間とほぼ等しい単位データ書き込み時間及び読み出し
時間を有する第2のデータ記憶部を設けるものであって
、携帯可能データ記憶担体を使用したアプリケーション
の処理速度は単位時間あたりに携帯可能データ記憶担体
に対して送信するコマンド数のみで決定でき、携帯可能
データ記憶担体へのライトコマンドの比率が増加しても
アプリケーションの処理速度は低下しないので、ICカ
ードを使用した処理が高速であるアプリケーションを容
易に作成することができると言う効果が得られる。
Effects of the Invention As described above, the present invention includes, in addition to the first data storage unit,
processing of an application using the portable data storage carrier, the second data storage having a unit data writing time and a reading time approximately equal to the time required to read a unit of data from the first data storage unit; The speed can be determined only by the number of commands sent to the portable data storage carrier per unit time, and the processing speed of the application will not decrease even if the rate of write commands to the portable data storage carrier increases. The effect is that it is possible to easily create applications that use high-speed processing.

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

第1図は本発明の一実施例に於ける携帯可能データ記i
f■体の一例であるICカードに内蔵されている集積回
路モジュールの構成を示すブロック図、第2図は第1図
のICカードの動作を示すフ[]−チャート、第3図は
従来の携帯可能データ記憶担体の一例であるICカード
の形状を示す外観図、第4図はICカードに内蔵されて
いる集積回路モジュールの構成を示すブロック図である
。 2a・・・・・・集積回路モジュールの電源端子、2b
・・・・・・集積回路モジュールを?71期化するリセ
ット端子、2C・・・・・・集積回路モジュールにクロ
ックを供給するクロック端子、2d・・・・・・予11
1.lil子、2e・・・・・・集積回路モジュールの
アースであるアース端子、2f・・・・・・lff1回
路モジュール内のメモリへの書き込みに使用する書き込
み電源端子、2g・・・・・・集積回路モジュールとI
Cカード外部機器との間で通信を行うための110端子
、2h・・・・・・予備端子、7・・・・・・菓債回路
モジュール全体を制御するマイクロプロセッサ、7a・
・・・・・外部機器との通信III御を行う通信制御手
段、7b・・・・・・データ記憶部・\の書き込み読み
出しを制御するアクセス制御手段、8・・・・・・マイ
クロプロセッサ7のプログラムを格納しているROM、
9・・・・・・マイクロプロセッサ7が動作する際にワ
ーキングエリアとして使用するRAM、10・・・・・
・データを記憶するための第1のデータJ己1意部であ
るPROM、11・・・・・・データを記憶するだめの
第1のデータJ己憶部であるR A M。 代理人の氏名 弁理士 粟野重孝 ほか1名第 図 第 2 図
FIG. 1 shows a portable data storage system according to an embodiment of the present invention.
Figure 2 is a block diagram showing the configuration of an integrated circuit module built into an IC card, which is an example of an IC card; Figure 2 is a block diagram showing the operation of the IC card in Figure 1; FIG. 4 is an external view showing the shape of an IC card, which is an example of a portable data storage carrier, and a block diagram showing the configuration of an integrated circuit module built into the IC card. 2a...Power terminal of integrated circuit module, 2b
...Integrated circuit module? 71st reset terminal, 2C...Clock terminal that supplies clock to the integrated circuit module, 2d...Pre-11
1. lil child, 2e...Ground terminal which is the ground of the integrated circuit module, 2f......Writing power supply terminal used for writing to the memory in the lff1 circuit module, 2g... Integrated circuit module and I
110 terminal for communicating with the C card external device, 2h... Reserve terminal, 7... Microprocessor for controlling the entire bond circuit module, 7a.
. . . Communication control means for controlling communication III with external equipment, 7b . . . Access control means for controlling writing and reading of the data storage unit \, 8 . . . Microprocessor 7 ROM that stores the program of
9... RAM used as a working area when the microprocessor 7 operates, 10...
・PROM, 11, which is a first data storage unit for storing data; RAM, which is a first data storage unit for storing data; Name of agent: Patent attorney Shigetaka Awano and one other person Figure 2

Claims (3)

【特許請求の範囲】[Claims] (1)第1のデータ記憶部と、第2のデータ記憶部と前
記第1及び第2のデータ記憶部への書き込み読み出しを
制御するアクセス制御手段とを備え、前記第1のデータ
記憶部への単位データ書き込みに要する時間は単位デー
タ読み出しに要する時間以上であり、前記第2のデータ
記憶部への単位データ書き込みに要する時間及び読み出
しに要する時間は前記第1のデータ記憶部への単位デー
タ書き込みに要する時間にほぼ等しく、前記第2のデー
タ記憶部の記憶容量は前記第1のデータ記憶部の記憶容
量以上であることを特徴とする携帯可能データ記憶担体
(1) comprising a first data storage section, a second data storage section, and an access control means for controlling writing and reading to the first and second data storage sections; The time required to write unit data is longer than the time required to read unit data, and the time required to write unit data to the second data storage section and the time required to read unit data are longer than the time required to read unit data to the first data storage section. A portable data storage carrier, characterized in that the time required for writing is approximately equal to the time required for writing, and the storage capacity of the second data storage section is greater than or equal to the storage capacity of the first data storage section.
(2)第1のデータ記憶部がEEPROMで、前記第2
のデータ記憶部がRAMで構成されることを特徴とする
特許請求の範囲第1項記載の携帯可能データ記憶担体。
(2) The first data storage section is an EEPROM, and the second data storage section is an EEPROM.
Portable data storage carrier according to claim 1, characterized in that the data storage section is constituted by a RAM.
(3)第1のデータ記憶部がEPROMで、前記第2の
データ記憶部がRAMで構成されることを特徴とする特
許請求の範囲第1項記載の携帯可能データ記憶担体。
(3) The portable data storage carrier according to claim 1, wherein the first data storage section is an EPROM, and the second data storage section is a RAM.
JP1104948A 1989-04-25 1989-04-25 Portable data storage carrier Pending JPH02282885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1104948A JPH02282885A (en) 1989-04-25 1989-04-25 Portable data storage carrier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1104948A JPH02282885A (en) 1989-04-25 1989-04-25 Portable data storage carrier

Publications (1)

Publication Number Publication Date
JPH02282885A true JPH02282885A (en) 1990-11-20

Family

ID=14394321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1104948A Pending JPH02282885A (en) 1989-04-25 1989-04-25 Portable data storage carrier

Country Status (1)

Country Link
JP (1) JPH02282885A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011181049A (en) * 2010-03-04 2011-09-15 Dainippon Printing Co Ltd Method and program for controlling ic chip and ic card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011181049A (en) * 2010-03-04 2011-09-15 Dainippon Printing Co Ltd Method and program for controlling ic chip and ic card

Similar Documents

Publication Publication Date Title
CN101471124B (en) Memory card, card controller installed in memory card, and processing unit of memory card
KR100877610B1 (en) Method and apparatus for storing page data
JP3104646B2 (en) External storage device
DE69509297T2 (en) Video game device with external storage devices
JP2007317170A (en) Ic module and cellular phone
DE102008015034A1 (en) Memory card, memory card system, method for controlling a host, and method for operating a memory card
CN100535935C (en) CPUCPU and logic encryption double-purpose smart card and its data synchronization method
CN101187912A (en) Memory card system and method transmitting host identification information thereof
JPH03144879A (en) Portable semiconductor memory device
JP2005174337A (en) Memory system, and method for setting data transmission speed between host and memory card
JPH02282885A (en) Portable data storage carrier
US20080162479A1 (en) Memory card system and method for transmitting background information thereof
JPH08221312A (en) Memory card device
JPS61211788A (en) Ic card
JP2930259B2 (en) Portable electronic devices
JPS62278691A (en) Memory card
US20130019055A1 (en) Memory control device and method
JP3077911B2 (en) Portable electronic devices
JP2005293362A (en) Data carrier and program for it
JP2000172810A (en) Portable information processing medium
JP3775697B2 (en) Portable information storage media
JPS59116838A (en) Read and write control system for card information
KR102020674B1 (en) Issuing method and storing method of user data based on specific personalization command for IC card
JPH11288446A (en) Radio card and communication equipment and method using the card
JPH0693252B2 (en) Portable electronic device initialization device