JPH01134689A - Portable electronic device - Google Patents

Portable electronic device

Info

Publication number
JPH01134689A
JPH01134689A JP62293159A JP29315987A JPH01134689A JP H01134689 A JPH01134689 A JP H01134689A JP 62293159 A JP62293159 A JP 62293159A JP 29315987 A JP29315987 A JP 29315987A JP H01134689 A JPH01134689 A JP H01134689A
Authority
JP
Japan
Prior art keywords
data
memory
address
rewritten
electronic device
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
JP62293159A
Other languages
Japanese (ja)
Inventor
Tetsuo Tateno
舘野 哲夫
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.)
Toshiba Corp
Toshiba Intelligent Technology Co Ltd
Original Assignee
Toshiba Corp
Toshiba Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba Intelligent Technology Co Ltd filed Critical Toshiba Corp
Priority to JP62293159A priority Critical patent/JPH01134689A/en
Publication of JPH01134689A publication Critical patent/JPH01134689A/en
Pending legal-status Critical Current

Links

Classifications

    • B60W2550/142

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

PURPOSE:To prevent an erroneous rewriting or a deleting and to protect data without fail by adding information to identify whether the data can be rewritten or deleted to the data when the data are written to a memory part. CONSTITUTION:When the initial writing of the data is executed, according to a format to be composed of a data length 21, a head address 22, identifying information 23 and data 24, a data (a), for example, are written from a '0000' address with using a control element 11. At such a time, when a data length A from the head address '0000' to the data (a) is the data to be indispensable on the function of an IC card, the identifying element of '0', for example is added to the identifying information 23 so that the rewriting and deleting can not be executed and the data (a) are protected by the information 23. Next, when data (b), for example, are written from a '0010' address with the data length as B by using the element 11, a '1' identifying element is set to the information 23 in case that these data are rewritable and deletable data. Then, concerning following data (c) and (d), the writing is executed in such a way.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、たとえば不揮発性のデータメモリおよびCP
Uなどの制御素子を有するIC(集積回路)チップを内
蔵した、いわゆるICカードと称される携帯可能電子装
置に関する。
Detailed Description of the Invention [Object of the Invention] (Industrial Application Field) The present invention is applicable to non-volatile data memory and CPU
The present invention relates to a portable electronic device called an IC card, which has a built-in IC (integrated circuit) chip having a control element such as a U.

(従来の技術) 最近、新たな携帯可能なデータ記憶媒体として、不揮発
性のデータメモリ(メモ・す部)およびCPUなどの制
御素子(制御部)を有するICチップを内蔵したICカ
ードが開発されている。この種のICカードは、内蔵す
る制御素子によって内蔵するデータメモリをアクセスし
、外部装置からの要求に応じて必要なデータの入出力を
行なう。
(Prior Art) Recently, as a new portable data storage medium, an IC card with a built-in IC chip that has a non-volatile data memory (memo section) and a control element (control section) such as a CPU has been developed. ing. This type of IC card accesses a built-in data memory using a built-in control element, and performs input/output of necessary data in response to a request from an external device.

また、データメモリは複数のエリアに分割されており、
選択的に対象エリアとのアクセスを行なうようになって
いる。
In addition, the data memory is divided into multiple areas.
It is designed to selectively access the target area.

さて、このようなICカードにおいて、データメモリか
らデータを読出す場合、外部装置から、そのデータが記
憶されているアドレスとデータ長を設定することにより
、データを読・出すようになっている。また、データメ
モリにデータを書込む場合、外部装置から記憶したいア
ドレスとデータを与えることにより、データを書込むよ
うになっている。ここで、既存データの書換えあるいは
消去を行なう際、データの識別情報としてはアドレスと
データ長であるため、誤ってアドレスを設定したり、あ
るいは既存データの範囲を越えてデータ長を設定すると
、データを破壊してしまうという問題があった。
Now, in such an IC card, when reading data from the data memory, the data is read out by setting the address where the data is stored and the data length from an external device. Furthermore, when writing data to the data memory, the data is written by giving an address and data to be stored from an external device. When rewriting or erasing existing data, the data identification information is the address and data length, so if you set the address incorrectly or set the data length beyond the range of the existing data, the data The problem was that it destroyed the .

(発明が解決しようとする問題点) 本発明は、上記したようにメモリ部内のデータを誤って
書換えたり消去したりし、データを保護することができ
ないという問題点を解決すべくなされたもので、メモリ
部内のデータを誤って書換えたり消去したりすることを
防止でき、データを確、実に保護することができる携帯
可能電子装置を提供することを目的とする。
(Problems to be Solved by the Invention) The present invention has been made in order to solve the above-mentioned problem in which the data in the memory section is accidentally rewritten or erased and the data cannot be protected. An object of the present invention is to provide a portable electronic device that can prevent data in a memory section from being erroneously rewritten or erased, and can reliably and securely protect data.

[発明の構成] (問題点を解決するための手段) 本発明の携帯可能電子装置は、メモリ部に対してデータ
を書込む際、そのデータにそのデータが書換えあるいは
消去が可能であるか否かを示す識別情報を付加する手段
を具備している。
[Structure of the Invention] (Means for Solving the Problems) The portable electronic device of the present invention, when writing data to a memory section, determines whether the data can be rewritten or erased. The device is equipped with means for adding identification information indicating the identity of the user.

(作用) メモリ部に対してデータを書込む際、そのデータにその
データが書換えあるいは消去が可能であるか否かを示す
識別情報を付加することにより、データの書換えあるい
は消去を行なう際、そのデータ部に付加されている識別
情報を参照することにより、データを誤って書換えたり
、あるいは消去したりすることを防止でき、データを確
実に保護することができる。
(Function) When writing data to the memory section, by adding identification information indicating whether or not the data can be rewritten or erased, the data can be rewritten or erased. By referring to the identification information added to the data section, it is possible to prevent the data from being erroneously rewritten or erased, and the data can be reliably protected.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第4図は本発明に係る携帯可能電子装置としてのICカ
ードの構成を概略的に示すもので、制御部としての制御
素子(たとえばCPU)11、消去可能な不揮発性のデ
ータメモリ(メモリ部)12、プログラムメモリ13、
および図示しない端末装置などと電気的に通信するため
のコンタクト部14によって構成されており、これらの
うち破線内の部分(制御素子11、データメモリ12、
プログラムメモリ13)は、1つのICチップ(あるい
は複数のICチップ)で構成されてICカード本体内に
埋設されている。プログラムメモリ13は、たとえばマ
スクROMで構成されており、制御素子11の制御プロ
グラムなどを記憶するものである。データメモリ12は
各種データの記憶に使用され、たとえばEEPROMで
構成されている。
FIG. 4 schematically shows the configuration of an IC card as a portable electronic device according to the present invention, including a control element (for example, a CPU) 11 as a control section, and an erasable nonvolatile data memory (memory section). 12, program memory 13,
and a contact section 14 for electrically communicating with a terminal device (not shown), among which the portion within the broken line (control element 11, data memory 12,
The program memory 13) is composed of one IC chip (or a plurality of IC chips) and is embedded within the IC card body. The program memory 13 is composed of, for example, a mask ROM, and stores a control program for the control element 11 and the like. The data memory 12 is used to store various data, and is composed of, for example, an EEPROM.

データメモリ12は、たとえば第2図に示すように複数
のエリアに分割されていて、それぞれのエリアは複数の
データブロック20.・・・が集まって定義されている
。1つのデータブロック20は、たとえば第1図にフォ
ーマットを示すように、先頭アドレスからデータ部まで
の長さを示すデータ長21、先頭アドレス22、書換え
および消去が可能か否かを示す識別情報23、およびデ
ータ24から構成されている。
The data memory 12 is divided into a plurality of areas, as shown in FIG. 2, for example, and each area has a plurality of data blocks 20. ...are collectively defined. One data block 20 has a format, for example, as shown in FIG. 1, including a data length 21 indicating the length from the start address to the data section, a start address 22, and identification information 23 indicating whether rewriting and erasing are possible. , and data 24.

このような構成においてデータの初期書込み動作につい
て説明する。第1図のフォーマットにしたがって、制御
索子11は例えばデータaをro O00J番地から書
込む。この際、第2図のように先頭アドレスr0000
J番地からデータaまでのデータ長をrAJとし、デー
タaは本ICカードの機能上、不可欠なデータであるた
め書換えおよび消去ができないように、識別情報23に
例えば“0“という識別子をセットする。
The initial data write operation in such a configuration will be explained. According to the format shown in FIG. 1, the control module 11 writes data a, for example, from address ro O00J. At this time, as shown in Figure 2, the first address r0000
The data length from address J to data a is rAJ, and since data a is essential for the functionality of this IC card, an identifier such as "0" is set in the identification information 23 so that it cannot be rewritten or erased. .

したがって、データaは、この識別情報23によって保
護が可能となる。
Therefore, data a can be protected by this identification information 23.

次に、制御素子11は例えばデータbを「0010」番
地から書込む。この際、第2図のように先頭アト、レス
ro 010J番地からデータbまでのデータ長をrB
Jとし、データbは本ICカードの用途により自由に設
定可能なデータとするため、データの書換えおよび消去
が可能なように、識別情報23に例えば“1′という識
別子をセットする。したがって、データbは、この識別
情報23によって自由に書換えおよび消去が可能となる
Next, the control element 11 writes, for example, data b from address "0010". At this time, as shown in Figure 2, the data length from the first address, address ro 010J to data b is rB.
J, and data b can be set freely depending on the use of this IC card, so an identifier such as "1" is set in the identification information 23 so that the data can be rewritten and erased. b can be freely rewritten and erased using this identification information 23.

データc、dについても第1図のフォーマットにしたが
って第2図のように格納し、これらのデータか集合する
ことで1つのエリアが定義されたことになる。
Data c and d are also stored as shown in FIG. 2 according to the format shown in FIG. 1, and one area is defined by collecting these data.

次に、データの書換えあるいは消去動作について説明す
る。制御素子11は、たとえば第3図に示すエリア1の
うち、データaを書換えようと、−度データaを読出し
た後、そのデータaのデータ長および先頭アドレスにし
たがい、書換用のデータa′を図示しない外部の端末装
置から受入れ、内蔵するRAM (図示しない)に−時
記憶する。
Next, a data rewriting or erasing operation will be explained. For example, in order to rewrite data a in area 1 shown in FIG. 3, control element 11 reads out data a, and then writes data a' for rewriting according to the data length and start address of data a. is received from an external terminal device (not shown) and stored in a built-in RAM (not shown).

そして、制御素子11は、データメモリ12内における
データaの識別情報23により、データの書換えおよび
消去の判断を行なう。データaにおいては、識別情報2
3は“0″、すなわちデータの書換えおよび消去が不可
となっているため、制御素子11は書換えおよび消去不
可の旨を示す応答データを端末装置へ送信し、データa
はそのままの状態を維持する。
Then, the control element 11 determines whether to rewrite or erase the data based on the identification information 23 of the data a in the data memory 12. In data a, identification information 2
3 is "0", that is, data cannot be rewritten or erased. Therefore, the control element 11 transmits response data indicating that rewriting and erasing are not possible to the terminal device, and data a
remains as it is.

次に、データb′を前述したデータa′ と同様な手法
により、データbとの書換え動作を行なう。
Next, data b' is rewritten with data b using the same method as data a' described above.

この場合、制御素子11は、データbの識別情報23は
“1”、すなわちデータの書換えおよび消去が可能とな
っているため、書換えおよび消去可能と判断し、RAM
に記憶しておいたデータb′をデータbが格納されてい
るro 010J番地から上古きする(書換えを行なう
)。
In this case, since the identification information 23 of data b is "1", that is, the data can be rewritten and erased, the control element 11 determines that the data can be rewritten and erased, and
The data b' stored in the memory is updated (rewritten) starting from address ro 010J where data b is stored.

また、データの消去動作においても、制御素子11は消
去しようとするデータの識別情報23を参照することに
より判断し、処理の決定を行なう。
Also, in the data erasing operation, the control element 11 makes a judgment by referring to the identification information 23 of the data to be erased, and determines the processing.

このように、データメモリにデータを書込む際、そのデ
ータにそのデータが書換えあるいは消去が可能であるか
否かを示す識別情報を付加することにより、データの書
換えあるいは消去を行なう際、そのデータタに付加され
ている識別情報を参照することにより、データを誤って
書換えたり、あるいは消去したりすることを防止でき、
データを確実に保護することができる。
In this way, when writing data to the data memory, by adding identification information to the data that indicates whether the data can be rewritten or erased, the data can be easily rewritten or erased. By referring to the identification information added to the data, it is possible to prevent data from being accidentally rewritten or deleted.
Data can be reliably protected.

なお、前記実施例では、携帯可能電子装置としてICカ
ードを例示したが、本発明はカード状のものに限定され
るものでなく、たとえばブロック状あるいはペンシル状
のものでもよい。
In the above embodiment, an IC card is used as an example of a portable electronic device, but the present invention is not limited to a card-shaped device, and may be a block-shaped or pencil-shaped device, for example.

[発明の効果] 以上詳述したように本発明によれば、メモリ部内のデー
タを誤って書換えたり消去したりすることを防止でき、
データを確実に保護することができる携帯可能電子装置
を提供できる。
[Effects of the Invention] As detailed above, according to the present invention, it is possible to prevent data in the memory section from being erroneously rewritten or erased;
A portable electronic device that can reliably protect data can be provided.

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

図は本発明の一実施例を説明するためのもので、第1図
はデータメモリに書込む際のデータブロックのフォーマ
ット例を示す図、第2図はデータメモリの構成およびデ
ータ書込み例を説明するための図、第3図はデータメモ
リのデータ書換え例を説明するための図、第4図はIC
カードの構成を概略的に示すブロック図である。 11・・・・・・制御素子(制御部)、12・・・・・
・データメモリ (メモリ部)、13・・・・・・プロ
グラムメモリ、20・・・・・・データブロック、21
・・・・・・データ長、22・・・・・・先頭アドレス
、23・・・・・・識別情報、24・・・・・・データ
。 出願人代理人 弁理士 鈴江武彦
The figures are for explaining one embodiment of the present invention. Figure 1 is a diagram showing an example of the format of a data block when writing to the data memory, and Figure 2 is a diagram explaining the configuration of the data memory and an example of data writing. 3 is a diagram for explaining an example of rewriting data in data memory, and FIG. 4 is a diagram for explaining an example of data rewriting of data memory.
FIG. 2 is a block diagram schematically showing the configuration of a card. 11... Control element (control unit), 12...
・Data memory (memory section), 13...Program memory, 20...Data block, 21
...Data length, 22...Start address, 23...Identification information, 24...Data. Applicant's agent Patent attorney Takehiko Suzue

Claims (3)

【特許請求の範囲】[Claims] (1)データを記憶するメモリ部と、このメモリ部に対
してデータの読出しおよび書込みを行なうための制御部
を有し、選択的に外部からの入出力を行なう携帯可能電
子装置であって;前記メモリ部に対してデータを書込む
際、そのデータにそのデータが書換えあるいは消去が可
能であるか否かを示す識別情報を付加する手段を具備し
たことを特徴とする携帯可能電子装置。
(1) A portable electronic device that has a memory section for storing data and a control section for reading and writing data to the memory section, and selectively performs input/output from the outside; A portable electronic device characterized by comprising means for adding identification information indicating whether or not the data can be rewritten or erased to the data when writing data to the memory section.
(2)前記メモリ部は不揮発性メモリであることを特徴
とする特許請求の範囲第1項記載の携帯可能電子装置。
(2) The portable electronic device according to claim 1, wherein the memory section is a nonvolatile memory.
(3)前記制御部はCPU(セントラル・プロセッシン
グ・ユニット)であることを特徴とする特許請求の範囲
第1項記載の携帯可能電子装置。
(3) The portable electronic device according to claim 1, wherein the control section is a CPU (Central Processing Unit).
JP62293159A 1987-11-20 1987-11-20 Portable electronic device Pending JPH01134689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62293159A JPH01134689A (en) 1987-11-20 1987-11-20 Portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62293159A JPH01134689A (en) 1987-11-20 1987-11-20 Portable electronic device

Publications (1)

Publication Number Publication Date
JPH01134689A true JPH01134689A (en) 1989-05-26

Family

ID=17791183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62293159A Pending JPH01134689A (en) 1987-11-20 1987-11-20 Portable electronic device

Country Status (1)

Country Link
JP (1) JPH01134689A (en)

Similar Documents

Publication Publication Date Title
JPH0758500B2 (en) Portable electronic device
JPS62190584A (en) Portable electronic device
JPH01134689A (en) Portable electronic device
JPH01263892A (en) Portable electronic device
JPS5971180A (en) Information processing method in ic card
JP2004348342A (en) Ic card and method for processing ic card
JPS61211788A (en) Ic card
JP7322923B2 (en) Secure element, transaction control method and device
JP3168572B2 (en) IC card with CPU runaway detection function
JP2609645B2 (en) Portable electronic devices
JP2537200B2 (en) Portable electronic devices
JP2598056B2 (en) Portable electronic devices
JP2798957B2 (en) Portable electronic devices
JPS63200399A (en) Data processing system
JPS62289999A (en) Data writing method
JP2752074B2 (en) Data storage method for portable electronic device
JP4026796B2 (en) IC card with command distribution function
JP2538906B2 (en) IC card
JPH01166280A (en) Portable electronic equipment
JPH0426923Y2 (en)
JP2675563B2 (en) Portable electronic devices
JP3054119B2 (en) Portable electronic devices
JP2537198B2 (en) Portable electronic devices
JPS6382533A (en) Portable electronic equipment
JPH01119890A (en) Portable electronic device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Effective date: 20050622

Free format text: JAPANESE INTERMEDIATE CODE: A131

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050622

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050815

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20060419

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060508

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees