JPH0283645A - Information card controller - Google Patents

Information card controller

Info

Publication number
JPH0283645A
JPH0283645A JP63235944A JP23594488A JPH0283645A JP H0283645 A JPH0283645 A JP H0283645A JP 63235944 A JP63235944 A JP 63235944A JP 23594488 A JP23594488 A JP 23594488A JP H0283645 A JPH0283645 A JP H0283645A
Authority
JP
Japan
Prior art keywords
data
memory
error
information card
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
JP63235944A
Other languages
Japanese (ja)
Inventor
Toshito Habuka
敏人 羽深
Kazuo Watanabe
一雄 渡辺
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP63235944A priority Critical patent/JPH0283645A/en
Publication of JPH0283645A publication Critical patent/JPH0283645A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the amount of effective data to be stored in an information card by providing an error control means which performs the detection and correction of an error in storage data read from a memory in a card, and a means which performs the rewrite of error-corrected data on the memory. CONSTITUTION:An information card controller 2 is interposed between the host system of the information card 1, and a scramble processing means 22 applies scramble on data written on the memory 11 in the information card 1, and also, applies reverse scramble on the data read from the memory 11. A rewrite means 25 performs the rewrite of the error-corrected data on the memory 11 by an error control means 23. The error-corrected data to be rewritten, after being accumulated once in a data buffer 24, is written on the memory 11, then, the storage data in the memory 11 is updated. In such a way, it is possible to hold the data to be stored in the memory 11 in the information card 1 without increasing redundancy to a high level, and to increase the amount of effective data.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、情報カード制御装置、さらにはEEPROM
などの書換可能なメモリーを内蔵した情報カードに対し
て記憶データの読取および書込を行なうシステムに適用
して有効な技術に関するもので1例えばICカード利用
システムに利用して有効な技術に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an information card control device, and furthermore, to an EEPROM.
This relates to technology that is effective when applied to systems that read and write data stored in information cards with built-in rewritable memory, such as be.

[従来の技術] 最近、ICカードなどと呼ばれる情報カードを利用する
システムが多くの分野で使用されるようになってきた。
[Prior Art] Recently, systems using information cards called IC cards have come into use in many fields.

この種のシステムでは、第2図に示すように、E E 
P −ROMなどのメモリー11を内蔵した情報カード
1とホストシステム(図示に省略)との間でデータのや
りとりを媒介する情報カード制御装置2′が使用される
。この情報カード制御装置2′は一種の入出力端末装置
であって、カード1に対してデータの読取および書込を
行なうインク−フェイス手段(I/F)21と、カード
1側のメモリー11から読み取られた記憶データのエラ
ー検出およびエラー訂正を行なうエラー制御手段23と
を有し、エラー訂正処理されたデータを読取出力として
ホスト側へ送出する一方、ホスト側から書込入力として
送られてきたデータをカード1側のメモリー1−1に書
き込むことを行なう(例えば、日経マグロウヒル社刊行
「日経エレクトロニクス1987年12月28日号no
437J 46.47頁参照)。
In this type of system, E E
An information card control device 2' is used that mediates data exchange between an information card 1 having a built-in memory 11 such as a P-ROM and a host system (not shown). This information card control device 2' is a type of input/output terminal device, and includes an ink-face means (I/F) 21 that reads and writes data to the card 1, and a memory 11 on the card 1 side. It has an error control means 23 that performs error detection and error correction of read stored data, and sends error-corrected data as read output to the host side, while receiving data sent from the host side as write input. Write the data to the memory 1-1 on the card 1 side (for example, write the data to the memory 1-1 on the card 1 side (for example, "Nikkei Electronics December 28, 1987 issue,
437J, pages 46 and 47).

[発明が解決しようとする課題] しかしながら、上述した技術には、次のような問題のあ
ることが本発明者によってあきらかとされた。
[Problems to be Solved by the Invention] However, the inventors have found that the above-mentioned technique has the following problems.

すなわち、従来のこの種の装置では、例えば第2図に示
したように、情報カード1内のメモリー11から読み取
ったデータにエラーがあった場合、そのエラーを訂正処
理して出力することはできるが、情報カード1とメモリ
ー11に記憶されたデータを保護することはできなかっ
た。
In other words, in conventional devices of this type, if there is an error in the data read from the memory 11 in the information card 1, as shown in FIG. 2, the error can be corrected and output. However, the data stored in the information card 1 and memory 11 could not be protected.

情報カード1内のメモリー11には、例えばEEP−R
OMなどが用いられているが、そこに記憶されたデータ
は経年等によって徐々に消失する。
The memory 11 in the information card 1 contains, for example, EEP-R.
Although OM and the like are used, the data stored there gradually disappears over time.

このデータの消失をそのままにしておくと、消失データ
が蓄積されて、やがてエラー訂正ができなくなる時期が
くる。
If this data loss is left unchecked, the lost data will accumulate and eventually a time will come when error correction will no longer be possible.

上述した問題を解決する手段としては、情報カード1内
のメモリー11に記憶させるデータの冗長度を高くする
ことが考えられる。これにより、消失データが多くなっ
てもエラー訂正を行なうことができる。
One possible solution to the above-mentioned problem is to increase the redundancy of data stored in the memory 11 within the information card 1. Thereby, even if a large amount of lost data increases, error correction can be performed.

しかし、記憶データの冗長度を高くするということは、
その分だけ余計に記憶容量を多く必要とする。換言すれ
ば、冗長度を高くした分だけ、情報カード1内に実質的
に記憶させることができる有効データ量が減ってしまう
、という別の問題が生じる。
However, increasing the redundancy of stored data means
This requires an additional amount of storage capacity. In other words, another problem arises in that the amount of effective data that can be practically stored in the information card 1 decreases as the degree of redundancy increases.

また、冗長度を高くしても、いつかはデータの消失量が
エラー訂正可能な限界を越えてしまう。
Furthermore, even if the degree of redundancy is increased, the amount of lost data will eventually exceed the error correctable limit.

つまり、冗長度を高めても、データの消失そのものは防
ぎ得ず、ただエラー訂正ができなくなる時期を先に延ば
すだけにすぎない。
In other words, even if redundancy is increased, data loss itself cannot be prevented; it merely postpones the time when error correction is no longer possible.

本発明の目的は、情報カード内のメモリーに記憶される
データを、その冗長度をあまり高めることなく永年的に
保存させることができるようにして、情報カード内のメ
モリーに実質的に記憶させられる有効データ量を増やす
とともに、記憶させたデータ内容を確実に保護すること
ができるようにする、という技術を提供することにある
An object of the present invention is to enable data stored in a memory within an information card to be stored permanently without significantly increasing its redundancy, so that data can be substantially stored in the memory within an information card. The purpose of the present invention is to provide a technology that increases the amount of effective data and also makes it possible to reliably protect the stored data contents.

この発明の前記ならびにそのほかの目的と新規な特徴に
ついては、本明細書の記述および添附図面から明らかに
なるであろう。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

[課題を解決するための手段] 本願において開示される発明のうち代表的なものの概要
を説明すれば、下記のとおりである。
[Means for Solving the Problems] Representative inventions disclosed in this application will be summarized as follows.

すなわち、メモリーを内蔵した情報カードに対してデー
タの読取および書込を行なうインタフェース手段と、上
記カード内のメモリーから読み取られた記憶データのエ
ラー検出およびエラー訂正を行なうエラー制御手段と、
エラー訂正されたデータを」二記力=ド内のメモリーに
再書込する手段とを有する、というものである。
That is, an interface means for reading and writing data to an information card having a built-in memory; an error control means for detecting and correcting errors in stored data read from the memory in the card;
It has means for rewriting the error-corrected data into the memory in the memory.

[作用コ 上記した手段によれば、情報カード内のメモリーに記憶
されたデータの一部が消失しても、エラー訂正によって
その消失した部分が修復された正しいデータが書き込ま
れるようになる。
[Operation] According to the above-described means, even if a part of the data stored in the memory of the information card is lost, correct data with the lost part restored by error correction can be written.

これにより、情報カード内のメモリーに記憶されるデー
タを、その冗長度を高めることなく永年的に保存させる
ことができるようになって、情報カード内のメモリーに
実質的に記憶させられる有効データ量を増やすことがで
きるようにするという目的が達成される。
As a result, the data stored in the memory of the information card can be stored forever without increasing its redundancy, and the effective amount of data that can be stored in the memory of the information card The objective of being able to increase the number of people is achieved.

[実施例] 以下、本発明の好適な実施例を図面を参照しながら説明
する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

なお、図において、同一符号は同一あるいは相当部分を
示すものとする。
In addition, in the figures, the same reference numerals indicate the same or corresponding parts.

第1図は本発明の一実施例による情報カード制御装置の
概要を示す。
FIG. 1 shows an outline of an information card control device according to an embodiment of the present invention.

同図に示す情報カード制御装置2は、情報カード(丁C
カード)1とホストシステム(図示省略)との間に介在
し.カードインターフェイス手段21、スクランブル処
理手段22、エラー制御手段23、データバッファ24
、および再書込制御手段25などを有する。
The information card control device 2 shown in the same figure is an information card (C
The card is interposed between the card) 1 and the host system (not shown). Card interface means 21, scramble processing means 22, error control means 23, data buffer 24
, and rewrite control means 25.

カードインターフェイス手段21は、情報カード1に内
蔵のメモリー(EEP−ROM)11に対してデータの
読取および書込を行なう。
The card interface means 21 reads and writes data to and from the memory (EEP-ROM) 11 built into the information card 1.

スクランブル処理手段22は、情報カード1内のメモリ
ー11に書き込まれるデータにスクランブルをかけると
ともに、上記メモリー11から読み取られたデータに逆
スクランブルをかける。
The scrambling processing means 22 scrambles the data written to the memory 11 in the information card 1 and descrambles the data read from the memory 11.

エラー制御手段23は、上記メモリー11から読み取ら
れた記憶データのエラー検出およびエラー訂正を行なう
The error control means 23 detects and corrects errors in stored data read from the memory 11.

データバッファ24は、上記メモリー11に書き込まれ
るデータを一旦N積する。
The data buffer 24 once multiplies the data written to the memory 11 by N.

再書込手段25は、エラー制御手段23によってエラー
訂正されたデータを上記メモリー11に再書込する。再
書込のための訂正済データは、データバッファ24に一
旦蓄積された後、スクランブル処理手段22およびカー
ドインターフェイス手段21を介して、情報カード1内
のメモリー11に書き込まれる。これにより、メモリー
11の記憶データが更新されるようになる。
The rewriting means 25 rewrites the data whose error has been corrected by the error control means 23 into the memory 11. Corrected data for rewriting is once stored in the data buffer 24 and then written to the memory 11 in the information card 1 via the scrambling processing means 22 and the card interface means 21. As a result, the data stored in the memory 11 is updated.

さらに、」二記再書込手段25はエラー制御手段23の
動作をモニターし、」二記メモリー11からの読取デー
タにエラーがあった場合にだけ、エラー訂正されたデー
タを上記メモリー11に再書込するように構成されてい
る。
Further, the second rewriting means 25 monitors the operation of the error control means 23, and rewrites the error-corrected data to the memory 11 only when there is an error in the data read from the second memory 11. configured to write.

以上のように構成された情報カード制御装置について、
以下その動作を説明する。
Regarding the information card control device configured as above,
The operation will be explained below.

まず、ホスト側から書込データが送られてきた場合、こ
の書込データはバッファ24で一旦蓄積された後、スク
ランブル処理にかけられる。スクランブル処理されたデ
ータはカードインターフェイス手段21によって情報カ
ード1内のメモリー11に書き込まれる。
First, when write data is sent from the host side, this write data is temporarily stored in the buffer 24 and then subjected to scrambling processing. The scrambled data is written into the memory 11 in the information card 1 by the card interface means 21.

次に、ホスト側からデータの読取要求があった場合、カ
ードインターフェイス手段21を介して情報カード1内
のメモリー11の記憶データを読み取る。読み取られた
データは、スクランブル処理手段22によって逆スクラ
ンブル処理された後。
Next, when there is a request to read data from the host side, the data stored in the memory 11 in the information card 1 is read via the card interface means 21. After the read data is descrambled by the scrambling processing means 22.

エラー制御手段23によってエラーの有無がチエツクさ
れる。
The error control means 23 checks whether there is an error.

ここで、エラー無しと判定された場合、逆スクランブル
処理された読取データはそのまま読取出力としてホスト
側へ送出される。
Here, if it is determined that there is no error, the descrambled read data is directly sent to the host side as a read output.

一方、エラー有りと判定された場合、エラー制御手段2
3は、逆スクランブル処理されたデータのエラー訂正処
理を行なう。そして、この処理を行なった訂正済データ
が読取出力としてホスト側へ送出される。これとともに
、再書込制御手段25が動作し、エラー制御手順23に
よって訂正処理された訂正済データをバッファ24に一
旦蓄積する。そして、このバッファ24に蓄積された訂
正済データがスクランブル処理され、カードインターフ
ェイス手段21を介して、情報カード内のメモリー11
に再書込される。これにより、メモリー11の記憶デー
タは、誤りを含んでいた旧データから誤りを訂正された
新データに置き換えられる。
On the other hand, if it is determined that there is an error, the error control means 2
3 performs error correction processing on the descrambled data. Then, the corrected data that has undergone this processing is sent to the host side as read output. At the same time, the rewrite control means 25 operates, and the corrected data corrected by the error control procedure 23 is temporarily stored in the buffer 24. The corrected data stored in the buffer 24 is then scrambled and sent to the memory 11 in the information card via the card interface means 21.
will be rewritten. As a result, the data stored in the memory 11 is replaced with new data whose errors have been corrected, from old data containing errors.

以上のようにして、情報カード内のメモリーに記憶され
たデータの一部が消失しても、エラー訂正によってその
消失した部分が修復されて正しいデータが書き込まれる
ようになる。
As described above, even if part of the data stored in the memory in the information card is lost, the lost part is restored by error correction and correct data is written.

これにより、情報カード1内のメモリー11に記憶され
るデータを、その冗長度をあまり高めることなく永年的
に保存させることができるようになって、情報カード1
内のメモリー11に実質的に記憶させられる有効データ
量を増やすとともに、記憶させたデータ内容を確実に保
護することができるようになる。
As a result, the data stored in the memory 11 in the information card 1 can be stored for a long time without increasing its redundancy.
In addition to increasing the amount of effective data that can be substantially stored in the internal memory 11, it becomes possible to reliably protect the stored data contents.

さらに、上述した実施例では、再書込制御手段25が、
カード1内のメモリー11からの読取データにエラーが
あった場合だけ動作して、エラー訂正されたデータをメ
モリー11に再書込するようになっていたが、これによ
り無用な再書込動作が防止されて、書込回数に制限のあ
るEEP−ROMなどのメモリー11の寿命を延ばすこ
とができる。
Furthermore, in the embodiment described above, the rewrite control means 25
The device operates only when there is an error in the data read from memory 11 in card 1, and rewrites the error-corrected data to memory 11, but this prevents unnecessary rewriting operations. This can extend the life of the memory 11, such as an EEP-ROM, which has a limited number of write operations.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。
Although the invention made by the present inventor has been specifically explained above based on Examples, it goes without saying that the present invention is not limited to the above Examples and can be modified in various ways without departing from the gist thereof. Nor.

例えば、情報カード1内のメモリー11に日付データを
記憶させ、この日付データが一定以上古くなったときに
データの再書込と新規日付データの書込を行なわせるよ
うにしてもよい。
For example, date data may be stored in the memory 11 within the information card 1, and when this date data becomes older than a certain value, the data may be rewritten and new date data may be written.

以上の説明では主として本発明者によってなされた発明
をその背景となった利用分野であるメモリーとしてEE
P−ROMを内蔵するタイプのICカードに適用した場
合について説明したが、それに限定されるものではなく
、例えば内蔵電池で電源バックアップされたスタチック
RAMあるいはダイナミックRAMをメモリーとして内
蔵する情報カードにも適用できる。
The above explanation will mainly focus on the invention made by the present inventor in the EE field as a memory field, which is the background of the invention.
Although the case where the present invention is applied to a type of IC card with a built-in P-ROM has been described, the present invention is not limited thereto, and can also be applied to an information card that has a built-in static RAM or dynamic RAM as a memory backed up by a built-in battery. can.

[発明の効果] 本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば下記のとおりである
[Effects of the Invention] The effects obtained by typical inventions disclosed in this application are briefly explained below.

すなわち、情報カード内のメモリーに記憶されるデータ
を、その冗長度をあまり高めることなく永年的に保存さ
せることができるようになって、情報カード内のメモリ
ーに実質的に記憶させられる有効データ量を増やすとと
もに、記憶させたデータ内容を確実に保護することがで
きる、という効果が得られる。
In other words, the data stored in the memory inside the information card can now be stored for a long time without significantly increasing its redundancy, and the effective amount of data that can be stored in the memory inside the information card has increased. In addition to increasing the amount of information stored, the stored data contents can be reliably protected.

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

第1図は本発明の一実施例による情報カー1’ jli
制御′!A置の装要を示すブロック図、 第2図は従来の情報カード制御装置の概要を示すブロッ
ク図である。 1・・・・情報カード(ICカード)、il・・・・メ
モリー(EEP−ROM)、2・・・・情報カー1−制
御装置、21・・・・カードインターフェイス手段、2
2・・・・スクランブル処理手段、23・・・・エラー
制御手段、24・・・・データバッファ、25・・・・
再書込制御手段。
FIG. 1 shows an information car 1' jli according to an embodiment of the present invention.
control'! FIG. 2 is a block diagram showing the outline of a conventional information card control device. 1...Information card (IC card), il...Memory (EEP-ROM), 2...Information car 1-control device, 21...Card interface means, 2
2... Scramble processing means, 23... Error control means, 24... Data buffer, 25...
Rewriting control means.

Claims (3)

【特許請求の範囲】[Claims] 1.メモリーを内蔵した情報カードに対してデータの読
取および書込を行なうインターフェイス手段と、上記カ
ード内のメモリーから読み取られた記憶データのエラー
検出およびエラー訂正を行なうエラー制御手段と、エラ
ー訂正されたデータを上記カード内のメモリーに再書込
する手段とを備えたことを特徴とする情報カード制御装
置。
1. an interface means for reading and writing data to an information card having a built-in memory; an error control means for detecting and correcting errors in stored data read from the memory in the card; and error-corrected data. and means for rewriting the information into the memory within the card.
2.カードに内蔵のメモリーに書き込まれるデータにス
クランブルをかける一方、上記メモリーから読み取られ
たデータに逆スクランブルをかけるスクランブル処理手
段を備えた特許請求の範囲第1項記載の情報カード制御
装置。
2. 2. The information card control device according to claim 1, further comprising scrambling processing means for scrambling data written to a memory built into the card and descrambling data read from said memory.
3.カードに内蔵のメモリーからの読取データにエラー
があった場合だけ、エラー訂正されたデータを上記メモ
リーに再書込する再書込制御手段を備えた特許請求の範
囲第1項または第2項記載の情報カード制御装置。
3. Claims 1 or 2 further comprising rewrite control means for rewriting error-corrected data into the memory only when there is an error in the data read from the memory built into the card. Information card control device.
JP63235944A 1988-09-20 1988-09-20 Information card controller Pending JPH0283645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63235944A JPH0283645A (en) 1988-09-20 1988-09-20 Information card controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63235944A JPH0283645A (en) 1988-09-20 1988-09-20 Information card controller

Publications (1)

Publication Number Publication Date
JPH0283645A true JPH0283645A (en) 1990-03-23

Family

ID=16993536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63235944A Pending JPH0283645A (en) 1988-09-20 1988-09-20 Information card controller

Country Status (1)

Country Link
JP (1) JPH0283645A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005149416A (en) * 2003-11-19 2005-06-09 Fuji Xerox Co Ltd Image forming apparatus and its replacement part
JP2007310916A (en) * 2007-09-03 2007-11-29 Renesas Technology Corp Memory card
US7392457B2 (en) 2001-08-09 2008-06-24 Renesas Technology Corp. Memory storage device having a nonvolatile memory and memory controller with error check operation mode
JP2011018371A (en) * 2010-10-08 2011-01-27 Renesas Electronics Corp Memory storage device
US8161346B2 (en) 2007-05-31 2012-04-17 Kabushiki Kaisha Toshiba Data refresh apparatus and data refresh method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392457B2 (en) 2001-08-09 2008-06-24 Renesas Technology Corp. Memory storage device having a nonvolatile memory and memory controller with error check operation mode
US8219882B2 (en) 2001-08-09 2012-07-10 Renesas Electronics Corporation Memory card and memory controller
JP2005149416A (en) * 2003-11-19 2005-06-09 Fuji Xerox Co Ltd Image forming apparatus and its replacement part
US8161346B2 (en) 2007-05-31 2012-04-17 Kabushiki Kaisha Toshiba Data refresh apparatus and data refresh method
JP2007310916A (en) * 2007-09-03 2007-11-29 Renesas Technology Corp Memory card
JP2011018371A (en) * 2010-10-08 2011-01-27 Renesas Electronics Corp Memory storage device

Similar Documents

Publication Publication Date Title
US7752526B2 (en) Nonvolatile memory apparatus and data processing system
US7818477B2 (en) Storage device with buffer control unit
US7849382B2 (en) Memory control circuit, nonvolatile storage apparatus, and memory control method
US5745912A (en) Memory card apparatus including a link table for managing the correspondency between the recorded contents in the memory card and that in the link table
KR101115843B1 (en) Semiconductor memory device
US20060239450A1 (en) In stream data encryption / decryption and error correction method
JP2679715B2 (en) Data transfer method
US8396208B2 (en) Memory system with in stream data encryption/decryption and error correction
JPH0283645A (en) Information card controller
US6931485B2 (en) Disk array apparatus
US7257030B2 (en) Operating a storage component
US20100169572A1 (en) Data storage method, apparatus and system for interrupted write recovery
US20090210758A1 (en) Method for reducing data error when flash memory storage device using copy back command
JP2006318105A (en) Monitoring system
JP4596602B2 (en) Nonvolatile memory data management method
JPS61290556A (en) Memory error recovering system
JPS6129025B2 (en)
JP4009401B2 (en) Disk control apparatus and recording medium recording program
US5594909A (en) File I/O control device writing blocks to faster device first and canceling exclusive lock as each block is written
JP2946941B2 (en) File device
JPH07141120A (en) Processing method for fault in information storage medium
JPH0667988A (en) Semiconductor memory with ras function
JPH05314020A (en) Memory card device
JP2003167687A (en) Method and device for disk array control and disk array control program
JPS60231247A (en) Computer device