JPH01197847A - Data protecting device - Google Patents
Data protecting deviceInfo
- Publication number
- JPH01197847A JPH01197847A JP63021851A JP2185188A JPH01197847A JP H01197847 A JPH01197847 A JP H01197847A JP 63021851 A JP63021851 A JP 63021851A JP 2185188 A JP2185188 A JP 2185188A JP H01197847 A JPH01197847 A JP H01197847A
- Authority
- JP
- Japan
- Prior art keywords
- data
- card
- cpu
- read
- memory 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.)
- Granted
Links
Landscapes
- Storage Device Security (AREA)
- Credit Cards Or The Like (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、ICカードなどのメモリカードを接続可能な
データ処理装置に適用されるデータ保護装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data protection device applied to a data processing device to which a memory card such as an IC card can be connected.
[従来の技術]
近年、ROM、RAMなどの内蔵メモリとは別にICカ
ードなどのメモリカードを着脱自在に接続し、CPUの
プログラム動作に応じてメモリカードにデータの読出し
および書込みを行なうようにした例えばECR([予成
キャッシュレジスタ)などのデータ処理装置が開発され
ている。[Prior Art] In recent years, a memory card such as an IC card is removably connected to a built-in memory such as ROM or RAM, and data is read and written to the memory card according to the program operation of the CPU. For example, data processing devices such as ECRs (preliminary cash registers) have been developed.
このようなものにおいて、メモリカードをカード用コネ
クタから抜取った場合、CPUがプログラム制御により
メモリカードとの間でデータの読み書きを行なっている
とプログラムが正常に動作しなくなるためCPUの動作
が異常となってデータが破壊されるおそれがある。また
メモリカードとの間でデータの読み書きが行なわれてい
なくてもカードを抜取ったときに生じるノイズが処理装
置のアドレス信号やデータ信号に影響を及ぼして装置全
体が誤動作するおそれがある。このため、従来のこの種
装置においては、メモリカードが抜取られたときにCP
Uにリセットをかけることにより処理データを保護する
データ保護装置が設けられている。In such a device, if the memory card is removed from the card connector, if the CPU is reading and writing data to and from the memory card under program control, the program will not work properly and the CPU will operate abnormally. This may cause data to be destroyed. Furthermore, even if data is not being read or written to or from the memory card, noise generated when the card is removed may affect address signals and data signals of the processing device, causing the entire device to malfunction. For this reason, in conventional devices of this type, when the memory card is removed, the CP
A data protection device is provided that protects processed data by applying a reset to U.
第3図は従来のデータ保護装置を示す図であって、図中
1はメモリカード、2はメモリカード用コネクタ、3は
CPUのリセット端子に接続されるリセット信号発生回
路である。メモリカード用コネクタ2にメモリカード1
が装着されている状態では、カード内部の端子1aがコ
ネクタ2の端子2aと接続され、カード内部の端子1b
がコネクタ2の端子2bと接続される。この結果、リセ
ット信号発生回路3の入力電圧V1nはローレベルであ
る。これに対し、メモリカード用コネクタ2からメモリ
カード1が抜取られると、リセット信号発生回路3の入
力電圧Vinはノ\イレベルとなり、これによりリセッ
ト信号が生成され、CPUのリセット端子に供給されて
CPUにリセットかかかるものとなっている。FIG. 3 is a diagram showing a conventional data protection device, in which 1 is a memory card, 2 is a connector for the memory card, and 3 is a reset signal generation circuit connected to a reset terminal of a CPU. Memory card 1 to memory card connector 2
is installed, the terminal 1a inside the card is connected to the terminal 2a of the connector 2, and the terminal 1b inside the card is connected to the terminal 2a of the connector 2.
is connected to terminal 2b of connector 2. As a result, the input voltage V1n of the reset signal generation circuit 3 is at a low level. On the other hand, when the memory card 1 is removed from the memory card connector 2, the input voltage Vin of the reset signal generation circuit 3 becomes a noise level, thereby generating a reset signal, which is supplied to the reset terminal of the CPU and resets the CPU. It takes a reset.
[発明が解決しようとする課題]
しかるに、上述した従来のデータ保護装置においては、
メモリカードを抜取ると必ずCPUにリセットがかかる
ため、CPUにおいてメモリカードを使用していない動
作を実行中であってもCPUにリセットがかかって動作
が中断してしまい、処理データを失ってしまう問題があ
った。[Problem to be solved by the invention] However, in the conventional data protection device described above,
Since the CPU is always reset when the memory card is removed, even if the CPU is performing an operation that does not use the memory card, the CPU is reset and the operation is interrupted, resulting in the loss of processed data. There was a problem.
そこで本発明は、メモリカードを抜取ったときにメモリ
カードとのデータの読み書きを行なっている場合にはC
PUをリセットして異常動作によるデータへの影響を防
止し得、かつメモリカードとのデータの読み書きを行な
っていない場合にはCPUをリセットしないで処理デー
タを保護できるデータ保護装置を提供しようとするもの
である。Therefore, in the present invention, if data is being read from or written to the memory card when the memory card is removed, the
To provide a data protection device that can prevent data from being affected by abnormal operation by resetting a PU, and can protect processed data without resetting the CPU when data is not being read from or written to a memory card. It is something.
[課題を解決するための手段]
本発明は、CP U 、 ROM 、 RA M tt
トを有する処理装置本体にバスラインを介してメモリ
カード用コネクタを接続し、このメモリカード用コネク
タに着脱自在に接続されたメモリカードとの間でデータ
の読み書きを行なう装置において、バスライン上にバス
バッファを介在するとともに、メモリカード用コネクタ
からメモリカードが抜かれたことを検知するカード抜取
り検知手段と、この検知手段によるカード抜取り信号に
応じてメモリカードと処理装置本体とがバスバッファを
介してデータの読み書きを行なっているか否かを判断す
る判断手段と、この判断手段の結果によりデータの読み
書きを行なっている場合にはCPUの動作をリセットし
2、かつデータの読み書きを行なっていない場合にはC
PUの動作を保持するデータ保護手段とを設けたもので
ある。[Means for Solving the Problems] The present invention provides a CPU, a ROM, a RAM tt.
A memory card connector is connected via a bus line to a processing device main body having A bus buffer is interposed, and a card removal detection means detects that the memory card is removed from the memory card connector, and the memory card and the processing device main body are connected via the bus buffer in response to a card removal signal from this detection means. A determination means for determining whether or not data is being read or written; and a determination means for resetting the CPU operation if data is being read or written according to the result of the determination means; and if data is not being read or written, is C
A data protection means for maintaining the operation of the PU is provided.
[作用]
このような構成の本発明装置であれば、メモリカードと
処理装置本体とがデータの読み書きを行なっているとき
にメモリカードを抜取るとCPUがリセットされて異常
動作によるデータ破壊が防止される。メモリカードと処
理装置本体とがデー・ 夕の読み書きを行なっていない
ときにメモリカードを抜取るとCPUの動作が保持さ、
れて処理中のデータは保護される。このとき、カード抜
取りによって発生するノイズはバスバッファによって除
去される。[Function] With the device of the present invention having such a configuration, if the memory card is removed while data is being read or written between the memory card and the processing device main body, the CPU is reset and data destruction due to abnormal operation is prevented. be done. If you remove the memory card when the memory card and the processing unit are not reading or writing data, the CPU operation will be retained.
data is protected during processing. At this time, noise generated by card removal is removed by the bus buffer.
[実施例] 以下、本発明の実施例を図面を参照しながら説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.
第1図は本実施例装置の構成を示す図であって、10は
メモリカードとしてのICカードであり、20は上記I
Cカード10を着脱自在に接続するICカードコネクタ
であり、30は上記ICカードコネクタ20に装着され
たICカード10との間でデータの読取りおよび書込み
を行なうデータ処理装置本体である。データ処理装置本
体30は、プログラム制御により入力データの演算動作
、状態の判定動作等を行なうCPU (中央処理装置)
31、プログラム等の固定データを記憶するROM (
リード・オンリ・メモリ)32、入力データ、演算処理
データなどの可変的データを記憶するRAM (ランダ
ム・アクセス−メモリ)33、およびキーボード、表示
器、プリンタなどの入出力機器を駆動制御する入出力コ
ントローラ34から構成されている。また、前記ICカ
ードコネクタ20をアドレス・データバス41.リード
/ライト信号線42およびステータス信号線43を介し
て接続している。そして、アドレスやデータバス41お
よびリード/ライト信号線42にはICカード10をI
Cカードコネクタ20から抜取ったときに発生するノイ
ズを除去するためのバスバッファ50が介在されている
。FIG. 1 is a diagram showing the configuration of the device of this embodiment, in which 10 is an IC card as a memory card, and 20 is the above-mentioned I/O card.
This is an IC card connector to which the C card 10 is detachably connected, and 30 is a data processing device main body that reads and writes data to and from the IC card 10 attached to the IC card connector 20. The data processing device main body 30 is a CPU (central processing unit) that performs calculation operations on input data, status determination operations, etc. under program control.
31. ROM that stores fixed data such as programs (
RAM (random access memory) 33 that stores variable data such as input data and arithmetic processing data, and input/output that drives and controls input/output devices such as keyboards, displays, and printers. It is composed of a controller 34. Further, the IC card connector 20 is connected to the address/data bus 41. They are connected via a read/write signal line 42 and a status signal line 43. The IC card 10 is connected to the address and data bus 41 and the read/write signal line 42.
A bus buffer 50 is interposed to remove noise generated when the C card connector 20 is removed.
しかして、前記データ処理装置本体30のCPU31は
ステータス信号線43を監視してICカード10の装着
により信号レベルがハイレベルからローレベルに変化し
たことを検知するとカード装着を認識し、第2図に示す
プログラム処理を実行する。すなわち、ST1として上
記ステータス信号線43を監視し、Icカード10が装
着されされたままだと通常の処理を実行する。Then, when the CPU 31 of the data processing device main body 30 monitors the status signal line 43 and detects that the signal level changes from high level to low level due to the insertion of the IC card 10, it recognizes that the card has been inserted. Execute the program processing shown in That is, the status signal line 43 is monitored as ST1, and if the IC card 10 remains attached, normal processing is executed.
STIにおいてステータス信号の信号レベルがローレベ
ルからハイレベルに変化し、ICカードコネクタ20か
らICカード1oが抜取られたことを検知するとST2
に進み、ICカード1oとの間でアドレス・データバス
41を介してデータの読み書きを行なっているか否かを
判断する。ここで、ICカード10とデータ読み書きを
行なっている場合には、ST3としてこのICカード1
゜とのデータの読み書き動作を停止し、ST4としてソ
フトウェアのリセットをかけて通常処理となる。これに
対し、ST2においてICカードとのデータの読み書き
を行なっておらず他の処理を実行り1の場合にはソフト
ウェアリセットをがけないでその処理を継続する。In STI, when the signal level of the status signal changes from low level to high level and it is detected that the IC card 1o has been removed from the IC card connector 20, ST2
Then, it is determined whether data is being read from or written to the IC card 1o via the address/data bus 41. Here, if data is being read and written to the IC card 10, this IC card 1 is used as ST3.
The data read/write operation with ゜ is stopped, and the software is reset in ST4 to return to normal processing. On the other hand, in ST2, data is not read or written to or from the IC card and other processing is executed, and if ST2 is 1, the processing is continued without performing a software reset.
このように構成された本実施例においては、ICカード
コネクタ20にICカード1oを装着することによりデ
ータ処理装置本体3oとICカードとの間でデータの読
み書きが可能となる。この状態で、ICカード1oをコ
ネクタ2oがら抜取ると、装置本体3oがICカード1
oとデータの読み書きを行なっている場合にはCPU3
1にソフトウェアリセットをかける。この結果、カード
抜取りによってプログラムが正常に動作しなくなりCP
U31が異常動作して処理データを破壊することを防止
できる。In this embodiment configured as described above, by attaching the IC card 1o to the IC card connector 20, it becomes possible to read and write data between the data processing device main body 3o and the IC card. In this state, when the IC card 1o is removed from the connector 2o, the main body 3o of the device is connected to the IC card 1.
CPU3 when reading and writing data with o.
1. Perform a software reset. As a result, the program will not work properly when the card is removed, and the CP
It is possible to prevent U31 from operating abnormally and destroying processed data.
これに対し、ICカード10をコネクタ20から抜取っ
たときに装置本体30がICカード10とデータの読み
書きを行なっていない場合にはCPU31にソフトウェ
アリセットをかけず、そのままの動作を保持する。カー
ド抜取りによって発°生ずるノイズはバスバッファ50
によって除去され、アドレス信号やデータ信号に影響を
及ぼすことはなく誤動作が防止される。この結果、lC
カード10を川・いないで行なわれている他の処理が継
続され、そのデータを保護できる。On the other hand, if the device main body 30 is not reading or writing data to or from the IC card 10 when the IC card 10 is removed from the connector 20, the CPU 31 is not software reset and continues to operate as it is. The noise generated by card removal is handled by the bus buffer 50.
The signal is removed by , and malfunction is prevented without affecting the address signal or data signal. As a result, lC
Other processes that are being performed without the card 10 can continue and the data can be protected.
したがって本実施例によれば、データ処1!!装置本体
30の駆動中に誤ってICカード10を抜き取ってしま
っても、誤動作によるデータの異常を防止でき、処理デ
ータを確実に保護できる。Therefore, according to this embodiment, data processing 1! ! Even if the IC card 10 is accidentally removed while the device main body 30 is being driven, data abnormality due to malfunction can be prevented, and processed data can be reliably protected.
【発明の効果]
以」二詳述したように、本発明によれば、メモリカード
を抜取ったときにメモリカードとのデータの゛読み書き
を行なっている場合にはCPUをリセットして異常動作
によるデータへの影響を防止し得、かつメモリカードと
のデータの読み書きを行なっていない場合にはCPUを
リセットしないで処理データを保護できるデータ保護装
置を提供できる。[Effects of the Invention] As described in detail below, according to the present invention, if data is being read from or written to the memory card when the memory card is removed, the CPU is reset to prevent abnormal operation. It is possible to provide a data protection device that can prevent data from being affected by data, and can protect processed data without resetting the CPU when data is not being read or written to or from a memory card.
m1図は本発明の一実施例の構成を示す図、第2図は同
実施例におけるCPUの主要動作を示す流れ図、第3図
は従来例の構成を示す図である。
10・・・ICカード(メモリカード)、20・・・I
Cカードコネクタ、30・・・データ処理装置本体、3
1・・・CPU、41・・・アドレス・データバス、4
2・・・リード/ライト信号線、43・・・ステータス
信号線、50・・・バスバッファ。
出願人代理人 弁理士 鈴江武彦
52コ
第3図FIG. m1 is a diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flow chart showing the main operations of the CPU in the same embodiment, and FIG. 3 is a diagram showing the configuration of a conventional example. 10...IC card (memory card), 20...I
C card connector, 30... data processing device main body, 3
1...CPU, 41...Address/data bus, 4
2... Read/write signal line, 43... Status signal line, 50... Bus buffer. Applicant's agent Patent attorney Takehiko Suzue 52 Figure 3
Claims (1)
バスラインを介してメモリカード用コネクタを接続し、
前記メモリカード用コネクタに着脱自在に接続されたメ
モリカードとの間でデータの読み書きを行なう装置にお
いて、前記バスライン上に介在されるバスバッファと、
前記メモリカード用コネクタからメモリカードが抜かれ
たことを検知するカード抜取り検知手段と、この検知手
段によるカード抜取り信号に応じて前記メモリカードと
処理装置本体とが前記バスバッファを介してデータの読
み書きを行なっているか否かを判断する判断手段と、こ
の判断手段の結果によりデータの読み書きを行なってい
る場合には前記CPUの動作をリセットし、かつデータ
の読み書きを行なっていない場合には前記CPUの動作
を保持するデータ保護手段とを具備したことを特徴とす
るデータ保護装置。Connect the memory card connector to the processing device body including CPU, ROM, RAM, etc. via the bus line,
A bus buffer interposed on the bus line in a device for reading and writing data with a memory card detachably connected to the memory card connector;
a card removal detection means for detecting that a memory card has been removed from the memory card connector; and a card removal detection means for causing the memory card and the processing device main body to read and write data via the bus buffer in response to a card removal signal from the detection means. a determination means for determining whether data is being read or written; and a determination means for resetting the operation of the CPU when data is being read or written based on the result of the determination means; and resetting the operation of the CPU when data is not being read or written. 1. A data protection device comprising: data protection means for maintaining operation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63021851A JPH07120228B2 (en) | 1988-02-03 | 1988-02-03 | Data protection device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63021851A JPH07120228B2 (en) | 1988-02-03 | 1988-02-03 | Data protection device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01197847A true JPH01197847A (en) | 1989-08-09 |
| JPH07120228B2 JPH07120228B2 (en) | 1995-12-20 |
Family
ID=12066610
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63021851A Expired - Fee Related JPH07120228B2 (en) | 1988-02-03 | 1988-02-03 | Data protection device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07120228B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH047644A (en) * | 1990-04-25 | 1992-01-13 | Fujitsu Ltd | Malfunction preventing system |
| JPH06289958A (en) * | 1992-04-17 | 1994-10-18 | Matsushita Graphic Commun Syst Inc | Information processor |
| JP2002132390A (en) * | 2000-10-19 | 2002-05-10 | Shinsedai Kk | Information processing device and memory cartridge system |
-
1988
- 1988-02-03 JP JP63021851A patent/JPH07120228B2/en not_active Expired - Fee Related
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH047644A (en) * | 1990-04-25 | 1992-01-13 | Fujitsu Ltd | Malfunction preventing system |
| JPH06289958A (en) * | 1992-04-17 | 1994-10-18 | Matsushita Graphic Commun Syst Inc | Information processor |
| JP2002132390A (en) * | 2000-10-19 | 2002-05-10 | Shinsedai Kk | Information processing device and memory cartridge system |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07120228B2 (en) | 1995-12-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5359728A (en) | Data integrity assurance in a disk drive upon a power failure | |
| US5257269A (en) | Error controller for use in debugging microprocessor | |
| JPH07120228B2 (en) | Data protection device | |
| KR100889419B1 (en) | An interrupt controller for the microprocessor and a device having such an interrupt controller for recording information on or reproducing the information on the optical information medium. | |
| JPH10105422A (en) | Protection device control circuit | |
| JPS61281317A (en) | Electronic apparatus capable of using extension memory cartridge | |
| JPH05100847A (en) | Memory protection system for information processor | |
| JPH0363782A (en) | IC card protection device | |
| JP2000181510A (en) | Backup data protecting method for programmable controller, and programmable controller | |
| JPH03142516A (en) | Memory card protector | |
| JPH038169A (en) | Information processing device | |
| JPH06251171A (en) | Microcomputer with non-maskable interrupt function | |
| JPH0488448A (en) | Protection device for program area | |
| JPH0433156A (en) | Electronics | |
| JP2000020498A (en) | Microcomputer and return method thereof | |
| JPH03220649A (en) | Parity check circuit | |
| JPS62217335A (en) | Monitor circuit for cpu runaway | |
| JPS63279389A (en) | Connection detector | |
| JPS61279941A (en) | Fault detector for computer | |
| JPS61204719A (en) | information processing system | |
| JPH03204739A (en) | Microcomputer | |
| JPS60138655A (en) | Protecting method of nonvolatile memory | |
| JP2002082820A (en) | Computer system for preventing processor runaway | |
| JPS62271112A (en) | Data protecting system for apparatus equipped with microcomputer | |
| JPH01134631A (en) | Abnormality detecting circuit for computer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |