[go: up one dir, main page]

JPH02208762A - Memory capacity deciding device - Google Patents

Memory capacity deciding device

Info

Publication number
JPH02208762A
JPH02208762A JP1030822A JP3082289A JPH02208762A JP H02208762 A JPH02208762 A JP H02208762A JP 1030822 A JP1030822 A JP 1030822A JP 3082289 A JP3082289 A JP 3082289A JP H02208762 A JPH02208762 A JP H02208762A
Authority
JP
Japan
Prior art keywords
memory
data
capacity
address
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
JP1030822A
Other languages
Japanese (ja)
Inventor
Hiroshi Onoda
洋 小野田
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1030822A priority Critical patent/JPH02208762A/en
Publication of JPH02208762A publication Critical patent/JPH02208762A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To decide a memory capacity by deciding whether prescribed data written to a specific address corresponding to the capacity and data read from the said address next are the same or not. CONSTITUTION:A read/write control means 31 of a microprocessor 3 reads data Y1 and Y2 stored, for example, in a head address X2 of a head address X1, 16KB with 8KB of a memory 1, and the data are retreated once to the stack of a memory 32 in the microprocessor 3. Next, Arbitrary data Y1' and Y2' stored in the addresses of X1' and X2' of the memory 32 corresponding to the X1 and X2 respectively are written in the head address X2 of the head address X1, 16KB with 8KB of the memory 1. Next, the data Y2' and Y1' are read from the head address X1 of the head address X2, 8KB with 16KB of the memory 1, respectively, and whether the data are the same as the data Y2' and Y1' to be written, respectively, is decided. Thus, the memory capacity can be decided.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、ICカードのように内部に書き替え可能のメ
モリを持った素子におけるメモリ容量判定装置に関し、
更に詳しくは、コネクタを介して装着される各種のIC
カード内のメモリ容量を簡便な手法により判定できるよ
うにしたメモリ容量判定装置に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a memory capacity determination device for an element having a rewritable memory inside, such as an IC card.
More specifically, various ICs installed via connectors
The present invention relates to a memory capacity determination device that can determine the memory capacity in a card using a simple method.

〈従来の技術〉 ICカードは、通常内部に書き替え可能のメモリを持っ
ていて、必要に応じてコネクタを介してコンピュータ(
マイクロプロセッサ)に接続される。コンピュータは装
着されたICカード内のメモリから情報を読み出し、こ
の情報に基づいて所定の演算をしたり、必要な情報をI
Cカード内のメモリに書き込んだりする。
<Conventional technology> IC cards usually have rewritable memory inside, and can be connected to a computer (via a connector) as needed.
microprocessor). The computer reads information from the memory in the installed IC card, performs predetermined calculations based on this information, and transmits necessary information to the I/O.
Write to the memory in the C card.

このような書き替え可能のメモリを持つICカードを利
用したシステムにおいては、システムにICカードが装
着あるいは挿入された場合、そのカードのメモリに新た
に書き込む情報量が、メモリの容量を越えていると、新
たな情報を最後まで書き込むことができなくなる等の不
具合が生ずる。
In systems using such IC cards with rewritable memory, when an IC card is installed or inserted into the system, the amount of new information written to the card's memory exceeds the memory capacity. If this occurs, problems such as not being able to write new information to the end occur.

従来、ICカード内のメモリ容量については、装着され
るICカードが各種あって、それぞれについてメモリの
容量を装着時に判定できるようにしたものはなかった。
Conventionally, with regard to the memory capacity within an IC card, there are various types of IC cards that can be installed, and there has been no system that allows the memory capacity of each IC card to be determined at the time of installation.

〈発明が解決しようとする課題〉 本発明は、このような状況に鑑みてなされたものであっ
て、ICカードがシステムに装着あるいは挿入された場
合において、ICカード内のメモリ容量を自動的に判定
できる装置を提供することを目的とする。
<Problems to be Solved by the Invention> The present invention has been made in view of the above situation, and is a method for automatically reducing the memory capacity of the IC card when the IC card is installed or inserted into the system. The purpose is to provide a device that can make the determination.

く課題を解決するための手段〉 前記した課題を解決する本発明は、 内部に書き替え可能のメモリを持った素子と、この素子
の装着時に前記メモリに結合するマイクロプロセッサか
らなり、 マイクロプロセッサは、素子が装着時に当該素子内のメ
モリに対してその容量に対応する特定アドレスのデータ
を一旦退避させ、それらのアドレスに所定のデータを書
き込み、つぎに該当するアドレスから再びデータを読み
だし、そのデータがはじめに書き込んだ所定のデータと
一致するか否かによって、前記メモリの容量を判定する
ように構成されている。
Means for Solving the Problems> The present invention for solving the problems described above consists of an element having a rewritable memory therein, and a microprocessor that is coupled to the memory when the element is attached. When an element is installed, data at a specific address corresponding to its capacity is temporarily saved in the memory within the element, predetermined data is written to those addresses, and then data is read again from the corresponding address, and then The capacity of the memory is determined depending on whether the data matches predetermined data written first.

く作用〉 容量に対応する特定アドレスに書き込んだ所定のデータ
と、次に該当アドレスから読み出したデータが同じであ
るかどうかを判定することにより、該当するアドレスが
存在するかどうか分かり、このことからメモリ容量の判
定を可能とする。
Function> By determining whether the predetermined data written to a specific address corresponding to the capacity is the same as the data read next from the corresponding address, it can be determined whether the corresponding address exists. Enables judgment of memory capacity.

〈実施例〉 以下図面を用いて、本発明の実施例を詳細に説明する。<Example> Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明の一実施例を示す構成ブロック図であ
る。図において、1はICカード内のメモリ、2はこの
ICカードが装着されるコネクタ、3はコネクタ2を介
してICカード1に、データバスDB、アドレスバスA
Bによって結合するマイクロプロセッサである。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is the memory inside the IC card, 2 is the connector to which this IC card is installed, and 3 is the data bus DB and address bus A connected to the IC card 1 via the connector 2.
A microprocessor connected by B.

31はメモリ1のリード/ライト制御手段、32はマイ
クロプロセッサ内のメモリで、ここにはICカード内の
メモリ1の特定アドレスX1に書き込む任意データYl
、特定アドレスX2に書き込む任意データY2等が格納
されている。33はメモリ1に書き込んだデータと、メ
モリ1から読み出したデータとを比較し、メモリ容量を
判定する容量判定手段である。
31 is a read/write control means for the memory 1, and 32 is a memory in the microprocessor, which stores arbitrary data Yl to be written to a specific address X1 in the memory 1 in the IC card.
, arbitrary data Y2 to be written to the specific address X2, etc. are stored. Reference numeral 33 denotes a capacity determining means that compares data written into the memory 1 and data read from the memory 1 to determine the memory capacity.

このように構成された装置の動作を説明すれば以下の通
りである。
The operation of the device configured as described above will be explained as follows.

第2図は、ICカードがコネクタ2に装着された場合に
マイクロプロセッサ3が行う動作の一例を示すフローチ
ャート、 第3図は、マイクロプロセッサ3内のメモリ32と、I
Cカード内のメモリ1の内部構成の概念図である。ここ
では、メモリ1の容量は8KB。
FIG. 2 is a flowchart showing an example of the operation performed by the microprocessor 3 when an IC card is attached to the connector 2. FIG.
2 is a conceptual diagram of the internal configuration of a memory 1 in a C card. FIG. Here, the capacity of memory 1 is 8KB.

16KBのものを想定している。It is assumed that it is 16KB.

はじめに、マイクロプロセッサ3のリード/ライト制御
手段31は、メモリ1の例えば8KBの先頭アドレス(
Xi)、16KBの先頭アドレス(X2)に格納されて
いるデータYl、Y2を読みだし、これらのデータYl
、Y2を一旦マイクロプロセッサ3内のメモリ32のス
タックに退避させる(ステップ1.2)。
First, the read/write control means 31 of the microprocessor 3 reads the starting address (for example, 8 KB) of the memory 1 (
Xi), reads the data Yl and Y2 stored at the first address (X2) of 16KB, and reads these data Yl
, Y2 are temporarily saved to the stack of the memory 32 in the microprocessor 3 (step 1.2).

次に、メモリ1の8KBの先頭アドレスXI。Next, start address XI of 8KB of memory 1.

16KBの先頭アドレスX2にそれぞれこのXI。This XI is placed at the first address X2 of 16KB.

X2に対応したメモリ32のXi’ 、 X2’のアド
レスに格納されている任意のデータYl’Y2’を書き
込む(ステップ3,4)。
Arbitrary data Yl'Y2' stored in the addresses Xi' and X2' of the memory 32 corresponding to X2 is written (steps 3 and 4).

続いて、メモリ1の16KBの先頭アドレスX2.8K
Bの先頭アドレスX1から、それぞれデータY2’ 、
Yl’ を読みだし、そのデータがステップ4,3でそ
れぞれ書き込んだデータY2’ 、Yl’ と同じであ
るか、判断する(ステップ5.6)。
Next, start address of 16KB of memory 1 x2.8K
From the start address X1 of B, data Y2',
Yl' is read and it is determined whether the data is the same as the data Y2' and Yl' written in steps 4 and 3, respectively (step 5.6).

ステップ5において、読み出したデータがY2’ と同
じであれば、16KBの先頭アドレスが存在することで
あり、装着されたICカードのメモリ1の容量は、16
KBのものであると判断する(ステップ7)。読み出し
たデータがY2’と異なる場合、該当するアドレスが存
在しないということであり、ステップ6に移る。
In step 5, if the read data is the same as Y2', it means that the first address of 16 KB exists, and the capacity of memory 1 of the inserted IC card is 16 KB.
It is determined that it belongs to KB (step 7). If the read data is different from Y2', it means that the corresponding address does not exist, and the process moves to step 6.

ステップ6において、読み出したデータがYl’ と同
じであれば、8KBの先頭アドレスが存在することであ
り、装着されたICカードのメモリ1容量は、8KBの
ものであると判断する(ステップ8)。
In step 6, if the read data is the same as Yl', it means that the first address of 8KB exists, and it is determined that the memory capacity of the inserted IC card is 8KB (step 8). .

ステップ5,6において、いずれも読み出したデータが
Y2’ 、Yl’ と異なる場合、8KB。
In steps 5 and 6, if the read data is different from Y2' and Yl', it is 8KB.

16KBのそれぞれの先頭アドレスが存在していないこ
とであり、この場合、ICカードが装着されていないと
判断する(ステップ9)。
The first address of each of the 16 KB does not exist, and in this case, it is determined that the IC card is not installed (step 9).

これらステップ5〜ステツプ9の判断は、マイクロプロ
セッサ3内のソフトウェアによって実現される容量判定
手段33が行う。
Judgments in steps 5 to 9 are made by the capacity determining means 33 implemented by software within the microprocessor 3.

これらのメモリ容量の判定が終了すると、つぎに、ステ
ップ1.2で一時的にマイクロプロセッサ3のメモリ3
2のスタックに格納した各データYl、Y2をICカー
ドにおけるメモリ1の該当するアドレスに書き込み(ス
テップ10.11)、処理を終了する。このステップ1
0.11の処理を行うことにより、ICカード内のメモ
リ内容を、容量判定のための操作で破壊することはない
ようにしている。
When these memory capacity determinations are completed, the memory 3 of the microprocessor 3 is temporarily stored in step 1.2.
Each of the data Yl and Y2 stored in the stack No. 2 is written to the corresponding address of the memory 1 in the IC card (step 10.11), and the process ends. This step 1
By performing the processing of 0.11, it is possible to prevent the memory contents in the IC card from being destroyed by the operation for capacity determination.

なお、この実施例では装着されるICカードのメモリ容
量が8KB、16KBのものであることを想定し、マイ
クロプロセッサ3からメモリ1にアクセスするアドレス
を、8KBの先頭アドレス。
In this embodiment, it is assumed that the memory capacity of the IC card to be installed is 8 KB or 16 KB, and the address for accessing the memory 1 from the microprocessor 3 is the starting address of 8 KB.

16KBの先頭アドレスとしたものであるが、アクセス
するアドレスを装着されるICカードのメモリ容量に応
じて更に多数用意すれば、各種のメモリ容量について、
きめ細かに判断することができる。
The first address is 16KB, but if you prepare more addresses to access depending on the memory capacity of the IC card installed, it will be possible to adjust the address for various memory capacities.
You can make detailed judgments.

〈発明の効果〉 以上詳細に説明したように、本発明によれば各種のIC
カード内のメモリ容量について、簡単な操作で判定でき
る。従って、ICカードを取り扱う各種のシステムは、
装着あるいは挿入されるICカードについて、装着時に
メモリ容量を判定することで、その容量に応じた適切な
処理を行うことが可能となる。
<Effects of the Invention> As explained in detail above, according to the present invention, various IC
You can determine the memory capacity in the card with a simple operation. Therefore, various systems that handle IC cards are
By determining the memory capacity of an IC card to be attached or inserted at the time of attachment, it becomes possible to perform appropriate processing according to the capacity.

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

第1図は本発明の一実施例を示す構成ブロック図、第2
図はICカードがコネクタに装着された場合にマイクロ
プロセッサが行う動作の一例を示すフローチャート、第
3図はマイクロプロセッサ内のメモリと、ICカード内
のメモリの内部構成の概念図である。 1・・・メモリ、    2・・・コネクタ、3・・・
マイクロプロセッサ、 31・・・リード/ライト制御手段、 32・・・メモリ、  33・・・容量判定手段筒1 
図 筒2 図 第3 図
FIG. 1 is a configuration block diagram showing one embodiment of the present invention, and FIG.
The figure is a flowchart showing an example of the operation performed by the microprocessor when the IC card is attached to the connector, and FIG. 3 is a conceptual diagram of the memory in the microprocessor and the internal structure of the memory in the IC card. 1...Memory, 2...Connector, 3...
microprocessor, 31...read/write control means, 32...memory, 33...capacity determination means tube 1
Picture Tube 2 Figure 3

Claims (1)

【特許請求の範囲】  内部に書き替え可能のメモリを持った素子と、この素
子の装着時に前記メモリに結合するマイクロプロセッサ
からなり、 前記マイクロプロセッサは、素子が装着時に当該素子内
のメモリに対してその容量に対応する特定アドレスのデ
ータを一旦退避させ、それらのアドレスに所定のデータ
を書き込み、つぎに該当するアドレスから再びデータを
読みだし、そのデータがはじめに書き込んだ所定のデー
タと一致するか否かによって、前記メモリの容量を判定
することを特徴とするメモリ容量判定装置。
[Claims] Consisting of an element having a rewritable memory therein, and a microprocessor coupled to the memory when the element is attached, the microprocessor controls the memory in the element when the element is attached. Once save the data at a specific address corresponding to the capacity, write the specified data to those addresses, then read the data again from the corresponding address, and check whether the data matches the specified data written at the beginning. A memory capacity determination device characterized in that the capacity of the memory is determined depending on whether or not the memory capacity is determined.
JP1030822A 1989-02-09 1989-02-09 Memory capacity deciding device Pending JPH02208762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1030822A JPH02208762A (en) 1989-02-09 1989-02-09 Memory capacity deciding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1030822A JPH02208762A (en) 1989-02-09 1989-02-09 Memory capacity deciding device

Publications (1)

Publication Number Publication Date
JPH02208762A true JPH02208762A (en) 1990-08-20

Family

ID=12314398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1030822A Pending JPH02208762A (en) 1989-02-09 1989-02-09 Memory capacity deciding device

Country Status (1)

Country Link
JP (1) JPH02208762A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6270957A (en) * 1985-09-24 1987-04-01 Hitachi Ltd How to automatically determine memory capacity
JPS647240A (en) * 1987-06-30 1989-01-11 Hioki Electric Works Memory capacity discriminating method for memory card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6270957A (en) * 1985-09-24 1987-04-01 Hitachi Ltd How to automatically determine memory capacity
JPS647240A (en) * 1987-06-30 1989-01-11 Hioki Electric Works Memory capacity discriminating method for memory card

Similar Documents

Publication Publication Date Title
JP3519954B2 (en) Chip enable signal generation circuit and memory device
JPH03252993A (en) E↑2PROM information writing device
JP2000003302A (en) Exclusive access control method for shared memory
JPH02208762A (en) Memory capacity deciding device
JPS6270957A (en) How to automatically determine memory capacity
JPS5848289A (en) Buffer memory control method
EP0292237A2 (en) IC card and IC card information processing system using the IC card
JP2598056B2 (en) Portable electronic devices
JP3130798B2 (en) Bus transfer device
JPH0240760A (en) Information processor
JP2501393B2 (en) Direct memory access device
RU2179332C1 (en) Computer system
JP3117253B2 (en) Computer system
JPH07239921A (en) Pc card
JP2876488B2 (en) Semiconductor file memory device
JP3190694B2 (en) Diagnostic method for local memory
JPH064469A (en) I / O device control method
JPS5922150A (en) Memory control system
JPH04167154A (en) Memory capacity detecting method for extension storage device of information processor
JPS59133613A (en) Software verifying method of process controller
JPH0816405A (en) System initialization device
JPS6017550A (en) Cache memory control system
JP2000268165A (en) Image information processor and image information processing method
JPH09114598A (en) Disk cache device
JPH11338992A (en) Pc card