Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH048838B2 - - Google Patents
[go: Go Back, main page]

JPH048838B2 - - Google Patents

Info

Publication number
JPH048838B2
JPH048838B2 JP57090902A JP9090282A JPH048838B2 JP H048838 B2 JPH048838 B2 JP H048838B2 JP 57090902 A JP57090902 A JP 57090902A JP 9090282 A JP9090282 A JP 9090282A JP H048838 B2 JPH048838 B2 JP H048838B2
Authority
JP
Japan
Prior art keywords
code
data
card
attribute
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP57090902A
Other languages
Japanese (ja)
Other versions
JPS58209000A (en
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 filed Critical
Priority to JP57090902A priority Critical patent/JPS58209000A/en
Publication of JPS58209000A publication Critical patent/JPS58209000A/en
Publication of JPH048838B2 publication Critical patent/JPH048838B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Description

【発明の詳細な説明】 この発明は種々の機能を含んだICカードに関
する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an IC card that includes various functions.

近年、マイクロコンピユータ、メモリ等のIC
チツプを装着もしくは内蔵させたチツプカード、
メモリカード、マイコンカード、電子カード(以
下、ここではICカードという)が提案されてい
るが、従来のICカードはメモリにPROM
(Programmable Read Only Memory)を用い
ている場合が多く、そのため一旦データを書込む
と消去が不可能となるため、データ保護の信頼性
といつた面においては満足されるものであつた。
しかしながら、たとえば誤つたデータをメモリに
書込んでしまつた場合や、データ信号の電気的特
性のトラブルによる書込み誤りの場合等ではデー
タの修正及び消去は不可能であり、誤つたデータ
や不必要なデータが読出されたり、場合によつて
はデータの読出りが不可能となつてしまう恐れが
あつた。よつて、この発明の目的は、上記欠点を
解消したICカードを提供することにある。
In recent years, ICs for microcomputers, memory, etc.
A chip card with a chip installed or built-in;
Memory cards, microcomputer cards, and electronic cards (hereinafter referred to as IC cards) have been proposed, but conventional IC cards have PROM in memory.
(Programmable Read Only Memory) is used in many cases, and once data is written, it cannot be erased, so it is satisfactory in terms of reliability of data protection.
However, if, for example, incorrect data is written to the memory, or if the writing error is caused by a problem with the electrical characteristics of the data signal, it is impossible to correct or erase the data, and the data cannot be corrected or deleted. There was a risk that the data would be read out, or in some cases, it would become impossible to read the data. Therefore, an object of the present invention is to provide an IC card that eliminates the above-mentioned drawbacks.

以下にこの発明を説明する。 This invention will be explained below.

この発明は、メモリ内に書込むデータを連続し
た一定単位のデータブロツクの集合によるブロツ
ク構成とすると共に、それぞれのデータブロツク
の先頭に属性コードを持たせ、この属性コードに
有効化コード、無効化コード及び初期コードの機
能を付与し、同時にデータの入出力制御を行なう
マイクロコンピユータに属性コードを判別する機
能と、有効化コードのあるデータブロツク及び有
効化コード、無効化コード又は初期コードのいず
れでもない属性コードを有するブロツクに対して
無効化コードを書込むための手段とを持たせるこ
とにより、データブロツクの属性コードのテスト
を各ブロツク毎に行ない、有効化コードであれば
データの読出しを可能とし、無効化コードであれ
ばそのブロツクを無効とみなして次のブロツクへ
移り、初期コードであればそのブロツク以後はデ
ータが格納されていないと判別してデータの読出
しを終了し、データの格納を可能としている。ま
た、上記いずれの属性コードにも該当するもので
ない場合には、エラーコードを外部へ発生させて
以後のデータの入出力を禁止し、有効化コードを
有するデータブロツクにおいても不必要とされる
データが格納されている場合には、外部よりブロ
ツク番号を指定することによつて属性コードを無
効化コードに書換えることによつて任意のデータ
ブロツクを消去するようにしている。この時、各
データブロツクの属性コードのテストの際に属性
コードが無効化コードであつた場合、無効化ブロ
ツクの存在を明確にするために特定信号を出力す
る機能を付与することにより、外部装置において
未格納データブロツク数を確認できるようにして
いる。さらに、ICカードが出来上がつた時点で
ICカードの動作を確認するためには、ICカード
内のメモリにデータの書込みを行なつてみなけれ
ばならず、この場合、実際の使用時にテストデー
タが読出されないようにするためには、特別なテ
スト領域を設ける必要がある。テスト領域を設
け、その領域内に製造番号、日付等のように後に
読出す必要が生じ得るデータを書込む場合には、
このテスト領域をICカードに配設することは非
常に有効な手段となる。この際、ICカード自体
にテスト領域へのデータの書込み又は読出しの機
能を特別に付加する必要がある。しかしながら、
特別なモードによつて後に読出す必要のあるデー
タをメモリに書込む必要のない場合には、ICカ
ードに特別な機能を付加することなく、ICカー
ドの動作テストを可能にしている。
In this invention, the data to be written in the memory is configured as a block consisting of a set of continuous data blocks of a certain unit, and each data block has an attribute code at the beginning, and this attribute code contains an activation code and an invalidation code. At the same time, a microcomputer that controls data input/output is provided with the functions of a code and an initial code, and a function to determine the attribute code, a data block with an activation code, and any of the activation code, invalidation code, or initial code. By providing a means for writing an invalidation code to a block that has an invalid attribute code, the attribute code of the data block can be tested for each block, and if it is an activation code, the data can be read. If it is an invalidation code, the block is considered invalid and the process moves on to the next block. If it is an initial code, it is determined that no data is stored after that block, data reading is finished, and data storage is started. is possible. In addition, if none of the above attribute codes apply, an error code is generated externally and subsequent data input/output is prohibited, and unnecessary data is stored even in data blocks that have an activation code. If a data block is stored, an arbitrary data block is erased by specifying the block number from the outside and rewriting the attribute code to an invalidation code. At this time, when testing the attribute code of each data block, if the attribute code is an invalidation code, a function is provided to output a specific signal to clarify the existence of the invalidation block. It is possible to check the number of unstored data blocks. Furthermore, once the IC card was completed,
In order to check the operation of an IC card, it is necessary to write data to the memory inside the IC card. In this case, special measures must be taken to prevent the test data from being read during actual use. It is necessary to provide a suitable test area. When setting up a test area and writing data such as serial number, date, etc. that may need to be read out later,
Placing this test area on an IC card is a very effective means. At this time, it is necessary to add a special function to the IC card itself to write or read data into the test area. however,
If the special mode does not require writing data to the memory that will be read later, it is possible to test the operation of the IC card without adding any special functions to the IC card.

以下に具体的な実施例を詳細に説明する。 Specific examples will be described in detail below.

ICカード内のメモリの初期状態が16進コード
で(FF)16であるとすると、データを書込む際は
(FF)16=(11111111)2の2進コードの値(1)2
各ビツトの任意の値を2進コード(0)2にするこ
とによつて情報の書込みを行なうので、各データ
ブロツクの先頭に有する属性コードの初期コード
としては16進コード(FF)16を用いる。なお、
(−)16は16進コードであることを示し、(−)2
2進コードであることを示している。また、有効
化コードと無効化コードに対しては、各ビツト対
応で有効化コードと無効化コードが同じか、もし
くは有効化コードの方が(1)2で無効化コードの
方が(0)2でなければならない。その際、無効化
コードは修正する必要もなく、属性コードが初期
コードでも有効化コードでもなく、無効化コード
でもないといつたデータ読出し時におけるエラー
(未定義)コード発生の原因となることを防ぐ意
味からも、無効化コードは(00)16が望ましい。
Assuming that the initial state of the memory in the IC card is (FF) 16 in hexadecimal code, when writing data, (FF) 16 = (11111111) Binary code value of 2 (1) Each bit of 2 Since information is written by converting an arbitrary value into a binary code (0) 2 , a hexadecimal code (FF) 16 is used as the initial code of the attribute code at the beginning of each data block. In addition,
(-) 16 indicates a hexadecimal code, and (-) 2 indicates a binary code. Also, regarding the activation code and the deactivation code, for each bit, the activation code and the deactivation code are the same, or the activation code is (1) 2 and the deactivation code is (0). Must be 2 . In this case, there is no need to modify the invalidation code, and it is possible to cause an error (undefined) code when reading data, such as when the attribute code is neither an initial code nor an activation code, nor an invalidation code. In order to prevent this, it is desirable that the invalidation code be (00) 16 .

以上のようなことから、初期コードを
(FF)16、無効化コードを(00)16、有効化コード
を(F0)16と設定すると、初期状態でのメモリの
中身は全て(FF)16となつている。これに対し
て、1ブロツクのデータを書込むと先頭の属性コ
ードが(F0)16となり、この後に一定数のデータ
が続いて書込まれる。この時、1つのブロツクに
属するデータ数は、ICカードの使用前に各ユー
ザがメモリ内の特定のデータブロツクの特定番地
にその各ブロツクに属するデータ数を格納するこ
とにより、目的に応じて任意に設定することがで
きる。この状態でデータの読出しを行なうと、属
性コード(F0)16が有効化コードと判別され、第
1ブロツクのデータだけが読出される。次に、第
2ブロツクにデータを書込んだ時、それが不必要
なデータであつた場合には、外部装置からブロツ
ク番号「2」を入力して第2ブロツクの先頭番地
をセツトし、新たに第2ブロツクの属性コードを
無効化コードに書換える。これにより、データを
読出す時には第1ブロツクのデータのみとなり、
第2ブロツクのデータは無効化コードによつてデ
ータの読出しは無視され、無効化ブロツクの存在
を明確にするための特定信号が出力される。この
場合、PROMタイプのメモリでは、一旦データ
を書込むと同一番地に新たに任意のデータを書込
むことは不可能であるが、ある種のデータに書換
えることは可能である。つまり、PROMタイプ
のメモリでは、ビツト(1)2の初期状態をビツト
(0)2にすることの組合せによつてデータの書込
みを行なつているので、一旦データを書込んだ時
点で(1)2であるビツトを(0)2にすることが可
能である。次に、データを書込む際にはメモリ領
域の第3ブロツクに相当する領域にデータが書込
まれ、データの読出し時には第2ブロツクに相当
する領域にあるデータが無効化コードにより無視
され、第3ブロツクに相当する領域にあるデータ
が2番目のデータとなる。この場合、データを読
込んだ外部装置では、第2ブロツクに相当する無
効化ブロツクの存在が特定信号によつて明らかに
されているので、実際にはICカード内のメモリ
ブロツク数は3ブロツクが既に使用済みであるこ
とがわかる。
From the above, if you set the initial code to (FF) 16 , the invalidation code to (00) 16 , and the activation code to (F0) 16 , all the contents of the memory in the initial state will be (FF) 16 . It's summery. On the other hand, when one block of data is written, the first attribute code becomes (F0) 16 , after which a certain number of data are written successively. At this time, the number of data belonging to one block can be changed according to the purpose by each user storing the number of data belonging to each block at a specific address of a specific data block in the memory before using the IC card. Can be set to . When data is read in this state, attribute code (F0) 16 is determined to be the validation code, and only the data of the first block is read. Next, when writing data to the second block, if it is unnecessary data, enter block number "2" from the external device, set the first address of the second block, and write a new one. Then, the attribute code of the second block is rewritten to an invalidation code. As a result, when reading data, only the data of the first block is available.
Reading of the data in the second block is ignored by the invalidation code, and a specific signal is output to clarify the existence of the invalidation block. In this case, in a PROM type memory, once data is written, it is impossible to write any new data to the same location, but it is possible to rewrite it to a certain type of data. In other words, in PROM type memory, data is written by a combination of changing the initial state of bit (1) 2 to bit (0) 2 , so once data is written, (1) ) 2 can be changed to (0) 2 . Next, when writing data, data is written to the area corresponding to the third block of the memory area, and when reading data, the data in the area corresponding to the second block is ignored by the invalidation code, and the data is written to the area corresponding to the second block of the memory area. The data in the area corresponding to 3 blocks becomes the second data. In this case, in the external device that read the data, the existence of the invalidation block corresponding to the second block is made clear by a specific signal, so the number of memory blocks in the IC card is actually 3 blocks. It turns out that it has already been used.

一方、データの書込みの際、属性コードの書込
みがデータ信号の電気的なトラブルにより誤つた
データとなつて書込まれた場合、それが有効化コ
ード、無効化コード又は初期コードのいずれでも
ない時はデータの読出しの際に不明として判別さ
れ、エラー発生コードを外部へ出力して以後のデ
ータの読出しを禁止する。この場合、不明の属性
コードを有するデータブロツクの番号を外部から
入力し、当該データブロツクの属性コードを無効
化コードに書換えることにより、エラーによるデ
ータの読出し禁止を解除できる。すなわち、有効
化コード(F0)16がデータ信号の電気的トラブル
によつて誤つたデータ、たとえば(E0)16と書込
まれてしまつた場合、データの読出し時にはこの
属性コードは不明と判断され、以後の属性コード
のテストが中止され、エラー発生コードが外部に
出力されてデータの出力が禁止される。そこで、
この(E0)16を無効化コード(00)16に書き直すこ
とにより、データの読出し時には当該ブロツクを
無視して読出しが続けられる。
On the other hand, when writing data, if the attribute code is written as incorrect data due to an electrical problem with the data signal, if it is not an activation code, invalidation code, or initial code. is determined as unknown when reading data, and an error occurrence code is output to the outside to prohibit further reading of data. In this case, by inputting the number of a data block having an unknown attribute code from the outside and rewriting the attribute code of the data block with an invalidation code, the prohibition of reading data due to an error can be canceled. In other words, if the validation code (F0) 16 is written as incorrect data, for example (E0) 16 , due to an electrical problem with the data signal, this attribute code will be determined to be unknown when reading the data. Subsequent attribute code tests are canceled, an error code is output to the outside, and data output is prohibited. Therefore,
By rewriting this (E0) 16 to an invalidation code (00) 16 , when reading data, the block in question can be ignored and reading can be continued.

次に、具体的なPROM内のデータ配列を第1
図に示し、処理フローを第2図〜第4図に示して
説明する。
Next, set the data array in the specific PROM to the first
The processing flow will be described with reference to FIGS. 2 to 4.

第1図はPROM内のデータ配列を示すもので
あり、メモリエリアの先頭部をテストエリアTA
とし、それ以降をデータ格納エリアDSAとして
いる。そして、テストエリアTAはこの例では2
つのデータブロツクB1及びB2で構成され、デ
ータ格納エリアDSAはデータブロツクB3,B
4,…で構成されており、各データブロツクB
1,B2,B3,…の先頭番地には属性コード
(有効化コード、無効化コード、初期コード)を
格納するエリアA1,A2,A3,…が設けられ
ている。また、データブロツクB1,B2,B
3,…の他のエリアD1−1〜D1−n,D2−
1〜D2−n,…はデータを格納する部分となつ
ており、これら領域A1,A2,…及びD1−
1,D1−2,…はいずれも1バイト(8ビツ
ト)構成となつている。
Figure 1 shows the data arrangement in the PROM, and the beginning of the memory area is designated as the test area TA.
The area after that is the data storage area DSA. And the test area TA is 2 in this example
It consists of two data blocks B1 and B2, and the data storage area DSA is composed of two data blocks B1 and B2.
It consists of 4,..., and each data block B
1, B2, B3, . . . are provided with areas A1, A2, A3, . . . for storing attribute codes (validation code, invalidation code, initial code). In addition, data blocks B1, B2, B
3,...Other areas D1-1 to D1-n, D2-
1 to D2-n,... are areas for storing data, and these areas A1, A2,... and D1-
1, D1-2, . . . all have a 1-byte (8-bit) configuration.

次に、メモリに格納されているデータを読出す
手順を第2図のフローを参照して説明すると、先
ずデータが格納されている第1ブロツクB3の先
頭番地A3にメモリのアドレスをセツトする(ス
テツプS1)。次いで、データブロツクB3の先頭
の属性コードをテストし(ステツプS2)、属性コ
ードがエラーコードであればエラー発生コードを
出力し(ステツプS3)、初期コードであれば読出
し終了コードを出力して(ステツプS4)、読出し
を終了する。また、属性コードが有効化コードで
ある場合は、有効化コードに続くデータ1ブロツ
ク分Dを出力し(ステツプS5)、無効化コードの
場合はそれに続くデータを出力せず、その代りに
無効発生コードを出力して(ステツプS6)、読出
しアドレスを次のブロツクの先頭Aにセツトし
(ステツプS7)、同様な手順を繰返す。
Next, the procedure for reading data stored in the memory will be explained with reference to the flowchart in FIG. Step S1). Next, the attribute code at the beginning of data block B3 is tested (step S2), and if the attribute code is an error code, an error occurrence code is output (step S3), and if it is an initial code, a read end code is output ( Step S4), the reading is finished. Also, if the attribute code is an activation code, one block of data D following the activation code is output (step S5), and if it is an invalidation code, the data following it is not output, and instead an invalidation occurs. The code is output (step S6), the read address is set to the beginning A of the next block (step S7), and the same procedure is repeated.

さらに、第3図のフローはデータをメモリに書
込んで格納する手順を示すもので、第2図の読出
しの場合と同様に、先ずデータ格納エリアDSA
の先頭番地A3にアドレスをセツトし(ステツプ
S8)、データブロツクB3の先頭の属性コードを
テストする(ステツプS9)。そして、属性コード
が有効化コードもしくは無効化コードの場合に
は、既にそのブロツクB3には何らかのデータが
格納されているので、次のブロツクB4の先頭番
地A4にアドレスをセツトし(ステツプS10)、
再び属性コードのテストを行なう。このようにし
て、属性コードが初期コードである場合にのみメ
モリへの書込みが許可され、書込み可能コードが
外部へ出力される(ステツプS11)。書込み可能
コードを外部装置が受けると、書込むためのデー
タを有効化コードと共に入力し(ステツプS12)、
1ブロツク分のデータをメモリに書込んで格納す
る(ステツプS13)。このようにして書込みが終
了した後、書込んだデータの内容をテストし(ス
テツプS14)、結果が良好(OK)であれば、終了
コードを出力し(ステツプS15)、書込みを終了
する。
Furthermore, the flow in Figure 3 shows the procedure for writing and storing data in memory, and as in the case of reading in Figure 2, first the data is stored in the data storage area DSA.
Set the address at the first address A3 of
S8), and tests the attribute code at the beginning of data block B3 (step S9). If the attribute code is an activation code or an invalidation code, some data is already stored in that block B3, so the address is set at the first address A4 of the next block B4 (step S10).
Test the attribute code again. In this way, writing into the memory is permitted only when the attribute code is an initial code, and the writable code is output to the outside (step S11). When the external device receives the writable code, it inputs the data for writing along with the activation code (step S12).
One block of data is written and stored in memory (step S13). After writing is completed in this manner, the contents of the written data are tested (step S14), and if the result is OK, an end code is output (step S15) and the writing is completed.

なお、書込みデータのテスト中において、入力
データと異なるデータがメモリに書込まれている
と判断された場合には、エラー発生コードを出力
して(ステツプS16)、書込みができなかつたこ
とを外部に知らせて書込み処理を終了する。ま
た、属性コードのテストにおいて、属性コードが
有効化コード、無効化コード、初期コードのいず
れでもない場合には、エラー発生コードを外部へ
出力して書込み処理を終了する。
During the write data test, if it is determined that data different from the input data has been written to the memory, an error code is output (step S16) to inform the external device that the write was not possible. The write process is terminated. Further, in the attribute code test, if the attribute code is neither a validation code, a invalidation code, nor an initial code, an error code is output to the outside and the write process is ended.

さらに、第4図は属性コードが有効化コード、
無効化コード、初期コードのいずれでもない場
合、そのブロツク全体を無効とするために属性コ
ードを無効化コードに修正したり、属性コードが
有効化コードであつても続いて格納されているデ
ータが不要となつたり、誤りである場合に、その
ブロツク全体を無効化するために属性コードを無
効化コードに修正する手順を示すものである。先
ず、外部から修正を行なうブロツクの番号を入力
し、そのブロツク番号の先頭アドレスをセツトし
(ステツプS18)、当該ブロツクの先頭にある属性
コードのみを無効化コードに書き直す(ステツプ
S19)。その後に修正結果をテストし(ステツプ
S20)、結果が良好(OK)であれば終了コードを
出力して(ステツプS21)、修正処理を終了する。
また、結果が不良(NO)である場合はエラー発
生コードを出力して(ステツプS22)、修正処理
を終了する。
Furthermore, in Figure 4, the attribute code is the activation code,
If it is neither an invalidation code nor an initial code, the attribute code may be modified to an invalidation code to invalidate the entire block, or even if the attribute code is an activation code, the stored data may be This shows a procedure for modifying an attribute code to an invalidation code in order to invalidate the entire block when it becomes unnecessary or is incorrect. First, input the number of the block to be modified externally, set the start address of that block number (step S18), and rewrite only the attribute code at the beginning of the block into an invalidation code (step S18).
S19). Then test the correction results (step
S20), and if the result is good (OK), an end code is output (step S21) and the correction process is ended.
If the result is negative (NO), an error code is output (step S22) and the correction process is terminated.

以上のようにこの発明によれば、格納データを
複数のブロツク構成とすると共に、各ブロツクの
先頭に属性コードのエリアを設けることによりデ
ータの書込み誤りや、書込み後に不必要となつた
データの処理に関して非常に有効なものとしてい
る。また、ICカードの動作確認を行なうために
特に属性コードを有するテスト領域を設け、IC
カードの使用時に属性コードを読出すことによつ
て、テスト領域内に書込まれたデータが読出され
ることなく、必要な時に特定者にしかテスト領域
内のデータを読出すことが出来ないようになつて
いる。さらに、テストデータを後に読出す必要の
ない場合にはテスト領域を設ける必要はなく、テ
スト後にデータブロツク内の属性コードを有効化
コードから無効化コードに書き直してやればよ
い。さらにまた、データブロツクのうちの特定の
データブロツクの属性コードを無効化コードとす
ることにより、カードの制御、すなわちメモリへ
の読出し、書込みが不能となり、ICカード全体
が無効化される。このようなICカード全体を無
効とする手段をICカードの機能に付与すること
により、ICカードに格納されているデータの全
てが不要となつた時、そのデータが機密を要する
ものである場合にはデータを抹殺する上で有効な
ものとなる。
As described above, according to the present invention, the stored data is structured into a plurality of blocks, and an attribute code area is provided at the beginning of each block, thereby preventing data writing errors and processing of data that becomes unnecessary after writing. It is considered to be very effective. In addition, in order to check the operation of the IC card, a test area with a special attribute code is set up, and the IC card is
By reading the attribute code when using the card, the data written in the test area is not read out, and only a specific person can read the data in the test area when necessary. It's getting old. Furthermore, if there is no need to read out the test data later, there is no need to provide a test area, and the attribute code in the data block can be rewritten from the validation code to the invalidation code after the test. Furthermore, by setting the attribute code of a specific data block among the data blocks as an invalidation code, card control, that is, reading and writing to the memory is disabled, and the entire IC card is invalidated. By adding a means of invalidating the entire IC card to the IC card function, it can be used when all of the data stored on the IC card is no longer needed or when the data is confidential. is effective in erasing data.

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

第1図はPROM内のデータ配列のブロツク構
成の一例を示す図、第2図はデータの読出し手順
を示すフローチヤート、第3図はデータの書込み
手順を示すフローチヤート、第4図は不都合なデ
ータブロツクの属性コードを無効化するための手
順を示すフローチヤートである。 TA…テストエリア、DSA…データ格納エリ
ア、B1〜B4…データブロツク、D1〜D4…
データ領域、A1〜A4…属性コード領域。
Fig. 1 is a diagram showing an example of the block configuration of the data array in PROM, Fig. 2 is a flowchart showing the data reading procedure, Fig. 3 is a flowchart showing the data writing procedure, and Fig. 4 is a flowchart showing the data writing procedure. 3 is a flowchart showing the procedure for invalidating the attribute code of a data block. TA...test area, DSA...data storage area, B1-B4...data block, D1-D4...
Data area, A1 to A4... Attribute code area.

Claims (1)

【特許請求の範囲】 1 情報の読取り及び書込み可能なPROMと、
情報処理を行なうマイクロコンピユータとを有す
るICカードにおいて、前記PROM内のデータ配
列を連続した一定単位のデータブロツクの集まり
によるブロツク構成とすると共にそれぞれのデー
タブロツクを、初期コード、有効化コード及び無
効化コードのいずれかの属性コードを格納する属
性コード領域とデータを格納するデータ領域とで
構成し、前記データブロツク内に格納されている
データの外部装置への出力、あるいは前記データ
ブロツクへのデータの格納を可能とするために前
記属性コードを読取つて解釈する解釈手段と、前
記解釈手段により前記データブロツクに格納され
ているデータの出力が許された場合に、出力の許
されたデータブロツクの内容のみを出力するため
の出力手段と、前記解釈手段により前記データブ
ロツクへのデータの格納が許された場合に、デー
タの格納が許されたデータブロツクにのみデータ
を格納するための格納手段と、前記データブロツ
クのうち、特定のデータブロツクの前記属性コー
ドを無効化コードとすることにより、ICカード
全体を無効とするための手段とを具備することを
特徴とするICカード。 2 前記データブロツクへのデータの格納を許容
するために、前記属性コードの読取り及び解釈を
行なう解釈手段が、前記属性コードが初期コード
であるか否かをテストする手段と、前記初期コー
ドのテスト結果が真であつた場合にそのデータブ
ロツクへのデータの格納を許容し、前記初期コー
ドのテスト結果が偽であつた場合には前記属性コ
ードが有効化コード又は無効化コードであるか否
かをテストする手段と、前記有効化コード又は無
効化コードであるか否かの試験結果が真であつた
場合に、次のデータブロツクの属性コードのテス
トに移るための手段を有する特許請求の範囲第1
項に記載のICカード。 3 前記データブロツクへのデータの格納を許容
するために属性コードの読取り及び解釈を行なう
解釈手段の解釈結果が、前記属性コードが初期コ
ード、有効化コード又は無効化コードのいずれで
もない場合に、それ以後の属性コードのテストを
中止し、エラー発生コードを前記外部装置に出力
する手段を有する特許請求の範囲第2項に記載の
ICカード。 4 前記データブロツクのうち、前記特定のデー
タブロツクのデータ領域を、ICカードの製造の
際に当該ICカードに付属される連続番号を表わ
すデータの格納用として使用するようにした特許
請求の範囲第1項に記載のICカード。 5 前記データブロツクのうちの特定の1つもし
くは複数のデータブロツクのデータ領域をICカ
ード製造の際の特定者にしか読出すことができな
いエリアとして使用し、前記ICカードが頒布さ
れた後の通常の使用時には前記エリアを使用しな
いことを特徴とする特許請求の範囲第1項に記載
のICカード。 6 前記属性コードが有効化コードである任意の
データブロツクに対し、無効化コードを書込むた
めの手段を有する特許請求の範囲第1項に記載の
ICカード。
[Claims] 1. A PROM capable of reading and writing information;
In an IC card that has a microcomputer that processes information, the data array in the PROM has a block configuration consisting of a collection of consecutive fixed unit data blocks, and each data block has an initial code, an activation code, and an invalidation code. It consists of an attribute code area for storing one of the attribute codes of the code and a data area for storing data, and the data stored in the data block can be output to an external device, or the data to the data block can be output to an external device. an interpreter that reads and interprets the attribute code to enable storage; and, when the interpreter allows the output of the data stored in the data block, the contents of the data block that are allowed to be output. an output means for outputting only the data; and a storage means for storing the data only in the data block where the data is allowed to be stored when the interpretation means allows the data to be stored in the data block; An IC card characterized by comprising means for invalidating the entire IC card by setting the attribute code of a specific data block among the data blocks as an invalidation code. 2. In order to allow data to be stored in the data block, the interpretation means for reading and interpreting the attribute code includes means for testing whether the attribute code is an initial code, and testing for the initial code. If the result is true, allow data to be stored in the data block; if the test result of the initial code is false, determine whether the attribute code is an enable code or a disable code. and means for moving on to testing the attribute code of the next data block when the test result as to whether the code is an enabling code or a disabling code is true. 1st
IC card listed in section. 3. If the interpretation result of the interpretation means that reads and interprets the attribute code to permit data storage in the data block is that the attribute code is neither an initial code, an activation code, nor an invalidation code, Claim 2, further comprising means for stopping the subsequent test of the attribute code and outputting an error code to the external device.
IC card. 4. Among the data blocks, the data area of the specific data block is used for storing data representing a serial number attached to the IC card when the IC card is manufactured. IC card described in Section 1. 5. The data area of one or more of the data blocks is used as an area that can only be read by a specific person during the manufacture of the IC card, and the data area of the data block is The IC card according to claim 1, wherein the area is not used when the IC card is used. 6. The data block according to claim 1, further comprising means for writing an invalidation code to any data block whose attribute code is an activation code.
IC card.
JP57090902A 1982-05-28 1982-05-28 IC card Granted JPS58209000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57090902A JPS58209000A (en) 1982-05-28 1982-05-28 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57090902A JPS58209000A (en) 1982-05-28 1982-05-28 IC card

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP3208688A Division JPH052536A (en) 1991-07-25 1991-07-25 IC card

Publications (2)

Publication Number Publication Date
JPS58209000A JPS58209000A (en) 1983-12-05
JPH048838B2 true JPH048838B2 (en) 1992-02-18

Family

ID=14011327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57090902A Granted JPS58209000A (en) 1982-05-28 1982-05-28 IC card

Country Status (1)

Country Link
JP (1) JPS58209000A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60160491A (en) * 1984-01-31 1985-08-22 Toshiba Corp Ic card
DE3412663A1 (en) * 1984-04-04 1985-10-17 Siemens AG, 1000 Berlin und 8000 München CHIP CARD SYSTEM
JPS62231393A (en) * 1986-03-31 1987-10-09 Toppan Moore Co Ltd IC card
JP2532057B2 (en) * 1985-07-04 1996-09-11 トッパン・ムーア 株式会社 IC card with error detection function
US4742215A (en) * 1986-05-07 1988-05-03 Personal Computer Card Corporation IC card system
JPS62284489A (en) * 1986-05-31 1987-12-10 Mitsubishi Electric Corp Card system
JPH0758500B2 (en) * 1987-02-20 1995-06-21 株式会社東芝 Portable electronic device
JP2675563B2 (en) * 1987-12-23 1997-11-12 株式会社東芝 Portable electronic devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53148242A (en) * 1977-05-30 1978-12-23 Toshiba Corp Record protective system
FR2401459A1 (en) * 1977-08-26 1979-03-23 Cii Honeywell Bull PORTABLE INFORMATION MEDIA EQUIPPED WITH A MICROPROCESSOR AND A PROGRAMMABLE DEAD MEMORY
FR2455320B1 (en) * 1979-04-25 1986-01-24 Cii Honeywell Bull DEVICE FOR RECYCLING IDENTIFIABLE RECORDING MEDIA USING IDENTIFICATION DATA AND NON-VOLATILE DELETE MONOLITHIC MEMORY COMPOUNDS
JPS5730900U (en) * 1980-07-25 1982-02-18

Also Published As

Publication number Publication date
JPS58209000A (en) 1983-12-05

Similar Documents

Publication Publication Date Title
KR100301409B1 (en) Semiconductor memory device having data protection feature
JP2914360B2 (en) External storage device and data processing method
US5206938A (en) Ic card with memory area protection based on address line restriction
JPS63133238A (en) Digital data processing system
KR20000023497A (en) Microcomputer provided with flash memory and method of storing program into flash memory
US5506396A (en) Microcomputer for IC card
US5812446A (en) Method and apparatus for the protection of non-volatile memory zones
JPH048838B2 (en)
JP2547379B2 (en) Portable data carrier
KR100341424B1 (en) Microcomputer
JPH0822422A (en) Memory device
JP2910745B2 (en) Storage device and data processing method
JPH0922385A (en) Data security device and method
JPH02157988A (en) Command processing method in IC card
JPH052536A (en) IC card
US20050068842A1 (en) Electronic device, nonvolatile memory and method of overwriting data in nonvolatile memory
JP3168572B2 (en) IC card with CPU runaway detection function
JP2501587B2 (en) IC card
JPS5987568A (en) IC card
JPH11327911A (en) Image forming device
JP2003203012A (en) Microcomputer device
JP2528466B2 (en) IC card
JPS62266602A (en) Setting guard device for system parameter
JP3389317B2 (en) Integrated circuit test circuit
JPS63301390A (en) Ic card