JPS6159692A - Memory card system - Google Patents

Memory card system

Info

Publication number
JPS6159692A
JPS6159692A JP59179901A JP17990184A JPS6159692A JP S6159692 A JPS6159692 A JP S6159692A JP 59179901 A JP59179901 A JP 59179901A JP 17990184 A JP17990184 A JP 17990184A JP S6159692 A JPS6159692 A JP S6159692A
Authority
JP
Japan
Prior art keywords
memory card
memory
data
terminal device
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
Application number
JP59179901A
Other languages
Japanese (ja)
Inventor
Tadayuki Kachi
加地 忠行
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP59179901A priority Critical patent/JPS6159692A/en
Publication of JPS6159692A publication Critical patent/JPS6159692A/en
Pending legal-status Critical Current

Links

Landscapes

  • Credit Cards Or The Like (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To protect data before the expiration of a memory by using a write permit message when the written circuit written in the memory area in access in a memory card have arrived at a predetermined number. CONSTITUTION:The area in access with a CPU11 in an incorporated controlled of an erasable and programmable EEPROM15 of memory card 1 writes the upper limit of number of writing operation together with each refreshed number of writing operation. When card 1 is inserted through the terminal unit and the main power is supplied, the upper limit of number of writing operation written in ROM15 and actual number of writing operation are read out through CPU11 and compared. At the arrival to said upper limit, the write inhibit signal is issued from card 1 to be transferred to the terminal unit. Thanks of such write inhibit signal subjected to access only by CPU11 and based in the content of memory nonerasable by the malfunction, etc., the data are protected before the expiration of memory 15 and destruction of data, etc. are prevented.

Description

【発明の詳細な説明】 産業上の利用分野 この発明はデータやプログラムなどの書込みや消去が可
能であるメモリを有するメモリカードを溝底要素とする
メモリカードシステムに関し、特に、書込みごとに更新
される書込回数を記憶するメモリカードと、書込回数が
所定の回数になったことを知らせる端末装置から構成さ
れるメモリカードシステムに関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application This invention relates to a memory card system in which a memory card having a memory in which data, programs, etc. can be written and erased is used as a groove bottom element, and in particular, the present invention relates to a memory card system in which a memory card having a memory in which data and programs can be written and erased is used as a groove bottom element. The present invention relates to a memory card system comprising a memory card that stores the number of writes, and a terminal device that notifies when the number of writes reaches a predetermined number.

従来の技術 従来から、続出専用メモリ(ROM)には、ユーザが電
気的に書込むことができるものがあり、これをFROM
(プログラマブル・リード・オンリ・メモリ)と称して
いる。PROMには一度出込むと再書込みができないも
のと、再書込みができるものがあり、後者のもので特に
電気的に消去可能なものをEEPROM(エレクトリカ
リ・イレイデブルPROM>と称している。このEEP
ROMを内蔵したメモリカードを使ったシステムの特徴
はメモリ内のデータの消去、21換えができるのでメモ
リ容量を有効に使えることである。しかし繰返して消去
、書換えが行なわれるとメモリの寿aによるデータの信
頼性の低下あるいはデータの破壊が起こる可能性がある
。これを防止するため、使用回数を端末装置を通してホ
ストコンピュータが管理する方法が考えられるが、メモ
リカードが多数の異なるシステムで使用される場合には
管理方法を統一するのが困難である。また、メモリカー
ド内に端末装置などからアクセスでさる領域に書込回数
を記憶する方法が考えられるが、端末装置を使用する者
が誤って操作し、記憶した内容が代わってしまったり、
消去してしまうおそれがある。
BACKGROUND OF THE INVENTION Conventionally, there has been some type of read-only memory (ROM) that can be written electrically by the user, and this is known as FROM.
It is called (programmable read-only memory). There are PROMs that cannot be rewritten once they have been written to and those that can be rewritten. Among the latter, those that can be electrically erased are called EEPROMs (Electrically Erasable PROMs).
A feature of a system using a memory card with a built-in ROM is that the data in the memory can be erased and replaced, so the memory capacity can be used effectively. However, if the data is repeatedly erased and rewritten, there is a possibility that the reliability of the data will decrease or the data will be destroyed due to the lifetime of the memory. In order to prevent this, a method can be considered in which the number of uses is managed by a host computer through a terminal device, but it is difficult to unify the management method when memory cards are used in many different systems. Another possible method is to store the number of writes in an area of the memory card that can be accessed from a terminal device, but the person using the terminal device may accidentally operate the device and the stored contents may be changed.
There is a risk that it will be deleted.

発明が解決しようとする問題点 メモリの消去、書込みが繰返した場合、メモリの寿命が
きて記憶されたデータなどが破壊されると、その後の使
用ができなくなるばかりか、それまでにデータを蓄える
のに黄した時間や労力が無駄となってしまう。それゆえ
に、この発明の目的はメモリの寿命がくる前に確実にデ
ータを保護し、新規カードを発行するメモリカードシス
テムを提供することである。
Problems that the invention aims to solve If the memory is repeatedly erased and written to, if the memory reaches the end of its lifespan and the stored data is destroyed, it will not only become unusable, but also destroy the data that has been stored until then. All that time and effort will be wasted. Therefore, it is an object of the present invention to provide a memory card system that reliably protects data and issues new cards before the end of the memory's lifespan.

問題点を解決するための手段 この発明はデータの書込みおよび消去が可能なメモリを
有するメモリカードと、メモリカードが着脱自在に接続
可能であり、かつメモリカードと通信する端末装置とか
らtfl?成されるメモリカードシステムであって、 メモリカードはデータの記憶をするための第1の記憶手
段と、データの書込回数を記憶するための第2の記憶手
段と、書込みごとに第2の記憶手段に記憶される書込回
数を更新する手段と、書込回数と予め設定された回数と
の大小を比較づ゛る手段と、書込回数が設定回数以上に
なったとき比較手段からの出力に応答して、書込不可メ
ツセージを端末装置に伝送する手段とを廂え。
Means for Solving the Problems This invention provides a tfl? A memory card system comprising: a first storage means for storing data; a second storage means for storing the number of times data is written; and a second storage means for storing data for each write. means for updating the number of writes stored in the storage means; means for comparing the number of writes with a preset number; and means for updating the number of writes stored in the storage means; and means for transmitting a write-unable message to the terminal device in response to the output.

端末装置は、メモリカードに書込みを指示するための書
込指示入力手段と、メモリカードに書込むべきデータを
入力する手段と、書込指示入力手段からの入力とデータ
入力手段からの入力とに応答して、メモリカードに書込
データを伝送する手段とを備える。
The terminal device includes a write instruction input means for instructing writing to the memory card, a means for inputting data to be written to the memory card, an input from the write instruction input means, and an input from the data input means. and means for responsively transmitting write data to the memory card.

上述のメモリカードは、ざらにWSlおよび第2の記憶
手段を制御する手段を備えており、第1の記憶手段はメ
モリカードの制御手段のみがアクセス可能な第1の記憶
領域と、端末装置の書込指示入力手段から特定の命令が
入力されることに応答して、アクセス可能な5XX2の
記憶領域と、自由にアクセス可能な第3の記憶領域を有
している。また、書込回数が記憶される第2の記憶手段
は第1の記憶手段の第1の記憶領域に含まれており、メ
モリカードの制御手段のみがアクセスできる。
The above-mentioned memory card is provided with means for roughly controlling the WSL and the second storage means, and the first storage means has a first storage area that can only be accessed by the control means of the memory card and a terminal device. It has a 5XX2 storage area that can be accessed in response to a specific command input from the write instruction input means, and a third storage area that can be freely accessed. Further, the second storage means in which the number of writes is stored is included in the first storage area of the first storage means, and can be accessed only by the control means of the memory card.

また、端末装置はメモリカードからの巳込不可メツセー
ジを表示する手段を1.7える。
The terminal device also has a means for displaying a message that cannot be deleted from the memory card.

作用 メモリカードは端末装置に11F人され能動化される。action The memory card is inserted into the terminal device and activated.

端末装置の書込指示入力手段から書込指示の1♀令が入
力される。また、端末装置のデータ人力手段から書込む
べきデータが入力される。伝送手段は書込指示入力手段
からの入力とデータ入力手段からの入力とに応答して、
メモリカードに書込データを伝送する。伝送されたデー
タは第1の記憶手段に書込まれる。端末装置からの伝送
を受けてデータが書込まれるのは第1の記憶手段のうち
第2の記憶領域または第3の記憶領域である。更新手段
は第1の記憶領域に記憶されている書込回数のデータを
更新する。書込回数は書込みが行なわれるごとに更新さ
れる。比較手段は、書込みごとに書込回数をチェックし
、書込回数が予め設定された回数以上になったかどうか
を判断する。比較手段からの書込回数が設定回数以上に
なつとの出力に応答して、伝送手段は2込不可メツセー
ジを端末装置に伝送する。
A write instruction 1♀ is input from the write instruction input means of the terminal device. Further, data to be written is inputted from the data manual means of the terminal device. The transmission means responds to the input from the write instruction input means and the input from the data input means,
Transmit the write data to the memory card. The transmitted data is written to the first storage means. It is in the second storage area or the third storage area of the first storage means that data is written in response to transmission from the terminal device. The updating means updates data on the number of writes stored in the first storage area. The number of writes is updated every time writing is performed. The comparison means checks the number of writes for each write, and determines whether the number of writes exceeds a preset number. In response to an output from the comparing means indicating that the number of writes has exceeded the set number, the transmitting means transmits a 2-input impossible message to the terminal device.

実施例 第1図はこの発明の一実施例のメモリカードシステムを
示ず。メモリカード1は記憶したデータやプログラムな
どの消去や新たなデータなどの書込みができるEEFR
OMを有する。端末装置2はメモリカード1を挿入する
挿入口およびカードと通信するための接点を有する。端
末装置2はホスト−1ンビユータ3と通信回線で接続さ
れている。
Embodiment FIG. 1 does not show a memory card system according to an embodiment of the present invention. Memory card 1 is an EEFR card that allows you to erase stored data and programs, and write new data.
Has OM. The terminal device 2 has an insertion slot into which the memory card 1 is inserted and contacts for communicating with the card. The terminal device 2 is connected to the host-1 viewer 3 via a communication line.

端末装置2は新規カードの発行はとしても使えるイr4
成となっている。
Terminal device 2 is an Ir4 device that can also be used to issue new cards.
It has become a reality.

第2図は第1図のメモリカード1のf¥成を示すブロッ
ク図である。メモリカード1には1チツフ′CPtJ1
1と、CPUIIにより制御およびアクセスされるEE
PROM15とが含まれる。CPU11 、!:EEP
ROM15.!=はcPUがメ−EIJ(7)番地を指
定するときに使用されるアドレスバスと、データの通信
に使用されるデータバスで−結ばれている。また、CP
tJllには、CPU11の動作プログラムなどが記憶
されるマスクROM12と、データの読出しや書込みを
することができるRAM13とが含まれる。また、CP
U11にはCPUと外部との入出力端子であるI10ボ
ート14が含まれる。■/○ボート14には、端末装置
どの間でデータの通信を行なう入出力信号ラインである
J/○端子と、CPU11ヘリセット信号を供給するリ
セット端子と、CPU11ヘクロツタ信号を供給するた
めのクロック端子と、CPU11に5ボルト電源を供給
するためのVcc端子と、E E l) ROMに古込
みをするための電源を供給するためのPP端子と、接地
端子とが含まれる。
FIG. 2 is a block diagram showing the configuration of the memory card 1 of FIG. 1. Memory card 1 has 1 chip 'CPtJ1
1 and EE controlled and accessed by CPUII
PROM15 is included. CPU11,! :EEP
ROM15. ! = is connected by an address bus used when the cPU specifies address EIJ (7) and a data bus used for data communication. Also, C.P.
tJll includes a mask ROM 12 in which operating programs for the CPU 11 and the like are stored, and a RAM 13 in which data can be read and written. Also, C.P.
U11 includes an I10 port 14 which is an input/output terminal between the CPU and the outside. The ■/○ boat 14 has a J/○ terminal which is an input/output signal line for communicating data between terminal devices, a reset terminal for supplying a reset signal to the CPU 11, and a clock for supplying a reset signal to the CPU 11. A Vcc terminal for supplying 5 volt power to the CPU 11, a PP terminal for supplying power for loading the ROM, and a ground terminal.

第3図はEEPROM15のメモリエリアの]jζ成を
図解的に示す図である。第1領域がシステムエリアであ
り、メモリカードのCPU11のみがアクセスできる領
域である。通常このシステムエリアには、書込回数、メ
モリのか命に対応して設定される書込回数の上限値、カ
ード製造年月日(ロット番号)、カード秤別を示J−コ
ードJ3よび新規カード記号などのカードの個別情報が
記憶される。ノJ−ドl!!!’/、:、時には、′装
造年月日のみがこのエリアに記憶されていて、カード発
行時に各々のシステムに適合したカードの個別情報が記
録されるとともに、後で説明する第2領域(10エリア
)のフォーマツティング、第3領域(ユーザエリア)の
フォーマツティングもシステムに合わせて行なわれる。
FIG. 3 is a diagram schematically showing the structure of the memory area of the EEPROM 15. The first area is a system area, which can be accessed only by the CPU 11 of the memory card. Normally, this system area shows the number of writes, the upper limit of the number of writes set according to the memory capacity, the card manufacturing date (lot number), the type of card, and the J-code J3 and new cards. Individual card information such as symbols is stored. No J-do l! ! ! '/, :, Sometimes, 'Only the date of manufacture is stored in this area, and individual information of the card that is compatible with each system is recorded at the time of card issuance. 10 areas) and the third area (user area) are also performed in accordance with the system.

IDエリアはシステムの運用上、常時使われる項目デー
タ、たとえば銀行システムの場合は口座番号、暗証番号
および預金残高などの情報がフォーマット化され記憶さ
れる。ユーザエリアはメモリカード利用者が自由に使う
ことのできるエリアであり、個人的な情報を記憶するエ
リアとして使用される。
In the ID area, item data that is constantly used in the operation of the system, for example, in the case of a banking system, information such as account number, password, and deposit balance is formatted and stored. The user area is an area that the memory card user can use freely, and is used as an area for storing personal information.

第4図は第1図に示す端末装置2の外観斜視図である。FIG. 4 is an external perspective view of the terminal device 2 shown in FIG. 1.

端末装置2には、たとえば書込不可メツセージやデータ
を表示するための表示器21、メモリエリアの利用者が
処理の内容を入力したりデータの入力をするためのキー
ボード22、メモリカードの挿入口23および処理結果
などをプリントするプリンタ24が備えられる。また、
端末装置2には、メモリカードの利用者がIDコードを
入力するためのテンキー25が備えられた入力装置が接
続される。
The terminal device 2 includes, for example, a display 21 for displaying non-writable messages and data, a keyboard 22 for the user of the memory area to input processing details and data, and a memory card insertion slot. 23 and a printer 24 for printing processing results and the like. Also,
Connected to the terminal device 2 is an input device equipped with a numeric keypad 25 for the user of the memory card to input an ID code.

第5図は第4図の端末装置2の概略ブロック図である。FIG. 5 is a schematic block diagram of the terminal device 2 shown in FIG. 4.

第5図に示ずメモリカードインターフェイスの各々の端
子はメモリカード1が第4図の端末装置2のメモリカー
ド挿入口23に挿入されると、第2図に示ずメモリカー
ドの各端子と接触する端子である。クロック信号を発生
するオシレータ31は端末装置のCPU26にもクロッ
ク信号を供給する。クロック端子および接地端子以外の
端子はI10ボート32に接続されている。I10ボー
ト32はCPU26の制御下にある。またCPU26に
は、第4図に示すプリンタ24、CPU26の動作プロ
グラムが格納されたROM27、データなどを記憶して
おくRAM28、ホストコンピュータと通信するための
R8232Cインターフエイス29、特定の時間開隔を
CPU26に知らせるタイマ30および端末装置に備え
られる入出力装置が接続されるI10ボート33が接続
されており、CPU26の制御下にある。第4図の表示
器21、キーボード22およびテンキー25はI10ボ
ート33に接続される。また、I10ボート33と端末
装置2に備えられるメモリカードリーダ/ライタ(図示
けず)との間ではメモリカードリーダ/ライタの動作の
制御信号の通信がなされる。
When the memory card 1 is inserted into the memory card insertion slot 23 of the terminal device 2 of FIG. 4, each terminal of the memory card interface (not shown in FIG. 5) comes into contact with each terminal of the memory card (not shown in FIG. 2). This is the terminal for The oscillator 31 that generates a clock signal also supplies a clock signal to the CPU 26 of the terminal device. Terminals other than the clock terminal and the ground terminal are connected to the I10 boat 32. I10 boat 32 is under the control of CPU 26. The CPU 26 also includes a printer 24 shown in FIG. 4, a ROM 27 that stores the operating program of the CPU 26, a RAM 28 that stores data, an R8232C interface 29 for communicating with the host computer, and a specific time interval. A timer 30 that informs the CPU 26 and an I10 boat 33 to which input/output devices provided in the terminal device are connected are connected and are under the control of the CPU 26. The display 21, keyboard 22 and numeric keypad 25 shown in FIG. 4 are connected to the I10 board 33. Further, control signals for the operation of the memory card reader/writer are communicated between the I10 boat 33 and a memory card reader/writer (not shown) provided in the terminal device 2.

第6A図ないし第6D図はメモリカード1と端末装置2
の動作を説明するためのフロー図である。
Figures 6A to 6D show the memory card 1 and the terminal device 2.
FIG. 2 is a flowchart for explaining the operation of FIG.

図において端末装置2とメモリカード1のそれぞれの動
作の対応関係を矢印で示す。なお、端末装置はホストコ
ンピュータと通信回線で接続されているのでオンライン
処理が可能であるが、この実施例ではオフライン処理で
の動作例を示す。
In the figure, the correspondence between the operations of the terminal device 2 and the memory card 1 is indicated by arrows. Note that since the terminal device is connected to the host computer through a communication line, online processing is possible, but in this embodiment, an example of operation in offline processing will be shown.

次に、第1図ないし第6B図を参照して、メモリカード
のIDエリアに書込処理をする場合の動作について詳細
に説明する。
Next, with reference to FIGS. 1 to 6B, the operation when writing to the ID area of the memory card will be described in detail.

まず、端末装置2のCPU26は処理内容がデータの読
取り、書込み、消去などの通常処理であって、メモリカ
ード1が第4図に示すメモリカード挿入口23に挿入さ
れると(ステップS2>、挿入されたカードがメモリカ
ードであるかどうか判別する(ステップ83)。メモリ
カードでないと判別した場合は表示器21にエラー表示
をしくステップ515)、カードを返却するが、メモリ
カードであると判別した場合にはメモリカードに電源を
供給する(ステップ34)。メモリカードに1!源が供
給されるとメモリカード1のCPU11はカードイニシ
ャル動作をする(ステップ531)。カードイニシャル
動作はメモリカード自体が自己テストを行なうもので、
カードのCPU11は第3図に示すEEPROM15の
システムエリアのデータを読出し、書込回数のチェック
と、カード個別情報のチェックを行なう。メモリカード
のCPtJllはチェックの結果のイニシャルデータを
端末装置2に送信し、(ステップ532)、応じて、端
末装置2のCPU26はイニシャルデータを受信する(
ステップS5)。カードイニシャル動作において、書込
回数が予め定められた設定値以上であるとカードのCP
U11が判断したときは、送信される情報は書込不可メ
ツセージである。端末装置のCPU26は受信したイニ
シャルデータが正常であるかどうか判断し、(ステップ
S6)、異常であればエラー表示をしくステップ816
)、異常がなければ、続いてコマンドの入力待らとなる
。ここで、メモリカード1から書込不可メツセージが、
送信された場合は端末装置2は読取処理のみが可能とな
る。CPU26は表示器21に書込回数がオーバした旨
を表示する。ステップS7で、カードの利用者がキーボ
ード22からメモリエリアのIDエリアをアクセスする
旨のコマンドを入力すると、端末装置2のCPU 26
はメモリカードにコマンドを送信する。応じて、メモリ
カード1のCPU11はコマンドを受信しくステップ5
33)、受信したコマンドがメモリカードの第2領域・
のみをアクセスするIDコマンドであるかどうか判断す
る(ステップ534)。
First, the CPU 26 of the terminal device 2 performs normal processing such as reading, writing, and erasing data, and when the memory card 1 is inserted into the memory card insertion slot 23 shown in FIG. It is determined whether the inserted card is a memory card (step 83).If it is determined that it is not a memory card, an error is displayed on the display 21 (step 515), and the card is returned, but it is determined that it is a memory card. If so, power is supplied to the memory card (step 34). 1 for memory card! When power is supplied, the CPU 11 of the memory card 1 performs a card initial operation (step 531). Card initial operation is a self-test of the memory card itself.
The card's CPU 11 reads the data in the system area of the EEPROM 15 shown in FIG. 3, and checks the number of writes and card individual information. CPtJll of the memory card transmits the initial data of the check result to the terminal device 2 (step 532), and in response, the CPU 26 of the terminal device 2 receives the initial data (
Step S5). In the card initial operation, if the number of writes exceeds a predetermined setting value, the card's CP
If U11 determines, the information to be sent is a non-writable message. The CPU 26 of the terminal device determines whether the received initial data is normal (step S6), and if abnormal, displays an error message in step 816.
), if there is no abnormality, the system will wait for command input. Here, a write-unable message is sent from memory card 1.
If it is transmitted, the terminal device 2 can only perform reading processing. The CPU 26 displays on the display 21 that the number of writes has exceeded. In step S7, when the card user inputs a command to access the ID area of the memory area from the keyboard 22, the CPU 26 of the terminal device 2
sends commands to the memory card. In response, the CPU 11 of the memory card 1 receives the command in step 5.
33), the received command is stored in the second area of the memory card.
It is determined whether the ID command accesses only the ID command (step 534).

IDコマンドであれば続いて利用者を特定するIDコー
ドが入力されるまで特別する。利用者は9ii末装置2
に接続されたテンキー25からIDコードを入力する。
If it is an ID command, it will be special until the ID code that identifies the user is input. User is 9ii terminal device 2
Enter the ID code using the numeric keypad 25 connected to the .

応じて、端末装置2のCPU26は入力されたIDコー
ドをメモリカード1のCPUllに送信する(ステップ
38)。メモリカードのCPU11は受信したIDコー
ドがメモリエリアのIDエリアに記憶しているIDコー
ドと一致するかどうか判断する(ステップ$35)。C
PU11は判断結果を端末装置2のCPU26に送信す
る。不一致ならば、エラー処理をし、一致していれば続
いて、メモリエリアの第2領域を間放しくステップ83
6)、第2領域が書込み可能となる。端末装置2のCP
U26は送信された判断結果が不一致を示すものであれ
ば、再度10コードの入力をするよう表示器21に表示
し、たとえば3回入力が繰返されても、なおIDコード
が一致しない場合には、使用不可とみなツ゛(ステップ
S9)。キーボード22から処理内容のコマンドたとえ
ば書込処理を指定するコマンドとデータが入力される(
ステップ510)と応じて、端末装置2のCPU26は
入力されたコマンドとデータをメモリカード1のCPU
11に送信する(ステップ510)。メモリカード1の
CPU11はコマンドおよびデータを受信すると(ステ
ップ537)、コマンドの種別を判断する(ステップ8
38)。今、コマンドは書込コマンドであるので、CP
U11はシステムエリアに記憶している書込回数データ
をチェックし、(ステップ839)、B込回数が設定値
以上であれば、端末装置2に渚込不可メツセージを送信
しくステップ543)。
In response, the CPU 26 of the terminal device 2 transmits the input ID code to the CPU 11 of the memory card 1 (step 38). The CPU 11 of the memory card determines whether the received ID code matches the ID code stored in the ID area of the memory area (step $35). C
The PU 11 transmits the determination result to the CPU 26 of the terminal device 2. If they do not match, error processing is performed, and if they do match, the second area of the memory area is continuously processed in step 83.
6) The second area becomes writable. CP of terminal device 2
If the transmitted judgment result indicates a mismatch, the U26 displays on the display 21 a request to input the 10 code again. For example, if the ID code still does not match even after the input is repeated three times, , it is deemed unusable (step S9). Commands for processing contents, such as commands specifying write processing, and data are input from the keyboard 22 (
In response to step 510), the CPU 26 of the terminal device 2 transfers the input command and data to the CPU of the memory card 1.
11 (step 510). When the CPU 11 of the memory card 1 receives the command and data (step 537), it determines the type of command (step 8).
38). Now, the command is a write command, so CP
U11 checks the write count data stored in the system area (step 839), and if the B write count is equal to or greater than the set value, sends a message indicating that the write is not possible to the terminal device 2 (step 543).

当逃処理を行なわない。書込回数が設定値に達していな
い場合は、データの書込処理をしくステップ540)、
書込回数を更新する(ステップ541)。ステップ、S
 40において、データの書込エラーが生じたときはC
PU11はエラーが生じた旨を端末装置に送信する。、
CPU11は再度書込回数をチェックしくステップS 
42 ) 、Mu定値に達したら上述と同様書込不可メ
ツセージを端末装置2に送信する。CPU11は書込処
理が終了したら次のコマンドを受信するまで待FAする
。端末装置2のCPU26はステップS11でメモリカ
ードからのメツセージを受信した場合には、受信したメ
ツセージを表示器21に表示する。すなわち、書込回数
が設定値をオーバしているときは、成造回数オーバを表
示しくステップ812)、書込回数が設定置と等しくな
ったときは、次回の書込みができない旨のメツセージを
表示しくステップ513)、書込エラーが生じたときは
、甜込エラー表示する(ステップ514)。メモリカー
ドから何らのメツセージが送信されなければ、端末装置
2のCPU26は次のコマンドが入力されるまで特捜す
る。
Do not perform win-or-miss processing. If the number of writes has not reached the set value, the data write process is performed (step 540),
The number of writes is updated (step 541). step, S
40, if a data write error occurs, C
The PU 11 transmits to the terminal device that an error has occurred. ,
The CPU 11 checks the number of writes again in step S.
42) When the Mu fixed value is reached, a write-disabled message is sent to the terminal device 2 in the same manner as described above. After the writing process is completed, the CPU 11 waits until the next command is received. When the CPU 26 of the terminal device 2 receives a message from the memory card in step S11, it displays the received message on the display 21. In other words, when the number of writes exceeds the set value, a message indicating that the number of production has exceeded is displayed (step 812), and when the number of writes becomes equal to the set value, a message indicating that the next write cannot be performed is displayed. (step 513), and if a write error occurs, a transfer error is displayed (step 514). If no message is sent from the memory card, the CPU 26 of the terminal device 2 performs a special search until the next command is input.

次に、第1図ないし第6A図および第60図をを参照し
て、メモカードのユーザエリアに書込処理をする場合の
具体的動作について詳細に説明する。
Next, with reference to FIGS. 1 to 6A and FIG. 60, a detailed description will be given of the specific operation when writing into the user area of the memo card.

メモリカードの利用者が端末装V:12にカードを挿入
してコマンドを入力するまで、すなわち端末装置の動作
のステップ81〜S7は上述と同様である。まlζ、そ
れに対応するメモリカード1の動作ステップS31〜S
33も上)ボと同様である。
Until the memory card user inserts the card into the terminal device V:12 and inputs a command, that is, steps 81 to S7 of the operation of the terminal device are the same as described above. ζ, corresponding operation steps S31 to S of the memory card 1
33 is also the same as above).

ここでステップ$7において、利用者はメモリエリアの
第3領域であるユーザエリアをアクヒスする旨のコマン
ドを入力する。メモリカード1のCPUIIはステップ
334で受信したコマンドがIDコマンドではないと判
断する(ステップ534)。IDコマンドでないという
ことはメモリエリアのユーザエリアに対して自由にアク
セスできることを意味する。続いて、ステップ334か
ら第6C図に示すステップS44に進み、コマンドおよ
びデータを受信するまで待磯する。ユーザエリアは自由
に読み書きが可能であるで、IDコードを入力する必要
はない。一方、端末装置2のCPU26はステップS7
でユーザエリアをアクセスする旨のコマンドが入力され
るので、ステップS7から第6C図に示すステップ31
7に進み、キーボード22から処理内容のコマンドと書
込むべきデータとが入力される(ステップ517)。
Here, in step $7, the user inputs a command to access the user area, which is the third area of the memory area. The CPU II of the memory card 1 determines that the command received in step 334 is not an ID command (step 534). The fact that it is not an ID command means that the user area of the memory area can be accessed freely. Subsequently, the process proceeds from step 334 to step S44 shown in FIG. 6C, and waits until the command and data are received. The user area is freely readable and writable, so there is no need to enter an ID code. On the other hand, the CPU 26 of the terminal device 2 performs step S7.
Since a command to access the user area is input in step S7 to step 31 shown in FIG. 6C,
7, a command for processing contents and data to be written are input from the keyboard 22 (step 517).

入力されたコマンドおよびデータはメモリカード゛1に
送信される(ステップ818)。メモリカード1のCP
U11はコマンドデータを受信する(ステップ544)
。ここでは、書込コマンドであるので、CPIJllは
書込回数をチェックする(ステップ545)。これ以下
の動作は上述で説明した動作と同杼である。すなわら、
メモリカードの動作のステップ345〜ステツプS 4
9 +、+上述のステップ339〜ステツプS43に対
応しており、端末装置の動作のステップ318〜ステツ
プ322は上述のステップ810〜ステツプS14に対
応している。
The input commands and data are sent to memory card 1 (step 818). CP of memory card 1
U11 receives command data (step 544)
. Since this is a write command, CPIJll checks the number of writes (step 545). The following operations are the same as those described above. In other words,
Memory card operation step 345 to step S4
9 +,+corresponds to step 339 to step S43 described above, and step 318 to step 322 of the operation of the terminal device corresponds to step 810 to step S14 described above.

次に第1図ないし第6A図および第6D図を参照して、
メモリカードのメモリエリアの第2および第3領域への
2込回数が設定値以上になったとき、同一の9左末装置
2を使用して新規カードを発行する場合の動作について
説明する。
Next, with reference to FIGS. 1 to 6A and 6D,
The operation when a new card is issued using the same 9-end terminal device 2 when the number of entries into the second and third areas of the memory area of the memory card exceeds the set value will be described.

カードの発行は係員によってなされる。係口は端末装置
2に新しいメモリカードを挿入する。挿入されるメモリ
カードのシステムエリアにはカード製造年月日のデータ
のみが記憶されている。新規カード発行処理であり1通
常処理ではないので、ステップ$1からステップ323
に進む。ステップS23において、端末装置2の係員キ
ーがキー人力されるか、入力された係員のIDコードが
チェックされることにより、端末装置2はカード光行は
として動作し、カード発行処理をする(ステップ524
)。端末装置2に挿入されたメモリカー1:のCPU1
1は上述と同杵カードイニシレル動作をし、コマンド侍
らとなる(ステップ831〜533)。ステップS34
において、cpu ilは新規カード発行コマンドであ
ると判…iするので、次にステップ850に進む。メモ
リカード1のCP [J 1.1はメモリエリアの第1
領域内の個別情報をチェックしくステップ550)、挿
入されたカードがfr7J2カードであるかどうか判断
する(ステップ551)。個別情報に製造年月日以外の
データが記憶されていれば、¥rr規カードではないの
でコマンドエラーとして(ステップ554)、コマンド
受信侍ちとなる(ステップ533)。新ル2カードであ
れば、メモリエリアの第1領域を初期化しくステップ8
52)、IDコードの登録を行なう(ステップ$53)
。また、同時に■Dエリアおよびユーザエリアのフォー
マツティングが使用されるシステムに合わせて行なわれ
る。
Cards are issued by a staff member. The clerk inserts a new memory card into the terminal device 2. Only the date of manufacture of the card is stored in the system area of the inserted memory card. Since this is a new card issuing process and not a normal process, steps from step $1 to step 323
Proceed to. In step S23, when the clerk key of the terminal device 2 is pressed manually or the entered ID code of the clerk is checked, the terminal device 2 operates as a card reader and performs card issuing processing (step 524
). CPU 1 of memory car 1 inserted into terminal device 2
1 performs the same punch card initial operation as described above and becomes a command attendant (steps 831 to 533). Step S34
In step 850, CPU il is determined to be a new card issue command, so the process proceeds to step 850. CP of memory card 1 [J 1.1 is the first memory area
The individual information in the area is checked (step 550), and it is determined whether the inserted card is an fr7J2 card (step 551). If data other than the date of manufacture is stored in the individual information, it is not a ¥rr standard card, so it is determined as a command error (step 554), and the card becomes the command receiver (step 533). If it is a new Le2 card, initialize the first area of the memory area in step 8.
52), Register the ID code (step $53)
. At the same time, formatting of the D area and user area is performed in accordance with the system used.

以上は、書込コマンドが入力された場合について説明し
たが、消去コマンドが入力された場合にも、データの消
去がされることに書込回数が更新される。
The above description has been made of the case where a write command is input, but when an erase command is input as well, the number of writes is updated to indicate that data is being erased.

また、−活消去型のEEPROMでは書込みは追加の出
込みのみが行なわれるので、書込時には3込回数の更新
を行なう必要はない。この場合に(よ、消去が行なわれ
ることに書込回数を更新するようにすれば、メモリの寿
命に対応する回数が10られる。
Furthermore, in a -active erase type EEPROM, only additional reading and writing is performed, so there is no need to update the number of 3 writes at the time of writing. In this case, if the number of writes is updated when erasing is performed, the number of times corresponding to the lifetime of the memory will be increased by 10.

発明の効果 この発明によれば、メモリへの書込みの回数が書込みご
とにメモリ自体に書込まれ、書込みの都度書込回数が予
め設定されたメモリの寿命に対応する回数と化性される
ので、メモリのか命がさて書込まれたデータが破壊され
る前にカードの使用を中止することができ、データの保
護が可0ヒどなる。書込回数データはメモリカードの制
御手段しかアクセスできないので、不用、aに消去して
しまうこと(はない。
Effects of the Invention According to the present invention, the number of times of writing to the memory is written to the memory itself every time a write is made, and the number of times of writing is converted into a number corresponding to a preset lifespan of the memory each time a write is made. In this case, the use of the card can be stopped before the data written in the memory is destroyed, and the data can be protected. Since the write count data can only be accessed by the control means of the memory card, it cannot be erased if it is unnecessary.

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

第1図はこの発明の一実施例のメモリカードシステムを
示す。第2図はメモリカ−ドシステムに用いられるメモ
リカードの概略ブロック図である。 第3図はメモリカードに備えられるE E P ROI
VIのメモリエリアの構成を示す。第4図はメモリカー
ドシステムに用いられる端末装置を示す。第5図は端末
装置の概略ブロック図である。第6Δ図、第6B図、第
6C図および第6D図はこの発明の一実施例であるメモ
リカードシステムの動作を説明するためのフロー図であ
る。 図において、1はメモリカード、2は端末装置、3はホ
ストコンピュータ、11はCPU、12はマスクROM
113はRAM、1=NユI、10.15はEEPRO
M、21は表示器、22はキーボード、23はメモリカ
ード挿入口、24はプリンタ、25はテンキー、26は
CPUを示ず。 (ぼか2名) 第1図 第2121 体3 図 (婢峰1)    第6A図
FIG. 1 shows a memory card system according to an embodiment of the present invention. FIG. 2 is a schematic block diagram of a memory card used in the memory card system. Figure 3 shows the EEPROI provided in the memory card.
The configuration of the VI memory area is shown. FIG. 4 shows a terminal device used in the memory card system. FIG. 5 is a schematic block diagram of the terminal device. 6Δ, FIG. 6B, FIG. 6C, and FIG. 6D are flowcharts for explaining the operation of a memory card system according to an embodiment of the present invention. In the figure, 1 is a memory card, 2 is a terminal device, 3 is a host computer, 11 is a CPU, and 12 is a mask ROM.
113 is RAM, 1=NyuI, 10.15 is EEPRO
M, 21 is a display, 22 is a keyboard, 23 is a memory card slot, 24 is a printer, 25 is a numeric keypad, and 26 is a CPU (not shown). (Boka 2 people) Figure 1 Figure 2121 Body 3 Figure (Umine 1) Figure 6A

Claims (4)

【特許請求の範囲】[Claims] (1)データの書込みおよび消去が可能なメモリを有す
るメモリカードと、前記メモリカードが着脱自在に接続
可能であり、かつ前記メモリカードと通信する端末装置
とから構成されるメモリカードシステムであって、 前記メモリカードは、 データを記憶するための第1の記憶手段と、データの書
込みの回数を記憶するための第2の記憶手段と、 書込みごとに前記第2の記憶手段に記憶される書込回数
を更新する手段と、 前記書込回数と予め設定された回数との大小を比較する
比較手段と、 前記書込回数が設定回数以上になったとき、前記比較手
段の出力に応答して、書込不可メッセージを前記端末装
置に伝送する手段とを備え、前記端末装置は、 前記メモリカードに書込みを指示するための書込指示入
力手段と、 前記メモリカードに書込むべきデータを入力する手段と
、 前記書込指示入力手段からの入力と前記データ入力手段
からの入力とに応答して、前記メモリカードに書込デー
タを伝送する手段とを備える、メモリカードシステム。
(1) A memory card system comprising a memory card having a memory in which data can be written and erased, and a terminal device to which the memory card can be detachably connected and which communicates with the memory card. , the memory card comprises: a first storage means for storing data; a second storage means for storing the number of times data is written; means for updating the number of writes; a comparison means for comparing the number of writes with a preset number of times; and a means for comparing the number of writes with a preset number of times; , means for transmitting a write prohibition message to the terminal device, the terminal device comprising: write instruction input means for instructing writing to the memory card, and inputting data to be written to the memory card. A memory card system comprising: means for transmitting write data to the memory card in response to an input from the write instruction input means and an input from the data input means.
(2)前記メモリカードは、さらに前記第1および第2
の記憶手段を制御する手段を備え、前記第1の記憶手段
は、 前記制御手段のみがアクセス可能な第1の記憶領域と、 前記書込指示入力手段から特定の命令が入力されことに
応答して、アクセス可能な第2の記憶領域と、 自由にアクセス可能な第3の記憶領域を有する、特許請
求の範囲第1項記載のメモリカードシステム。
(2) The memory card further includes the first and second memory cards.
The first storage means includes: a first storage area that is accessible only by the control means; The memory card system according to claim 1, further comprising: a second storage area that is accessible; and a third storage area that is freely accessible.
(3)前記第2の記憶手段は、前記第1の記憶手段の前
記第1の記憶領域に含まれる、特許請求の範囲第2項記
載のメモリカードシステム。
(3) The memory card system according to claim 2, wherein the second storage means is included in the first storage area of the first storage means.
(4)前記端末装置は、前記書込不可メッセージを表示
する手段をさらに備える、特許請求の範囲第1項ないし
第3項のいずれかに記載のメモリカードシステム。
(4) The memory card system according to any one of claims 1 to 3, wherein the terminal device further includes means for displaying the writable message.
JP59179901A 1984-08-29 1984-08-29 Memory card system Pending JPS6159692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59179901A JPS6159692A (en) 1984-08-29 1984-08-29 Memory card system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59179901A JPS6159692A (en) 1984-08-29 1984-08-29 Memory card system

Publications (1)

Publication Number Publication Date
JPS6159692A true JPS6159692A (en) 1986-03-27

Family

ID=16073879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59179901A Pending JPS6159692A (en) 1984-08-29 1984-08-29 Memory card system

Country Status (1)

Country Link
JP (1) JPS6159692A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63151061U (en) * 1987-03-20 1988-10-04
WO1988010479A1 (en) * 1987-06-19 1988-12-29 Fanuc Ltd Ic card and apparatus for monitoring the life of ic card
JPS6477595A (en) * 1987-09-18 1989-03-23 Matsushita Electric Ind Co Ltd Recitation number collator
JPH0310398U (en) * 1989-06-12 1991-01-31
JPH0540964U (en) * 1991-11-01 1993-06-01 国際電気株式会社 Reader / writer and IC card
JPH0630206A (en) * 1992-04-02 1994-02-04 Murata Mach Ltd Image storage device
JP2012234607A (en) * 2011-05-09 2012-11-29 Nec Access Technica Ltd Data writing device and data writing method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55143630A (en) * 1979-04-26 1980-11-10 Postalia Gmbh Electrically controlled postage device
JPS58166578A (en) * 1982-03-26 1983-10-01 Nippon Denso Co Ltd Information generator
JPS58169395A (en) * 1982-03-31 1983-10-05 Fujitsu Ltd Rewritable read-only memory controlling system
JPS58176791A (en) * 1982-04-08 1983-10-17 Comput Services Corp Information card incorporating optical communication function
JPS58215795A (en) * 1982-06-08 1983-12-15 Toshiba Corp Non-volatile memory device
JPS59107483A (en) * 1982-12-10 1984-06-21 Nippon Telegr & Teleph Corp <Ntt> Writing processing method to ic card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55143630A (en) * 1979-04-26 1980-11-10 Postalia Gmbh Electrically controlled postage device
JPS58166578A (en) * 1982-03-26 1983-10-01 Nippon Denso Co Ltd Information generator
JPS58169395A (en) * 1982-03-31 1983-10-05 Fujitsu Ltd Rewritable read-only memory controlling system
JPS58176791A (en) * 1982-04-08 1983-10-17 Comput Services Corp Information card incorporating optical communication function
JPS58215795A (en) * 1982-06-08 1983-12-15 Toshiba Corp Non-volatile memory device
JPS59107483A (en) * 1982-12-10 1984-06-21 Nippon Telegr & Teleph Corp <Ntt> Writing processing method to ic card

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63151061U (en) * 1987-03-20 1988-10-04
WO1988010479A1 (en) * 1987-06-19 1988-12-29 Fanuc Ltd Ic card and apparatus for monitoring the life of ic card
JPS6477595A (en) * 1987-09-18 1989-03-23 Matsushita Electric Ind Co Ltd Recitation number collator
JPH0310398U (en) * 1989-06-12 1991-01-31
JPH0540964U (en) * 1991-11-01 1993-06-01 国際電気株式会社 Reader / writer and IC card
JPH0630206A (en) * 1992-04-02 1994-02-04 Murata Mach Ltd Image storage device
JP2012234607A (en) * 2011-05-09 2012-11-29 Nec Access Technica Ltd Data writing device and data writing method

Similar Documents

Publication Publication Date Title
US4864109A (en) Electronic bankbook and transaction system for use therewith
US4891506A (en) Multi-use portable electronic device
US4758718A (en) High security IC card with an updatable password
KR100285111B1 (en) Card interface
EP0159651A2 (en) IC card and financial transaction processing system using IC card
EP0286094B1 (en) Ic card system
US5148543A (en) Ic card with a stored data change inhibition function
US4949240A (en) Data storage system having circuitry for dividing received data into sequential wards each stored in storage region identified by chain data
JPS6159692A (en) Memory card system
EP0743622B1 (en) Portable storage medium and portable storage medium issuing system
EP0160833B1 (en) Individual discrimination card
JP4776462B2 (en) Portable electronic device and method for controlling portable electronic device
JPS623516B2 (en)
JP2651426B2 (en) IC card
JP2910745B2 (en) Storage device and data processing method
JP4868979B2 (en) Portable electronic device and IC card
JP3526287B2 (en) Portable electronic device and data writing method thereof
JPS62102385A (en) Portable medium
EP0292237B1 (en) IC card and IC card information processing system using the IC card
JP2609645B2 (en) Portable electronic devices
JPS6175487A (en) Electronic device
JP2683341B2 (en) IC card
JP2791101B2 (en) Portable electronic devices
JP2002099952A (en) Card-issuing apparatus, card-issuing method and card issuing program
JPH05298497A (en) Method for processing information in ic card