JPS63159993A - Ic card - Google Patents

Ic card

Info

Publication number
JPS63159993A
JPS63159993A JP61314420A JP31442086A JPS63159993A JP S63159993 A JPS63159993 A JP S63159993A JP 61314420 A JP61314420 A JP 61314420A JP 31442086 A JP31442086 A JP 31442086A JP S63159993 A JPS63159993 A JP S63159993A
Authority
JP
Japan
Prior art keywords
program code
card
memory
microprocessor
programmable memory
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
JP61314420A
Other languages
Japanese (ja)
Inventor
Kenichi Takahira
高比良 賢一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61314420A priority Critical patent/JPS63159993A/en
Priority to DE3745144A priority patent/DE3745144C2/en
Priority to DE19873743639 priority patent/DE3743639A1/en
Priority to US07/136,548 priority patent/US4777355A/en
Priority to FR878718086A priority patent/FR2609175B1/en
Publication of JPS63159993A publication Critical patent/JPS63159993A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the testability, and to quickly cope with addition of a function of diversified IC cards by providing a microprocessor and a memory consisting of a ROM and programmable memory, loading a program code from an external device and executing it. CONSTITUTION:An IC card 1 is provided with a microprocessor 2, a memory consisting of a read-only memory (ROM) 3 and a programmable memory 4. In this state, a program code of the microprocessor 2 is loaded from an external device 5, the loaded program code is written in the programmable memory 4, and the written program code is executed by the microprocessor 2. In such a way, a flexible function inspection can be executed, it is possible to cope with diversified IC card application, and especially, it can be utilized for manufacturing the card in case of utilizing a small quantity of IC cards.

Description

【発明の詳細な説明】 (産業上の利用分野〕 この発明は、種々の複合機能を有するICカードに関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an IC card having various complex functions.

〔従来の技術〕[Conventional technology]

1に近、マイクロコンピュータやメモリ等を内蔵したI
Cカードが提案され、普及しつつある。特にICカード
に使用されるマイクロコンピュータ(以下マイコンと記
す)は、ROM、RAM、及びその周辺回路を内蔵した
いわゆるワンチップマイコンといわれるものである。マ
イコンの動作は内蔵されているROMに収納されたプロ
グラムによって制御されているが、ROMの内容は通常
ICの製造工程中に形成され、ICカードに内蔵される
とその内容の読み出し、書き換えは不可能である。一方
、RAMは通常マイコン動作に必要な各種レジスタやフ
ラグ類として使用され、また外部メモリにはICカード
システムに使用されるデータ及びメモリを管理するため
のデータが格納されるようになっており、いずれもRO
M内にあるプログラムによって読み出し、書き込みが制
御されている。
I, which is close to 1 and has a built-in microcomputer, memory, etc.
C cards have been proposed and are becoming popular. In particular, a microcomputer (hereinafter referred to as microcomputer) used in an IC card is a so-called one-chip microcomputer that includes a built-in ROM, RAM, and peripheral circuits thereof. The operation of the microcontroller is controlled by a program stored in the built-in ROM, but the contents of the ROM are usually formed during the IC manufacturing process, and once it is built into an IC card, the contents cannot be read or rewritten. It is possible. On the other hand, RAM is normally used as various registers and flags necessary for microcomputer operation, and external memory stores data used in the IC card system and data for managing the memory. Both are RO
Reading and writing are controlled by a program in M.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のICカードは以上のように構成されているので、
ワンチップマイコンに内蔵されたプログラムはICカー
ドの製造工程を完了するとプログラムの追加、変更を行
うことは不可能である。
Conventional IC cards are configured as described above, so
Once the IC card manufacturing process is completed, it is impossible to add or change the program built into the one-chip microcomputer.

また、ICカードの機能検査を行うための検査プログラ
ムを該ICカードに組み込んでおき、検査工程でこのプ
ログラムを利用して機能検査を行えば便利であると考え
られるが、プログラム容量の制限から上記のような検査
プログラムをICカードに内蔵することも困難である。
Additionally, it would be convenient to incorporate an inspection program into the IC card and use this program in the inspection process to perform the function inspection, but due to program capacity limitations, the above It is also difficult to incorporate such a test program into an IC card.

この発明は、上記のような問題点を解消するためになさ
れたもので、ICカードの製造工程完了後において、I
Cカードに内蔵するマイクロコンピュータが実行するプ
ログラムをICカードに接続した外部装置から随時にロ
ードし、実行できるようなICカードを得ることを目的
とする。
This invention was made to solve the above-mentioned problems, and after the manufacturing process of the IC card is completed, the
To obtain an IC card capable of loading and executing a program executed by a microcomputer built in the C card from an external device connected to the IC card at any time.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るICカードは、マイクロプロセッサと、
リードオンリーメモリ及びプログラマブルメモリからな
るメモリとを備え、外部装置から上記マイクロプロセン
サのプログラムコードをロードする手段と、ロードした
プログラムコードをプログラマブルメモリに書き込む手
段と、該書き込まれたプログラムコードを上記マイクロ
プロセッサが実行するモードへ切り換える手段とを実現
したものである。
An IC card according to the present invention includes a microprocessor;
A memory consisting of a read-only memory and a programmable memory, means for loading the program code of the microprocessor sensor from an external device, a means for writing the loaded program code into the programmable memory, and a means for loading the program code of the microprocessor sensor from an external device; This method realizes means for switching to a mode executed by a processor.

〔作用〕[Effect]

この発明においては、外部装置よりロードしたプログラ
ムコードを内蔵するプログラマブルメモリにストアし、
該ストアされたプログラムコードを内蔵するマイクロコ
ンピュータによってフエ。
In this invention, a program code loaded from an external device is stored in a built-in programmable memory,
The program code is stored by a built-in microcomputer.

チ、実行するから、フレキシブルな機能検査を行うこと
ができ、多様化するICカードアプリケーションへの対
応、特に少量のICカード利用におけるカードの製造に
も利用できる。
Since the method is executed in advance, flexible functional tests can be performed, and it can also be used to respond to diversifying IC card applications, especially in the manufacture of cards for use in small quantities of IC cards.

〔実施例〕〔Example〕

以下、本発明の実施例を図について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図において、1はICカード、2はマイクロプロセ
ッサ、3はリードオンリーメモリ (ROM)、4はプ
ログラマブルメモリ、5は外部装置であり、上記マイク
ロプロセッサ2により、外部装置からプログラムコード
をロードするロード手段(第2図ステップ11に相当)
、プログラムコードをプログラマブルメモリ4に書き込
む書き込み手段(同ステップ12に相当)、及び書き込
みモードと実行モードの切り換えを行う切り換え手段(
同ステップ13に相当)が構成されている。
In FIG. 1, 1 is an IC card, 2 is a microprocessor, 3 is a read-only memory (ROM), 4 is a programmable memory, and 5 is an external device.The microprocessor 2 loads program codes from the external device. Loading means (corresponding to step 11 in Figure 2)
, a writing means (corresponding to step 12) for writing the program code into the programmable memory 4, and a switching means (corresponding to step 12) for switching between the writing mode and the execution mode.
(corresponding to step 13) is configured.

次に第2図のフローチャートを用いて外部装置よりプロ
グラムコードをロードし、実行する場合の動作を説明す
る。まずステップ10にて書き込みアドレスをセットす
る。次にステップ11及び12にて上記アドレスにプロ
グラムコードを入力し書き込む。ここでデータ、即ちプ
ログラムコードの有無がステップ13にて判断され、な
ければ実行アドレスがセットされて上記プログラムが実
行される(ステップ14.15)、またデータがあれば
、ステップ16にて書き込みアドレスがインクリメント
されて再び上記ステップ11〜13が繰り返される。
Next, the operation when loading and executing program code from an external device will be explained using the flowchart shown in FIG. First, in step 10, a write address is set. Next, in steps 11 and 12, the program code is input and written to the above address. Here, the presence or absence of data, that is, a program code, is determined in step 13. If not, an execution address is set and the above program is executed (step 14.15), and if data is present, the write address is determined in step 16. is incremented and the above steps 11 to 13 are repeated again.

なお、上記実施例におけるROMとしては、マスクRO
M、EPROM、EEPROM等が使用でき、またプロ
グラマブルメモリとしては、EEPROM、CMOSR
AM、EPROM等が使用できる。
In addition, the ROM in the above embodiment is mask RO.
M, EPROM, EEPROM, etc. can be used, and EEPROM, CMOSR, etc. can be used as programmable memory.
AM, EPROM, etc. can be used.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、マイクロプロセッサ
と、ROM及びプログラマブルメモリからなるメモリと
を設け、外部装置よりプログラムコードをロードし、こ
れを実行するように構成したので、テスタビリティの向
上と、多様化するICカードの機能追加等に迅速に対応
できる効果がある。
As described above, according to the present invention, a microprocessor and a memory consisting of a ROM and a programmable memory are provided, and the program code is loaded from an external device and executed, thereby improving testability. This has the effect of quickly responding to the addition of increasingly diverse functions to IC cards.

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

第1図はこの発明の一実施例によるICカードの機能ブ
ロック図、第2図は該ICカードに外部装置よりプログ
ラムコードをロードし実行するフローチャートを示す図
である。 1・・・ICカード、2・・・マイクロプロセッサ、3
・・・ROM、4・・・プログラマブルメモリ、5・・
・外部装置。
FIG. 1 is a functional block diagram of an IC card according to an embodiment of the present invention, and FIG. 2 is a flowchart for loading and executing a program code from an external device to the IC card. 1...IC card, 2...microprocessor, 3
...ROM, 4...Programmable memory, 5...
・External device.

Claims (1)

【特許請求の範囲】 1) マイクロプロセッサと、 外部装置からのプログラムコードが書き込まれるプログ
ラマブルメモリ部,及び上記マイクロプロセッサにより
実行されるプログラムコードが記録されたリードオンリ
ーメモリ部からなるメモリとを有するICカードであっ
て、 このICカードに接続された外部装置から上記マイクロ
プロセッサのプログラムコードをロードするロード手段
と、 該ロードしたプログラムコードを上記プログラマブルメ
モリ部に書き込む書き込み手段と、上記プログラマブル
メモリ部へのプログラムコードの書き込みモードと、上
記マイクロプロセッサが上記書き込まれたプログラムコ
ードを実行する実行モードとの切り換えを行う切り換え
手段とを備えたことを特徴とするICカード。 (2) 上記リードオンリーメモリはマスクROMであ
ることを特徴する特許請求の範囲第1項記載のICカー
ド。 (3) 上記リードオンリーメモリはEPROMである
ことを特徴する特許請求の範囲第1項記載のICカード
。 (4) 上記リードオンリーメモリはEEPROMであ
ることを特徴する特許請求の範囲第1項記載のICカー
ド。 (5) 上記プログラマブルメモリはEEPROMであ
ることを特徴する特許請求の範囲第1項ないし第4項の
いずれかに記載のICカード。 (6) 上記プログラマブルメモリはCMOSRAMで
あることを特徴する特許請求の範囲第1項ないし第4項
のいずれかに記載のICカード。 (7) 上記プログラマブルメモリはEPROMである
ことを特徴する特許請求の範囲第1項ないし第4項のい
ずれかに記載のICカード。
[Scope of Claims] 1) An IC comprising a microprocessor, a programmable memory section into which a program code from an external device is written, and a read-only memory section into which a program code to be executed by the microprocessor is recorded. A card, comprising loading means for loading a program code of the microprocessor from an external device connected to the IC card, a writing means for writing the loaded program code into the programmable memory section, and a writing means for writing the loaded program code into the programmable memory section. An IC card characterized by comprising a switching means for switching between a program code write mode and an execution mode in which the microprocessor executes the written program code. (2) The IC card according to claim 1, wherein the read-only memory is a mask ROM. (3) The IC card according to claim 1, wherein the read-only memory is an EPROM. (4) The IC card according to claim 1, wherein the read-only memory is an EEPROM. (5) The IC card according to any one of claims 1 to 4, wherein the programmable memory is an EEPROM. (6) The IC card according to any one of claims 1 to 4, wherein the programmable memory is a CMOSRAM. (7) The IC card according to any one of claims 1 to 4, wherein the programmable memory is an EPROM.
JP61314420A 1986-12-24 1986-12-24 Ic card Pending JPS63159993A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP61314420A JPS63159993A (en) 1986-12-24 1986-12-24 Ic card
DE3745144A DE3745144C2 (en) 1986-12-24 1987-12-22 Integrated circuit card with functional test system
DE19873743639 DE3743639A1 (en) 1986-12-24 1987-12-22 IC CARD AND SYSTEM FOR CHECKING ITS FUNCTIONALITY
US07/136,548 US4777355A (en) 1986-12-24 1987-12-22 IC card and system for checking the functionality thereof
FR878718086A FR2609175B1 (en) 1986-12-24 1987-12-23 CARD WITH INTEGRATED CIRCUITS AND SYSTEM FOR VERIFYING THE CORRECT OPERATION OF THE CARD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61314420A JPS63159993A (en) 1986-12-24 1986-12-24 Ic card

Publications (1)

Publication Number Publication Date
JPS63159993A true JPS63159993A (en) 1988-07-02

Family

ID=18053132

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61314420A Pending JPS63159993A (en) 1986-12-24 1986-12-24 Ic card

Country Status (1)

Country Link
JP (1) JPS63159993A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014063345A (en) * 2012-09-21 2014-04-10 Toshiba Corp Ic card, portable electronic device, and information processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6084686A (en) * 1983-10-17 1985-05-14 Toshiba Corp Recording system of information recording medium
JPS60153582A (en) * 1984-01-23 1985-08-13 Kyodo Printing Co Ltd Ic card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6084686A (en) * 1983-10-17 1985-05-14 Toshiba Corp Recording system of information recording medium
JPS60153582A (en) * 1984-01-23 1985-08-13 Kyodo Printing Co Ltd Ic card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014063345A (en) * 2012-09-21 2014-04-10 Toshiba Corp Ic card, portable electronic device, and information processing method

Similar Documents

Publication Publication Date Title
JPH0259937A (en) Ic card
JP2000065899A (en) Semiconductor device, and its data rewriting method
JPS63159993A (en) Ic card
JP4747450B2 (en) Portable information processing device
JPS6373339A (en) Portable electronic equipment
JP2731047B2 (en) Program operand check method
JPH0855204A (en) Ic card with cpu and accessible address limiting method of ic card with cpu
JP4203165B2 (en) IC card
JPS58158759A (en) Information processing device
JPS60171537A (en) Microprogram controller
JPS5842487B2 (en) Program loading method
JPH02165358A (en) Program loading system with learning function
TWI288326B (en) A system and method for updating in-system program
JPS63257044A (en) Programmable memory mapping system
JPH0476795A (en) Ic card
JPH03252826A (en) Test data processing system
JPH0264828A (en) Address trace circuit
JPS63132303A (en) Microcomputer application controller mounted on vihicle
JPH04152488A (en) Ic card
JPH0340148A (en) Instruction cache memory device
JPH01131980A (en) Method for inspecting ic card
JPS6378288A (en) Ic card
JPH01121945A (en) Single chip microcomputer
JPH04312144A (en) Prom processor
JPS62147555A (en) Integrated circuit incorporating program