[go: up one dir, main page]

JPS61107487A - Ic card - Google Patents

Ic card

Info

Publication number
JPS61107487A
JPS61107487A JP59228295A JP22829584A JPS61107487A JP S61107487 A JPS61107487 A JP S61107487A JP 59228295 A JP59228295 A JP 59228295A JP 22829584 A JP22829584 A JP 22829584A JP S61107487 A JPS61107487 A JP S61107487A
Authority
JP
Japan
Prior art keywords
data
address
written
card
mpu
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
JP59228295A
Other languages
Japanese (ja)
Inventor
Giichi Yorimoto
寄本 義一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toppan Inc
Original Assignee
Toppan Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP59228295A priority Critical patent/JPS61107487A/en
Publication of JPS61107487A publication Critical patent/JPS61107487A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/29Individual registration on entry or exit involving the use of a pass the pass containing active electronic elements, e.g. smartcards

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

PURPOSE:To reduce the necessary time required for writing data by rewriting only the address of which to be written in a EEPROM is different from the one already written. CONSTITUTION:When data to be written in the EEPROM 2 and the number of the data n are sent to a MPU 1 according to a write command from an external equipment, the MPU 1 sets the address of the EEPROM 2 to which the data is written, and also sets the number of data n to be written in a data counter. The MPU 1 sets the address to which one datum among the data is written, and reads the contents of the address. It compares the data (new one) to be written with the data (old one) read from the address, and do not rewrite the data for that address if both are same, keeping the old data. If both are different, it erases the data of the address, and rewrites the new data.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は集積回路が組み込まれたICカードに関するも
のであり、さらに詳しくは集積回路としてマイクロコン
ピュータと少(とも1個の電気消去式F ROMが組み
込まれたICカードに関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to an IC card incorporating an integrated circuit, and more specifically, the present invention relates to an IC card incorporating an integrated circuit. This relates to a built-in IC card.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

近年、カード内に集積回路を組み込んだ所謂■1Cカー
ドが開発され、実用化さねようとしている。
In recent years, a so-called 1C card in which an integrated circuit is built into the card has been developed, and is about to be put into practical use.

このICカードは、現在一般に広く用いられている磁気
カードに比較して情報記憶容量においてはるかに秀れ、
また情報の秘密保持件において格段に優り、さらに情報
処理機能をもたせることが可能である等の磁気カードに
ない特徴を有するものであることから大きな注目?集め
ている。このようなICカードの一つの形態として、カ
ード内にマイクロコンピュータ(以下MPUと称する)
と少くとも1個の電気消去式F ROM (以下EE、
FROMと称する)が組み込まれたICカードが知られ
ている。このカード’ti M P U″?有するため
情報処理機節を備え、またメモ11−としてEEPRO
M’?肩するために情報の書き込み、読み出し、消去が
自由に行なえる。一般的に、E E P H,OMにお
いては、1バイトヲ書き込むために約10m5.1バイ
トを消去1−るために約10m5の時IWi ’l要し
、従って1バイトを書き換えるためには約20m5の時
間を要することになり、多電のデータの書き込み、消去
、或いは書き換えを行なうためにはかなりの時間を必要
とする欠点がある。また、EEP ROMのデータ書き
換えの繰り返し寿命は一般的に10,000回程度であ
り、書き換えによる劣化によりE E P ROh・I
に記憶されろデータの信頼凹に不安がある。
This IC card has a much superior information storage capacity compared to the magnetic cards that are currently widely used.
It is also attracting a lot of attention because it has features not found in magnetic cards, such as being significantly superior in terms of information confidentiality and being able to have information processing functions. are collecting. One form of such an IC card is a microcomputer (hereinafter referred to as MPU) inside the card.
and at least one electrically erasable F ROM (hereinafter referred to as EE)
An IC card incorporating a ROM (referred to as FROM) is known. This card 'ti MPU''? has an information processing section and also has an EEPRO as a memo 11-.
M'? Information can be written, read, and erased freely. Generally, in EEPH, OM, it takes about 10m5 to write one byte. It takes about 10m5 to erase one byte, so it takes about 20m5 to rewrite one byte. This has the disadvantage that it takes a considerable amount of time to write, erase, or rewrite data using multiple electric currents. In addition, the lifespan of EEP ROM after data rewriting is generally about 10,000 times, and due to deterioration due to rewriting, EEPROM
There are concerns about the reliability of the data stored.

〔発明の目的〕[Purpose of the invention]

従って、本発明の目的とするところは、MPUと少くと
も1個のEEFROMを備えたICカードであって、E
EPROMへのデータの書き換え等に要する時間を短縮
でき、しかもデータの書き換え等を繰り返すことによる
E E P ROMの劣化を押えることができるICカ
ードを提供することにある。
Therefore, an object of the present invention is to provide an IC card equipped with an MPU and at least one EEFROM, which
To provide an IC card capable of shortening the time required for rewriting data to an EPROM, and suppressing deterioration of the EEPROM due to repeated data rewriting.

1・    〔発明の概要〕 本発明は上記目的を達成すべくなされたものであり、E
EPROMのあるアドレスにデータケ書き込む際に当該
アドレスに記憶されているデータを読み出す手段と、前
記書き込むべきデータと読み出されたデータとの同一性
?1」別する手段と、両者が同一でないときのみ当該ア
ドレスのデータケ書き換える手段を有することを特徴と
寸ろ1Cカードである。
1. [Summary of the invention] The present invention has been made to achieve the above object, and is
When writing data to a certain address in an EPROM, is there a means for reading out the data stored at that address, and is the data to be written and the read data identical? This 1C card is characterized by having a means for distinguishing between the two addresses, and a means for rewriting the data of the address only when the two are not the same.

〔発明の実施例〕[Embodiments of the invention]

以下に本発明を図面の実施例に基づき詳細に説明する。 The present invention will be explained in detail below based on embodiments of the drawings.

本発明にかかるICカードは第1図に示されるように、
カード本体(0内に、ICモジュールMと称されるマイ
クロコンピュータ(MPU)(11とこのMPUl11
とパスライン(31で接続された外部メモ11−とじて
の電気消去式PROM’(EEPROM)+21とがマ
ウントされたブ11ント基板が胆略されている。
The IC card according to the present invention, as shown in FIG.
The card body (0 contains a microcomputer (MPU) called IC module M (11) and this MPU11
The print board on which the external memory 11 connected to the pass line (31) and an electrically erasable PROM' (EEPROM) + 21 are mounted is omitted.

このような構成のICカードにおいて、外部機  :。In an IC card with such a configuration, an external device:.

器からの指令及びデータを受けて、M P U Ill
によってEEPROM+21にそのデータを書き込む場
合、MPUl11はその内部メモリーに格納されている
書き込みプログラムにより次のような処理を実行する。
Upon receiving commands and data from the device, MPU Ill
When writing the data to the EEPROM+21, the MPU11 executes the following process using the write program stored in its internal memory.

即ち、第゛2図に丞されるように、MPUfllに外部
機器から書き込み命令に伴ないEEFROM(2)に書
き込むべきデータとそのデータの数nが転送されてくる
と、MPUmでは各データを書き込むEEPROM12
+のアドレスをセットし、さらに書き込むべきデータの
数n%’データカウンタにセットする。
That is, as shown in Fig. 2, when data to be written to EEFROM (2) and the number n of the data are transferred from an external device to MPUfl in response to a write command, MPUm writes each data. EEPROM12
+ address is set, and the number n% of data to be written is set in the data counter.

M P U 1ll)i前記書き込むべきデータのうち
の1つのデータについて、そのデーターを書き込むべき
アドレスをセットし、そのアドレスの内容を読み出す。
MPU 1ll) i For one of the data to be written, set the address to which the data is to be written, and read the contents of that address.

次に、その書き込むべきデータ(新データ)とアドレス
から読み出されたデータ(旧データ)とを比較し、両者
が同一であればそのアドレスについてはデータの書き換
えを行なわず旧データをそのまま、維持する。
Next, compare the data to be written (new data) with the data read from the address (old data), and if they are the same, the old data will be maintained as is without rewriting the data for that address. do.

他方、両者が同一でないならば、そのアドレスのデータ
(旧データ)を消去し、書き込むべきデータ(新データ
)を書き込む。
On the other hand, if they are not the same, the data at that address (old data) is erased and the data to be written (new data) is written.

このような処理が終了すると、いずれの場合においても
アドレスカウンタから1?減じ、データカウンタの値が
0でないとぎは書き込むべきデータがまだ存在すること
になるので、次のデータの書き込みについて、アドレス
を次番地にセットし、上記した処理と同一様の処理を繰
り返す。全てのデータについて上記した処理が終了する
とデータカウンタのli nが0となり、書き込みプロ
グラムの実行を終了する。例えば、このICカード?P
OSシステムに応用したような場合、ICカードのE 
E P ROM内に残金データとして123,456(
Palなるデータが書き込まれている状態で、次に50
0円つ買物をして残金データが123,156(pH1
トなった場合、従来であれば6桁全てを書き換えていた
のであるカー、本発明によれば、実際に書き換えが行な
われるのはろ桁目(4→1)に相当するアドレスのみで
あり、他の数値が記憶されているアドレスについてはそ
のままの状態で維持される。
When such processing is completed, the address counter returns 1? in either case. If the value of the data counter is not 0, there is still data to be written, so for writing the next data, the address is set to the next address and the same process as described above is repeated. When the above-described processing is completed for all data, the data counter lin becomes 0, and the execution of the write program is ended. For example, this IC card? P
When applied to an OS system, the IC card's E
123,456 (123,456) as balance data in E P ROM
With the data Pal being written, next 50
I bought 0 yen and the balance data is 123,156 (pH 1)
In the conventional case, all six digits would be rewritten, but according to the present invention, only the address corresponding to the last digit (4→1) is actually rewritten; Addresses where numerical values are stored remain unchanged.

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

本発明は以上に述べた構成を有するものであり、EEP
ROMに書き込むべきデータが既に書き込まれているデ
ータと同一でないアドレスのみ書き換え、同一のときは
書ぎ換えを行なわないようにすることにより、たとえそ
のためにEEPROMからのデータ読み出し、比較演算
等の処理が構成上付加的に必要となっても、これらの処
理速度はEEPROMの書き換え時間に比較して格段に
速いので、実質的にデータ書き込みに要する時間ケ短縮
することが可能となる。
The present invention has the configuration described above, and has an EEP
By rewriting only the addresses where the data to be written to the ROM is not the same as the data that has already been written, and not rewriting when they are the same, it is possible to avoid processing such as data reading from the EEPROM and comparison calculations. Even if these are additionally required due to the configuration, the processing speed is much faster than the rewriting time of the EEPROM, so it is possible to substantially shorten the time required for data writing.

また、データの消去及び書き込み回数を減少せしめるこ
とができるので、E E F ROMの繰り返し寿命に
ついての劣化を抑えることができ、記憶データの信頼件
を高めることができる。
Furthermore, since the number of times data is erased and written can be reduced, deterioration in the repeated life of the EEF ROM can be suppressed, and the reliability of stored data can be improved.

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

図面は本発明の一実施例であり、第1図は本発明にかか
るICカードの説明図、第2図は書き込みプログラムの
フローチャートである。 5・・・パスライン、C・・・ICカード本体、M・・
・ICモジュール
The drawings show one embodiment of the present invention; FIG. 1 is an explanatory diagram of an IC card according to the present invention, and FIG. 2 is a flowchart of a writing program. 5... Pass line, C... IC card body, M...
・IC module

Claims (1)

【特許請求の範囲】 1)マイクロコンピュータと少くとも1個の電気消去式
PROMとを内蔵するICカー ドにおいて、前記電気消去式PROMのあるアドレスに
データを書き込む際に当該アドレスに既に記憶されてい
るデータを読み出す手段と、前記書き込むべきデータと
読み出されたデータとの同一性を判別する手段と、両者
が同一でないときのみ当該アドレスのデータを書き換え
る手段を有することを特徴とするICカード。
[Scope of Claims] 1) In an IC card incorporating a microcomputer and at least one electrically erasable PROM, when data is written to a certain address of the electrically erasable PROM, data already stored at the address is An IC card characterized by having means for reading data, means for determining whether the data to be written and the read data are identical, and means for rewriting the data at the address only when the two are not the same.
JP59228295A 1984-10-30 1984-10-30 Ic card Pending JPS61107487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59228295A JPS61107487A (en) 1984-10-30 1984-10-30 Ic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59228295A JPS61107487A (en) 1984-10-30 1984-10-30 Ic card

Publications (1)

Publication Number Publication Date
JPS61107487A true JPS61107487A (en) 1986-05-26

Family

ID=16874222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59228295A Pending JPS61107487A (en) 1984-10-30 1984-10-30 Ic card

Country Status (1)

Country Link
JP (1) JPS61107487A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50131723A (en) * 1974-04-04 1975-10-18
JPS54156442A (en) * 1978-05-31 1979-12-10 Toshiba Corp Data write-in method ror rewritable non-volatile semiconductor memory device
JPS59107491A (en) * 1982-12-10 1984-06-21 Nippon Telegr & Teleph Corp <Ntt> Ic card
JPS59135698A (en) * 1983-01-21 1984-08-03 Hitachi Ltd Eeprom device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50131723A (en) * 1974-04-04 1975-10-18
JPS54156442A (en) * 1978-05-31 1979-12-10 Toshiba Corp Data write-in method ror rewritable non-volatile semiconductor memory device
JPS59107491A (en) * 1982-12-10 1984-06-21 Nippon Telegr & Teleph Corp <Ntt> Ic card
JPS59135698A (en) * 1983-01-21 1984-08-03 Hitachi Ltd Eeprom device

Similar Documents

Publication Publication Date Title
US8050106B2 (en) Fast writing non-volatile memory with main and auxiliary memory areas
US4748320A (en) IC card
KR100531192B1 (en) Non-volatile memory control method
JPH0411957B2 (en)
JPS59135698A (en) Eeprom device
JPS61107487A (en) Ic card
JP4233213B2 (en) MEMORY CONTROLLER, FLASH MEMORY SYSTEM PROVIDED WITH MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD
JPH0435780B2 (en)
JP3088866B2 (en) IC card
JP2004348342A (en) Ic card and method for processing ic card
JPS62289999A (en) Data writing method
JPS63200399A (en) data processing system
KR20000020105A (en) Electronic device equipped with flash memory
JP2598056B2 (en) Portable electronic devices
JP2538906B2 (en) IC card
JPS62243056A (en) Microcomputer
JP2004213102A (en) Microcomputer
JPH08138005A (en) Data write system for flash memory card
JPH0789439B2 (en) Semiconductor integrated circuit device
JPH01119890A (en) Portable electronic device
JPH05334506A (en) Ic memory card
KR20050024322A (en) Method for restoring administrative data records of a memory that can be erased in blocks
JPH04325993A (en) Memory card
JPS6143387A (en) Information processing method of ic card
JPH0795306B2 (en) Data storage device