JPH03219348A - Device for protecting external memory card - Google Patents

Device for protecting external memory card

Info

Publication number
JPH03219348A
JPH03219348A JP1353790A JP1353790A JPH03219348A JP H03219348 A JPH03219348 A JP H03219348A JP 1353790 A JP1353790 A JP 1353790A JP 1353790 A JP1353790 A JP 1353790A JP H03219348 A JPH03219348 A JP H03219348A
Authority
JP
Japan
Prior art keywords
memory card
memory
bank
external memory
external
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
JP1353790A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Takagi
一圭 高木
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
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1353790A priority Critical patent/JPH03219348A/en
Publication of JPH03219348A publication Critical patent/JPH03219348A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To economically protect a memory without applying excess load to software by switching a current bank to a corresponding bank only when an external memory card is accessed, and when the memory card is not accessed, switching the current bank to an unused bank. CONSTITUTION:When a memory card access request is generated from an application, an operating system (OS) 200 switches the memory bank used by the memory card 43 for the hardware of a handy terminal. After completing said operation, the CPU 1 can be allowed to access the memory card 43. After completing the access to the memory card 43, the OS 200 immediately switches the current bank to an unused bank and then returns the control to the application. Consequently, memory protection can be economically attained without applying excess load to the software.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、例えばハンディターミナルのような電子機器
に使用される外部記憶装置であるメモリカード内のデー
タを例えばCPUの暴走、プログラムのバグ等による動
作異常等の不慮の事故から保護する外部メモリカード保
護装置に関する。
Detailed Description of the Invention [Objective of the Invention] (Industrial Field of Application) The present invention provides data stored in a memory card, which is an external storage device used in electronic equipment such as a handheld terminal, for example, in order to prevent a CPU from running out of control. , relates to an external memory card protection device that protects against unexpected accidents such as malfunctions caused by program bugs and the like.

(従来の技術) ハンディターミナルは主としてi 808688のよう
なCPUを使用しているが、このようなCP U ハ例
えば、80286.386等ノcPUと異なり、メモリ
のアクセス権についてスイッチ的に制限を加えることを
機能上十分にサポートしていない。従って、このような
CPU上で動作するソフトウェアはオベレーティングン
ステムおよびアプリケーションともに互いに使用メモリ
函域に対して何ら保護機能を付加することがてきないの
で、このようなCPUを使用し、直接アドレス方式のメ
モリカードを接続されるノーンデイターミナル等の電子
機器においてはメモリカード内のデータに対する保護機
能が実用上存在していない。
(Prior art) Handy terminals mainly use CPUs such as the i808688, but unlike cPUs such as the 80286.386, such CPUs do not have access rights to memory that are restricted by switches. There is no sufficient functional support for this. Therefore, software running on such a CPU cannot provide any protection function to the memory area used by both the operating system and the application. In electronic devices such as non-day terminals to which a memory card is connected, there is practically no protection function for data in the memory card.

また、メモリカード側に何らかのメモリ保護機能を付は
加えることは技術的に可能であるが、メモリカード側か
らは必ずしも必要とされない機能であるため、省略され
ることが多い。
Further, although it is technically possible to add some kind of memory protection function to the memory card side, it is often omitted because this function is not necessarily required from the memory card side.

(発明が解決しようとする課題) 上述したように、18086.88のようなCPUを使
用するハンディターミナルのような電子機器においては
、外部接続される直接アドレス方式のメモリカード内に
記憶されるデータに対する保護機能がないため、不慮の
事故によりデータか書き換えられてしまい、重要な情報
を失ってしまうことがあるという問題かある。
(Problems to be Solved by the Invention) As mentioned above, in electronic devices such as handy terminals that use a CPU such as the 18086.88, data stored in an externally connected direct address type memory card is Since there is no protection function against such data, there is a problem that data may be accidentally rewritten and important information may be lost.

また、メモリ素子毎にイネーブル操作を行って、メモリ
保護を行う方式もあるか、回路構成およびソフトウェア
に負担がかかり、非効率的で非経済的であるという問題
がある。
Furthermore, there is a method of protecting the memory by performing an enable operation for each memory element, but this method places a burden on the circuit configuration and software, resulting in a problem of being inefficient and uneconomical.

本発明は、上記に鑑みてなされたもので、その目的とす
るところは、経済的でソフトウェアに負担をかけずに、
メモリ保護を達成する外部メモリカード保護装置を提供
することにある。
The present invention has been made in view of the above, and its purpose is to provide an economical system that does not place a burden on software.
An object of the present invention is to provide an external memory card protection device that achieves memory protection.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 上記目的を達成するため、本発明の外部メモリカード保
護装置は、メモリ保護機能を有していない中央処理装置
を有し、該中央処理装置に直接アドレス方式の外部メモ
リカードを接続し得る電子機器において前記メモリカー
ドに記憶されている情報を保護する外部メモリカード保
護装置であって、外部メモリカードのメモリ領域よりも
大きく、各々が外部メモリカードのメモリ領域に相当す
る複数のバンクからなるメモリ空間を設定し、前記電子
機器に接続された外部メモリカードのメモリ領域がアク
セスされた場合のみ、該外部メモリカードのメモリ領域
へのアクセスを行い得るよウニ該外部メモリカードのメ
モリ領域に対応するバンクへの切り換えを行うバンク切
り換え手段と、前記電子機器に接続された外部メモリカ
ードのメモリ領域がアクセスされない場合には、該外部
メモリカードのメモリ領域に対応しない未使用バンクに
切り換えるように制御する制御手段とを有することを要
旨とする。
(Means for Solving the Problems) In order to achieve the above object, the external memory card protection device of the present invention has a central processing unit that does not have a memory protection function, and has a central processing unit that does not have a memory protection function. An external memory card protection device for protecting information stored on a memory card in an electronic device to which an external memory card can be connected, the device comprising: a device larger than the memory area of the external memory card; A memory space consisting of a plurality of corresponding banks is set, and the memory area of the external memory card connected to the electronic device can be accessed only when the memory area of the external memory card is accessed. a bank switching means for switching to a bank corresponding to a memory area of a memory card; and a bank switching means for switching to a bank corresponding to a memory area of a memory card; and a bank switching means for switching to a bank corresponding to a memory area of a memory card; The gist of the present invention is to have a control means for controlling switching to a bank to be used.

(作用) 本発明の外部メモリカード保護装置では、各々が外部メ
モリカードのメモリ領域に相当する複数のバンクからな
るメモリ空間を設定し、外部メモリカードのメモリ領域
がアクセスされた場合のみ、該外部メモリカードに対応
するバンクへの切り換えを行い、外部メモリカードのメ
モリ領域がアクセスされない場合には、外部メモリカー
ドのメモリ領域に対応しない未使用バンクに切り換える
ようにしている。
(Function) In the external memory card protection device of the present invention, a memory space consisting of a plurality of banks each corresponding to the memory area of the external memory card is set, and only when the memory area of the external memory card is accessed, the external Switching is performed to a bank corresponding to the memory card, and if the memory area of the external memory card is not accessed, switching is performed to an unused bank that does not correspond to the memory area of the external memory card.

(実施例) 以]゛、図面を用いて本発明の詳細な説明する。(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例に係わる外部メモリカード保
護装置が適用される/’%ンデイターミナルの全体のハ
ードウェア構成を示すブロック図である。同図に示すハ
ンディターミナルは、全体の動作を制御する例えば18
086,88のようなCPUIを有し、該CPUIに接
続されたバス3上にプログラムROM5.CG  RO
M7.RAM9、キーボードインタフェース11を介し
てキーボード13、LCDインタフェース15を介して
LCD17、ブザーコントローラ19を介してブザー2
1、第1の通信インタフェース23を介してC−MOS
レベレベ 1025、第2の通信インタフェース27を
介して光学インタフェース29、第3の通信インタフェ
ース31を介してR3−232−C33、プリンタコン
トローラ35およびプリンタドライバ37を介してプリ
ンタ39、オプションインタフェース41を介してメモ
リカード43、RTC(カレンダ)45、タイマ47、
割り込みコントローラ49およびクロ・ツク発生器51
が接続されている。
FIG. 1 is a block diagram showing the overall hardware configuration of a day terminal to which an external memory card protection device according to an embodiment of the present invention is applied. The handheld terminal shown in the figure has, for example, 18
086, 88, and a program ROM 5.086 on the bus 3 connected to the CPUI. CGRO
M7. RAM9, keyboard 13 via keyboard interface 11, LCD 17 via LCD interface 15, buzzer 2 via buzzer controller 19
1. C-MOS via the first communication interface 23
Level level 1025, optical interface 29 via second communication interface 27, R3-232-C33 via third communication interface 31, printer 39 via printer controller 35 and printer driver 37, option interface 41 Memory card 43, RTC (calendar) 45, timer 47,
Interrupt controller 49 and clock generator 51
is connected.

第2図は第1図に示すノーンデイターミナルにおするプ
ログラムの状態遷移図である。ノ\ンデイタ−ミナルは
、ユーザ自身が作成するアプリケーションプログラム1
00と、装置としてハードウェアとともに提供されるオ
ペレーティングシステム(以下、O8と略称する)20
0とを同時に有し、アプリケーション100は0S20
0のサービスする環境下で動作する。すなわち、アプリ
ケーションは特殊なハードウェアの操作等を直接行わず
、O3に対して要求を出すに留まり、O8はアプリケー
ションの要求を実行する。従って、アプリケーションは
メモリカードのメモリ空間を直接操作するのでなく、O
8を通してのみメモリカードへのアクセスが可能となる
ように作成されている。
FIG. 2 is a state transition diagram of a program sent to the non-day terminal shown in FIG. The data terminal is an application program 1 created by the user.
00 and an operating system (hereinafter abbreviated as O8) 20 provided along with the hardware as a device.
0 at the same time, the application 100 has 0S20
It operates in an environment where 0 services are provided. That is, the application does not directly operate special hardware, but only issues a request to O3, and O8 executes the application's request. Therefore, the application does not directly manipulate the memory space of the memory card, but
The memory card is designed so that it can only be accessed through the 8.

O8はアプリケーションから第2図のBで示す区間のよ
うにメモリカードへのアクセスが要求されると、ハンデ
ィターミナルのハードウェアに対してメモリカード43
が使用するメモリバンクの切り換ズを行う(第2図のス
テップ210C0そして、この時点てCPUIから初め
てメモリカード43へのアクセスか可能となる(ステッ
プ220)。O8はメモリカード43へのアクセスが終
了すると、直ちにバンクを未使用のメモリ領域に切り換
え、この状態でアプリケーションに制御を戻す(ステッ
プ230)。なお、このようにバンクが未使用のメモリ
領域に切り換えられた時点てCPU1はメモリカード4
3の領域を使用できなくなる。
When the application requests access to the memory card as shown in section B in Figure 2, the O8 sends the memory card 43 to the hardware of the handy terminal.
O8 switches the memory bank to be used (step 210C0 in FIG. 2, and at this point it becomes possible to access the memory card 43 for the first time from the CPU (step 220). When the bank is finished, the bank is immediately switched to an unused memory area, and control is returned to the application in this state (step 230).When the bank is switched to an unused memory area in this way, the CPU 1 transfers the memory card 4
Area 3 becomes unusable.

従って、第2図においてAて示す区間では、CPUIは
メモリカード43内のメモリにアクセスすることは物理
的に不可能なため、この区間A内ではCPUIが暴走し
たり、アプリケーションの不具合等によりメモリカード
への異常アクセスが発生しても、メモリカード内のデー
タを保護することができる。
Therefore, in the section indicated by A in FIG. 2, it is physically impossible for the CPU to access the memory in the memory card 43, so within this section A, the CPU may run out of control or the memory may be lost due to an application malfunction. Even if an abnormal access to the card occurs, the data in the memory card can be protected.

実際のアプリケーションでは、区間Aの状態での動作時
間は区間Bに比較して十分に長いため、メモリカードへ
の異常アクセスからメモリカード内の情報を有効に保護
することかできる。
In an actual application, the operating time in the state of section A is sufficiently longer than that in section B, so that the information in the memory card can be effectively protected from abnormal access to the memory card.

第3図は第1図のハンディターミナルのメモリマツプを
示している。RAMメモリの下位から640KB (キ
ロビット)はプロクラムエリアとして使用され、残りの
360KBが装置によって管理される。同図に示す例で
は、64KBのウィンドウと256バンクの切り換えを
有するハードウェアを示している。従って、メモリカー
ドは最大て64KBx2’56−16MBの容量を有す
ることができる。ここに128KBのメモリカードか挿
入された場合には、O8は第2図の区間Aではウィンド
ウを最終バンクに向けておくことになり、CPUIは直
接メモリカード内のメモリをアクセスすることができな
い。このようにハンディターミナルがサポートするメモ
リカードよりも広いバンクを有するように構成するとと
もに、該当するハードウェアのないバンクに対するアク
セスに対しては実際のメモリカードのメモリに対して影
響かないように構成している。この結果、メモリカード
には特別な操作を行わないため、市販されている一般的
なメモリカードを利用することができる。
FIG. 3 shows a memory map of the handy terminal of FIG. The lower 640 KB (kilobits) of the RAM memory is used as a program area, and the remaining 360 KB is managed by the device. The example shown in the figure shows hardware having a 64 KB window and 256 banks of switching. Therefore, a memory card can have a maximum capacity of 64KB x 2'56-16MB. If a 128 KB memory card is inserted here, the O8 will keep the window facing the last bank in section A of FIG. 2, and the CPU will not be able to directly access the memory in the memory card. In this way, it is configured to have a wider bank than the memory card supported by the handy terminal, and is configured so that accesses to banks without the corresponding hardware do not affect the memory of the actual memory card. ing. As a result, since no special operations are performed on the memory card, a commercially available general memory card can be used.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、各々が外部メモ
リカードのメモリ領域に相当する複数のバンクからなる
メモリ空間を設定し、外部メモリカードのメモリ領域が
アクセスされた場合のみ、該外部メモリカードに対応す
るバンクへの切り換えを行い、外部メモリカードのメモ
リ領域かアクセスされない場合には、外部メモリカード
のメモリ領域に対応しない未使用バンクに切り換えるよ
うにしているので、ソフトウェアに負担をかけることも
なく、経済的にメモリ保護を行い、異常動作によるメモ
リ破壊動作から外部メモリカード内の情報を保護するこ
とかできる。また、メモリカードには特別なハードウェ
アを設ける必要がないため、市販の一般的なメモリカー
ドを使用することができ、価格的にも大きなメリットを
有する。
As explained above, according to the present invention, a memory space consisting of a plurality of banks each corresponding to the memory area of an external memory card is set, and only when the memory area of the external memory card is accessed, the external memory If the memory area of the external memory card is not accessed, the bank is switched to the bank that corresponds to the card, and if the memory area of the external memory card is not accessed, it is switched to an unused bank that does not correspond to the memory area of the external memory card, so there is no burden on the software. Therefore, it is possible to economically protect the memory and protect the information in the external memory card from memory destruction due to abnormal operation. Furthermore, since there is no need to provide special hardware to the memory card, a commercially available general memory card can be used, which has a great advantage in terms of cost.

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

第1図は本発明の一実施例に係わる外部メモリカード保
護装置が適用されたハンディターミナルの全体のハード
ウェア構成を示すブロック図、第2図は第1図に示すハ
ンディターミナルにおけるプロクラムの状態遷移図、第
3図は第1図のハンデイターミナルのメモリマツプを示
す図である。 1・ ・CPU。 43・ ・メモリカード、 100・ ・アプリケーションプログラム、200・ 
・オペレーティングシステム。
FIG. 1 is a block diagram showing the overall hardware configuration of a handy terminal to which an external memory card protection device according to an embodiment of the present invention is applied, and FIG. 2 is a state transition of a program in the handy terminal shown in FIG. FIG. 3 is a diagram showing a memory map of the handy terminal of FIG. 1. 1. ・CPU. 43. ・Memory card, 100. ・Application program, 200.
·operating system.

Claims (1)

【特許請求の範囲】[Claims] メモリ保護機能を有していない中央処理装置を有し、該
中央処理装置に直接アドレス方式の外部メモリカードを
接続し得る電子機器において前記メモリカードに記憶さ
れている情報を保護する外部メモリカード保護装置であ
って、外部メモリカードのメモリ領域よりも大きく、各
々が外部メモリカードのメモリ領域に相当する複数のバ
ンクからなるメモリ空間を設定し、前記電子機器に接続
された外部メモリカードのメモリ領域がアクセスされた
場合のみ、該外部メモリカードのメモリ領域へのアクセ
スを行い得るように該外部メモリカードのメモリ領域に
対応するバンクへの切り換えを行うハング切り換え手段
と、前記電子機器に接続された外部メモリカードのメモ
リ領域がアクセスされない場合には、該外部メモリカー
ドのメモリ領域に対応しない未使用バンクに切り換える
ように制御する制御手段とを有することを特徴とする外
部メモリカード保護装置。
External memory card protection for protecting information stored on a memory card in an electronic device that has a central processing unit without a memory protection function and can connect a direct address type external memory card to the central processing unit. a memory space of a plurality of banks, each of which is larger than a memory area of an external memory card, and each bank corresponds to a memory area of the external memory card; hang switching means for switching to a bank corresponding to a memory area of the external memory card so that the memory area of the external memory card can be accessed only when the memory area of the external memory card is accessed; An external memory card protection device comprising: control means for controlling switching to an unused bank that does not correspond to the memory area of the external memory card when the memory area of the external memory card is not accessed.
JP1353790A 1990-01-25 1990-01-25 Device for protecting external memory card Pending JPH03219348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1353790A JPH03219348A (en) 1990-01-25 1990-01-25 Device for protecting external memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1353790A JPH03219348A (en) 1990-01-25 1990-01-25 Device for protecting external memory card

Publications (1)

Publication Number Publication Date
JPH03219348A true JPH03219348A (en) 1991-09-26

Family

ID=11835907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1353790A Pending JPH03219348A (en) 1990-01-25 1990-01-25 Device for protecting external memory card

Country Status (1)

Country Link
JP (1) JPH03219348A (en)

Similar Documents

Publication Publication Date Title
JP2727520B2 (en) Memory card and operating method thereof
EP1571559B1 (en) Bus system and access control method
EP1139223A2 (en) 1-chip microcomputer and ic card using same
JP2003527653A (en) Data processing devices and methods
JP2513462B2 (en) Micro computer
JPH0228178B2 (en)
JPH03219348A (en) Device for protecting external memory card
US7865739B2 (en) Methods and devices for transferring security data between memories
JP4617581B2 (en) Data processing device
JP3032207B2 (en) Micro computer
EP1513039B1 (en) Transfer of security data between two memories
JPS59168994A (en) Data secrecy protection method in systems equipped with memory
JPH02128266A (en) Register with protective function
JP2002073360A (en) Startup information rewriting device
JPH03260858A (en) Processor for information processing system
JP2592360B2 (en) Computer system
JPS6120160A (en) Addressing exception detection method
JPH02155057A (en) Data processor
JP2003271463A (en) Doubling memory device
JP2839631B2 (en) Personal computer system and configuration change method thereof
JPS6225214B2 (en)
JP2000056818A (en) Programmable logic controller and control method thereof
JP3127737B2 (en) Digital signal processor
JPH06282664A (en) One-chip microcomputer
JP2003330800A (en) Semiconductor integrated circuit