JPS61273689A - Integrated circuit card containing discriminating means between history information and replacement information - Google Patents

Integrated circuit card containing discriminating means between history information and replacement information

Info

Publication number
JPS61273689A
JPS61273689A JP60115885A JP11588585A JPS61273689A JP S61273689 A JPS61273689 A JP S61273689A JP 60115885 A JP60115885 A JP 60115885A JP 11588585 A JP11588585 A JP 11588585A JP S61273689 A JPS61273689 A JP S61273689A
Authority
JP
Japan
Prior art keywords
information
card
area
bit
reading
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
JP60115885A
Other languages
Japanese (ja)
Other versions
JPH0473196B2 (en
Inventor
Hiroshi Watanabe
弘 渡辺
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.)
Toppan Edge Inc
Original Assignee
Toppan Moore 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 Toppan Moore Co Ltd filed Critical Toppan Moore Co Ltd
Priority to JP60115885A priority Critical patent/JPS61273689A/en
Publication of JPS61273689A publication Critical patent/JPS61273689A/en
Publication of JPH0473196B2 publication Critical patent/JPH0473196B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To read out desired information only and to shorten access time by storing both history information and replacement information in each allocated storage area to read these two information with discrimination and at the same time reading the update information only out of the replacement information. CONSTITUTION:An IC module 4 made of a memory chip 41 containing a CPU chip 40 and a PROM 411 like an EEPROM, etc. which can be erased with the ultraviolet rays is buried into an IC card. Then the write data information is written to an area of the chip 41 allocated in response to the history information or the replacement information via a CPU 401, etc. In a reading mode only the latest information is read out of the replacement information. Thus only the desired information is always read out and therefore the access time is shortened.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明はマイクロコンピユータやメモリなどの集積回
路を内蔵したICカードに係り、特に、変動するデータ
についてF+a録の無駄を無くし、アクセスを敏速にし
て、汎用性を高めるために履歴情報と更新情報の識別手
段を備えたICカードに関するものである。
[Detailed Description of the Invention] (Industrial Application Field) This invention relates to an IC card with a built-in integrated circuit such as a microcomputer or memory, and in particular, it eliminates the waste of F+A records for fluctuating data and speeds up access. The present invention relates to an IC card equipped with means for identifying history information and update information in order to increase versatility.

ICカードはスマートカードなどとも呼ばれ、偏平形状
のものの仙に、鍵状、棒状などのものも存在するが、こ
の発明におけるICカードとは、これらすべてを含むも
のとする。
IC cards are also called smart cards, and in addition to flat-shaped cards, there are also key-shaped, rod-shaped, etc. IC cards, and the term "IC card" in this invention includes all of these.

(従来の技術) ICカードはマイクロコンビコータやメモリを内蔵して
いるので、それ自身で判断と記憶の機能を持つ小さな情
報処理機になっている。従って、クレジットカード、銀
行カードなどに従来から用いられている磁気カードより
も、データの秘密と安全を強化できる。しかも、ICの
進歩により記1!!l容幡が飛躍的に増大したので、I
Cカードは、データ記憶用カードとして、一層の期待が
寄せられている。
(Prior Art) Since an IC card has a built-in microcombicoater and memory, it is a small information processing device that has its own judgment and storage functions. Therefore, the confidentiality and security of data can be enhanced compared to magnetic cards conventionally used for credit cards, bank cards, etc. Moreover, due to the progress of IC, the record 1! ! Since the volume of l capacity has increased dramatically, I
C-cards are increasingly expected to be used as data storage cards.

ICカードのメモリには、紫外線によるEPROM(イ
レーサブル・プログラマブル・リード・オンリー・メモ
リ)、El三FROM(エレク1〜リカル・イレーデブ
ル・プログラマブル・リード・オンリー・メモリ)など
の不揮発性ICメモリが使用され、これらメ七りはカー
ドに電源を埋設しなくても記憶を保持できるので、簡単
な構造に製作できる利点があり、現在までのICカード
の主要な記憶手段として採用されている。しかしながら
RAM(ランダム・アクセス・メモリ)などの揮発性I
Cメモリも、電池など持続性の電源で支持するか、また
は他のメモリの記憶内容を一時退避させる手段などとし
て、IC用のメモリに使用できる。
Non-volatile IC memories such as EPROM (erasable programmable read-only memory) and El3FROM (electronic erasable programmable read-only memory) are used for the memory of IC cards. Since these memory cards can retain memory without embedding a power source in the card, they have the advantage of being able to be manufactured with a simple structure, and have been adopted as the main storage means of IC cards to date. However, volatile I such as RAM (Random Access Memory)
C memory can also be used as an IC memory, supported by a continuous power source such as a battery, or as a means for temporarily saving the contents of other memories.

これらのICメモリにより、ICカードに情報を記憶さ
ぜるには、ICメモリ内に適当な広さの記憶Jリアを設
定し、その一端から順次に情報を書き込んで行くのが一
般的な方法である。従来においては、こうして書込んだ
情報を一括して読出したり、または複数の記憶エリアに
それぞれ順次に情報を書込んで置いて、記憶エリアの番
号を指定して、記憶エリア単位で情報の読出しを行なっ
ていた。
In order to store information on an IC card using these IC memories, the general method is to set up a storage space of an appropriate size in the IC memory and write information sequentially from one end of the memory. It is. Conventionally, the information written in this way can be read out all at once, or the information can be written into multiple storage areas sequentially, and the information can be read out in units of storage areas by specifying the number of the storage area. I was doing it.

(発明が解決しようとJる問題点) このように記憶エリアごとに読出す装置に於ては、記憶
エリア内の情報のうちの一部分、例えば最新情報のみを
読出したい場合でも、記憶エリアの最初から順次に続出
していくので、必要な情報に達するまでに時間がかかり
、また、不要な情報が一緒に読出されるので、機密−に
も問題があった。
(Problem to be Solved by the Invention) In a device that reads out each storage area in this way, even if you want to read out only a part of the information in the storage area, for example, the latest information, the first part of the storage area Since the information is read one after another, it takes time to reach the necessary information, and unnecessary information is also read out at the same time, which poses a security problem.

(問題点を解決するための手段) この発明においては、最新情報の読出しのみが必要な更
新情報と、記録されたデータ全体の読出しが必要な履歴
情報とがあることに着目して、最新情報のみを読み出す
「更新読出し1と履歴情報を読み出す[履歴読出し1を
識別して実行することができるようにそれら情報を複数
個の配憶エリアに割当てる手段と、更新情報を記録した
記憶エリアからは最新情報のみを読出す手段を備えてい
る。
(Means for Solving the Problems) In the present invention, the latest information is ``Update reading 1'' and history information reading ``Means for allocating the information to multiple storage areas so that the history reading 1 can be identified and executed; It is equipped with means for reading only the latest information.

(作用) 更新読出しの配憶エリアにおいては、従来のように記憶
エリアの一端から順次に読出すのではなく、最新情報の
みをアクセスして読出す。更新読出しに指定しない記憶
エリアにおいては、従来通り、記憶エリアの一端から順
次に読出すことにより、履歴読出しをすることができる
(Function) In the storage area for update reading, only the latest information is accessed and read out, instead of reading out sequentially from one end of the storage area as in the conventional case. In a storage area that is not designated for update reading, history reading can be performed by sequentially reading from one end of the storage area as before.

(発明の効果) この発明によれば、履歴情報と更新情報を識別して読出
し可能に記憶エリアに割当て記録1ノであるから、最新
情報のみを必要とする更新読出しの場合は、古い情報を
読出すことなく最新情報のみを直接アクセスすることが
できるのでアクセス時間が短縮され、また履歴読出しの
場合は、それまでに記録された全脂層情報を読み出すこ
とができ、経時的な変化の確認、変化の原因、将来の動
向の推測等に係る情報の迅速適確な入手が可能となる。
(Effects of the Invention) According to the present invention, history information and update information are identified and recorded in storage areas in a readable manner, so when updating and reading only the latest information, old information is Access time is shortened because only the latest information can be directly accessed without having to read it out, and in the case of history reading, the entire fat layer information recorded up to that point can be read out, allowing you to check changes over time. It becomes possible to quickly and accurately obtain information related to the causes of changes, estimates of future trends, etc.

このように不要な情報の読出しを回避し最新情報のみの
読出しを必要とする更新情報については更新読出しを実
行し、これまでに記録されたすべての情報の読出しを必
要とする項目に係る履歴情報については脂層読出しを実
行できるように、記憶エリアに情報を区分して記録して
いるので、情報の読出し効率が向上し、情報処理の迅速
化を図ることができ、従ってICカードの使用効率を高
めることができる。
In this way, reading of unnecessary information is avoided and update reading is performed for updated information that requires reading only the latest information, and history information related to items that require reading of all previously recorded information is performed. Since the information is divided and recorded in the storage area so that the fat layer can be read out, the efficiency of reading out the information is improved, speeding up the information processing, and therefore improving the efficiency of IC card usage. can be increased.

(実施例) この発明の実施例を、図面を参照しながら説明する。第
1図はこの発明によるICカードの一実施例の外観を示
す正面図で第2図はその内部構成を示す断面図である。
(Example) An example of the present invention will be described with reference to the drawings. FIG. 1 is a front view showing the appearance of an embodiment of an IC card according to the present invention, and FIG. 2 is a sectional view showing its internal structure.

ICカード1にはプラスチックなどで作られたカード・
コア2の一部に空所3が形成され、この中にICモジュ
ール4を収容している。、ICモジュール4には1個な
いし2個のLSIチップが搭載されている。このIC七
ジ]−ルには8個の接点端子5が設けられ、外部の回路
とICモジュール4が含まれている電子回路との間の電
気的な接続が行われる。
IC card 1 is a card made of plastic, etc.
A cavity 3 is formed in a part of the core 2, and an IC module 4 is housed in the cavity 3. , the IC module 4 is equipped with one or two LSI chips. This IC module is provided with eight contact terminals 5 for electrical connection between an external circuit and an electronic circuit in which the IC module 4 is included.

ICモジュールを保護1−るために空所3は充てん剤6
で満たす。またカード・コア2の上下には印刷層7.7
′を接合し、その印刷層の表面には、必要に応じ図案、
文字等が印刷され、さらにその表面はこれを保護する表
層8.8′で蔽われている。第2図は、特に厚さを誇張
して図示しであるが、実際の厚さは例えばカード・コア
0.55m1ll。
To protect the IC module, the void 3 is filled with filler 6.
Fill it with Also, on the top and bottom of the card core 2 there is a printing layer 7.7.
′ is bonded, and the surface of the printing layer is marked with a pattern or a pattern as necessary.
Characters and the like are printed on it, and its surface is further covered with a protective surface layer 8.8'. Although the thickness is particularly exaggerated in FIG. 2, the actual thickness of the card core is, for example, 0.55 ml.

印刷層0.lva、表層0.02111で、全体で0.
8a+m程度に什−Fげられる。なお磁気ストライプ9
とエンボス文字10は、用途に応じて付加されるもので
あり、ICカードとして不可欠なものではない。
Print layer 0. lva, surface layer 0.02111, overall 0.
The height is approximately 8a+m. Furthermore, the magnetic stripe 9
The embossed characters 10 are added depending on the purpose and are not essential to the IC card.

第3図は、ICモジュール4に含まれるICの構成を例
示するブロック図で、CPUチップ40とメモリチップ
41の2チツプ構成の例を示す。
FIG. 3 is a block diagram illustrating the configuration of the IC included in the IC module 4, and shows an example of a two-chip configuration of a CPU chip 40 and a memory chip 41.

CPUチップ40に含まれるOP LJ 401はプロ
グラムによる制御を行ない、ROM402はプログラム
などを記憶し、RAM403はプ[1グラム・ステップ
の途中においてデータを一時的に記憶する役割などを果
た1Qメモリチツプ41にはPROMがあり、主として
データが記憶されている。PROMには種々の品種があ
るが紫外線によるEPROM(ICカードに埋設したと
きは紫外線を通す窓を設けない限りデータを消去するこ
とができない)、データを消去できるEEPROMなど
が使用される。
The OP LJ 401 included in the CPU chip 40 performs program control, the ROM 402 stores programs, etc., and the RAM 403 is a 1Q memory chip 41 that plays the role of temporarily storing data during a program step. There is a PROM, which mainly stores data. There are various types of PROMs, including EPROMs that use ultraviolet rays (when embedded in an IC card, data cannot be erased unless a window is provided to allow the ultraviolet rays to pass through), and EEPROMs that can erase data.

メモリチップ41を使用せずにCPLJチップ40のみ
でICカード用のICモジコールを1チツプで構成する
場合は、CPU、ROM、RAMなどで構成してもよい
When an IC module for an IC card is configured with one chip using only the CPLJ chip 40 without using the memory chip 41, it may be configured with a CPU, ROM, RAM, etc.

ICカードは、第4図に示すようなICカード・リーダ
ー・ライタを介して、ホストコンピュータに接続して使
用される。
The IC card is used by being connected to a host computer via an IC card reader/writer as shown in FIG.

第5図にこの発明の実施例におけるメモリの構成を示ず
。メモリには、データを記憶するデータ・メモリ・エリ
アと、暗証番号を記憶する暗証番号エリアと、暗証番号
の誤入力を記憶するセキュリティ・マーク・エリアと、
メモリに記録があることを示すメモリ・フォーマット・
マーク・エリアとがある。
FIG. 5 does not show the structure of the memory in the embodiment of the present invention. The memory includes a data memory area for storing data, a PIN area for storing PIN numbers, and a security mark area for storing erroneous input of PIN numbers.
Memory format indicating that there is a record in memory
There is a marked area.

第6図は第5図中のデータ・メモリ・エリアをさらに詳
細に示すもので、#1から#Yまでの複数個の配憶エリ
アと各記憶エリアに対応して設けられた#Iから#Yま
での複数個の索引エリアが含まれている。各記憶エリア
には履歴情報または更新情報が予め定められた所要の項
目毎の区分に従って記憶される。索引エリアは各記憶エ
リアにそれぞれ対応して設けられ対応記憶エリアをアク
セスするために用いられる。
FIG. 6 shows the data memory areas in FIG. 5 in more detail, including a plurality of storage areas #1 to #Y and areas #I to #Y provided corresponding to each storage area. A plurality of index areas up to Y are included. In each storage area, history information or update information is stored according to predetermined categories for each item. An index area is provided corresponding to each storage area and used to access the corresponding storage area.

第7図は第6図に示す記憶エリアの1つである#N記憶
エリアの構成をより詳しく示した図である。#N配憶エ
リアには第1回目の情報の記録から第x回目までの情報
の記録ができるX個のレコードと、情報の記録のために
使用されたレコードの使用回数を記録するフラグ・ビッ
トとがあり、さらに各1ノコードには、記録情報の読出
しの際の誤りをチーFツクするためのチェック・バイ]
・ど、し]−ドの属↑4、たとえば記録情報の11−誤
等を定義するためのし]−ド・ステータス・バイ1へが
付属されている。
FIG. 7 is a diagram showing in more detail the structure of #N storage area, which is one of the storage areas shown in FIG. 6. #N storage area has X records that can record information from the first time to the xth time, and a flag bit that records the number of times a record has been used to record information. In addition, each code has a check-by code to check for errors when reading recorded information.]
・Do, shi]-do attribute ↑4, for example, shi]-do status by 1 for defining 11-errors in recorded information, etc. are attached.

情報は第1回し]−ドから順次に記録される。The information is recorded sequentially from the first time.

第1回レコードがすでに使用されているときは、次に記
録されるべぎ最新情報は第2回し]−ドに記録される。
When the first record has already been used, the latest information to be recorded next is recorded in the second record.

従って第01回目に生じた最新情報は第m回し]−ドに
記録される。これらの情報の記録と同時にチェック・バ
イ1へおよびレコード・ステータス・バイ1〜にも所要
の記録が4丁される。
Therefore, the latest information that occurred at the 01st time is recorded in the mth time. At the same time as these pieces of information are recorded, four required records are also made to Check By 1 and Record Status By 1 to 4.

フラグ・ビットは少なくとも当該記憶エリアに設番ノら
れたし]−ド数のビットを41し、それら各ピッ1へは
当初は全てが11−1となっているが、新たな情報が書
込まれる毎に順次に1ビツトづつ[OIに反転される。
At least the flag bits have been set and numbered in the storage area concerned, and the number of bits is set to 41, and all of those pins are initially set to 11-1, but new information is written to them. Each time the data is input, one bit is inverted to [OI].

この反転ビット数を管理することにより、最新情報の書
込まれているレコードと未使用し]−ド数を管理するこ
とができる。
By managing the number of inverted bits, it is possible to manage the records in which the latest information is written and the number of unused records.

第8図は記憶エリアの仙の構成例を示1図である。第7
図と比較して相違するところtit、第7図では先頭番
地部に設けられていたフラグ・ビットが第8図では各レ
コードに付属するし]−ド・ステータス・バイトの中の
1ピッl−Fに分散配置されていることである。これら
フラグビットFも未使用では「1」が記憶されているが
、使用されると[01に反転される」:うになっており
、従って、このフラグ・ビットを順次にチェックするこ
とにより、最新情報の記録し]−ド位謂や未使用レコー
ド数を管理することができる。
FIG. 8 is a diagram showing an example of the structure of the storage area. 7th
The difference from the figure is that the flag bit that was provided at the start address in Figure 7 is attached to each record in Figure 8. It is that they are distributed in F. When these flag bits F are not used, "1" is stored, but when they are used, they are inverted to "01." Therefore, by sequentially checking these flag bits, the latest Record information - You can manage the status and number of unused records.

第9図は第6図に示す索引エリアの1つである#N索引
エリアの詳細を示ず図である。索引エリアは、#N記憶
1リラノの開始アドレス、通常は先頭番地、を記憶する
8ビツトからなる領域と、#N記憶丁リす中の「レコー
ドの長さ−1をバイト数で記録する7ピツ1〜からなる
領域と、Ill歴情報には[11、更新情報には[01
を与λる1ピツ1へからなるr H/ tJ jピット
ど、# N !ir!憶Tリアに割当てられたし]−ド
数を表わツ1゛最人レコード数」を記録する領域と、#
N記録エリアの先頭番地部に位置するフラグ・ビットの
1割当てバイ]−数」を記録する領域とを有している。
FIG. 9 is a diagram without showing details of the #N index area, which is one of the index areas shown in FIG. 6. The index area consists of an 8-bit area that stores the start address of #N memory 1, usually the first address, and a 7-bit area that records the record length - 1 in bytes in #N memory. The area consisting of Pitsu 1 ~, [11 for Ill history information, [01 for update information]
r H/ tJ j pit, #N! ir! 1. An area for recording the maximum number of records assigned to the memory area and an area for recording the number of records.
It has an area for recording 1 allocated bye]-number of flag bits located at the first address of the N recording area.

このため、情報の種類や性格等に応じて対応記憶エリア
のし]−ドの大きさやレコード数を適当に指定でき、デ
ータ・メモリ・エリアの有効利用を図ることができる。
Therefore, the size and number of records of the corresponding storage area can be appropriately specified depending on the type and character of information, and the data memory area can be used effectively.

[割当てバイト数−1は[最大レコード数1を8で割で
整数に切1−げた値となる。なお、索引エリアは第6図
の左側に集中して設けられているが、データ・メtす・
エリア内に分散して設Gjでもよい。
[The number of allocated bytes - 1 is the value obtained by dividing the maximum number of records 1 by 8 and rounding it down to an integer. Note that the index area is concentrated on the left side of Fig. 6, but the index area is concentrated on the left side of Figure 6.
The Gj may be set up dispersed within the area.

第7図に示す実施例では、読出されるべき情報に従って
対応索引エリアが先ず読出され、そのr l−1/ j
J jビットが更新情報である場合は、その索引エリア
に記憶された先頭番地に基づき対応記憶エリアのフラグ
・ビット部を読出し、そのカウント値から直ちに最新情
報を書込んだレコードを直接アクセスする。また、第8
図の例では、先頭番地は第1回レコードに付属するフラ
グ・ビットFであり、このフラグ・ビットを各レコード
について順次に読出してゆぎ最初に「1」が読出された
レコードの1つ前のし]−ドを読出ずことにより最新情
報の記録レコードを検索し読出す。一方、r H/ t
J Jビットに履歴情報の読出しを指示しているときは
第1回し]−ドから最新情報を記録するレコードまで順
次に読出しが実行される。
In the embodiment shown in FIG. 7, the corresponding index area is first read out according to the information to be read out, and its r l-1/j
If the J j bit is update information, the flag bit part of the corresponding storage area is read based on the first address stored in the index area, and the record in which the latest information is written is immediately accessed directly from the count value. Also, the 8th
In the example shown in the figure, the starting address is the flag bit F attached to the first record, and this flag bit is read out sequentially for each record, and the flag bit is read out one after the record where "1" is read first. Search and read the latest information record without reading the code. On the other hand, r H/t
When the JJ bit is instructed to read history information, reading is performed sequentially from the first [-] record to the record recording the latest information.

この発明に係るICカードを医療機関の分野に適用する
場合を例にとって第10図に基づき説明する。今、医療
機関で使用される情報を第10図に示すように、個人情
報、医療保険情報等の7項目に区分するものとする。こ
の例によれば、個人情報は#1索引エリアで索引されそ
の内容は#1記憶エリアに記録される。個人情報は具体
的には氏名、住所、生年月日、電話番号からなり、これ
らは通常は更新はなく電話番号の様に更新される場合が
あったとしても最新情報のみが読出されればよいから、
個人情報は#1記憶エリアの右側欄外に記したように更
新情報であるということができる。#2記憶エリアに記
録された保険の種類、社名、事業所名、資格取得日から
なる医療保険情報も通常は最新情報のみが知得されれば
よいから更新情報といλる。
A case where the IC card according to the present invention is applied to the field of medical institutions will be explained based on FIG. 10 as an example. Now, as shown in FIG. 10, information used in medical institutions is classified into seven items such as personal information, medical insurance information, etc. According to this example, personal information is indexed in the #1 index area and its contents are recorded in the #1 storage area. Personal information specifically consists of name, address, date of birth, and telephone number, and these are usually not updated, but even if they are updated like a telephone number, only the latest information needs to be read. from,
The personal information can be said to be updated information as described in the right margin of the #1 storage area. #2 The medical insurance information recorded in the storage area, which includes the type of insurance, company name, office name, and date of qualification acquisition, is also referred to as update information because normally only the latest information needs to be obtained.

#3配置1 エリアに記録されたアレルギ=の種類、ア
レルギーの要因からなるアレルギー情報は過去の情報t
)治療上の参考情報となるので履歴情報であるどいλる
。ぞの他の医師情報■、■、医師技術情報および看護婦
情報も履歴情報であるといえる。
#3 Arrangement 1 The allergy information recorded in the area, including the type of allergy and the cause of the allergy, is past information.
) Historical information is important as it serves as reference information for treatment. The other doctor information ■, ■, doctor technical information, and nurse information can also be said to be historical information.

なお、この発明のその他の適用例どして銀行預金管理や
株式情報などを挙げることができる。
Note that other application examples of this invention include bank deposit management and stock information.

次に第11図に示すフローチャートに従って、情報の書
込みの手順を説明する。外部から書込みを必要どりる情
報の項目の指定番号、たとえば#Nがt)?定されると
、ステップ101でこれを受信し、ステップ102で#
N索引エリアをサーチする。#N索引エリアが発見でき
な【−Jればステップ103でエラー表示などのエラー
処理がされる。
Next, the procedure for writing information will be explained according to the flowchart shown in FIG. Is the specified number of the item of information that needs to be written from outside, for example #N? When the # is set, it is received in step 101, and #
Search N index areas. #N If the index area cannot be found [-J, error processing such as error display is performed in step 103.

この場合はもう一度項目の設定のしなおしとなる。In this case, you will need to set the item again.

ステップ102ぐ#N索引エリアが発見されれば、ステ
ップ104F#N索引エリアに記憶されている先頭番地
に基づき対応する#N配憶■リアの先頭番地部を読出ず
。次に、ステップ105で#N記憶エリアに書込む情報
を入力すると、ステップ106で#N記憶エリアのフラ
グ・ビットに最終反転ピッi・の次のビット、たとえば
m番目のビットを反転させる。ステップ107で#N記
憶エリアの第1回レコードに入力情報を書込む。ステッ
プ108ではチェックバイトを計算して書込む。
If the #N index area is found in step 102, step 104F does not read out the leading address part of the corresponding #N storage area based on the leading address stored in the #N index area. Next, in step 105, the information to be written in storage area #N is input, and in step 106, the next bit of the final inversion bit i, for example, the m-th bit, is inverted as the flag bit of storage area #N. In step 107, the input information is written in the first record of the #N storage area. In step 108, a check byte is calculated and written.

そしてステップ109で書込み情報が正確であるかどう
かをテストし、もし誤りであれば、ステップ103に行
きエラー処理され、正しければ書込みを終了する。
Then, in step 109, it is tested whether the written information is accurate. If it is incorrect, the process goes to step 103, where error processing is performed, and if it is correct, the writing is completed.

tCカードの読出しは第12図に示す手順で実行される
。先ず、ステップ111において、外部装置から入力さ
れた読出しを必要とする項目の指定番号、たとえば#N
を受信する。ステップ112で#N索引エリアをサーチ
し、これを発見できないときはステップ113でエラー
処理がされ、発見されたときは、ステップ114で#N
索引エリアに記憶された先頭番地から#N記憶エリアの
先頭番地部を読出す。ステップ115で#N索引エリア
のH/ LJビットを読出し、ステップ116で履歴読
出しが更新読出しかを判断する。
Reading of the tC card is performed in accordance with the procedure shown in FIG. First, in step 111, a designated number of an item that requires reading inputted from an external device, for example #N.
receive. #N index area is searched in step 112, and if it cannot be found, error processing is performed in step 113, and if it is found, #N index area is searched in step 114.
The first address part of the #N storage area is read from the first address stored in the index area. In step 115, the H/LJ bit of the #N index area is read, and in step 116, it is determined whether the history read is an update read.

更新読出しと判断されたときは、ステップ117でフラ
グ・ビット欄から最後に書込まれたフラグ・ビットの位
置を求め、ステップ118でそのピッ1−から最後に書
込まれたし]−ドをアクセスし最新情報を出力する。そ
してステップ119でチェックバイトを出力し情報の誤
りの有無を確認し読出しを終了する。ステップ116で
履歴と判断されたときは、ステップ120で#N記憶エ
リアのフラグ・ビット中の使用ビットをカウントし、記
録し]−ド数を求める。ステップ121で最初のレコー
ドの情報を出力し、ステップ122でチェックバイトを
出力する。そしてステップ123で予定した数のし]−
ドを出力したか判断し、r N O、Iであればステッ
プ121へ戻り、次のレコードの情報を出力する。かく
してステップ123でrYEsJと判断されれば、全て
の履歴情報は出力され読出しは終了する。
When it is determined that update reading is to be performed, the position of the last written flag bit is determined from the flag bit column in step 117, and the position of the last written flag bit is determined from the pin 1- in step 118. Access and output the latest information. Then, in step 119, a check byte is output to confirm whether or not there is an error in the information, and the reading is completed. If it is determined in step 116 that it is history, in step 120 the used bits in the flag bits of the #N storage area are counted and recorded, and the number of codes is determined. In step 121, information on the first record is output, and in step 122, a check byte is output. and the number scheduled in step 123]-
If it is r NO, I, the process returns to step 121 and the information of the next record is output. Thus, if rYEsJ is determined in step 123, all history information is output and reading ends.

第13図はこの発明の他の実施例を示す。同一の情報に
ついて履歴情報を必要とする場合と最新情報のみでよい
場合とがある。この様な情報がたとえば#3索引エリア
で更新情報として索引され#3記憶エリアから読出され
るようになっている場合は、#3索引エリアのト1/U
ピッ]へには[0]が記録されているが、#N記憶エリ
アに記録された情報を履歴読出しすることも要求される
ときは、#3索引エリアの他の#3′索引エリアを新た
に設け、この索引エリアの1−1 / Uピッ]・にr
IJを記録し他の領域は#3索引エリアと全く同一記録
内容にすればよい。これにより、#N記憶エリアの情報
を更新読出しするときは#3索引エリアを指定し、また
履歴読出しをするときは#3′索引エリアを指定すれば
よいことになる。
FIG. 13 shows another embodiment of the invention. There are cases in which historical information is required for the same information, and cases in which only the latest information is required. For example, if such information is indexed as update information in the #3 index area and read from the #3 storage area, the 1/U of the #3 index area
[0] is recorded in the #N storage area, but when it is also required to read the history of the information recorded in the #N storage area, the other #3' index area of the #3 index area is newly recorded. 1-1 of this index area
It is sufficient to record IJ and make the other areas have exactly the same recording contents as the #3 index area. As a result, when updating and reading the information in the #N storage area, it is sufficient to specify the #3 index area, and when reading the history, it is sufficient to specify the #3' index area.

第14図は同一情報について更新読出しと履歴読出しの
いずれをも行いうるようにした他の実施例を示すもので
ある。この実施例によれば、索引エリアに履歴読出し用
ビットHと更新読出し用ビットUを各1ビツトづつ設け
、当初はこの2つのビットは共に「1」を記録し、履歴
読出し専用のときはごット1]のみを「0」に反転し、
更新読出し専用のとぎはビット(JのみをrOJに反転
する。
FIG. 14 shows another embodiment in which both update reading and history reading can be performed for the same information. According to this embodiment, the index area is provided with one bit each for history readout H and update readout bit U. Initially, these two bits both record "1", and when the history is read only, they are set to "1". 1] to "0",
The update read-only sharpener inverts only the bit (J) to rOJ.

そして11更新の両方の読出しを可能にするときはごツ
h l−1とUの両方を共に、「0」に反転させる。
Then, to enable reading of both 11 updates, both h1-1 and U are inverted to "0".

第15図は第14図に示す実施例における読出しの場合
のフローチャートである。このフローチャートは基本的
には第12図のものと類似しているので、説明の重複を
避けるため異なるところのみを説明する。
FIG. 15 is a flowchart for reading in the embodiment shown in FIG. 14. Since this flowchart is basically similar to that in FIG. 12, only the differences will be explained to avoid duplication of explanation.

第15図において、ステップ114で索引エリアより対
応記憶エリアの先頭番地を読出した後、ステップ130
で肋歴読出しか更新読出しかを選択する。選択された読
出しがビットHまたはビットUに書込まれているか否か
をステップ131で判断し、書込みがないときはステッ
プ132で入力エラーとして処理される。ステップ13
1でYESの判断があったときはステップ133でステ
ップ130で選択されたのは履歴読出しか更新読出しか
を判断し、それぞれステップ120またはステップ11
7の段階へ進む。これ以降の動作は第12図のものと同
じである。
In FIG. 15, after reading the first address of the corresponding storage area from the index area in step 114, step 130
Select whether to read the cost history or update the history. It is determined in step 131 whether the selected read has been written to bit H or bit U, and if there is no writing, it is processed as an input error in step 132. Step 13
If YES is determined in step 1, it is determined in step 133 whether history reading or update reading was selected in step 130, and the process is performed in step 120 or step 11, respectively.
Proceed to step 7. The subsequent operations are the same as those in FIG. 12.

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

第1図は一般的なICカードの平面図、第2図は第1図
におけるA−A’線に沿った断面を示す断面図、第3図
はICカードの回路構成を示すブロック図、第4図はI
Cカードを挿入して使用するICカード・リーダー・ラ
イタおよびイのホストコンピュータを概略を示す図、第
5図はICカードのメモリ領域の構成を示す図、第6図
はデータ・メモリ・エリアの構成を示す図、第7図は1
記憶エリアの構成を示す図、第8図は記憶エリアの他の
構成例を示す図、第9図は索引エリアの構成を示す図、
第10図はこの発明の位置適用例についてのデータ・メ
モリ・エリアの構成を示す図、第11図はこの発明にお
ける情報の書込み動作を説明するためのフローチャート
、第12図はこの発明における書込み情報の読出し動作
を説明するためのフローチャート、第13図はこの発明
の他の実施例を示すデータ・メモリ・エリアの構成を示
す図、第14図はこの発明のさらに他の実施例を示す索
引エリアの構成を示す図、第15図は第14図に示す実
施例における読出し動作を説明するためのフローチャー
トである。 1・・・Icカード、4・・・・・・ICモジュール、
5・・・・・・接続端子、40・・・・・・CPUチッ
プ、401・・・・・・CP tJ、402・・・・・
・ROM、403・・・・・・RAM。 411・・・・・・PROM。
Fig. 1 is a plan view of a general IC card, Fig. 2 is a sectional view taken along line AA' in Fig. 1, Fig. 3 is a block diagram showing the circuit configuration of the IC card, and Fig. 3 is a block diagram showing the circuit configuration of the IC card. Figure 4 is I
A diagram schematically showing an IC card reader/writer and a host computer used by inserting a C card, Figure 5 is a diagram showing the configuration of the memory area of the IC card, and Figure 6 is a diagram showing the configuration of the data memory area. A diagram showing the configuration, Figure 7 is 1
A diagram showing the configuration of the storage area, FIG. 8 is a diagram showing another example of the configuration of the storage area, FIG. 9 is a diagram showing the configuration of the index area,
FIG. 10 is a diagram showing the configuration of a data memory area for a location application example of this invention, FIG. 11 is a flowchart for explaining the information writing operation in this invention, and FIG. 12 is a diagram showing the write information in this invention. FIG. 13 is a diagram showing the structure of a data memory area showing another embodiment of the invention, and FIG. 14 is an index area showing still another embodiment of the invention. FIG. 15 is a flow chart for explaining the read operation in the embodiment shown in FIG. 14. 1...IC card, 4...IC module,
5...Connection terminal, 40...CPU chip, 401...CP tJ, 402...
・ROM, 403...RAM. 411...PROM.

Claims (5)

【特許請求の範囲】[Claims] (1)少なくともCPUとメモリを含む電子回路を内蔵
し、情報の書込みと読出しを可能にしたICカードにお
いて、履歴情報と更新情報を識別して読出し可能にそれ
ら情報をそれぞれ複数個の記憶エリアに割当てる手段と
、該記憶エリアに記録された更新情報については最新情
報のみを読み出す手段と、を有することを特徴とする履
歴情報と更新情報の識別手段を備えたICカード。
(1) In an IC card that has a built-in electronic circuit including at least a CPU and a memory, and is capable of writing and reading information, history information and update information can be identified and read out, and each of these pieces of information is stored in multiple storage areas. 1. An IC card equipped with means for identifying history information and update information, comprising means for allocating the information and means for reading only the latest information regarding the update information recorded in the storage area.
(2)前記割当て手段は前記複数個の記憶エリアにそれ
ぞれ対応して設けられた複数個の索引エリアを含み、各
索引エリアは対応する記憶エリアに記憶された情報が履
歴情報であるか更新情報であるかを識別する情報を与え
るビットを備えていることを特徴とする特許請求の範囲
第(1)項に記載の履歴情報と更新情報の識別手段を備
えたICカード。
(2) The allocation means includes a plurality of index areas provided corresponding to the plurality of storage areas, and each index area is used to determine whether the information stored in the corresponding storage area is historical information or updated information. An IC card equipped with means for identifying history information and update information as set forth in claim (1), characterized in that the IC card is provided with a bit that provides information for identifying whether the card is an IC card.
(3)前記各記憶エリアはその記憶エリア内の各レコー
ドに情報を記録する毎に記録済みであることを示す情報
を記録するフラッグ・ビットを備え、また、前記読出し
手段は該フラッグ・ビットに記録された情報に基づき最
新情報が記録されたレコードをアクセスする手段を備え
たことを特徴とする特許請求の範囲第(1)項または第
(2)項に記載の履歴情報と更新情報の識別手段を備え
たICカード。
(3) Each of the storage areas is provided with a flag bit for recording information indicating that information has been recorded each time information is recorded in each record in the storage area, and the reading means is configured to set the flag bit to the flag bit. Discrimination of history information and update information according to claim 1 or 2, characterized in that the method includes means for accessing a record in which the latest information is recorded based on the recorded information. IC card with means.
(4)前記割当て手段は少なくとも1つの記憶エリアに
対応して2つの索引エリアを備え、一方の索引エリアは
履歴情報であることを示す情報を与えるビットを有し、
他方の索引エリアは更新情報であることを示す情報を与
えるビットを有すようにしたことを特徴とする特許請求
の範囲第(2)項に記載の履歴情報と更新情報の識別手
段を備えたICカード。
(4) The allocation means includes two index areas corresponding to at least one storage area, one index area having a bit providing information indicating that it is history information,
The other index area is provided with a means for identifying history information and updated information as set forth in claim (2), wherein the other index area has a bit that provides information indicating that the information is updated information. IC card.
(5)前記索引エリアは履歴情報であることを示す情報
を与える第1のビットと更新情報であることを示す情報
を与える第2のビットとの双方を有し、また前記読出し
手段は前記第1および第2のビットの一方を選択する手
段を有することを特徴とする特許請求の範囲第(2)項
に記載の履歴情報と更新情報の識別手段を備えたICカ
ード。
(5) The index area has both a first bit giving information indicating that the information is history information and a second bit giving information indicating that the information is update information, and the reading means has the first bit giving information indicating that the information is update information. An IC card equipped with means for identifying history information and update information according to claim (2), further comprising means for selecting one of the first and second bits.
JP60115885A 1985-05-29 1985-05-29 Integrated circuit card containing discriminating means between history information and replacement information Granted JPS61273689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60115885A JPS61273689A (en) 1985-05-29 1985-05-29 Integrated circuit card containing discriminating means between history information and replacement information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60115885A JPS61273689A (en) 1985-05-29 1985-05-29 Integrated circuit card containing discriminating means between history information and replacement information

Publications (2)

Publication Number Publication Date
JPS61273689A true JPS61273689A (en) 1986-12-03
JPH0473196B2 JPH0473196B2 (en) 1992-11-20

Family

ID=14673591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60115885A Granted JPS61273689A (en) 1985-05-29 1985-05-29 Integrated circuit card containing discriminating means between history information and replacement information

Country Status (1)

Country Link
JP (1) JPS61273689A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63138483A (en) * 1986-12-01 1988-06-10 Omron Tateisi Electronics Co Ic card device
WO1992021104A1 (en) * 1991-05-22 1992-11-26 Kyodo Printing Co., Ltd. Non-contact type ic card

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4940339U (en) * 1972-07-17 1974-04-09
JPS4940338U (en) * 1972-07-13 1974-04-09
JPS49123927U (en) * 1973-02-21 1974-10-23
JPS5190534A (en) * 1975-02-07 1976-08-09
JPS5432237A (en) * 1977-08-17 1979-03-09 Fujitsu Ltd High speed processing system of hysteresis information
JPS5555492A (en) * 1978-10-16 1980-04-23 Mitsubishi Electric Corp Demand paging system
JPS5614369A (en) * 1979-07-13 1981-02-12 Fujitsu Ltd Card
JPS56153460A (en) * 1980-04-28 1981-11-27 Yokogawa Hokushin Electric Corp Backup method for file
JPS5837886A (en) * 1981-08-28 1983-03-05 Nippon Telegr & Teleph Corp <Ntt> Controlling system of storage space
JPS58197559A (en) * 1982-05-12 1983-11-17 Fuji Facom Corp Data transferring method
JPS593549A (en) * 1982-06-30 1984-01-10 Hitachi Ltd File management system
JPS6074056A (en) * 1983-09-30 1985-04-26 Fujitsu Ltd File control system for history information
JPS6077250A (en) * 1983-10-05 1985-05-01 Hitachi Ltd Controlling method of disc cache memory
JPS6089256A (en) * 1983-10-21 1985-05-20 Hitachi Ltd File controller
JPS60207939A (en) * 1984-03-31 1985-10-19 Toshiba Corp Recording system of electronic device
JPS60207989A (en) * 1984-03-31 1985-10-19 Toshiba Corp Recording system of electronic device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4940338U (en) * 1972-07-13 1974-04-09
JPS4940339U (en) * 1972-07-17 1974-04-09
JPS49123927U (en) * 1973-02-21 1974-10-23
JPS5190534A (en) * 1975-02-07 1976-08-09
JPS5432237A (en) * 1977-08-17 1979-03-09 Fujitsu Ltd High speed processing system of hysteresis information
JPS5555492A (en) * 1978-10-16 1980-04-23 Mitsubishi Electric Corp Demand paging system
JPS5614369A (en) * 1979-07-13 1981-02-12 Fujitsu Ltd Card
JPS56153460A (en) * 1980-04-28 1981-11-27 Yokogawa Hokushin Electric Corp Backup method for file
JPS5837886A (en) * 1981-08-28 1983-03-05 Nippon Telegr & Teleph Corp <Ntt> Controlling system of storage space
JPS58197559A (en) * 1982-05-12 1983-11-17 Fuji Facom Corp Data transferring method
JPS593549A (en) * 1982-06-30 1984-01-10 Hitachi Ltd File management system
JPS6074056A (en) * 1983-09-30 1985-04-26 Fujitsu Ltd File control system for history information
JPS6077250A (en) * 1983-10-05 1985-05-01 Hitachi Ltd Controlling method of disc cache memory
JPS6089256A (en) * 1983-10-21 1985-05-20 Hitachi Ltd File controller
JPS60207939A (en) * 1984-03-31 1985-10-19 Toshiba Corp Recording system of electronic device
JPS60207989A (en) * 1984-03-31 1985-10-19 Toshiba Corp Recording system of electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63138483A (en) * 1986-12-01 1988-06-10 Omron Tateisi Electronics Co Ic card device
WO1992021104A1 (en) * 1991-05-22 1992-11-26 Kyodo Printing Co., Ltd. Non-contact type ic card
US5378887A (en) * 1991-05-22 1995-01-03 Kyodo Printing Co., Ltd. Non-contact type IC card

Also Published As

Publication number Publication date
JPH0473196B2 (en) 1992-11-20

Similar Documents

Publication Publication Date Title
US4797543A (en) Selectable data readout IC card
US4829169A (en) IC card having state marker for record access
JPS63788A (en) Portable electronic equipment
JP3215237B2 (en) Storage device and method for writing / erasing storage device
KR100631887B1 (en) Non-volatile memory, recording apparatus and recording method
US4949240A (en) Data storage system having circuitry for dividing received data into sequential wards each stored in storage region identified by chain data
US20100070707A1 (en) Portable electronic device and data processing method in portable electronic device
JPS6228296A (en) Integrated circuit card in which secrecy level can be selected
JP4891587B2 (en) Portable electronic device, IC card and IC module
JPH0793203A (en) File managing system
US5148543A (en) Ic card with a stored data change inhibition function
JPS62190584A (en) Portable electronic device
JPH0440588A (en) Portable electronic equipment
JPH07306922A (en) Ic memory card and its checking method
JP3771904B2 (en) Microprocessor circuit with auxiliary register bank
JPS61273689A (en) Integrated circuit card containing discriminating means between history information and replacement information
JP3471842B2 (en) Data management device, data storage device, and data management method
JP3088866B2 (en) IC card
JPH01263892A (en) Portable electronic device
JPH026115B2 (en)
JP7438432B1 (en) Electronic information storage medium, IC chip, IC card, record writing method, and program
JP2532057B2 (en) IC card with error detection function
JP2534984B2 (en) IC card
JP2537200B2 (en) Portable electronic devices
JPH0651439B2 (en) IC card that can effectively use memory capacity

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term