JPS636689A - Ic card - Google Patents
Ic cardInfo
- Publication number
- JPS636689A JPS636689A JP61151013A JP15101386A JPS636689A JP S636689 A JPS636689 A JP S636689A JP 61151013 A JP61151013 A JP 61151013A JP 15101386 A JP15101386 A JP 15101386A JP S636689 A JPS636689 A JP S636689A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- initialized
- determination
- card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 12
- 230000010365 information processing Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
Landscapes
- Credit Cards Or The Like (AREA)
Abstract
Description
【発明の詳細な説明】
「産業上の利用分野」
この発明は、ICカードに係わり、特にメモリが初期化
されているか否かを判定するための構成に関する。DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to an IC card, and particularly to a configuration for determining whether or not a memory has been initialized.
「従来の技術」
近年、カード状の部材にマイクロプロセッサやメモリ等
のICチップを組込んだいわゆるICカードが開発され
ている。このICカードは、情報処理機能を有するとと
もに、情報記憶容量に優れているため、磁気カードに代
わるカードとして注目されている。"Prior Art" In recent years, so-called IC cards have been developed in which an IC chip such as a microprocessor or memory is incorporated into a card-like member. This IC card has an information processing function and has an excellent information storage capacity, so it is attracting attention as a card that can replace magnetic cards.
このようなICカードにおいては、使用に先だって、内
蔵メモリの初期化がなされる。この初期化は、−般に、
情報処理端末からの開始指令に従って、上記マイクロプ
ロセッサによってなされる。In such an IC card, the built-in memory is initialized before use. This initialization is generally done by
This is done by the microprocessor in accordance with a start command from the information processing terminal.
ところで、上記メモリが既に初期化されているものであ
れば、初期化処理を実行しないようにする必要がある。By the way, if the memory has already been initialized, it is necessary to avoid executing the initialization process.
それは、再度初期化処理を実行することにより、既に格
納されているデータを破壊することになるからである。This is because by executing the initialization process again, the data that has already been stored will be destroyed.
このため、マイクロプロセッサが実行する初期化プログ
ラムは、−般に、初期化済みか否かを判定する判定プロ
グラムと一体に構成される。For this reason, the initialization program executed by the microprocessor is generally integrated with a determination program that determines whether initialization has been completed.
従来は、メモリ、上で選定された1つのアドレスに、所
定のデータが格納されているが否かを判定することによ
り、初期化済みか否かを判定するようになっていた。Conventionally, it has been determined whether the memory has been initialized by determining whether predetermined data is stored at one address selected above.
しかし、このような従来の判定構成では、誤判定が生じ
やすいという問題があった。その原因としては、例えば
、ICカードの製造時、超音波等の雑音により、メモリ
のデータが変化してしまうことが挙げられる。However, such a conventional determination configuration has a problem in that erroneous determinations are likely to occur. One of the causes of this is, for example, that the data in the memory is changed due to noise such as ultrasonic waves during the manufacture of the IC card.
「発明が解決しようという問題点」
この発明は上記の事情に対処すべくなされたもので、内
蔵メモリが初期化されているか否かを判定するに際し、
誤判定を極力低減することができるICカードを提供す
ることを目的とする。"Problems to be Solved by the Invention" This invention was made to deal with the above situation, and when determining whether or not the built-in memory has been initialized,
It is an object of the present invention to provide an IC card that can reduce misjudgments as much as possible.
「問題点を解決するための手段」
上記目的を達成するためにこの発明は、予めメモリ上で
選定した複数のアドレスに初期化判定用のデータを記憶
しておき、判定に際し、上記判定用アドレスにおける上
記判定用データの格納具合を判定することにより、初期
化されているか否かを判定するようにしたものである。"Means for Solving the Problem" In order to achieve the above object, the present invention stores data for initialization determination at a plurality of addresses selected in advance on a memory, and upon determination, By determining the storage condition of the determination data in , it is determined whether or not the data has been initialized.
「作用」
上記構成によれば、雑音等によってメモリの格納データ
を変えられるような場合であっても、上記判定用アドレ
ス全てのデータが変わってしまう確立は極めて低い。し
たがって、判定用アドレスにおける判定用データの格納
具合が許容範囲内にあるか否かを判定することにより、
極力誤判定を低減することができる。"Operation" According to the above configuration, even if the data stored in the memory can be changed due to noise or the like, the probability that all the data at the determination address will be changed is extremely low. Therefore, by determining whether the storage condition of the determination data at the determination address is within the permissible range,
Misjudgment can be reduced as much as possible.
「実施例」
第1図は、一実施例の構成を説明するために示すICカ
ードシステムのブロック図である。Embodiment FIG. 1 is a block diagram of an IC card system shown to explain the configuration of an embodiment.
図において、11はICカードである。12はこのIC
カード11をアクセスするための情報処理端末である。In the figure, 11 is an IC card. 12 is this IC
This is an information processing terminal for accessing the card 11.
上記ICカード11は、メモリ111とこれをアクセス
するだめのマイクロプロセッサ112を備える。The IC card 11 includes a memory 111 and a microprocessor 112 for accessing the memory.
第2図は、初期化されたメモリ111に記憶されている
データを、メモリ111の記憶構成に従って示すもので
ある。なお、図では、データを16進で示している。FIG. 2 shows data stored in the initialized memory 111 according to the storage configuration of the memory 111. Note that in the figure, data is shown in hexadecimal.
この実施例では、初期化に際して、メモリ111上の複
数のアドレスに初期化済みか否かの判定用のデータを書
込んでおくようになっている。In this embodiment, upon initialization, data for determining whether initialization has been completed is written to a plurality of addresses on the memory 111.
図中、「00」がこの初期化判定用のデータである。今
、図示のメモリ111が、例えば、64にビットEEP
ROMとすると、詳細は後述するが、このメモリ111
は、初期化に際して64バイトずつ128のブロックに
分割される。上記判定用データは、これら128の各ブ
ロックの先頭アドレスに書込まれる。In the figure, "00" is data for this initialization determination. Now, the illustrated memory 111 has, for example, 64 bits EEP
If it is a ROM, the details will be described later, but this memory 111
is divided into 128 blocks of 64 bytes each during initialization. The above judgment data is written to the start address of each of these 128 blocks.
一方、メモリ11が初期化されていないと、上記判定用
アドレスに[00]以外のデータ、例えば、rFFJが
格納されている確立が極めて高い。On the other hand, if the memory 11 has not been initialized, there is a very high probability that data other than [00], for example rFFJ, is stored at the determination address.
そこで、この実施例では、判定用アドレスのうち「OO
」以外のデータが格納されているアドレスが、予め定め
た数以上あるとき、初期化されていないと判定するよう
になっている。予め定めた数以上としたのは、雑音等の
偶発的要因により、データが変わる場合に対処するため
である。Therefore, in this embodiment, among the determination addresses, "OO
When there are more than a predetermined number of addresses storing data other than ", it is determined that the data has not been initialized." The reason why the number is set to be more than a predetermined number is to cope with the case where data changes due to accidental factors such as noise.
なお、各ブロックの最終アドレスに挿入されるデータr
SUMJは、詳細は後述するが、各ブロックのサムチエ
ツクの値を示すデータで、やはり、初期化に際して挿入
されるものである。また、データrFFJは消去処理に
よって書込まれるデータである。Note that the data r inserted at the final address of each block
Although the details will be described later, SUMJ is data indicating the sum check value of each block, and is also inserted at the time of initialization. Furthermore, data rFFJ is data written by erasing processing.
第3図は上記判定処理を示すフローチャートである。図
に示される判定処理は、例えば、ICカード11のマイ
クロプロセッサ112によってなされる。マイクロプロ
セッサ112は、情報処理端末12からの開始指令に従
って第3図のプログラムを実行する。まず、ステップS
1では、指定アドレスが0にセットされる。つまり、ブ
ロック1の先頭アドレスが指定される。また、ブロック
数をカウントする第1のカウンタおよびrQ QJ以外
のデータが格納されているアドレスの数をカウントする
第2のカウンタがそれぞれクリアされる。次のステップ
S2では、ステップS1で指定されたアドレスからデー
タが読出される。次のステップS3では、読出したデー
タがrollか否かが判定され、ro 0Jならステッ
プS4に移る。FIG. 3 is a flowchart showing the above determination process. The determination process shown in the figure is performed by the microprocessor 112 of the IC card 11, for example. The microprocessor 112 executes the program shown in FIG. 3 in accordance with a start command from the information processing terminal 12. First, step S
1 sets the specified address to 0. In other words, the start address of block 1 is specified. Further, a first counter that counts the number of blocks and a second counter that counts the number of addresses storing data other than rQQJ are each cleared. In the next step S2, data is read from the address specified in step S1. In the next step S3, it is determined whether the read data is roll, and if ro 0J, the process moves to step S4.
ステップS4では、指定アドレスがブロック2の先頭ア
ドレスに切換えられる。次のステップS5では、第1の
カウンタのカウント値N1が1インクリメントされる。In step S4, the designated address is switched to the start address of block 2. In the next step S5, the count value N1 of the first counter is incremented by one.
次のステップS6では、カウント値N1が128か否か
判定され、128でなければステップS2に戻って再び
同じ動作が繰返され、128なら判定処理を終了する。In the next step S6, it is determined whether the count value N1 is 128 or not. If not, the process returns to step S2 and the same operation is repeated, and if it is 128, the determination process is ended.
−方、先のステップS3で、データがro 0Jでない
との判定がなされたら、ステップS7に移り、第2のカ
ウンタのカウント値N2が1インクリメントされる。次
のステップS8では、カウント値N2が10以上か否か
判定される。10未満なら、上記ステップS4に移り、
判定処理を続行する。−方、10以上なら初期化されて
いないものと判定し、ステップS9で初期化を行なって
判定処理を終了する。- On the other hand, if it is determined in the previous step S3 that the data is not ro 0J, the process moves to step S7, and the count value N2 of the second counter is incremented by one. In the next step S8, it is determined whether the count value N2 is 10 or more. If it is less than 10, move to step S4 above,
Continue the determination process. - On the other hand, if it is 10 or more, it is determined that it has not been initialized, initialization is performed in step S9, and the determination process is ended.
なお、ステップS9で実行される初期化処理としては、
主要なものを揚げると、例えば次のようなものがある。Note that the initialization process executed in step S9 is as follows:
Some of the main items include the following:
(1)メモリ11内の全てのアドレスが消去されている
か否かを確め、消去されていなければ消去する。(1) Check whether all addresses in the memory 11 have been erased, and if not erased.
(2)メモリ111をアクセスしやすいようにするため
、メモリ空間を上記の如く、64のブロックに分ける。(2) In order to make the memory 111 easier to access, the memory space is divided into 64 blocks as described above.
(3)データの信頼性を高めるために、各ブロック毎に
例えばサムチエツクをとり、その結果を各ブロックの最
終アドレスに書込む。(3) To improve data reliability, perform a thumb check for each block, for example, and write the result to the final address of each block.
(4)ICカードの機能に必要なステータスをセットす
る。(4) Set the status necessary for the IC card function.
以上詳述したようにこの実施例では、メモリ111上の
複数のアドレスのデータを観察することにより、初期化
済みか否かを判定しているので、誤った判定を極力低減
することができる。すなわち、雑音等の偶発的要因によ
って、データが変わっても、判定用の全アドレスのデー
タが変わってしまうことはほとんどないから、判定の基
準となるアドレス数(ro 0J以外のデータが格納さ
れているアドレス数)を適宜設定することにより、誤判
定を極力低減することができるわけである。As described in detail above, in this embodiment, whether or not initialization has been completed is determined by observing data at a plurality of addresses on the memory 111, so that erroneous determination can be reduced as much as possible. In other words, even if the data changes due to accidental factors such as noise, it is unlikely that the data in all addresses for judgment will change. By appropriately setting the number of addresses that exist, it is possible to reduce erroneous determinations as much as possible.
また、この実施例では、判定用のアドレスを所定の間隔
で並べたので、マイクロプロセッサ112がこの判定用
アドレスを記憶しておく必要がないという利点がある。Further, in this embodiment, since the addresses for determination are arranged at predetermined intervals, there is an advantage that the microprocessor 112 does not need to store the addresses for determination.
さらにこの実施例では、「00」以外のデータが格納さ
れているアドレスが所定数以上検出された時点で、すぐ
に初期化を実行するようにしているので、判定処理の高
速化が図られる。Furthermore, in this embodiment, initialization is executed immediately when a predetermined number or more of addresses storing data other than "00" are detected, thereby speeding up the determination process.
以上この発明の一実施例を詳細に説明したが、この発明
はこのような実施例に限定されものではなく、他にも種
々様々変形実施可能なことは勿論である。Although one embodiment of the present invention has been described in detail above, the present invention is not limited to this embodiment, and it goes without saying that various other modifications can be made.
例えば、先の実施例では、判定用のアドレスを一定間隔
で配置する場合を説明したが、連続的に配置するように
してもよい。例えば、ブロック1゜2の128のアドレ
スを選定するようにしてもよい。また、このように所定
の配列規則に従って、選定する場合に限らず、ランダム
に選定するようにしてもよい。For example, in the previous embodiment, a case has been described in which the determination addresses are arranged at regular intervals, but they may be arranged continuously. For example, 128 addresses of block 1.2 may be selected. Furthermore, the selection is not limited to the case where the selection is made according to a predetermined arrangement rule as described above, but the selection may be made at random.
さらに、先の実施例では、ICカード11側で判定を行
なう場合を説明したが、情報処理端末12側で行なうよ
うにしてもよいことは勿論である。Further, in the previous embodiment, the case where the determination is made on the IC card 11 side has been described, but it goes without saying that the determination may be made on the information processing terminal 12 side.
さらに、また、先の実施例では、判定用データが初期化
処理されているメモリに書込まれている場合を設定した
が、初期化されていないメモリ111に書込むようにし
てもよいことは勿論である。この場合は、例えば、先の
実施例とは逆に、判定用データが所定数以上あるとき、
初期化されていないと判定することができる。Furthermore, in the previous embodiment, the case where the judgment data is written to the memory that has been initialized is set, but it goes without saying that it may be written to the memory 111 that has not been initialized. be. In this case, for example, contrary to the previous embodiment, when there is a predetermined number or more of determination data,
It can be determined that it has not been initialized.
「発明の効果」
以上述べたようにこの発明によれば、内蔵メモリが初期
化されているが否かを判定する際の誤判定を極力低減す
ることができるICカードを提供することができる。[Effects of the Invention] As described above, according to the present invention, it is possible to provide an IC card that can minimize erroneous determinations when determining whether or not the built-in memory has been initialized.
第1図はこの発明の一実施例の構成を説明するためのブ
ロック図、第2図は一実施例のメモリに格納されるデー
タを説明するための図、第3図は一実施例の動作を、説
明するためのフローチャートである。
11・・・ICカード、12・・・情報処理端末、11
1・・・メモリ、112・・・マイクロプロセッサ。
出願人代理人 弁理士 鈴江武彦
第1図
第2図
第3図FIG. 1 is a block diagram for explaining the configuration of one embodiment of the present invention, FIG. 2 is a diagram for explaining data stored in the memory of one embodiment, and FIG. 3 is an operation of one embodiment. It is a flowchart for explaining. 11...IC card, 12...information processing terminal, 11
1...Memory, 112...Microprocessor. Applicant's agent Patent attorney Takehiko Suzue Figure 1 Figure 2 Figure 3
Claims (1)
モリと、 上記複数のアドレスにおける上記判定用のデータの格納
具合から、該メモリが初期化されているか否かを判定す
る初期化判定手段とを具備したことを特徴とするICカ
ード。[Claims] A memory in which data for initialization determination is stored at a plurality of addresses, and whether or not the memory is initialized is determined based on the storage condition of the data for determination at the plurality of addresses. An IC card characterized by comprising: an initialization determination means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61151013A JPS636689A (en) | 1986-06-27 | 1986-06-27 | Ic card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61151013A JPS636689A (en) | 1986-06-27 | 1986-06-27 | Ic card |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS636689A true JPS636689A (en) | 1988-01-12 |
Family
ID=15509389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61151013A Pending JPS636689A (en) | 1986-06-27 | 1986-06-27 | Ic card |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS636689A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH076842U (en) * | 1993-06-18 | 1995-01-31 | 株式会社田村電機製作所 | Terminal device with memory card |
JP2002024772A (en) * | 2000-07-04 | 2002-01-25 | Dainippon Printing Co Ltd | IC card information reading device and IC card status display device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5562600A (en) * | 1978-11-02 | 1980-05-12 | Mitsubishi Electric Corp | Availability decision method of power failure security in volatile semiconductor memory |
-
1986
- 1986-06-27 JP JP61151013A patent/JPS636689A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5562600A (en) * | 1978-11-02 | 1980-05-12 | Mitsubishi Electric Corp | Availability decision method of power failure security in volatile semiconductor memory |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH076842U (en) * | 1993-06-18 | 1995-01-31 | 株式会社田村電機製作所 | Terminal device with memory card |
JP2002024772A (en) * | 2000-07-04 | 2002-01-25 | Dainippon Printing Co Ltd | IC card information reading device and IC card status display device |
JP4673470B2 (en) * | 2000-07-04 | 2011-04-20 | 大日本印刷株式会社 | IC card information reading device and IC card status display device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6484937B1 (en) | Method for storing data in a chip card rewritable memory | |
US8661192B2 (en) | Refresh algorithm for memories | |
KR0121800B1 (en) | Memory card device | |
CN100541529C (en) | Storage card, data write device and comprise the system of described storage card | |
EP0468454A2 (en) | Interrupt controller | |
US8433844B2 (en) | Method for managing a memory device having multiple channels and multiple ways, and associated memory device and controller thereof | |
US20100318760A1 (en) | Memory controller, nonvolatile storage device, and nonvolatile storage system | |
JPH05324489A (en) | Storage device | |
US6572024B1 (en) | Memory array with address scrambling | |
JPH05314019A (en) | Memory card device | |
JP3771904B2 (en) | Microprocessor circuit with auxiliary register bank | |
US6094732A (en) | Shared memory controller having an address error detector | |
JPS636689A (en) | Ic card | |
CN108153486A (en) | The running parameter guard method of embedded system and relevant device | |
EP1246201A2 (en) | Semiconductor memory | |
CN116136827A (en) | Multi-port storage device, read-write method and device | |
JPH05274219A (en) | Storage device | |
US7213142B2 (en) | System and method to initialize registers with an EEPROM stored boot sequence | |
JPH0435780B2 (en) | ||
CN114637626B (en) | Method, device and equipment for reducing read-write errors of EEPROM (electrically erasable programmable read-only memory) data and readable storage medium | |
JPS5814260A (en) | Data transfer system | |
JPH09134312A (en) | Flash memory device | |
KR100303771B1 (en) | Data allocation method for correcting error of data stored in nonvolatile memory | |
EP1301929B1 (en) | Secure writing of data | |
KR100281102B1 (en) | ATA card using the flash memory |