JPS63239582A - Portable electronic device - Google Patents
Portable electronic deviceInfo
- Publication number
- JPS63239582A JPS63239582A JP62073323A JP7332387A JPS63239582A JP S63239582 A JPS63239582 A JP S63239582A JP 62073323 A JP62073323 A JP 62073323A JP 7332387 A JP7332387 A JP 7332387A JP S63239582 A JPS63239582 A JP S63239582A
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- data
- address
- memory
- access
- 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
Links
- 230000004044 response Effects 0.000 claims description 2
- 230000037430 deletion Effects 0.000 claims 1
- 238000012217 deletion Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 241000862969 Stella Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Credit Cards Or The Like (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
この発明は、例えばメモリや制御回路等からなる集積回
路を内蔵した所ffIcカードと称する携帯可能電子装
置に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a portable electronic device called an ffIc card, which has a built-in integrated circuit consisting of, for example, a memory and a control circuit.
(従来の技術)
周知のように、記憶装置に情報を書込む場合は、層込み
対象となる記憶装置の番地を示す指示情報としてのポイ
ンタの内容を、第5図に示すような動作によって、所要
の目的番地に設定し、この状態において、第6図に示す
ようにして情報の書込みが行われる。また、次の情報を
書込む場合は、同様にして前記ポインタの内容を次の目
的番地に設定した状態で書込み動作が実行される。(Prior Art) As is well known, when writing information to a storage device, the contents of a pointer as instruction information indicating the address of the storage device to be layered are changed by the operation shown in FIG. A required destination address is set, and in this state, information is written as shown in FIG. Furthermore, when writing the next information, the write operation is similarly executed with the contents of the pointer set to the next destination address.
こうように、従来は、自込み等のアクセス動作を行う場
合は、先ず、ポインタ1111211の命令を11 m
部に供給してポインタの内容を目的の番地に設定し、こ
の後、書込み命令を制一部に供給して情報の書込み動作
を行うようにしている。したがって、情報の書込み動作
を行おうとする場合、その都度ポインタ制御の命令を制
御部に供給する必要があり、自込むべき情報が多い場合
、プログラムの作成が煩雑となり、処理時間も長くなる
ものであった。In this way, conventionally, when performing an access operation such as self-inclusion, first the instruction of the pointer 1111211 is
The control section is supplied with a write command to set the contents of the pointer to the target address, and then a write command is supplied to the control section to perform an information write operation. Therefore, when writing information, it is necessary to supply a pointer control command to the control unit each time, and if there is a lot of information to be written, creating a program becomes complicated and the processing time increases. there were.
(発明が解決しようとする問題点)
この発明は、アクセス命令を実行する毎にポインタを制
御する命令を実行しなければならないことによるプログ
ラムの煩雑化、処理時間の遅延に関する問題を解決する
ものであり、その目的とするところは、プログラムの作
成が容易で、処理速度を^速比することが可能な携帯可
能電子装置を提供しようとするものである。(Problems to be Solved by the Invention) This invention solves the problems of program complexity and processing time delays caused by having to execute an instruction to control a pointer every time an access instruction is executed. The purpose is to provide a portable electronic device that is easy to program and can increase processing speed.
[発明の構成]
(問題点を解決す8ための手段)
この発明は、任意の情報が記憶される記憶手段と、この
記憶手段のアドレスを指示する指示手段と、前記記憶手
段に対するアクセス命令に応じて前記指示手段によって
指示されたアドレスにアクセスを行ない、このアクセス
終了後、前記指示手段を次にアクセスすべきアドレスに
自動的に設定する制御手段とから構成されている。[Structure of the Invention] (Means for Solving Problem 8) This invention provides a storage means for storing arbitrary information, an instruction means for instructing an address of the storage means, and an access command for the storage means. In response, the address specified by the instruction means is accessed, and after the access is completed, the control means automatically sets the instruction means to the next address to be accessed.
(作用)
この発明は、記憶手段に対するアクセス命令が供給され
た場合、アクセス動作を行ない、この後、自動的に次に
アクセスすべきアドレスを指示手段に設定することによ
り、アクセス命令を出す毎に指示手段の内容を更新する
命令を出す必要をなくしている。(Operation) This invention performs an access operation when an access command to the storage means is supplied, and then automatically sets the next address to be accessed in the instruction means, so that each time an access command is issued, This eliminates the need to issue a command to update the contents of the instruction means.
(実施例)
以下、この発明の一実施例について図面を参照して説明
する。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.
第3図は、携帯可能電子装置としてのICカードが適用
されるカード取扱装置を示すものであり、このカード取
扱装置は、例えば金融システム、あるいはショッピング
システムなどの端末装置として使用される。この装置は
ICカード1が装着されるカードリーダ・ライタ2、こ
のカードリーダ・ライタ2を介してICカード1と情報
の授受を行う制御部3、この制御部3に接続されたキー
ボード4、CRTディスプレイ装置5、プリンタ6およ
びフロッピーディスク装@7から構成されている。FIG. 3 shows a card handling device to which an IC card as a portable electronic device is applied, and this card handling device is used as a terminal device in, for example, a financial system or a shopping system. This device includes a card reader/writer 2 into which an IC card 1 is attached, a control unit 3 that exchanges information with the IC card 1 via the card reader/writer 2, a keyboard 4 connected to the control unit 3, and a CRT. It consists of a display device 5, a printer 6, and a floppy disk device @7.
第4図は上記ICカード1の構成を示すものである。こ
のICカード1は、制御部(CPU)としての制御素子
11、必要なデータが記憶され、記憶内容が消去可能な
不揮発性のデータメモリ12、プログラムが記憶される
プログラムメモリ13、および前記カードリーダ・ライ
タ2どの電気的接触を因るためのコンタクト部14によ
って構成されている。これらのうち、破線内の副部素子
11、データメモリ12、プログラムメモリ13は1つ
の■Cチップによって構成されており、ICカード1内
に埋設されている。FIG. 4 shows the structure of the IC card 1. As shown in FIG. This IC card 1 includes a control element 11 as a control unit (CPU), a nonvolatile data memory 12 in which necessary data is stored and whose storage contents can be erased, a program memory 13 in which programs are stored, and the card reader. - Consists of a contact portion 14 for making electrical contact with the lighter 2. Of these, the sub-element 11, data memory 12, and program memory 13 within the broken line are constituted by one C chip, and are embedded in the IC card 1.
次に、この発明の要旨について説明する。Next, the gist of the invention will be explained.
第2図は、ICカード1の制御素子11によって行われ
る、ブロックデータ(一連の連続データ)の書込み動作
の一例を示すものである。FIG. 2 shows an example of a write operation of block data (a series of continuous data) performed by the control element 11 of the IC card 1. As shown in FIG.
同図において、ステップSTIは書込みルーチン(命令
)であり、この書込みルーチンにはパラメータとして、
自込むべきデータ数が設定され、このデータ数に従って
データの書込み動作が行われる。この動作が終了した場
合、ステップST2で書込み動作が正常に行われたか否
かが判別され、異常終了の場合は、ブロックデータの書
込み動作が終了される。また、正常終了の場合は、ステ
ップST3において、全データの書込みが終了したか否
かが判別され、終了していない場合は、ステップST4
において、ポインタ制御ルーチン(命令)が動作される
。このポインタ制御ルーチンは、前述した第5図に示す
ものであり、この動作が終了した場合、ステップST5
において、このポインタ制御ルーチンの動作が正常に行
われたか否かが判別される。この結果、異常終了の場合
は、処理が終了され、正常終了の場合
は、前記ステップST1の動作が実行される。そして、
全てのデータの書込が終了した状態において、書込み処
理が終了される。In the same figure, step STI is a write routine (command), and this write routine has parameters as
The number of data to be written is set, and the data write operation is performed according to this number of data. When this operation is completed, it is determined in step ST2 whether the write operation was performed normally or not, and if the write operation is abnormally completed, the block data write operation is ended. In addition, in the case of normal termination, it is determined in step ST3 whether or not writing of all data has been completed, and if not completed, step ST4
At , a pointer control routine (instruction) is operated. This pointer control routine is shown in FIG. 5 mentioned above, and when this operation is completed, step ST5 is executed.
At this point, it is determined whether or not the pointer control routine has operated normally. As a result, in the case of abnormal termination, the process is terminated, and in the case of normal termination, the operation of step ST1 is executed. and,
The write process ends when all data has been written.
第1図は、前記ステップSTIの書込みルーチンを示す
ものである。この書込みルーチンでは、ステップ5T1
1において、1データの書込み動作が行われ、この書込
み動作が終了するとステップ5T12において、書込み
動作が正常に終了したか否かが判別される。この結果、
異常終了している場合は、υ111が前記ステップST
2に移行され、正常終了している場合は、ステップ5T
13において、前記設定されたデータ数の全データの書
込みが終了したか否かが判別される。この結果、残りの
データがある場合は、ステップ5T14において、ポイ
ンタの制御動作が行われポインタが歩進される。この後
、ステップ5T15において、ポインタの制御動作が正
常に終了したか否かが判別され、正常終了している場合
は、ステップ5T11において、前述した書込み動作が
再び行われる。そして、全データの書込みが終了した場
合、ステップSTI 3からステラ1S丁2に#111
IIが移行される。FIG. 1 shows the write routine of step STI. In this write routine, step 5T1
1, a write operation for one data is performed, and when this write operation is completed, it is determined in step 5T12 whether or not the write operation has ended normally. As a result,
If it has ended abnormally, υ111 performs the step ST
2 and if it has ended normally, proceed to step 5T.
At step 13, it is determined whether writing of all data of the set number of data has been completed. As a result, if there is any remaining data, a pointer control operation is performed in step 5T14, and the pointer is incremented. Thereafter, in step 5T15, it is determined whether or not the pointer control operation has ended normally. If it has ended normally, the above-described write operation is performed again in step 5T11. Then, when all data has been written, #111 is sent from step STI 3 to Stella 1S-2.
II will be migrated.
上記実施例によれば、書込みルーチン中に1込み動作と
ポインタの制皿動作を設けている。したかって、書込み
ルーチンを実行する場合、書込み動作が終了し、まだ書
込みデータが残っている場合は、自動的にポインタが歩
進されるため、書込みルーチンを使う毎にポインタ制御
ルーチンを使う必要がなく、プログラムを作成を容易化
することが可能である。According to the embodiment described above, a 1-in operation and a pointer control operation are provided in the write routine. Therefore, when executing a write routine, the pointer is automatically incremented when the write operation is completed and there is still write data left, so it is necessary to use a pointer control routine every time the write routine is used. It is possible to easily create a program without having to do so.
また、書込みルーチンを使う毎にポインタ制御ルーチン
を使う必要がないため、ブロックデータ等の連続データ
を履込む場合、極めて有利なものである。Furthermore, since it is not necessary to use a pointer control routine every time a write routine is used, it is extremely advantageous when reading continuous data such as block data.
尚、上記実施例では、この発明を書込み命令に適用した
場合について説明したが、これに限定されるものではな
く、例えばデータの読出し命令や消去命令にポインタ1
IIll]動作を内蔵することにより、上記実施例と同
様の効果を得ることが可能である。In the above embodiment, the present invention is applied to a write instruction, but the present invention is not limited to this, and for example, when the pointer 1 is applied to a data read instruction or an erase instruction.
By incorporating the [IIll] operation, it is possible to obtain the same effects as in the above embodiment.
そΦ他、この発明の要旨を変えない範囲において、種々
変形実施可能なことは勿論である。Of course, various other modifications can be made without departing from the gist of the invention.
[発明の効果]
以上、詳述したようにこの発明によれば、記憶手段に対
するアクセス命令が供給された場合、アクセス動作を行
ない、この後、自動的に次にアクセスすべきアドレスを
指示手段に設定することにより、アクセス命令を出す毎
に指示手段の内容を更新する命令を出す必要をなくし、
プログラムの作成を容易化することが可能であるととも
に、処理速度を向上することが可能な携帯可能電子装置
を提供できる。[Effects of the Invention] As described in detail above, according to the present invention, when an access command to the storage means is supplied, an access operation is performed, and then the next address to be accessed is automatically sent to the instruction means. By setting this, it is no longer necessary to issue a command to update the contents of the instruction means every time an access command is issued.
It is possible to provide a portable electronic device that can facilitate program creation and improve processing speed.
第1図、第2図はこの発明の一実施例を示すものであり
、それぞれデータ書込み動作を説明するために示す図、
第3図はカード取扱装置の一例を示す構成図、第4図は
ICカードの一例を示す構成図、第5図、第6図はそれ
ぞれ従来の書込み動作を説明するために示す図である。
1・・・ICカード、11・・・制御素子、12・・・
データメモリ。
出願人代理人 弁理士 鈴江武彦
第1図 第2図
第3図
第4図
第6図 第5図FIG. 1 and FIG. 2 show an embodiment of the present invention, and are shown for explaining the data write operation, respectively.
FIG. 3 is a block diagram showing an example of a card handling device, FIG. 4 is a block diagram showing an example of an IC card, and FIGS. 5 and 6 are diagrams each shown to explain a conventional write operation. 1...IC card, 11...control element, 12...
data memory. Applicant's Representative Patent Attorney Takehiko Suzue Figure 1 Figure 2 Figure 3 Figure 4 Figure 6 Figure 5
Claims (4)
段のアドレスを指示する指示手段と、前記記憶手段に対
するアクセス命令に応じて前記指示手段によって指示さ
れたアドレスにアクセスを行ない、このアクセス終了後
、前記指示手段を次にアクセスすべきアドレスに自動的
に設定する制御手段とを具備したことを特徴とする携帯
可能電子装置。(1) A storage means in which arbitrary information is stored, an instruction means for instructing an address of the storage means, and an address specified by the instruction means is accessed in response to an access command to the storage means, and the address specified by the instruction means is accessed. and control means for automatically setting the instruction means to an address to be accessed next after completion of the instruction.
を特徴とする特許請求の範囲第1項記載の携帯可能電子
装置。(2) The portable electronic device according to claim 1, wherein the access command comprises a data write command.
を特徴とする特許請求の範囲第1項記載の携帯可能電子
装置。(3) The portable electronic device according to claim 1, wherein the access command comprises a data read command.
特徴とする特許請求の範囲第1項記載の携帯可能電子装
置。(4) The portable electronic device according to claim 1, wherein the access command comprises a data deletion command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62073323A JPS63239582A (en) | 1987-03-27 | 1987-03-27 | Portable electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62073323A JPS63239582A (en) | 1987-03-27 | 1987-03-27 | Portable electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63239582A true JPS63239582A (en) | 1988-10-05 |
Family
ID=13514846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62073323A Pending JPS63239582A (en) | 1987-03-27 | 1987-03-27 | Portable electronic device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63239582A (en) |
-
1987
- 1987-03-27 JP JP62073323A patent/JPS63239582A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2645368B2 (en) | Method of programming data into an electrically programmable ROM | |
US20070011416A1 (en) | Data storage device and medium and related method of storing backup data | |
JP3923546B2 (en) | IC card | |
JPS63239582A (en) | Portable electronic device | |
JP2000243093A (en) | Data storing method for flash memory and data reading out method from flash memory | |
JP7420179B1 (en) | Electronic information storage medium, IC card, issuance processing method, and program | |
JPS61211788A (en) | Ic card | |
JPH0435780B2 (en) | ||
JPS62289999A (en) | Data writing method | |
JP2598056B2 (en) | Portable electronic devices | |
JP3730684B2 (en) | Display device for programmable controller and display information writing method thereof | |
JPH0693252B2 (en) | Portable electronic device initialization device | |
JP2005338926A (en) | Portable electronic device | |
JPH0233690A (en) | Method for issuing ic card | |
JPS63224093A (en) | Data storage system | |
JP2537198B2 (en) | Portable electronic devices | |
JP2538906B2 (en) | IC card | |
JP2001229069A (en) | Ic module | |
JPS63271682A (en) | Portable electronic device | |
JPH01220083A (en) | Portable electronic appliance | |
JPH04152489A (en) | Ic card | |
JPS63233490A (en) | Portable electronic device | |
JPH0364896B2 (en) | ||
JPH04277890A (en) | Ic card | |
JPH04205291A (en) | Ic card and information transmitting system |