[go: up one dir, main page]

JPH03147086A - Ic card - Google Patents

Ic card

Info

Publication number
JPH03147086A
JPH03147086A JP1285260A JP28526089A JPH03147086A JP H03147086 A JPH03147086 A JP H03147086A JP 1285260 A JP1285260 A JP 1285260A JP 28526089 A JP28526089 A JP 28526089A JP H03147086 A JPH03147086 A JP H03147086A
Authority
JP
Japan
Prior art keywords
program
processing program
stored
processing
inspection
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
JP1285260A
Other languages
Japanese (ja)
Inventor
Hiroshi Takamori
洋 高森
Yuji Kodera
裕司 小寺
Toru Shinagawa
品川 徹
Kenichi Kitsuta
橘田 謙一
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.)
Maxell Ltd
Original Assignee
Hitachi Maxell 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 Hitachi Maxell Ltd filed Critical Hitachi Maxell Ltd
Priority to JP1285260A priority Critical patent/JPH03147086A/en
Publication of JPH03147086A publication Critical patent/JPH03147086A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Credit Cards Or The Like (AREA)
  • Storage Device Security (AREA)

Abstract

PURPOSE:To prevent malfunction occurring by providing an inspection program to inspect the content of a processing program stored in an electrically erasable nonvolatile memory at an electrically unerasable nonvolatile memory, and inspecting it when the processing program is executed. CONSTITUTION:It is judged whether or not the start-up of the processing program is performed with an inspection and start-up program 32 stored in a ROM 3. Then, the validity of the processing program i.e. the fact that no part or all the processing programs 63 written on the electrically erasable nonvolatile memory 6 are lost is confirmed just before the processing program 63 written on the electrically erasable nonvolatile memory 6 is started up. Thereby, it is possible to evade implementing an abnormal program with a CPU 10.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、ICカードに関し、詳しくは、EEFRO
Mを有する処理プログラムダウンロードのICカードに
おいてダウンロードされた処理プログラムの実行による
演算処理装置(以ドCPU)の誤動作防止を防止するこ
とができるようなICカードに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an IC card.
The present invention relates to an IC card capable of preventing malfunctions of an arithmetic processing unit (hereinafter referred to as CPU) due to execution of a downloaded processing program in an IC card for downloading a processing program.

[従来の技術] 従来、この種のICカードとして、例えば、特開昭81
−211788号公報を挙げることができるが、これは
、用途に応じて種々の処理プログラムをICカードに搭
載するために電気的消去可能な不揮発性メモリ(例えば
、EEPROM)を処理プログラム記憶用に設けてダウ
ンロードにより用途に応じた処理プログラムをこれに格
納し、ICカードの汎用性を確保したものである。
[Prior Art] Conventionally, as this type of IC card, for example,
Publication No. 211788 can be cited, which discloses that an electrically erasable nonvolatile memory (e.g., EEPROM) is provided for storing processing programs in order to load various processing programs on an IC card depending on the application. By downloading the IC card, a processing program suitable for the application is stored therein, thereby ensuring the versatility of the IC card.

この場合、EEPROM等の電気的消去iIJ能な不揮
発性メモリに処理プログラムを記憶するのは、RAM等
と異なりバックアップ電池が不融なこ吉と、−・[14
記憶された処理プログラムの内容がRAMとは違って電
源等の電圧変動やCPUの、=1動作に対してt’F換
えられ難いからである。
In this case, storing the processing program in a non-volatile memory that can be electrically erased, such as an EEPROM, is because the backup battery is indestructible, unlike RAM, etc.
This is because, unlike in RAM, the contents of the stored processing program are difficult to change by t'F due to voltage fluctuations in the power supply or the like or in the =1 operation of the CPU.

[解決しようとする課題] しかし、ICカードにあっては、CPUの17.を動作
によることばかりでなく、電気的消去可能な不揮発性メ
モリ素子の不良、あるいはICカードに対する外部装置
からのll!lったコマンドなどにより、EEPROM
に−)込まれた処理プログラムの一部あるいは全部が占
換えられたり、失われたりすることがある。このような
場合には、EEPROMl−の処理プログラムをCPU
が実行すると誤動作してICカードに格納されているi
’Rfiなデータ、例えば、パスワードや残高などの取
引情報等が破壊される可能性がある。
[Problem to be solved] However, in the case of IC cards, the CPU's 17. Not only due to operation, but also due to defects in electrically erasable non-volatile memory elements, or failures from external devices to the IC card! The EEPROM can be
Some or all of the processing programs installed in the computer may be replaced or lost. In such a case, the processing program of EEPROM1- is transferred to the CPU.
When executed, it malfunctions and the i stored in the IC card
'Rfi data, such as transaction information such as passwords and balances, may be destroyed.

この発明は、このような従来技術の問題点を解決するも
のであって、電気的消去i−+J能な不揮発性メモリー
1−に−)込まれた処理プログラムの−・部あるいは全
部が失われた場合にそのプログラムの実行を阻市するこ
とができるICカードを提供することを[i的とする。
The present invention solves the problems of the prior art as described above, and is designed to prevent part or all of the processing program stored in the electrically erasable non-volatile memory 1-) from being lost. The objective is to provide an IC card that can prevent the execution of the program when the program is executed.

[課題を解決するためのr・段] このような[1的を達成するためのこの発明のICカー
ドの構成は、CPUと、このCPUが実1tする処理プ
ログラムが記憶される電気的に消去不可能な第1の不揮
発性メモリと、CPUが実行する処理プログラムが記憶
される電気的消去−1i能な第2の不揮発性メモリと、
CPUにより制御され外部とデータ交換を行う入出力り
段とを備えていて、第2の不揮発性メモリに記憶された
処理プログラムの内容が正しいか否かを検査する検査プ
ログラムが第1の不揮発性メモリに記憶され、第2の不
揮発性メモリに記憶された処理プログラムが起動される
際にCPUが検査プログラムを実行してそれが正しいか
否かを検査し、1Fモしいと判定されたときにその処理
プログラムを起動するものである。
[R stages for solving the problem] The structure of the IC card of the present invention to achieve the first objective is as follows: an electrically erasable first nonvolatile memory in which a processing program executed by the CPU is stored;
The inspection program is controlled by the CPU and includes an input/output stage for exchanging data with the outside, and the inspection program for inspecting whether the contents of the processing program stored in the second nonvolatile memory is correct is the first nonvolatile memory. When the processing program stored in the memory and stored in the second non-volatile memory is started, the CPU executes the inspection program to check whether it is correct or not, and when it is determined that the 1F is correct. This starts the processing program.

[作用コ このように電気的に消去できない不揮発性メモJl−に
電気的消去r1■能な不揮発性メモリに記憶された処理
ブログラノ、の内容を検査する検査プログラムを設けて
おき、l]’前記の処理プログラムが実行されるときに
それを検査するようにしているので電気的消去可能な不
揮発性メモリにの処理プログラムが実行されてもそれに
よる誤動作が発生し難くなる。
[Operation: In this way, an inspection program is provided to inspect the contents of the processing log stored in the electrically erasable non-volatile memory Jl-, which cannot be electrically erased. Since the processing program is checked when it is executed, malfunctions are less likely to occur even if the processing program is executed in the electrically erasable non-volatile memory.

また、電気的消去+1J能な不揮発性メモIJ Lに+
’F込まれた処理プログラムの・部あるいは全部が失わ
れた場合にそれが検出され、かつ、このようなときには
処理プログラムが実行されることがないのでそれによる
誤動作から回避される。その結束、屯τなデータが破壊
される危険性が低下し、イノ4頼性が向[−する。
In addition, non-volatile memory IJL that can be electrically erased +1J
If part or all of the loaded processing program is lost, this will be detected, and in such a case the processing program will not be executed, so malfunctions caused by this will be avoided. This unity reduces the risk of data being destroyed and improves reliability.

[実施例コ 以ド、この発明の一実施例について図面を参照して詳細
に説明する。
[Example Code] An example of the present invention will be described in detail with reference to the drawings.

第1図は、この発明のICカードの一実施例の内部構成
を示すプロ、り図、第2図は、第1図のEEPROMの
メモリマツプ図、第3図は、その処理の説明図である。
FIG. 1 is a diagram showing the internal configuration of an embodiment of the IC card of the present invention, FIG. 2 is a memory map diagram of the EEPROM shown in FIG. 1, and FIG. 3 is an explanatory diagram of its processing. .

第1図において、ICカード10は、ICカードリーダ
・ライタ11(又はホストコンピュータや端末装置直接
でも可)に装着されて、ICカードリーダ・ライタ11
との間でデータの授受を行う。図テハ、MPU 1 ト
、EEPROM6iとf7)2ブロツクの構成となって
いるが、これらはブロックに応じて2チツプであっても
、あるいは、ワンチップにまとめられていてもよい。
In FIG. 1, an IC card 10 is attached to an IC card reader/writer 11 (or a host computer or a terminal device may be used directly).
Data is exchanged between the Although the configuration shown in the figure is an MPU 1 block, an EEPROM 6i, and two blocks (f7), these may be two chips or may be combined into one chip depending on the block.

MPUIは、その内部にマイクロプロセッサ(CPU)
2と、その制御プログラム、その用途等にかかわらずそ
れぞれのICカードに共通な基本的な処理プログラム、
例えば、通信制御プログラムやダウンロードの際の−)
込み処理プログラム、アブリケーンヨン処理プログラム
を起動するのための起動プログラムなどのを記憶したマ
スクROM(以ドROM)3、RAM4、そしてインタ
フエース(外部装置に対する入出力1段)5とを自して
いて、ROM3に記憶されたプログラムに従って、EE
PROM6に記憶された処理プログラム(所定の動作プ
ログラム)を起動し、それを実行して所定の処理を行う
。なお、ROM3に記憶しであるプログラムの−・部は
EEPROMBに格納されてもよい。
MPUI has a microprocessor (CPU) inside it.
2, its control program, a basic processing program common to each IC card regardless of its purpose, etc.
For example, when downloading a communication control program or -)
A mask ROM (hereinafter referred to as a ROM) 3 which stores a startup program for starting an input processing program and an application processing program, a RAM 4, and an interface (one stage of input/output to an external device) 5 are provided. according to the program stored in ROM3.
The processing program (predetermined operation program) stored in the PROM 6 is activated and executed to perform predetermined processing. Incidentally, the part of the program stored in the ROM 3 may be stored in the EEPROMB.

RAM4は、外部装置から転送されたデータとか、読出
しデータ、処理結果データ等が−・時的記憶されるメモ
リであって、これがEEPROMであることもある。
The RAM 4 is a memory in which data transferred from an external device, read data, processing result data, etc. are temporarily stored, and may be an EEPROM.

EEPROMBは、基本的な処理プログラム以外の処理
プログラムや特定の用途に対応するアプリケージ3ンプ
ログラム等の処理プログラム63を記憶する記憶領域6
aをjlていて、ICカードリーダ・ライタ11を介し
てホストコンピュータや端末装置(図示せず)等からこ
こにそれがダウンロードされる。したがって、ROM3
には、そのためのダウンロードの書込み処理プログラム
31とダウンロードされた処〔11!プログラムの内容
が1[:常か否かを検査してIF常の場合に起動する検
査・起動プログラム32とが格納されている。
The EEPROMB is a storage area 6 that stores processing programs 63 such as processing programs other than basic processing programs and application programs corresponding to specific uses.
It is downloaded here from a host computer, a terminal device (not shown), etc. via the IC card reader/writer 11. Therefore, ROM3
The downloaded write processing program 31 for that purpose and the downloaded location [11! A test/startup program 32 that checks whether the program content is 1[: normal or not and starts if IF is normal is stored.

なお、この例では、MPUIとEEPROM6との間に
はデータバス、アドレスバス、制御バス等の信号線(信
吋端子)が設けられ、相旬:に接続されているが、これ
ら各線は、EEPROM6とMPUIとがワンチップで
構成される場合にはMPUIの内部となる。
In this example, signal lines (signal terminals) such as a data bus, address bus, and control bus are provided between the MPUI and the EEPROM 6, and are connected to the EEPROM 6. If the and MPUI are configured on one chip, it will be inside the MPUI.

EEPROM6は、ダウンロードされた処理プログラム
63が格納される処理プログラム領域6aのほかに、プ
ログラムチェック用のチェック情報格納領域8b1 I
Cカード内部において暗証番号等をチェックするための
パスワードの記憶領域(ID)61及びプログラム検査
による。Zlり回数等の管理のためのフラグ領域62が
設けられている。
In addition to a processing program area 6a in which the downloaded processing program 63 is stored, the EEPROM 6 has a check information storage area 8b1 for program checking.
This is based on the password storage area (ID) 61 and program inspection for checking the PIN number etc. inside the C card. A flag area 62 is provided for managing the number of Zl slips and the like.

ここで、処理プログラム領域6aに記憶される処理プロ
グラム63として、例えば、RAM4のデータの−)込
み、読出しや端末機から入力されるパスワードの!!(
1合などをCPU2に行わせるためのプログラムが記憶
されている。また、チェック情報格納領域6bに記憶さ
れるチェック情報としては、ここでは処理プログラム領
域6aの記憶データに対するSUM値である。この関係
を第2図のメモリマツプに従って説明すると、処理プロ
グラム領域6aのアドレス(AAAA)からアドレス(
BBBB)の各アドレスに記憶された1バイトずつの各
データの合計値を算出し、このエリアの全データ値の合
計値のド位1バイト値をチェック情報格納領域6bのア
ドレス(CCCC)に格納する。なお、ここに記憶され
るこの合計値のド位1バイト値は、処理プログラム63
が処理プログラム領域6aにダウンロードされたときに
検査・起動プログラム32により生成されて記憶される
が、これは、ホストコンピュータ側からダウンロードの
際にこのようなSUM値を受けてそれをここに記憶して
もよい。すなわち、δ込み処理プログラム31は、処理
プログラム領域6aに処理プログラム63をダウンロー
ドした後に検査−起動プログラム32を起動する。検査
・起動プログラム32は、処理プログラム62の情報を
データとして第2図に示すメモリマツプの(AAAA)
〜(BBBB)までのアドレスψ位にデータを順次読出
し、それをアドレス方向に順次加算して加算した結果値
のうちド位1バイト分を得て、それをチェック情報格納
領域6bに格納する。
Here, the processing program 63 stored in the processing program area 6a includes, for example, -) loading and reading of data in the RAM 4, and password input from a terminal. ! (
A program for causing the CPU 2 to perform the first match and the like is stored. Further, the check information stored in the check information storage area 6b is the SUM value for the data stored in the processing program area 6a. To explain this relationship according to the memory map in FIG. 2, from the address (AAAA) of the processing program area 6a to the address (
Calculate the total value of each byte of data stored in each address of BBBB), and store the 1-byte value of the total value of all data values in this area in the address (CCCC) of the check information storage area 6b. do. Note that the 1-byte value of this total value stored here is determined by the processing program 63.
is generated and stored by the inspection/startup program 32 when it is downloaded to the processing program area 6a, but this is because it receives such a SUM value during download from the host computer and stores it here. You can. That is, the δ-inclusive processing program 31 starts the inspection-startup program 32 after downloading the processing program 63 to the processing program area 6a. The inspection/startup program 32 uses the information of the processing program 62 as data in the memory map (AAAA) shown in FIG.
Data is sequentially read out at addresses ψ from BBBB to (BBBB), and the data is sequentially added in the address direction to obtain one byte of the resultant value, which is stored in the check information storage area 6b.

また、これらSUM値は、処理プログラム63が複数あ
るときには、起動する処理プログラムごとに算出されも
よく、また、前記のようにそれらすべての処理プログラ
ムの合計値であってもよい。
Further, when there are a plurality of processing programs 63, these SUM values may be calculated for each processing program to be started, or may be a total value of all the processing programs as described above.

前者の場合には、チェック情報格納領域6bの領域は、
処理プログラムの数対応に前記SUM値が記憶されるだ
けのバイト数が必“畏である。なお、このような場合に
は、1バイト単位でSUM値が記憶されているので、そ
のバイト数cccccからのアドレス数)をカウントす
ることで(111番11の処理プログラムのものかが分
かる。
In the former case, the area of the check information storage area 6b is
It is necessary to have a sufficient number of bytes to store the SUM value corresponding to the number of processing programs. In this case, since the SUM value is stored in units of 1 byte, the number of bytes ccccc By counting the number of addresses from 111 to 11, it can be determined whether the address belongs to the 11th processing program.

このような構成のICカード10における通常の処理動
作について第1図に従って説明すると、まず、ICカー
ド10の起動時にはROM3に+’F込まれた初期設定
プログラムが起動されて(ステップ100)でICカー
ド10の内部回路が初期状塵にされた後に、CPU2に
より検査0起動プログラム32が起動され、EEPRO
M8トの処理プログラム63を実行するか否かが判定さ
れる(ステップ101)。なお、EEPROM6に任意
の処理プログラム63を外部からダウンロードして書込
むときにはコマンドにより−)連用の3込み処理プログ
ラム31を起動して外部から処理プログラム63を転送
することにより、SF込む。
The normal processing operation of the IC card 10 having such a configuration will be explained with reference to FIG. After the internal circuit of the card 10 is reduced to its initial state, the CPU 2 starts the inspection 0 starting program 32, and the EEPRO
It is determined whether or not to execute the M8 processing program 63 (step 101). Note that when downloading and writing an arbitrary processing program 63 into the EEPROM 6 from the outside, the SF is written by activating the three-component processing program 31 using a command and transferring the processing program 63 from the outside.

ここで、YESとなると、次に、検査・起動プログラム
32は、処理プログラム63の正当性を80Mチエ、ク
ツj式により検証する(ステップ102)。すなわち、
検査・起動プログラム32は、先にチェック情報記憶領
域61)に記憶するSUM値を算出したときと同様に、
処理プログラム領域6aに記憶された処理プログラム8
2のt74 Nをアドレス単位にデータとして順次読出
し、それをアドレス方向に順次加算して加算した結果値
のうちド位1バイト分を得て、これを先に処理プログラ
ム63のダウンロード時に格納したチェック情報格納領
域6bの5IニジいSUM値と比較して−・致した場合
にのみ処理プログラム63を起動する。このときこの一
致により検査・起動プログラム32は、処理プログラム
63を正当(あるいは正常)なもの(その−・部又は全
部のプログラム情報が全く失われていないもの)と判定
する。
If YES here, then the inspection/startup program 32 verifies the validity of the processing program 63 using the 80M method (step 102). That is,
In the same way as when the inspection/startup program 32 calculated the SUM value to be stored in the check information storage area 61),
Processing program 8 stored in processing program area 6a
2's t74 N is read out sequentially as data in address units, and the data is sequentially added in the address direction to obtain 1 byte of the resultant value, which is used as a check that was previously stored when downloading the processing program 63. The processing program 63 is started only when it is compared with the 5I incorrect SUM value in the information storage area 6b and -. At this time, based on this coincidence, the inspection/startup program 32 determines that the processing program 63 is valid (or normal) (part or all of the program information is not lost at all).

・方、前記の比較結果が不−・致の場合には、処理プロ
グラム63の−・部又は全部が失われ、プログラムに異
常があるものと判定してその処理プログラム63を起動
せずにエラー処理(ステップ103)を行い、その処理
プログラムの起動を中11゜する。この場合、必要に応
じてICカードの動作を停止l・させるようにすること
ができる。なお、この比較結果が不一致の場合には、検
査・起動プログラム32は、エラー処理として1z&り
訂II:符号を用いて、失われた処理プログラム63を
同腹させてステップ101へと戻り、+I!’びステッ
プlot、ステップ102へと移る同様な処理をして回
復後に処理プログラム63を起動させて実行させること
ができる(ステップ104)。
- On the other hand, if the above comparison result is negative, part or all of the processing program 63 is lost, and it is determined that there is an abnormality in the program, and the processing program 63 is not started and an error occurs. Processing (step 103) is performed, and the processing program is started for 11 degrees. In this case, the operation of the IC card can be stopped if necessary. If the comparison results do not match, the inspection/startup program 32 uses 1z&revision II: code as an error process, makes the lost processing program 63 a litter, returns to step 101, and +I! After recovery, the processing program 63 can be activated and executed (step 104) by carrying out the same processing as in step 102 (step 104).

前記の誤り訂正をするときには、処理プログラム63自
体に1誤り符号を付加しておき、検査O起動プログラム
32の内部あるいは別途誤り訂正処理プログラムを設け
るか、誤り訂正回路を設け、誤り訂正した処理プログラ
ム63を++Tび前記の処理プログラム領域6aに14
書込みするものである。
When performing the above-mentioned error correction, one error code is added to the processing program 63 itself, and an error correction processing program is provided inside the inspection O startup program 32 or separately, or an error correction circuit is provided to correct the error in the processing program. 63 to ++T and 14 to the processing program area 6a.
It is something to write.

なお、以1−の処理で、ステップ101においてNoと
なったときには、ステップ101に戻り、待機状態とな
って、次のコマンドを受けられるようにするか、さらに
同じ処理を繰り返して続けて同様な動作をして複数回、
例えば、3回誤りが発生して101のステップに戻ると
きには、誤り管理フラグ61をセットして動作を停市さ
せるようにすることができる。また、ステップ102で
YESとなったときには、処理プログラム63が実行さ
れる(ステップ104)。
In addition, in the process 1- below, if the result is No in step 101, the process returns to step 101 and becomes a standby state so that the next command can be received, or the same process is repeated and the same process continues. Do the same thing multiple times,
For example, when an error occurs three times and the process returns to step 101, the error management flag 61 can be set to stop the operation. Further, when the answer is YES in step 102, the processing program 63 is executed (step 104).

このようにROM3に記憶された検査壷起動プログラム
32により処理プログラム63の起動を行うか否かを判
定し、電気的消去可能な不揮発性メモリににJ)込まれ
ている処理プログラムの起動直前に処理プログラムの正
当性、すなわち、電気的消去tlJ能な不揮発性メモI
J 、−Lに8込まれた処理プログラムの一部あるいは
全部が失われていないことを確認するようにしているの
でCPUl0が異常のあるプログラムを実行することが
避けられる。
In this way, it is determined whether or not to start the processing program 63 based on the test pot starting program 32 stored in the ROM 3, and immediately before starting the processing program stored in the electrically erasable non-volatile memory. Validity of processing program, i.e. non-volatile memory that can be electrically erased
Since it is confirmed that part or all of the processing program loaded in J and -L is not lost, it is possible to prevent the CPU 10 from executing a program with an abnormality.

以り説明してきたが、検査・起動プログラム32による
処理プログラムに対するiE正当性判定する力式は、第
2図のメモリマツプ1−において縦方向と横方向のパリ
デイピットによるSUMチェックを用いてもよい。また
、実施例におけるSUM値は、ド位lバイトとせずに合
計値そのものであってもよい。さらに、処理プログラム
の異常のチエ・ツクはSUMチェック方式には限定され
るものではなく、その他の誤り検出方式を用いてもよい
As explained above, the force formula for determining the iE validity of the processing program by the inspection/startup program 32 may use the SUM check using pari-day pits in the vertical and horizontal directions in the memory map 1- of FIG. . Furthermore, the SUM value in the embodiment may be the total value itself instead of using l bytes. Furthermore, checking for abnormalities in the processing program is not limited to the SUM check method, and other error detection methods may be used.

認するに処理プログラムの一部または全部が失われたこ
とが判定できる方式であればどのようなものでもよい。
Any method may be used as long as it can determine that part or all of the processing program has been lost.

また、処理プログラムの+E正当性M定する起動用プロ
グラムが消失不能な不揮発性メモリであるROM3j−
に格納されている2安はなく、電気的71′1失可能な
不揮発性メモリであるEEPROM61−に格納するこ
とも可能である。
In addition, the startup program that determines the +E validity of the processing program is stored in the ROM3j-, which is a non-volatile memory that cannot be erased.
There is no 2 value stored in 71'1, but it is also possible to store it in EEPROM 61-, which is a non-volatile memory that can be erased electrically.

さらに、起動用プログラムにより処理プログラムの一部
または全部が失われたと判断した場合の処理り順もエラ
ー処理の後あるいはエラー処理をせずに他の処理をする
ようにしてもよいことはもちろんである。
Furthermore, if the startup program determines that part or all of the processing program has been lost, the order of processing may of course be such that other processing is performed after error processing or without error processing. be.

[発明の効果] 以1ユの説明から理解できるように、この発明にあって
は、電気的に消去できない不揮発性メモリ]−に電気的
消去+1J能な不揮発性メモリに記憶された処理プログ
ラムの内容を@査する検査プログラムを設けておき、前
記の処理プログラムが実行されるときにそれを検査する
ようにしているので電気的消去可能な不揮発性メモリ1
−の処理プログラムが実行されてもそれによる誤動作が
発生し難くなる。
[Effects of the Invention] As can be understood from the explanation in 1 below, in this invention, the processing program stored in the nonvolatile memory that cannot be electrically erased + 1J is An inspection program for inspecting the contents is provided, and it is inspected when the processing program is executed, so that electrically erasable non-volatile memory 1
Even if the processing program - is executed, malfunctions are less likely to occur.

また、電気的消去11J能な不揮発性メモリー1−に8
込まれた処理プログラムの一部あるいは全部が失われた
場合にそれが検出され、かつ、このようなときには処理
プログラムが実行されることがないのでそれによる誤動
作から回避される。その結果、市“災なデータが破壊さ
れる危険性が低下し、信頼性が向ヒする。
In addition, electrically erasable 11J non-volatile memory 1-8
If part or all of the installed processing program is lost, this will be detected, and since the processing program will not be executed in such a case, malfunctions due to this will be avoided. As a result, the risk of data corruption is reduced and reliability is improved.

4、図面のi′rri弔な説明 第1図は、この発明のICカードの−・実施例の内部構
成を示すブロック図、第2図は、第1図のEEPROM
のメモリマツプ図、第3図は、その処理の説明図である
4. Final Explanation of the Drawings Figure 1 is a block diagram showing the internal configuration of an embodiment of the IC card of the present invention, and Figure 2 is the EEPROM of Figure 1.
The memory map diagram of FIG. 3 is an explanatory diagram of the processing.

■・・・演算処理部(MPU) 、2・・・マイクロプ
ロセッサ(CPU) 、3・・・ROM、4・・・RA
M、5・・・インタフェース、6・・・EEPROM1
6a・・・処理プログラム記憶領域、 6b・・・SUM値記憶領域、 10・・・ICカード、11・・・ICカードリーダ・
ライタ、31・・・AF込み処理プログラム、32・・
・検査・起動プログラム、 61・・・パスワードの記憶領域(I D )、62・
・・フラグ領域、63・・・処理プログラム。
■... Arithmetic processing unit (MPU), 2... Microprocessor (CPU), 3... ROM, 4... RA
M, 5...Interface, 6...EEPROM1
6a... Processing program storage area, 6b... SUM value storage area, 10... IC card, 11... IC card reader.
Writer, 31...AF-inclusive processing program, 32...
・Inspection/startup program, 61...Password storage area (ID), 62.
... Flag area, 63... Processing program.

Claims (2)

【特許請求の範囲】[Claims] (1)演算処理装置と、この演算処理装置が実行する処
理プログラムが記憶される電気的に消去不可能な第1の
不揮発性メモリと、前記演算処理装置が実行する処理プ
ログラムが記憶される電気的消去可能な第2の不揮発性
メモリと、前記演算処理装置により制御され外部とデー
タ交換を行う入出力手段とを備え、第2の不揮発性メモ
リに記憶された処理プログラムの内容が正しいか否かを
検査する検査プログラムが第1の不揮発性メモリに記憶
され、第2の不揮発性メモリに記憶された前記処理プロ
グラムが起動される際に前記演算処理装置が前記検査プ
ログラムを実行してそれが正しいか否かを検査し、正し
いと判定されたときにその処理プログラムを起動するこ
とを特徴とするICカード。
(1) An arithmetic processing unit, an electrically non-erasable first non-volatile memory in which a processing program executed by the arithmetic processing unit is stored, and an electrical unit in which a processing program executed by the arithmetic processing unit is stored. a second non-volatile memory that can be erased automatically; and an input/output means that is controlled by the arithmetic processing unit and exchanges data with the outside; An inspection program for inspecting whether the An IC card characterized by inspecting whether or not it is correct and activating its processing program when it is determined to be correct.
(2)ダウンロードにより第2の不揮発性メモリに処理
プログラムを書込む書込みプログラムが第1の不揮発性
メモリにさらに格納され、第2の不揮発性メモリには検
査プログラムが検査をするために必要なチェック情報を
記憶されていることを特徴とする請求項1記載のICカ
ード。
(2) The writing program that writes the processing program to the second non-volatile memory by downloading is further stored in the first non-volatile memory, and the inspection program performs checks necessary for inspection in the second non-volatile memory. 2. The IC card according to claim 1, wherein information is stored.
JP1285260A 1989-11-01 1989-11-01 Ic card Pending JPH03147086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1285260A JPH03147086A (en) 1989-11-01 1989-11-01 Ic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1285260A JPH03147086A (en) 1989-11-01 1989-11-01 Ic card

Publications (1)

Publication Number Publication Date
JPH03147086A true JPH03147086A (en) 1991-06-24

Family

ID=17689197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1285260A Pending JPH03147086A (en) 1989-11-01 1989-11-01 Ic card

Country Status (1)

Country Link
JP (1) JPH03147086A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004029945A (en) * 2002-06-21 2004-01-29 Dainippon Printing Co Ltd Ic card and ic card program
US6732272B1 (en) 1996-09-03 2004-05-04 Hitachi, Ltd. Program writable integrated circuit card and method therefore
US6938165B2 (en) 1996-09-03 2005-08-30 Hitachi, Ltd. Program writable IC card and method thereof
JP2006252284A (en) * 2005-03-11 2006-09-21 Toshiba Corp Portable electronic device and ic card
JP2006350738A (en) * 2005-06-16 2006-12-28 Dainippon Printing Co Ltd Ic card and program thereof
JP2007094823A (en) * 2005-09-29 2007-04-12 Dainippon Printing Co Ltd Ic card and ic card program capable of managing executing updating program
JP2013062691A (en) * 2011-09-13 2013-04-04 Dainippon Printing Co Ltd Information processing device and computer program
JP2013190923A (en) * 2012-03-13 2013-09-26 Dainippon Printing Co Ltd Ic card and computer program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732272B1 (en) 1996-09-03 2004-05-04 Hitachi, Ltd. Program writable integrated circuit card and method therefore
US6938165B2 (en) 1996-09-03 2005-08-30 Hitachi, Ltd. Program writable IC card and method thereof
US7278029B2 (en) 1996-09-03 2007-10-02 Hitachi, Ltd. Program writable IC card and method thereof
JP2004029945A (en) * 2002-06-21 2004-01-29 Dainippon Printing Co Ltd Ic card and ic card program
JP2006252284A (en) * 2005-03-11 2006-09-21 Toshiba Corp Portable electronic device and ic card
JP4764034B2 (en) * 2005-03-11 2011-08-31 株式会社東芝 Portable electronic device, IC card and portable electronic device self-diagnosis method
JP2006350738A (en) * 2005-06-16 2006-12-28 Dainippon Printing Co Ltd Ic card and program thereof
JP2007094823A (en) * 2005-09-29 2007-04-12 Dainippon Printing Co Ltd Ic card and ic card program capable of managing executing updating program
JP2013062691A (en) * 2011-09-13 2013-04-04 Dainippon Printing Co Ltd Information processing device and computer program
JP2013190923A (en) * 2012-03-13 2013-09-26 Dainippon Printing Co Ltd Ic card and computer program

Similar Documents

Publication Publication Date Title
KR100343377B1 (en) Data writing to non-volatile memory
US6336176B1 (en) Memory configuration data protection
JP3154892B2 (en) IC memory card and inspection method of the IC memory card
JP2746801B2 (en) IC card and password verification method for IC card
JPS62173696A (en) Information memorizing/reading system
JP3376306B2 (en) Data processing apparatus and data processing method
JPH03147086A (en) Ic card
US5286962A (en) IC card for prevention of fraudulent use
US9721665B2 (en) Data writing method and system
US6539338B1 (en) Self-diagnostic testing of a network interface adapter
JPS63118951A (en) Single chip microcomputer
JPH053634B2 (en)
JPH0778231A (en) Memory card
JP3314719B2 (en) Flash EEPROM and its test method
JPS6373339A (en) Portable electronic equipment
JP3057326B2 (en) IC card
JPH07122087A (en) EEPROM error check method
JPH01118933A (en) Single-chip microcomputer
CN115562591A (en) Reliable EEPROM data storage system, method and device
JP2794043B2 (en) Portable electronic devices
JPS62251833A (en) computer system
JPH03211619A (en) Data processor
JP3044665B2 (en) Control device
CN114117444A (en) Hard disk binding starting method based on Initrd file system
CN118069419A (en) Flash power-down protection method, device, equipment and storage medium