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

Detecting device for connection of memory unit

Info

Publication number
JPS63279344A
JPS63279344A JP62115658A JP11565887A JPS63279344A JP S63279344 A JPS63279344 A JP S63279344A JP 62115658 A JP62115658 A JP 62115658A JP 11565887 A JP11565887 A JP 11565887A JP S63279344 A JPS63279344 A JP S63279344A
Authority
JP
Japan
Prior art keywords
data
card
cpu
initial state
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.)
Pending
Application number
JP62115658A
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 JP62115658A priority Critical patent/JPS63279344A/en
Publication of JPS63279344A publication Critical patent/JPS63279344A/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 although a card is mistakenly inserted in or taken out of a card reader, by writing the data into a specific address of the card to confirm the presence or absence of the card and also checking periodically the data to discontinue the execution of other processes until the coincidence is secured with the initial state of the data in case the data has a change from its initial state. CONSTITUTION:When the pulses are supplied to a CPU 4 from a timer 9, the CPU 4 reads the data 1c out of a memory card 1. At the same time, the data 1c of the card 1 is latched by a latch circuit 5. Then the pulses are periodically supplied to the CPU 4 from the timer 9. Thus the CPU 4 compares the data read out of the card 1 with the latched contents of the circuit 5. If it is known from said comparison that the card received from the card 1 has a change, the CPU 4 discontinue the execution of other processes until the data contents are coincident with its initial 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 the terminal device, and can be inserted and 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.

〔問題点を解決するための手段〕[Means for solving problems]

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

〔作用〕[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, other processing is performed until the data matches the initial state. cancel.

〔実施例〕 本発明の構成を図面に示された一実施例に基づいて説明
する。
[Example] The configuration of the present invention will be explained based on an example 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が書き込まれて
いる。このため、メモリカード1の番地1bの「カード
有り」のデータ1cをチ慕−7りすれば、メモリカード
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 supply pin (VCC) and a ground pin (GND) on 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 1c at the address 1b of the memory card 1, it is possible to check whether the memory card 1 is connected to the terminal device 2 or not.

上記メモリカード1が接続される端末装置2はメモリカ
ード1からデータを読み出したり、メモリカード1から
データを書き込む等種々の機能を備えている。この端末
装置2は、メモリカード1を挿抜自在に接続するカード
コネクタ3と、端末装置2全体の動作を制御するCPU
4と、カードコネクタ3とCPU4との間に介設され、
メモリカード1がカードコネクタ3に接続されているか
否か、すなわち、挿抜状態を確認するための信号を一時
的に保持するラッチ回路5と、データをストアするため
のRAM6と、所要のプログラムがストアされたROM
7と、入出力装置8とから構成される。また、9はタイ
マーであり、このタイマー9は一定の周期でメモリカー
ド1がカードコネクタ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 1 can be inserted and removed, and a CPU that controls the overall operation of the terminal device 2.
4, interposed between the card connector 3 and the CPU 4,
A latch circuit 5 temporarily holds a signal for checking whether the memory card 1 is connected to the card connector 3, that is, whether it is inserted or removed, a RAM 6 for storing data, and a necessary program stored therein. ROM
7 and an input/output device 8. Further, 9 is a timer, and this timer 9 outputs a signal to the CPU 4 instructing to detect whether or not the memory card 1 is connected to the card connector 3 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
A 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はタイマー9からパルスが入力されると、これ
に対してCPU4はメモリカード1のデータICを読み
出すとともに、ラッチ回路5にメモリカードlのデータ
ICがラッチされる。次いで、CPU4にタイマー9か
ら定期的にパルスガ入力されると、これに対してCPU
4はメモリカード1から読み出したデータと、ラッチ回
路5のラッチ内容とを入力し、両者を比較する。この比
較の際には、メモリカード1が挿入されていない状態で
は両内容はともに「カード無し」であり、逆に、メモリ
カード1が挿入されている状態では両内容はともに「カ
ード有り」である。そして、カードコネクタ3に挿入さ
れていたメモリカード1が何らかの事情で抜き出される
と、ラッチ回路5の内容は「カード有りJ、CPU4で
読み出した内容は「データ無し」であり、逆に、カード
コネクタ3にメモリカードlを挿入すると、ラッチ回路
5の内容は「データ無しJ、CPU4で読みだしたデー
タはiカード有り」である。そして、この比較によって
、メモリカードlからの信号状−態が「カード有り」か
ら「データ無し」に変化した場合、又は、「データ無し
」から「カード有り」に変化した場合には、CPU4は
タイマー9からの定期的をパルスの入力により、再び読
み出したメモリカードlからのデータと、ランチ回路5
のラッチ内容とを入力して、両者を比較し、データの内
容が初期状態と一致するまでCPU4は他の処理を中止
した状態になる。
When the CPU 4 receives a pulse from the timer 9, the CPU 4 reads out the data IC of the memory card 1, and the latch circuit 5 latches the data IC of the memory card 1. Next, when a pulse signal is periodically input to the CPU 4 from the timer 9, the CPU
4 inputs the data read from the memory card 1 and the contents latched by 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 "card present". be. Then, when the memory card 1 inserted into the card connector 3 is removed for some reason, the contents of the latch circuit 5 are "Card present", and the contents read by the CPU 4 are "No data"; When the memory card I is inserted into the connector 3, the contents of the latch circuit 5 are "No data J, data read by CPU 4 is i card present". As a result of this comparison, if the signal status from the memory card l changes from "card present" to "no data" or from "no data" to "card present", the CPU 4 By periodically inputting pulses from the timer 9, the data read out from the memory card l and the launch circuit 5 are read out again.
The CPU 4 inputs the latch contents of , compares the two, and suspends other processing until the data contents match the initial state.

このようにして、端末装置2におけるメモリカード1の
挿抜状態を検出することができ、メモリカード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 stops other processing until the data matches the initial state. It is possible to prevent accidents such as data destruction and runaway programs.

前記したメモリカードlの挿抜検出の手順を第3図(A
)、(B)のフローチャートを基にして説明する。第3
図(A)はCPU4におけるメインルーチンを示すが、
まず、メモリカード1の挿。
The procedure for detecting the insertion and removal of the memory card l described above is shown in FIG.
), (B) will be explained based on the flowcharts. Third
Figure (A) shows the main routine in CPU4,
First, insert memory card 1.

接状態を検出しく5TEP■)、その後割り込みを受け
(STEP■)、端末装置2において必要な処理を行い
(STEP■)、適当な周期で5TEP■に戻りメモリ
カード1の挿抜状態を再び確認する(S T E P■
)。5TEP■では、第3図(B)で示すサブルーチン
が実行される。サブルーチンでは、まず、メモリカード
lからのデータの内容(「カード有り」又は「データ無
し」)をチェックしく5TEP■)、その結果と前回チ
ェックしたデータの初期状態とを比較する(STEP■
)。5TEP■でデータに変化がなかった場合には、再
び、第3図(A)のメインルーチンに戻り、その後の所
要の処理が継続され、以上の手順が反復される。
5TEP■) to detect the connected state, then receive an interrupt (STEP■), perform the necessary processing in the terminal device 2 (STEP■), and return to 5TEP■ at an appropriate cycle to check again whether the memory card 1 is inserted or removed. (STEP■
). At 5TEP■, the subroutine shown in FIG. 3(B) is executed. In the subroutine, first check the contents of the data from the memory card l ("card present" or "no data") (5TEP■), and compare the result with the initial state of the data checked last time (STEP■
). If there is no change in the data at 5 TEP (2), the process returns to the main routine of FIG. 3(A), the subsequent necessary processing is continued, and the above procedure is repeated.

そして、5TE)’■でデータの内容が初期状態と変化
があったと判断された場合には、5TEP■に移って再
びデータICをチェックし、5TEP■で初期状態と比
較する。5TEP■の比較の結果、5TEP[相]でデ
ータの内容が初期状態と変化があったと判断されると、
5TEP■に戻って、初期状態と一致するまで、5TE
P■から[相]までの手順が繰り返され、一致したとき
に5TEP■に移る。5TEP(illでは前回書き込
み、読み出しができなかったデータの処理が行われるこ
とになり、再び、第3図(A)のメインルーチンに戻り
、その後の所要の処理が継続され、以上の手順が反復さ
れる。
If it is determined at 5TE)'■ that the data contents have changed from the initial state, the process moves to 5TEP■, where the data IC is checked again, and compared with the initial state at 5TEP■. As a result of the comparison of 5TEP■, if it is determined that the data content in 5TEP [phase] has changed from the initial state,
Return to 5TEP ■ and repeat 5TE until it matches the initial state.
The procedure from P■ to [phase] is repeated, and when a match is found, the process moves to 5TEP■. 5TEP (ill will process the data that could not be written or read last time, so the process returns to the main routine in Figure 3 (A) again, and the subsequent necessary processing continues, and the above steps are repeated. be done.

なお、本発明のメモリユニット接続検出装置は、ハード
構成によっても、あるいはソフト的にも実現できること
は勿論である。
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 explanation, according to the present invention, it is possible to confirm the insertion/removal status of the card by checking the data written to a specific address of the card, and if there is a change from the initial status, the initial status can be confirmed. Since other processing is stopped until a match is made, even if a card is inserted or removed by mistake during card reading or writing, data destruction and program runaway can be prevented and the entire system can be maintained.

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

図面は本発明に関するメモリユニット接続検出装置の一
実施例を示し、第1図は全体構成を示す回路図、第2図
はメモリカードとカードコネクタとの接続関係を示す説
明図、第3図はメモリカードの挿抜状態を検出する手順
を示すフローチャートである。 (主要部分を示す図面の簡単な説明) 1・・メモリカード   1a・・接続ピンlb・・特
定番地
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 lb...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. 1. A memory unit connection detection device characterized by comprising a control means for checking the initial state and stopping other processing until the state matches the initial state when there is a change from the initial state.
JP62115658A 1987-05-12 1987-05-12 Detecting device for connection of memory unit Pending JPS63279344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62115658A JPS63279344A (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
JP62115658A JPS63279344A (en) 1987-05-12 1987-05-12 Detecting device for connection of memory unit

Publications (1)

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

Family

ID=14668095

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPS63279344A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0448369A2 (en) * 1990-03-22 1991-09-25 Nokia Mobile Phones Ltd. Control of a card interface for access to an apparatus such as a telephone

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0448369A2 (en) * 1990-03-22 1991-09-25 Nokia Mobile Phones Ltd. Control of a card interface for access to an apparatus such as a telephone

Similar Documents

Publication Publication Date Title
KR940011670B1 (en) Interrupt controller
US5218525A (en) Method and apparatus for partially running a sequence program for debugging thereof
US5159183A (en) Ic card
US5473757A (en) I/O controller using single data lines for slot enable/interrupt signals and specific circuit for distinguishing between the signals thereof
JPH01133167A (en) Data transfer driver
US5313621A (en) Programmable wait states generator for a microprocessor and computer system utilizing it
JPH01108653A (en) Memory content protection circuit
JPS63279344A (en) Detecting device for connection of memory unit
US5261083A (en) Floppy disk controller interface for suppressing false verify cycle errors
JPS63279390A (en) Connection detecting device
JPS63279343A (en) Detecting device for connection of memory unit
KR870000650A (en) Method and apparatus for informing I / O to processor
JPS63279389A (en) Connection detector
JPS61281317A (en) Electronic apparatus capable of using extension memory cartridge
EP0293261B1 (en) Digital in-circuit tester having channel-memory erase-preventer
CN1328635C (en) Data processing apparatus
JPS61213910A (en) Display system for not ready state
JPS6461847A (en) Dma control circuit
KR100250007B1 (en) Control method
JPH0125095B2 (en)
JPS63228856A (en) Communication controller
US4777619A (en) Method of assuring a proper computer subsystem configuration
JPH01223586A (en) Ic card testing system
JPH05224999A (en) Runaway processor
JPS61226866A (en) Automatic discriminating system for substrate