JPH0693255B2 - Memory area definition method for portable electronic devices - Google Patents
Memory area definition method for portable electronic devicesInfo
- Publication number
- JPH0693255B2 JPH0693255B2 JP62029745A JP2974587A JPH0693255B2 JP H0693255 B2 JPH0693255 B2 JP H0693255B2 JP 62029745 A JP62029745 A JP 62029745A JP 2974587 A JP2974587 A JP 2974587A JP H0693255 B2 JPH0693255 B2 JP H0693255B2
- Authority
- JP
- Japan
- Prior art keywords
- area
- portable electronic
- memory
- electronic device
- data
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 14
- 238000012790 confirmation Methods 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Credit Cards Or The Like (AREA)
Description
【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、たとえば不揮発性のデータメモリおよびCPU
などの制御素子を有するIC(集積回路)チップを内蔵し
た、いわゆるICカードと称される携帯可能電子装置にお
いて、上記データメモリを複数のエリアに分割定義する
携帯可能電子装置のメモリエリア定義方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to, for example, a nonvolatile data memory and a CPU.
In a portable electronic device called an IC card, which has an IC (integrated circuit) chip having a control element such as, a memory area definition method of the portable electronic device for dividing and defining the data memory into a plurality of areas .
(従来の技術) 最近、新たな携帯可能なデータ記憶媒体として、不揮発
性のデータメモリおよびCPUなどの制御素子を有するIC
チップを内蔵したICカードが開発されている。この種の
ICカードは、内蔵する制御素子によって内蔵するデータ
メモリをアクセスし、外部装置からの要求に応じて必要
なデータの入出力を行なうものである。(Prior Art) Recently, as a new portable data storage medium, an IC having a nonvolatile data memory and a control element such as a CPU
IC cards with built-in chips have been developed. Of this kind
The IC card accesses the built-in data memory by a built-in control element and inputs / outputs necessary data in response to a request from an external device.
ところで、このようなICカードは、データメモリが複数
のエリアに分割定義され、このエリアをアクセス単位と
して運用される。By the way, in such an IC card, the data memory is divided and defined into a plurality of areas, and this area is used as an access unit.
このように、データメモリは複数のエリアに分割定義さ
れるが、そのメモリエリアの定義は通常、ICカードの発
行時にカード発行者によって行なわれ、従来は次のよう
な方式で行なわれていた。すなわち、各エリアの先頭ア
ドレス(先頭位置情報)とエリアサイズをエリア定義情
報として入力し、これらエリア定義情報をテーブル形式
でデータメモリの特定エリアに記憶することにより、こ
れら各エリアの先頭アドレスとエリアサイズによってエ
リアを分割定義し管理するものである。As described above, the data memory is divided into a plurality of areas, and the definition of the memory area is usually made by the card issuer at the time of issuing the IC card, and has conventionally been done by the following method. That is, by inputting the start address (start position information) and area size of each area as area definition information and storing the area definition information in a specific area of the data memory in a table format, the start address and area of each area are stored. Areas are defined and managed according to size.
しかし、従来のメモリエリア定義方式は、入力されたエ
リア定義情報をデータメモリの特定エリアに順次記憶
し、全てのエリア定義情報を記憶し終わった時点でエリ
ア定義終了としており、エリア定義情報のチェックなど
を行なっていないため、複数のエリアを重複して定義し
てしまう恐れがあった。However, in the conventional memory area definition method, the input area definition information is sequentially stored in a specific area of the data memory, and the area definition is completed when all area definition information is stored. Since there is no such thing, there is a risk that multiple areas will be defined redundantly.
(発明が解決しようとする問題点) 本発明は、上記したように複数のエリアを重複して定義
してしまう恐れがあるという問題点を解決すべくなされ
たもので、複数のエリアを重複して定義することを未然
に防止できる携帯可能電子装置のメモリエリア定義方式
を提供することを目的とする。(Problems to be Solved by the Invention) The present invention has been made to solve the problem that a plurality of areas may be redundantly defined as described above. It is an object of the present invention to provide a memory area definition method for a portable electronic device, which can prevent the above definition.
[発明の構成] (問題点を解決するための手段) 本発明は、データメモリ部と、このデータメモリ部に対
してデータの読出しおよび書込みを行なうための制御部
を有し、選択的に外部からの入出力を行なう携帯可能電
子装置において、前記データメモリ部を各エリアの先頭
位置情報とエリアサイズにより複数のエリアに分割定義
する携帯可能電子装置のメモリエリア定義方式であっ
て、前記各エリアの先頭位置情報とエリアサイズにより
各エリアの正当性を確認し、正当な場合にのみ前記各エ
リアの先頭位置情報とエリアサイズを各エリア定義情報
として定義記憶することを特徴としている。[Configuration of the Invention] (Means for Solving Problems) The present invention has a data memory unit and a control unit for reading and writing data from and to the data memory unit, and selectively externally In the portable electronic device for inputting / outputting data from / to, the data memory unit is divided into a plurality of areas according to the head position information of each area and the area size. The validity of each area is confirmed by the head position information and the area size, and the head position information and the area size of each area are defined and stored as each area definition information only when the area is valid.
(作用) 各エリアの先頭位置情報とエリアサイズにより各エリア
の正当性を確認し、正当な場合にのみ各エリアの先頭位
置情報とエリアサイズを各エリア定義情報として定義記
憶することにより、複数のエリアを重複して定義するこ
とを未然に防止できる。(Operation) By confirming the legitimacy of each area based on the head position information and the area size of each area, and only when legitimate, the head position information and the area size of each area are defined and stored as the area definition information. It is possible to prevent overlapping definition of areas.
(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。(Example) Hereinafter, one example of the present invention will be described with reference to the drawings.
第4図は本発明に係る携帯可能電子装置としてのICカー
ドの構成例を示すもので、制御部としての制御素子(た
とえばCPU)1、データメモリ部としての記憶内容が消
去可能な不揮発性のデータメモリ2、プログラムメモリ
部としてのプログラムメモリ3、およびカードリーダ・
ライタとの電気的接触を得るためのコンタクト部4によ
って構成されており、これらのうち破線内の部分(制御
素子1、データメモリ2、プログラムメモリ3)は1つ
のICチップで構成されてICカード本体内に埋設されてい
る。プログラムメモリ3は、たとえばマスクROMで構成
されており、各基本機能を実現するサブルーチンを備え
た制御素子1の制御プログラムを記憶するものである。
データメモリ2は各種データの記憶に使用され、たとえ
ばEEPROMで構成されている。FIG. 4 shows an example of the configuration of an IC card as a portable electronic device according to the present invention, which has a control element (for example, CPU) 1 as a control unit and a non-volatile nonvolatile memory capable of erasing stored contents as a data memory unit. A data memory 2, a program memory 3 as a program memory unit, and a card reader
The IC card is composed of a contact part 4 for making electrical contact with the writer. Of these, the part within the broken line (control element 1, data memory 2, program memory 3) is composed of one IC chip. It is embedded in the body. The program memory 3 is composed of, for example, a mask ROM, and stores a control program of the control element 1 having a subroutine for realizing each basic function.
The data memory 2 is used for storing various data and is composed of, for example, an EEPROM.
データメモリ2は、たとえば第2図(a)に示すよう
に、発行フラグエリア21、ディレクトリエリア22、およ
びデータエリア(ユーザエリア)23から構成されてい
る。発行フラグエリア21は、ディレクトリエリア22の書
込みが終了しているか否かの判断を行なうための発行フ
ラグとして用いられる。ディレクトリエリア22は、デー
タエリア23を複数のエリアに分割定義し管理するエリア
であって、後述するようにエリア定義情報が記憶され
る。データエリア23は、各種データが記憶されるもの
で、後述するように複数のエリアに分割定義される。The data memory 2 is composed of an issue flag area 21, a directory area 22, and a data area (user area) 23, as shown in FIG. The issue flag area 21 is used as an issue flag for determining whether or not the writing in the directory area 22 is completed. The directory area 22 is an area that defines and manages the data area 23 by dividing it into a plurality of areas, and stores area definition information as described later. The data area 23 stores various data, and is defined by being divided into a plurality of areas as described later.
第3図は本発明に係るICカード発行装置の構成例を示す
もので、前述のように構成されたICカード11を受入れ、
そのICカード11に対してデータの読出しおよび書込みを
行なうカードリーダ・ライタ12、エリア定義情報などを
入力するキーボード13、入力情報などを表示するCRTデ
ィスプレイ装置14、入力されたエリア定義情報の一時記
憶などに用いられるフロッピィディスク装置15、プリン
タ16、これらの制御を司るCPUなどからなる制御部17に
よって構成されている。FIG. 3 shows an example of the configuration of the IC card issuing device according to the present invention, which accepts the IC card 11 configured as described above,
A card reader / writer 12 for reading and writing data to the IC card 11, a keyboard 13 for inputting area definition information, a CRT display device 14 for displaying input information, temporary storage of input area definition information A floppy disk device 15 used for the above, a printer 16, and a control unit 17 including a CPU that controls these devices.
次に、このような構成において本発明のメモリエリア定
義方式を詳細に説明する。まず、エリア定義を行なうた
めのICカード11をカードリーダ・ライタ12にセットす
る。次に、キーボード13からエリア定義情報、すなわち
エリア番号、エリアの先頭アドレスおよびエリアサイズ
を順次入力し、制御部17の制御のもとにフロッピィディ
スク装置15に一時記憶せしめる。こうして、エリア定義
情報を全て入力し終わると、キーボード13からエリア定
義開始命令を入力することにより、制御部17はICカード
11に対してエリア定義情報入力命令データを送り、続い
てフロッピィディスク装置15内のエリア定義情報をエリ
アごとに順次ICカード11に送る。Next, the memory area defining method of the present invention having such a configuration will be described in detail. First, the IC card 11 for defining the area is set in the card reader / writer 12. Next, the area definition information, that is, the area number, the area start address, and the area size are sequentially input from the keyboard 13, and temporarily stored in the floppy disk device 15 under the control of the control unit 17. When all area definition information has been input in this way, the controller 17 inputs an area definition start command from the keyboard 13
Area definition information input command data is sent to 11, and then area definition information in the floppy disk device 15 is sequentially sent to the IC card 11 for each area.
ICカード11では、第1図に示すフローチャートにしたが
って動作する。すなわち、制御素子1がエリア定義情報
入力命令データを受取ると、それに続いて送られてくる
エリア定義情報、すなわちエリア番号、エリアの先頭ア
ドレスおよびエリアサイズを順次受入れ、内蔵するRAM
に一時記憶する。そして、エリア定義情報を全て受入れ
ると、制御素子1は発行命令データ待ち状態となる。こ
の状態で、カードリーダ・ライタ12から発行命令データ
が入力されると、制御素子1はRAM内のエリア定義情報
により各エリアの正当性を確認する。すなわち、制御部
17は、フロッピィディスク装置15内のエリア定義情報を
全てICカード11に転送し終わると、ICカード11に対して
発行命令データを送る。発行命令データを受取ると、制
御素子1はRAM内のエリア定義情報により、対象となる
エリアの次に定義されるエリアの先頭アドレス(A+
1)から対象となるエリアの先頭アドレス(A)を減算
して、対象となるエリアのサイズを算出する。そして、
この算出したエリアサイズをRAM内の対象となるエリア
のサイズと比較し、両エリアサイズが一致しているか、
あるいは算出したエリアサイズの方が大であれば正当で
あると判断し、算出したエリアサイズの方が小であれば
不当(エリアの重複定義)であると判断する。不当であ
ると判断すると、制御素子1はエリア定義エラーを意味
する応答データをカードリーダ・ライタ12を介して制御
部17へ送り、エリア定義動作を終了する。制御部17で
は、エリア定義エラーを意味する応答データを受取る
と、その旨をCRTディスプレイ装置14で表示し、オペレ
ータに報知する。The IC card 11 operates according to the flowchart shown in FIG. That is, when the control element 1 receives the area definition information input command data, the area definition information sent subsequently thereto, that is, the area number, the area start address and the area size are sequentially received, and the built-in RAM
Temporarily store in. Then, when all the area definition information is received, the control element 1 enters a waiting state for issue command data. When the issuing command data is input from the card reader / writer 12 in this state, the control element 1 confirms the legitimacy of each area by the area definition information in the RAM. That is, the control unit
When the transfer of all the area definition information in the floppy disk device 15 to the IC card 11 is completed, 17 sends issue command data to the IC card 11. Upon receiving the issue command data, the control element 1 uses the area definition information in the RAM to start the address (A +) of the area defined next to the target area.
The start address (A) of the target area is subtracted from 1) to calculate the size of the target area. And
Compare the calculated area size with the size of the target area in RAM and see if both area sizes match.
Alternatively, if the calculated area size is larger, it is determined to be valid, and if the calculated area size is smaller, it is determined to be invalid (duplication definition of area). If the control element 1 determines that it is not valid, it sends response data indicating an area definition error to the control unit 17 via the card reader / writer 12 and ends the area definition operation. When the control unit 17 receives the response data indicating the area definition error, the control unit 17 displays the fact on the CRT display device 14 to notify the operator.
正当であると判断すると、制御素子15は次のエリアに対
するチェックを上記同様に行なう。こうして、各エリア
ごとにエリア定義情報を順次チェックし、全てのエリア
が正当であると判断すると、制御素子1はRAM内の各エ
リア定義情報をデータメモリ2のディレクトリエリア22
に順次書込む。そして、全てのエリア定義情報を書込む
と、制御素子1は発行フラグをセット(データメモリ2
の発行フラグエリア21にディレクトリエリア書込み済デ
ータを記憶)し、エリア定義終了を意味する応答データ
をカードリーダ・ライタ12を介して制御部17へ送り、エ
リア定義動作を終了する。これでエリア定義が終了し、
その結果、データメモリ2のディレクトリエリア22は、
たとえば第2図(b)に示すようにエリア定義情報が記
憶された状態となり、これらエリア定義情報によってデ
ータエリア23が複数のエリアに分割定義される。If it is determined to be valid, the control element 15 checks the next area in the same manner as above. In this way, the area definition information is sequentially checked for each area, and when it is determined that all areas are valid, the control element 1 transfers the area definition information in the RAM to the directory area 22 of the data memory 2.
Write in sequence. When all area definition information is written, the control element 1 sets the issue flag (data memory 2
The directory area written data is stored in the issuance flag area 21), the response data indicating the end of area definition is sent to the control unit 17 via the card reader / writer 12, and the area definition operation is completed. This completes the area definition,
As a result, the directory area 22 of the data memory 2 becomes
For example, as shown in FIG. 2B, the area definition information is stored, and the data area 23 is divided and defined by the area definition information.
このように、ディレクトリエリアに定義記憶する前に、
各エリアの先頭アドレスとエリアサイズにより各エリア
の正当性を確認し、正当な場合にのみ各エリアの先頭ア
ドレスとエリアサイズを各エリア定義情報としてディレ
クトリエリアに定義記憶することにより、複数のエリア
を重複して定義することを未然に防止できる。In this way, before storing the definition in the directory area,
The validity of each area is confirmed by the start address and area size of each area, and only when it is valid, the start address and area size of each area are defined and stored as the area definition information in the directory area, and multiple areas can be stored. It is possible to prevent duplicate definitions.
[発明の効果] 以上詳述したように本発明によれば、複数のエリアを重
複して定義することを未然に防止できる携帯可能電子装
置のメモリエリア定義方式を提供できる。[Effects of the Invention] As described in detail above, according to the present invention, it is possible to provide a memory area definition method for a portable electronic device that can prevent a plurality of areas from being redundantly defined.
図は本発明の一実施例を説明するためのもので、第1図
はICカードのエリア定義動作を説明するフローチャー
ト、第2図(a)はデータメモリの構成図、第2図
(b)はエリア定義終了後のデータメモリの状態を示す
図、第3図はICカード発行装置の構成を示すブロック
図、第4図はICカードの構成を示すブロック図である。 1……制御素子(制御部)、2……データメモリ(デー
タメモリ部)、3……プログラムメモリ(プログラムメ
モリ部)、21……発行フラグエリア、22……ディレクト
リエリア、23……データエリア、11……ICカード(携帯
可能電子装置)、12……カードリーダ・ライタ、13……
キーボード、17……制御部。FIG. 1 is for explaining one embodiment of the present invention. FIG. 1 is a flow chart for explaining an area defining operation of an IC card, FIG. 2 (a) is a configuration diagram of a data memory, and FIG. 2 (b). Is a diagram showing the state of the data memory after the area definition is completed, FIG. 3 is a block diagram showing the configuration of the IC card issuing device, and FIG. 4 is a block diagram showing the configuration of the IC card. 1 ... Control element (control section), 2 ... Data memory (data memory section), 3 ... Program memory (program memory section), 21 ... Issuing flag area, 22 ... Directory area, 23 ... Data area , 11 …… IC card (portable electronic device), 12 …… Card reader / writer, 13 ……
Keyboard, 17 ... control unit.
Claims (6)
対してデータの読出しおよび書込みを行なうための制御
部を有し、選択的に外部からの入出力を行なう携帯可能
電子装置において; 前記データメモリ部を各エリアの先頭位置情報とエリア
サイズにより複数のエリアに分割定義する携帯可能電子
装置のメモリエリア定義方式であって; 前記各エリアの先頭位置情報とエリアサイズとにより各
エリアの正当性を確認し、正当な場合にのみ前記各エリ
アの先頭位置情報とエリアサイズとを各エリア定義情報
として定義記憶することを特徴とする携帯可能電子装置
のメモリエリア定義方式。1. A portable electronic device having a data memory section and a control section for reading and writing data from and to the data memory section, and selectively carrying out external input / output. A memory area defining method for a portable electronic device, wherein a memory unit is divided into a plurality of areas and defined according to head position information and area size of each area; and legitimacy of each area based on the head position information and area size of each area. Is confirmed and the head position information and area size of each area are defined and stored as each area definition information only when it is valid.
るか否かの確認であることを特徴とする特許請求の範囲
第1項記載の携帯可能電子装置のメモリエリア定義方
式。2. The method for defining a memory area of a portable electronic device according to claim 1, wherein the confirmation of validity is confirmation as to whether or not the areas overlap.
先頭位置情報とその次に続くエリアの先頭位置情報とか
ら対象となるエリアのサイズを算出し、入力された対象
となるエリアサイズと比較することにより行なうことを
特徴とする特許請求の範囲第1項記載の携帯可能電子装
置のメモリエリア定義方式。3. The correctness is confirmed by calculating the size of the target area from the start position information of the target area and the start position information of the next succeeding area, and inputting the target area size. The method for defining a memory area of a portable electronic device according to claim 1, wherein the method is performed by comparing
アドレスであることを特徴とする特許請求の範囲第1項
記載の携帯可能電子装置のメモリエリア定義方式。4. The memory area defining method for a portable electronic device according to claim 1, wherein the head position information of the area is a head address of the area.
ることを特徴とする特許請求の範囲第1項記載の携帯可
能電子装置のメモリエリア定義方式。5. The method for defining a memory area of a portable electronic device according to claim 1, wherein the data memory unit is a non-volatile memory.
とを特徴とする特許請求の範囲第1項記載の携帯可能電
子装置のメモリエリア定義方式。6. The method for defining a memory area of a portable electronic device according to claim 1, wherein the portable electronic device is an IC card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62029745A JPH0693255B2 (en) | 1987-02-13 | 1987-02-13 | Memory area definition method for portable electronic devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62029745A JPH0693255B2 (en) | 1987-02-13 | 1987-02-13 | Memory area definition method for portable electronic devices |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63198185A JPS63198185A (en) | 1988-08-16 |
JPH0693255B2 true JPH0693255B2 (en) | 1994-11-16 |
Family
ID=12284635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62029745A Expired - Lifetime JPH0693255B2 (en) | 1987-02-13 | 1987-02-13 | Memory area definition method for portable electronic devices |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0693255B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3015376B2 (en) * | 1988-08-26 | 2000-03-06 | 株式会社東芝 | IC card |
-
1987
- 1987-02-13 JP JP62029745A patent/JPH0693255B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPS63198185A (en) | 1988-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2854636B2 (en) | Apparatus and method for issuing portable medium | |
JP2856393B2 (en) | Portable electronic devices | |
JPH0758500B2 (en) | Portable electronic device | |
JPH021090A (en) | Ic card and method for writing its operation program | |
JP3110035B2 (en) | Portable electronic devices | |
JP2557838B2 (en) | IC card | |
JP2651426B2 (en) | IC card | |
JPH0693255B2 (en) | Memory area definition method for portable electronic devices | |
EP1675073A2 (en) | Certification medium issue system and certification medium issue method | |
JPH0416832B2 (en) | ||
KR910002448B1 (en) | Portabel electronic device | |
JPS63198183A (en) | Memory area defining system for portable electronic equipment | |
JPS61211788A (en) | Ic card | |
JPH05100961A (en) | Data storage system | |
JPS63198184A (en) | Memory area defining system for portable electronic equipment | |
JP2609645B2 (en) | Portable electronic devices | |
JP2598056B2 (en) | Portable electronic devices | |
JP3054119B2 (en) | Portable electronic devices | |
JPH0693252B2 (en) | Portable electronic device initialization device | |
JP2798957B2 (en) | Portable electronic devices | |
JPH01223586A (en) | Ic card testing system | |
JP3209994B2 (en) | Portable electronic devices | |
JP3015376B2 (en) | IC card | |
JPH0693254B2 (en) | Portable electronic device | |
JPH06309528A (en) | Ic card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |