JPS63279343A - Detecting device for connection of memory unit - Google Patents

Detecting device for connection of memory unit

Info

Publication number
JPS63279343A
JPS63279343A JP62115657A JP11565787A JPS63279343A JP S63279343 A JPS63279343 A JP S63279343A JP 62115657 A JP62115657 A JP 62115657A JP 11565787 A JP11565787 A JP 11565787A JP S63279343 A JPS63279343 A JP S63279343A
Authority
JP
Japan
Prior art keywords
card
data
cpu
memory card
contents
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
JP62115657A
Other languages
Japanese (ja)
Inventor
Toshiyuki Hirai
平井 利之
Hajime Shintani
一 新谷
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.)
NEC Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP62115657A priority Critical patent/JPS63279343A/en
Publication of JPS63279343A publication Critical patent/JPS63279343A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To prevent the breakage of data as well as the runaway of a program even though a card is mistakenly inserted in or taken out of a card reader, by writing the data into a specific number of the card to confirm the presence or absence of the card and also checking periodically the data to set an entire system under a stand-by state if the data has a change from its initial state. CONSTITUTION:When the pulses are periodically supplied to a CPU 4 from a timer 9, the CPU 4 compares the data read out of a memory card 1 with the latched contents of a latch circuit 5. In this case, both contents shows 'presence of card' as long as the card 1 is kept inserted. When the card 1 is taken out of a card connector 3 by some reason, the contents of the circuit 5 show 'presence of card' with the contents read out of the CPU 4 showing 'absence of data' respectively. Then the CPU 4 is set under a stand-by state. Thus it is possible to prevent the breakage of data as well as the runaway of a program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリユニット接続装置に関し、特に、端末装
置に挿抜自在に接続され、読み出し又は書き込みを行う
データファイル用カードの接続状態を定期的に検出し、
必要に応じてシステム全体を保全するメモリユニット接
続検出装置に係る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a memory unit connection device, and in particular, the present invention relates to a memory unit connection device, and in particular, it is connected to a terminal device in a freely insertable and removable manner, and periodically checks the connection state of a data file card that is read or written. detect,
This relates to a memory unit connection detection device that maintains the entire system as necessary.

〔従来技術〕[Prior art]

メモリカードは従来からデータファイルとして使用され
ることが多いが、このメモリカードは端末装置に接続さ
れてデータの読み出し及び書き込みが行われる。ところ
で、このメモリカードは端末装置に挿抜自在に接続され
ており、読み出しや、書き込みが行われている最中にも
挿し入れ、抜き出しができる。
Memory cards have traditionally been often used as data files, and are connected to terminal devices to read and write data. By the way, this memory card is removably connected to a terminal device, and can be inserted or removed even while reading or writing is in progress.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このようにメモリカードは端末装置に対して、挿抜自在
であるため、メモリカードの読み出し又は書き込み中に
、誤って端末装置から抜かれると、メモリカード内のデ
ータ操作が途中で終了してしまうこととなる。このため
、このような状態でその後のプログラムが実行されてし
まうと、データが破壊されたり、プログラムの暴走が起
こるという問題点があった。
Since the memory card can be inserted into and removed from the terminal device as described above, if the memory card is accidentally removed from the terminal device while reading or writing, the data operation on the memory card may end prematurely. becomes. Therefore, if a subsequent program is executed in such a state, data may be destroyed or the program may run out of control.

本発明は上記実情に鑑み、その問題点を一掃すべく創案
されたものであって、メモリカードの読み出し、あるい
は書き込みが行われている最中に誤ってメモリカードが
挿し入れ、又は抜き出しされても、データの破壊や、プ
ログラムの暴走を防止することができる接続検出装置を
提供しようとするものである。
The present invention has been devised in view of the above-mentioned circumstances and to eliminate the problem, and is intended to solve the problem that a memory card is accidentally inserted or removed while the memory card is being read or written. The present invention also aims to provide a connection detection device that can prevent data destruction and program runaway.

C問題点を解決するための手段〕 本発明は上記目的を達成するために、データファイル用
カードが端末装置に挿抜自在に接続され、データの読み
出し又は書き込みを行うメモリユニット接続装置におい
て、前記カードの特定番地にカードの有無を確認するた
めのデータを書き込む、とともに、このデータを定期的
に調べ初期状態と変化があったときには初期状態と一致
するまで他の処理を中止する制御手段を設けて構成した
Means for Solving Problem C] In order to achieve the above object, the present invention provides a memory unit connecting device in which a data file card is removably connected to a terminal device and reads or writes data. A control means is provided to write data to confirm the presence or absence of a card at a specific address, and to periodically check this data and, if there is a change from the initial state, stop other processing until the initial state is matched. Configured.

〔作用〕[Effect]

本発明の構成によれば、カードに書き込まれたカードの
有無を確認するためのデータは、制御手段が定期的に調
べ、初期状態と変化があったときには、システム全体を
スタンバイ状態にする。
According to the configuration of the present invention, the control means periodically checks the data written on the card to confirm the presence or absence of the card, and when there is a change from the initial state, the entire system is put into a standby state.

〔実施例〕〔Example〕

本発明の構成を図面に示された一実施例に基づいて説明
する。
The configuration of the present invention will be explained based on an embodiment shown in the drawings.

第1図はメモリユニット接続検出装置の全体構成を示す
回路図、第2図はメモリカードとカードコネクタとの接
続関係を示す説明図、第3図はメモリカードの挿抜状態
を検出する手順を示すフローチャートである。
Fig. 1 is a circuit diagram showing the overall configuration of the memory unit connection detection device, Fig. 2 is an explanatory diagram showing the connection relationship between the memory card and the card connector, and Fig. 3 shows the procedure for detecting the insertion/removal status of the memory card. It is a flowchart.

メモリカード1は縁部に複数の接続ピン1aを1列状に
備えている。このメモリカード1は後述する端末装置2
のカードコネクタ3に挿入されて接続される。すなわち
、カードコネクタ3は縁部に複数の接続ピン3aを1列
状に備えており、カードコネクタ3にメモリカード1が
挿入された状態で、接続ピン1a、3a同士が対応して
接続される。接続ピンlaと接続ピン4aには、それぞ
れ両端に電源用ピン(vCC)、接地用ピン(GND)
が備えられる。また、上記メモリカード1の特定の番地
1bには「カード有り」のデータICが書き込まれてい
る。このため、メモリカードlの番地1bの「カード有
り」のデータICをチェックすれば、メモリカード1が
端末装置2に接続されているか否かを確認することがで
きる。
The memory card 1 has a plurality of connection pins 1a arranged in a row on its edge. This memory card 1 is a terminal device 2 which will be described later.
is inserted into the card connector 3 and connected. That is, the card connector 3 has a plurality of connection pins 3a arranged in a row on the edge, and when the memory card 1 is inserted into the card connector 3, the connection pins 1a and 3a are connected to each other in correspondence. . Connection pin la and connection pin 4a have a power pin (vCC) and a ground pin (GND) at both ends, respectively.
will be provided. Furthermore, a data IC indicating "card present" is written in a specific address 1b of the memory card 1. Therefore, by checking the "card present" data IC at address 1b of memory card 1, it is possible to confirm whether or not memory card 1 is connected to terminal device 2.

上記メモリカード1が接続される端末装置2はメモリカ
ードlからデータを読み出したり、メモ、リカード1か
らデータを書き込む等種々の機能を備えている。この端
末装置2は、メモリカードlを挿抜自在に接続するカー
ドコネクタ3と、端末装置2全体の動作を制御するCP
U4と、カードコネクタ3とCPU4との間に介設され
、メモリカード1がカードコネクタ3に接続されている
が否か、すなわち、挿抜状態を確認するための信号を一
時的に保持するラッチ回路5と、データをストアするた
めのRAM6と、所要のプログラムがストアされたRO
M7と、人出刃装置8とから構成される。また、9はタ
イマーであり、このタイマー9は一定の周期でメモリカ
ードlがカードコネクタ3に接続されているが否かを検
出することを指示する信号をCPU4に出力するように
なっている。
The terminal device 2 to which the memory card 1 is connected has various functions such as reading data from the memory card 1 and writing data from the memory card 1. This terminal device 2 includes a card connector 3 to which a memory card l can be inserted and removed, and a CP that controls the overall operation of the terminal device 2.
A latch circuit that is interposed between U4, the card connector 3, and the CPU 4, and temporarily holds a signal for confirming whether or not the memory card 1 is connected to the card connector 3, that is, the insertion/extraction state. 5, RAM 6 for storing data, and RO where necessary programs are stored.
It is composed of an M7 and a human blade device 8. Further, 9 is a timer, and this timer 9 outputs a signal instructing to detect whether or not the memory card 1 is connected to the card connector 3 to the CPU 4 at regular intervals.

上記CPU4とカードコネクタ3との間には、CPU4
とカードコネクタ3との間でデータを授受するためのデ
ータバス等が配設されている。また、カードコネクタ3
にメモリカード1が挿抜されたときに出力される信号は
ラッチ回路5に保持されると同時にCPU4に対しても
伝送される。
Between the CPU 4 and the card connector 3, the CPU 4
A data bus or the like for exchanging data between the card connector 3 and the card connector 3 is provided. Also, card connector 3
The signal output when the memory card 1 is inserted or removed is held in the latch circuit 5 and simultaneously transmitted to the CPU 4.

次に上記構成からなる接続検出装置の作用を説明する。Next, the operation of the connection detection device having the above configuration will be explained.

CPU4はタイマーpからパルスが入力されると、これ
に対してCPU4はメモリカード1のデータ1cを読み
出すとともに、う・/子回路5にメモリカード1のデー
タ1cがラッチされる。次いで、CPU4にタイマー9
から定期的にパルスガ入力されると、これに対してCP
U4はメモリカード1から読み出したデータと、ラッチ
回路5のランチ内容とを入力し、両者を比較する。この
比較の際には、メモリカード1が挿入されていない状態
では両内容はともに「カード無し」であり、逆に、メモ
リカード1が挿入されている状態では両内容はともに「
カード有り」である。そして、カードコネクタ3に挿入
されていたメモリカードlが何らかの事情で抜き出され
ると、ラッチ回路5の内容は「カード有りJ、CPU4
で読み出した内容は「データ無し」であり、逆に、カー
ドコネクタ3にメモリカード1を挿入すると、ランチ回
路5の内容は「データ無しJ、CPU4で読みだしたデ
ータは「カード有り」である。そして、この比較によっ
て、メモリカード1からの信号状態が「カード有り」か
ら「データ無し」に変化した場合、又は、「データ無し
」から「カード有り」に変化した場合には、CPU4は
スタンバイ状態、すなわち、レリース端子のように、プ
ログラムの実行中の処理は保持したままでプログラムの
実行を中止した状態になる。
When the CPU 4 receives a pulse from the timer p, the CPU 4 reads out the data 1c from the memory card 1, and the data 1c from the memory card 1 is latched into the child circuit 5. Next, timer 9 is sent to CPU 4.
When a pulse signal is input periodically from CP to
U4 inputs the data read from the memory card 1 and the lunch contents of the latch circuit 5, and compares the two. In this comparison, when memory card 1 is not inserted, both contents are "no card", and conversely, when memory card 1 is inserted, both contents are "no card".
Card included.” If the memory card l inserted into the card connector 3 is removed for some reason, the contents of the latch circuit 5 will be "Card present J, CPU4
The content read by CPU 4 is "no data", and conversely, when memory card 1 is inserted into card connector 3, the content of launch circuit 5 is "no data J", and the data read by CPU 4 is "card present". . Then, as a result of this comparison, if the signal state from the memory card 1 changes from "card present" to "no data" or from "no data" to "card present", the CPU 4 goes into standby state. In other words, like a release terminal, the program execution is stopped while the process being executed is maintained.

このようにして、端末装置2におけるメモリカードlの
挿抜状態を検出することができ、メモリカード1からの
データに変化があったと゛きには、CPU4はスタンバ
イ状態となるので、データ破壊やプログラムの暴走とい
うような事故を防止することができる。
In this way, it is possible to detect the insertion/removal status of the memory card 1 in the terminal device 2, and when there is a change in the data from the memory card 1, the CPU 4 enters the standby state, thereby preventing data destruction or program corruption. Accidents such as reckless driving can be prevented.

前記したメモリカード1の挿抜検出の手順を第3図(A
)、(B)のフローチャートを基にして説明する。第3
図(A)はCPU4におけるメインルーチンを示すが、
まず、メモリカード1の挿抜状態、すなわち、初期状態
を検出しく5TEP■)、その後割り込みを受け(ST
EP■)、端末装置2において必要な処理を行い(ST
EP■)、適当な周期で5TEP■に戻りメモリカード
lの挿抜状態を再び確認する(STEP■)。5TEP
■では、第3図(B)で示すサブルーチンが実行される
。サブルーチンでは、まず、メモリカード1からのデー
タの内容(「カード有り」又は「データ無し」)をチェ
ックしく5TEP■)、その結果と前回チェックしたデ
ータの初期状態と    ゛を比較する(STEP■)
。そして、5TEP■で初期状態と変化があった場合に
は、CPU5をスタンバイ状態に保持するようにする。
The procedure for detecting insertion and removal of the memory card 1 described above is shown in FIG.
), (B) will be explained based on the flowcharts. Third
Figure (A) shows the main routine in CPU4,
First, the insertion/removal state of the memory card 1, that is, the initial state, is detected (5TEP■), and then an interrupt is received (STEP■).
EP■) and performs the necessary processing in the terminal device 2 (ST
EP■), return to 5TEP■ at appropriate intervals and check again whether the memory card I is inserted or removed (STEP■). 5TEP
In step (2), the subroutine shown in FIG. 3(B) is executed. In the subroutine, first check the content of the data from memory card 1 ("card present" or "no data") (5TEP■), and compare the result with the initial state of the data checked last time (STEP■).
. If there is a change from the initial state at 5TEP■, the CPU 5 is held in the standby state.

5TEP■でデータに変化がなかった場合には、再び、
第3図(A)のメインルーチンに戻り、その後の所要の
処理が継続され、以上の手順が反復される。
If there is no change in the data after 5TEP■, try again.
The process returns to the main routine of FIG. 3(A), continues the necessary processing, and repeats the above procedure.

なお、本発明のメモリユニット接続検出装置は、ハード
構成によっても、あるいはソフト的にも実現できること
は勿論である。
It goes without saying that the memory unit connection detection device of the present invention can be realized by a hardware configuration or by software.

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

以上の説明から明らかなように、本発明によれば、カー
ドの特定番地に書き込んだデータのチェックによりカー
ドの挿抜状態が確認でき、これにより初期状態と変化が
あった場合には、システム全体がスタンバイ状態になる
ので、カードの読み出し又は書き込み中に誤ってカード
が挿抜されてもデータの破壊やプログラムの暴走を未然
に防止できシステム全体を保全することができる。
As is clear from the above description, according to the present invention, the card insertion/removal status can be confirmed by checking the data written to a specific address of the card, and if there is a change from the initial status, the entire system can be checked. Since the standby state is established, even if a card is accidentally inserted or removed during reading or writing, data destruction and program runaway can be prevented, and the entire system can be maintained.

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

図面は本発明に関するメモリユニット接続検出装置の一
実施例を示し、第1図は全体構成を示す回路図、第2図
はメモリカードとカードコネクタとの接続関係を示す説
明図、第3図はメモリカードの挿抜状態を検出する手順
を示すフローチャートである。 (主要部分を示す図面の簡単な説明) 1・・メモリカード   1a・・接続ピン1b・・特
定番地
The drawings show an embodiment of the memory unit connection detection device according to the present invention, FIG. 1 is a circuit diagram showing the overall configuration, FIG. 2 is an explanatory diagram showing the connection relationship between the memory card and the card connector, and FIG. 3 is a flowchart showing a procedure for detecting insertion/removal status of a memory card. (Brief explanation of the drawing showing the main parts) 1...Memory card 1a...Connection pin 1b...Specific address

Claims (1)

【特許請求の範囲】[Claims] データファイル用カードが端末装置に挿抜自在に接続さ
れ、データの読み出し又は書き込みを行うメモリユニッ
ト接続装置において、前記カードの特定番地にカードの
有無を確認するためのデータを書き込むとともに、この
データを定期的に調べ初期状態と変化があったときには
システム全体をスタンバイ状態にする制御手段を設けた
ことを特徴とするメモリユニット接続検出装置。
A data file card is removably connected to a terminal device, and in a memory unit connection device that reads or writes data, data is written to a specific address of the card to confirm the presence or absence of the card, and this data is periodically transmitted. A memory unit connection detection device characterized in that it is provided with a control means that automatically checks the initial state and puts the entire system into a standby state when there is a change from an initial state.
JP62115657A 1987-05-12 1987-05-12 Detecting device for connection of memory unit Pending JPS63279343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62115657A JPS63279343A (en) 1987-05-12 1987-05-12 Detecting device for connection of memory unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62115657A JPS63279343A (en) 1987-05-12 1987-05-12 Detecting device for connection of memory unit

Publications (1)

Publication Number Publication Date
JPS63279343A true JPS63279343A (en) 1988-11-16

Family

ID=14668070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62115657A Pending JPS63279343A (en) 1987-05-12 1987-05-12 Detecting device for connection of memory unit

Country Status (1)

Country Link
JP (1) JPS63279343A (en)

Similar Documents

Publication Publication Date Title
EP0426134A2 (en) Method and system for holding bus at insert/extract of IC card in computer
US5359728A (en) Data integrity assurance in a disk drive upon a power failure
JP3590338B2 (en) Portable electronic devices
JPS6030983B2 (en) Peripheral device control unit
JPH01108653A (en) Memory content protection circuit
JPS63279343A (en) Detecting device for connection of memory unit
JPS63279390A (en) Connection detecting device
JPS63279344A (en) Detecting device for connection of memory unit
JPS63279389A (en) Connection detector
JPS61281317A (en) Electronic apparatus capable of using extension memory cartridge
JPS63240615A (en) Interface circuit
JPS61213910A (en) Display system for not ready state
JPH01197847A (en) Data protecting device
JPH04167157A (en) Memory card control system
JPH01223586A (en) Ic card testing system
JPH086811A (en) Self-diagnostic result output control system
JPH05224999A (en) Runaway processor
JPH02210515A (en) System resetting system
JPS60120443A (en) Detecting circuit of undefined instruction
JPH0296853A (en) System for checking holding main storage capacity
JP3618782B2 (en) Expansion board determination device and expansion board determination method
JPH0512131A (en) Information processor
JPS63271589A (en) Reading and writing device for portable storage medium
JPH01152555A (en) Card status monitoring device
JPH01142852A (en) Simple type data collating device