JPH03269785A - Contact failure detecting method for memory card - Google Patents

Contact failure detecting method for memory card

Info

Publication number
JPH03269785A
JPH03269785A JP2070605A JP7060590A JPH03269785A JP H03269785 A JPH03269785 A JP H03269785A JP 2070605 A JP2070605 A JP 2070605A JP 7060590 A JP7060590 A JP 7060590A JP H03269785 A JPH03269785 A JP H03269785A
Authority
JP
Japan
Prior art keywords
data
memory card
address
contact failure
written
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
JP2070605A
Other languages
Japanese (ja)
Inventor
Yasutoshi Miyagi
安利 宮城
Hideo Tanaka
英男 田中
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2070605A priority Critical patent/JPH03269785A/en
Publication of JPH03269785A publication Critical patent/JPH03269785A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the malfunction in advance by sending out successively a prescribed address signal and data to an address line and a data line of a memory card writing the data, and thereafter, reading it. CONSTITUTION:When a memory card 1 is installed in a device 2, a contact failure detecting part 3-1 inputs successively an address signal by which only one piece of address lines of the installed memory card 1 becomes '1' (or '0') and writes data, and thereafter, when read data does not match with written data, it is detected to be a contact failure. Also, data 55H (and AAH) are inputted to a data line and written, and thereafter, when read data does not match with these written data, it is detected to be a contact failure. In such a way, the contact failure of the memory card 1 can be detected simply and exactly by a software, and a data change and a runaway of a program can be prevented in advance.

Description

【発明の詳細な説明】 〔概要〕 メモリカードを装置に装着したときの接触不良を検出す
る接触不良検出方法に関し、 メモリカードのアドレス線およびデータ線に所定のアド
レス信号およびデータを順次送出してライトした後にリ
ードして接触不良を検出し、メモリカードの接触不良を
検出して誤動作を未然に防止することを目的とし、 複数のアドレス線および複数のデータ線を持つメモリカ
ードを装置に装着したときに、当該装置からこのメモリ
カードのアドレス線のうちの1本のみが1 (あるいは
O)となるアドレス信号を順次入力してデータをライト
した後にリードしたデータがライトしたデータと一致し
ないときに接触不良と検出し、更に、データ線にデータ
55H(およびAAH)を入力してライトした後にリー
ドしたデータがこれらライトしたデータと一致しないと
きに接触不良と検出するように構成する。
[Detailed Description of the Invention] [Summary] A contact failure detection method for detecting contact failure when a memory card is installed in a device includes sequentially sending predetermined address signals and data to the address line and data line of the memory card. A memory card with multiple address lines and multiple data lines is installed in a device with the purpose of detecting poor contact by reading after writing and preventing malfunction by detecting poor contact of the memory card. Sometimes, after writing data by sequentially inputting address signals in which only one of the address lines of this memory card becomes 1 (or O) from the device, the read data does not match the written data. A contact failure is detected, and a contact failure is further detected when the data read after inputting and writing data 55H (and AAH) to the data line does not match the written data.

〔産業上の利用分野〕[Industrial application field]

本発明は、メモリカードを装置に装着したときの接触不
良を検出する接触不良検出方法に関するものである。近
年、半導体技術の発展に伴いメモリカードが急速に普及
してきた。それに伴い、パソコン、ワープロ本体にメモ
リカード(増設RAMカードなど)として、手軽に脱着
できるようになってきた。この際、ソフトウェアによっ
て簡易にメモリカードの接触不良を検出することが望ま
れている。
The present invention relates to a contact failure detection method for detecting contact failure when a memory card is installed in a device. In recent years, memory cards have rapidly become popular with the development of semiconductor technology. Along with this, it has become possible to easily attach and detach memory cards (extended RAM cards, etc.) to personal computers and word processors. At this time, it is desired to easily detect poor contact of the memory card using software.

〔従来の技術と発明が解決しようとする課題〕従来、パ
ソコン、ワープロ本体の増設用のスロットにメモリカー
ドを装着した場合、当該メモリカードの両端のピンの接
触を確認して挿入されたと判断していた。このため、メ
モリカードが装置に斜めに装着されたり、塵が挟まった
りなどして接触不良が発生しても検出し得ないという問
題があった。
[Prior art and the problem to be solved by the invention] Conventionally, when a memory card is inserted into an expansion slot of a personal computer or word processor, the insertion is determined by checking that the pins at both ends of the memory card are in contact. was. For this reason, there is a problem in that even if a contact failure occurs, such as when the memory card is installed at an angle in the device or when dust gets caught, it cannot be detected.

また、メモリカードがROMの場合には、メモリカード
に予めチエツクサムを書き込んでソフトウェアでこれを
読み出して接触不良を未然に検出する方法があるが、メ
モリカードがRAMの場合には予めチエツクサムを書き
込んでおくことができないという問題があった。
In addition, if the memory card is a ROM, there is a method of writing a checksum on the memory card in advance and reading it with software to detect poor contact in advance. The problem was that I couldn't leave it there.

本発明は、メモリカードのアドレス線およびデータ線に
所定のアドレス信号およびデータを順次送出してライト
した後にリードして接触不良を検出し、メモリカードの
接触不良を検出して誤動作を未然に防止することを目的
としている。
The present invention sequentially sends predetermined address signals and data to address lines and data lines of a memory card, writes them, and then reads them to detect poor contact, thereby detecting poor contact of the memory card and preventing malfunctions. It is intended to.

〔課題を解決する手段〕[Means to solve problems]

第1図を参照して課題を解決する手段を説明する。 Means for solving the problem will be explained with reference to FIG.

第1図において、メモリカード1は、複数のアドレス線
および複数のデータ線を持つ読み書き可能なメモリカー
ドである。
In FIG. 1, a memory card 1 is a readable/writable memory card having multiple address lines and multiple data lines.

装置2は、メモリカード1を装着するものである。The device 2 is to which the memory card 1 is attached.

接触不良検出部3−1は、メモリカードlの複数のアド
レス線、複数のデータ線などの接触不良を検出するプロ
グラムである。
The contact failure detection unit 3-1 is a program that detects contact failures in a plurality of address lines, a plurality of data lines, etc. of the memory card l.

〔作用〕[Effect]

本発明は、第1図に示すように、メモリカード1を装置
2に装着したときに、接触不良検出部3−1がこの装着
したメモリカード1のアドレス線のうちの1本のみが1
 (あるいは0)となるアドレス信号を順次入力してデ
ータをライトした後にリードしたデータがライトしたデ
ータと一致しないときに接触不良と検出し、更に、デー
タ線にデータ55H(およびAAH)を入力してライト
した後にリードしたデータがこれらライトしたデータと
一致しないときに接触不良と検出するようにしている。
As shown in FIG. 1, when the memory card 1 is installed in the device 2, the present invention detects that only one of the address lines of the installed memory card 1 is 1.
(or 0) and write data. If the read data does not match the written data, a contact failure is detected, and data 55H (and AAH) is input to the data line. A contact failure is detected when the data read after being written does not match the written data.

従って、メモリカード1のアドレス線およびデータ線に
所定のアドレス信号およびデータを順次送出してライト
した後にリードして接触不良を検出することにより、メ
モリカード1の接触不良を検出して誤動作を未然に防止
することが可能となる。
Therefore, by sequentially sending predetermined address signals and data to the address line and data line of the memory card 1, writing them, and then reading them to detect a contact failure, a contact failure of the memory card 1 can be detected and a malfunction can be prevented. This makes it possible to prevent

〔実施例〕〔Example〕

次に、第1Tj!Jから第5図を用いて本発明の1実施
例の構成および動作を順次詳細に説明する。
Next, the 1st Tj! The configuration and operation of one embodiment of the present invention will be sequentially explained in detail using FIGS.

第1図において、メモリカード1は、複数のアドレス線
および複数のデータ線を持つ読み書き可能なメモリカー
ドであって、例えばRAM  CARD (RAMカー
ド)である。
In FIG. 1, a memory card 1 is a readable/writable memory card having a plurality of address lines and a plurality of data lines, and is, for example, a RAM CARD.

装置2は、メモリカード1を増設ボートに装着してメモ
リ容量を増設するワープロ、パソコン本体などであって
、メモリ3、CPU4、デイスプレィ5、キーボード6
、FD (フロッピィディスク装置)7、プリンタ8な
どから構成されている。
The device 2 is a word processor, a personal computer, etc., whose memory capacity is expanded by attaching the memory card 1 to an expansion board, and includes a memory 3, a CPU 4, a display 5, and a keyboard 6.
, an FD (floppy disk device) 7, a printer 8, and the like.

接触不良検出部3−1は、メモリカードlの複数のアド
レス線、複数のデータ線などの接触不良を検出するプロ
グラムである。
The contact failure detection unit 3-1 is a program that detects contact failures in a plurality of address lines, a plurality of data lines, etc. of the memory card l.

第2図は、本発明に係るメモリカードの接触不良検出説
明図を示す、ここで、アドレスooooooは装置2に
装着したメモリカード1のアドレス線(アドレスバス〉
に入力するアドレス信号を表し、データ00.55、A
Aはメモリカードlのデータ線(データバス)にライト
するデータを表す。
FIG. 2 shows an explanatory diagram of contact failure detection of a memory card according to the present invention, where the address oooooo is the address line (address bus) of the memory card 1 installed in the device 2.
represents the address signal input to the data 00.55, A
A represents data to be written to the data line (data bus) of the memory card l.

第2図において、斜線部分は、データ00.55、AA
などをライトする領域である。これらの領域は、アドレ
ス000001 (=2°) 、000002(・21
)、000004 (・2”) 、000008(・2
3)・・・に対応し、アドレス線の下位ビット1、ビッ
ト2、ビット3・・・のアドレスのみを1にした領域で
ある(第5図を用いて後述する)、これら領域にデータ
00Hをライトした後にリードしてアドレス線の接触不
良を検出するようにしている(第3図を用いて後述する
)、また、データ55(データAA)は、データ線に0
1010101の1バイトのデータ(10101010
の1バイトのデータ)を−括してライトした後にリード
してデータ&I(8ピント幅のデータ線)の接触を検出
するようにしている(第4WJを用いて後述する)。
In Figure 2, the shaded area is data 00.55, AA
This is an area where you can write such things. These areas are at addresses 000001 (=2°) and 000002 (・21
), 000004 (・2”), 000008 (・2
3) Corresponding to..., this is an area where only the lower bits 1, 2, 3, etc. of the address line are set to 1 (described later using FIG. 5), and data 00H is stored in these areas. Data 55 (data AA) is read after writing to detect a contact failure in the address line (described later with reference to FIG. 3).
1 byte data of 1010101 (10101010
1 byte of data) is written all at once and then read to detect the contact of data &I (8 pin width data line) (described later using the 4th WJ).

第3図フローチャートを用いてアドレス線の接触不良の
検出の手順を詳細に説明する。
The procedure for detecting contact failure of address lines will be explained in detail using the flowchart of FIG.

第3図において、■は、メモリカード1を装置2に装着
する。
In FIG. 3, (■) attaches the memory card 1 to the device 2.

■は、両端のピンの挿入が正常か否かを検出する。これ
は、■でメモリカード1を装置2の増設ボートに挿入し
たときにハードウェアによって当該メモリカード1の両
端のビンが正常に挿入されたか否かをハードウェア的に
検出する。YESの場合(正常の場合)には、0ないし
[相]のソフトウェアによる接触不良検出を行う。No
の場合には、接触不良と判断する。
(2) detects whether the pins at both ends are inserted correctly. This is because when the memory card 1 is inserted into the expansion board of the device 2 in step (3), the hardware detects whether or not the bins at both ends of the memory card 1 have been correctly inserted. If YES (normal), contact failure detection is performed by software for 0 to [phase]. No
In this case, it is determined that there is a poor contact.

0は、2°番地に0をライトする。これは、第1図接触
不良検出部3−1が、メモリカード1のアドレス線に2
e′番地のアドレスを入力してデータOOHをライトす
る。
0 writes 0 to address 2°. This means that the contact failure detection unit 3-1 in FIG.
Input address e' and write data OOH.

■は、21番地に0をライトする。■ writes 0 to address 21.

同様にして22番地から21番地まで順次0をライトす
る。
Similarly, 0 is sequentially written from address 22 to address 21.

■は、215番地に0をライトする。■ writes 0 to address 215.

以上の手順によって、アドレス線0ないし15までのい
ずれかのビットを1にしたアドレス(第2図斜線の部分
)にデータOOHをライトしたこととなる。
By the above procedure, data OOH is written to the address (shaded area in FIG. 2) where any bit of address lines 0 to 15 is set to 1.

[相]は、2°番地からデータをリードする。[Phase] reads data from address 2°.

0は、[相]でリードしたデータが0か否かを判別する
。YESの場合には、当該2°番地のアドレス線が正常
と判断し、[相]で次のアドレス線について行う、NO
の場合には、リードしたデータがライトしたデータ0に
一致しないので、接触不良と判断する。
0 determines whether the data read in [phase] is 0 or not. If YES, it is determined that the address line at the 2° address is normal, and the next address line is selected using [Phase].
In this case, since the read data does not match the written data 0, it is determined that there is a contact failure.

[相]は、20番地からデータをリードする。[Phase] reads data from address 20.

[相]は、■でリードしたデータが0か否かを判別する
。YESの場合には、当該21番地のアドレス線が正常
と判断し、次のアドレス線について行う、NOの場合に
は、接触不良と判断する。
[Phase] determines whether the data read in (■) is 0 or not. If YES, it is determined that the address line at address 21 is normal, and the next address line is determined. If NO, it is determined that there is a contact failure.

同様にして22番地から21414番地順次リードして
0か否かを判別する。YESの場合に正常とし、Noの
場合に接触不良と判断する。
Similarly, addresses 22 to 21414 are sequentially read to determine whether they are 0 or not. If YES, it is determined to be normal, and if NO, it is determined to be poor contact.

[相]は、21515番地データをリードする。[Phase] reads data at address 21515.

■は、[相]でリードしたデータが0か否かを判別する
。YESの場合には、当該2+s番地のアドレス線が正
常と判断し、アドレス線0ないし15が全て正しく接触
していると判断する。一方、NOの場合には、接触不良
と判断する。
(2) determines whether the data read in [phase] is 0 or not. If YES, it is determined that the address line at the address 2+s is normal, and that all address lines 0 to 15 are in proper contact. On the other hand, in the case of NO, it is determined that there is a poor contact.

次に、第4図フローチャートを用いてデータ線の接触不
良の検出の手順を詳細に説明する。
Next, the procedure for detecting poor contact of the data line will be explained in detail using the flowchart of FIG.

第4図において、[相]は、データ55Hをメモリカー
ド1にライトする。これは、第5図(ロ)に示すように
、01010101という0と1とが交互に現れるデー
タ55Hをメモリカード1のデータ線に送出してライト
する。尚、データ線のビット幅が8ピントでなく更に1
6ビツトのように広い場合には、5555Hを一括して
ライトする。
In FIG. 4, [phase] writes data 55H to the memory card 1. As shown in FIG. 5(b), data 55H of 01010101, in which 0 and 1 appear alternately, is sent to the data line of the memory card 1 and written. In addition, the bit width of the data line is not 8 pints, but 1 pin width.
If it is wide like 6 bits, 5555H is written all at once.

@は、メモリカードからデータをリードする。@ reads data from the memory card.

0は、Oでリードしたデータが55Hか否かを判別する
。YESの場合には、[相]ないし[株]でデータAA
Hについても同様に行う、NOの場合には、データ線の
接触不良とする。
0 determines whether the data read at O is 55H. If YES, data AA in [phase] or [stock]
The same process is performed for H. If NO, it is determined that there is a poor contact in the data line.

[相]は、データAAHをメモリカード1にライトする
。これは、第5図(ロ)に示すように、1010102
0というlとOとが交互に現れるデータAAHをメモリ
カード1のデータ線に送出してライトする。尚、データ
線のピント幅が8ビツトでなく更に16ビントのように
広い場合には、AA  AAHを一括してライトする。
[Phase] writes data AAH to the memory card 1. This is 1010102 as shown in Figure 5 (b).
Data AAH in which 0, 1 and 0 appear alternately, is sent to the data line of the memory card 1 and written. Note that if the focus width of the data line is not 8 bits but wider, such as 16 bits, AA AAH are written all at once.

■は、メモリカードエからデータをリードする。■ Read data from the memory card.

[株]は、■でリードしたデータがAAHか否かを判別
する。YESの場合には、データ線の接触が正常と判断
する。一方、NOの場合には、データ線の接触不良と判
断する。
[Stock] determines whether the data read in ■ is AAH or not. If YES, it is determined that the data line contact is normal. On the other hand, in the case of NO, it is determined that there is a poor contact of the data line.

第5図は、本発明に係るアドレス線/データ線の説明図
を示す。
FIG. 5 shows an explanatory diagram of address lines/data lines according to the present invention.

第5図(イ)は、アドレス線が2°、21.22 ・・
・215のときの2°番地、21番地、21番地・・・
215番地のアドレス信号を示す。これらはいずれかの
ピントが1のときのアドレス信号であって、この1に対
応するアドレス線の接触の良否につい第3図フローチャ
ートに示す手順に従って検出するようにしている。
In Figure 5 (a), the address line is 2°, 21.22...
・Address 2° at 215, address 21, address 21...
The address signal of address 215 is shown. These are address signals when the focus is 1, and whether or not the address line corresponding to 1 is in contact is detected according to the procedure shown in the flowchart of FIG.

第5図(ロ)は、データ線が2821、22・・・2マ
のときにライトするデータ55H,AAHを示す、デー
タ55HはOと1とが交互に現れるデータであり、デー
タAAHは1とOとが交互に現れるデータである。この
データ55H,AAHを用いて第4図フローチャートに
示す手順に従ってデータ線の接触の良否を検出するよう
にしている。
FIG. 5(b) shows data 55H and AAH written when the data lines are 2821, 22, . This is data in which "" and "O" appear alternately. The data 55H and AAH are used to detect whether or not the data line is in good contact according to the procedure shown in the flowchart of FIG.

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

以上説明したように、本発明によれば、メモリカード1
のアドレス線に所定のアドレス信号を送出してデータ(
例えばOOHなど)をライトした後にリード、およびデ
ータ線に対してデータ55H,AAHをライトした後に
リードして接触不良を検出する構成を採用しているため
、メモリカードの接触不良をソフトウェアによって簡便
かつ正確に検出することができる。これにより、メモリ
カードの接触不良を検出し、データ化け、プログラムの
暴走を未然に防ぐことが可能となる。
As explained above, according to the present invention, the memory card 1
A predetermined address signal is sent to the address line of the
For example, OOH, etc.) is read after writing, and data 55H and AAH are written to the data line and then read to detect contact failures, so contact failures of memory cards can be detected easily and easily by software. Can be detected accurately. This makes it possible to detect poor contact with the memory card and prevent data corruption and program runaway.

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

第1図は本発明の1実施例構戒図、第2図は本発明に係
るメモリカードの接触不良検出説明図、第3図、第4図
は本発明の動作説明フローチャート、第5図は本発明に
係るアドレス線/データ線の説明図を示す。 図中、1はメモリカード、2はメモリカードを装着する
装置、3−1は接触不良検出部を表す。
Fig. 1 is a schematic diagram of one embodiment of the present invention, Fig. 2 is an explanatory diagram of contact failure detection of a memory card according to the present invention, Figs. 3 and 4 are flowcharts for explaining the operation of the present invention, and Fig. 5 is An explanatory diagram of address lines/data lines according to the present invention is shown. In the figure, 1 represents a memory card, 2 represents a device for mounting the memory card, and 3-1 represents a poor contact detection unit.

Claims (1)

【特許請求の範囲】[Claims]  メモリカードを装置に装着したときの接触不良を検出
する接触不良検出方法において、複数のアドレス線およ
び複数のデータ線を持つメモリカード(1)を装置(2
)に装着したときに、当該装置(2)からこのメモリカ
ード(1)のアドレス線のうちの1本のみが1(あるい
は0)となるアドレス信号を順次入力してデータをライ
トした後にリードしたデータがライトしたデータと一致
しないときに接触不良と検出し、更に、データ線にデー
タ55H(およびAAH)を入力してライトした後にリ
ードしたデータがこれらライトしたデータと一致しない
ときに接触不良と検出するように構成したことを特徴と
するメモリカードの接触不良検出方法。
In a poor contact detection method for detecting poor contact when a memory card is installed in a device, a memory card (1) having multiple address lines and multiple data lines is connected to a device (2).
), the device (2) sequentially inputs an address signal such that only one of the address lines of this memory card (1) becomes 1 (or 0), writes data, and then reads it. A contact failure is detected when the data does not match the written data, and a contact failure is detected when the data read after inputting and writing data 55H (and AAH) to the data line does not match the written data. A method for detecting poor contact of a memory card, characterized in that the method is configured to detect poor contact of a memory card.
JP2070605A 1990-03-20 1990-03-20 Contact failure detecting method for memory card Pending JPH03269785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2070605A JPH03269785A (en) 1990-03-20 1990-03-20 Contact failure detecting method for memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2070605A JPH03269785A (en) 1990-03-20 1990-03-20 Contact failure detecting method for memory card

Publications (1)

Publication Number Publication Date
JPH03269785A true JPH03269785A (en) 1991-12-02

Family

ID=13436381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2070605A Pending JPH03269785A (en) 1990-03-20 1990-03-20 Contact failure detecting method for memory card

Country Status (1)

Country Link
JP (1) JPH03269785A (en)

Similar Documents

Publication Publication Date Title
US5499346A (en) Bus-to-bus bridge for a multiple bus information handling system that optimizes data transfers between a system bus and a peripheral bus
JPH02500307A (en) Auto-sizing memory system
JP2009277174A (en) Bus signal control circuit, and signal processing circuit equipped with bus signal control circuit
JP2005149501A (en) System and method for testing memory with expansion card using dma
JPH07141176A (en) Command retrial control system
US5673419A (en) Parity bit emulator with write parity bit checking
US5204964A (en) Method and apparatus for resetting a memory upon power recovery
JPH03269785A (en) Contact failure detecting method for memory card
JP2003345669A (en) System and method for preventing memory access error
JP3202696B2 (en) Signal processing device
JPH0778231A (en) Memory card
JP2513615B2 (en) Storage device with ECC circuit
JP2735246B2 (en) Test and set method
JPH1153487A (en) Method for deciding validity of written data on ic card
JPS6043541B2 (en) data processing equipment
JP3106448B2 (en) Processor unit
JPH0793225A (en) Memory check system
JPH0764869A (en) Method for controlling error ceneration for test in storage device and device therefor
JPS61294556A (en) Detection system for program malfunction
JPH04101253A (en) Operation testing system for ecc circuit of memory
JPS6252649A (en) Hard error detector for memory element
JPS63129440A (en) Store through buffer device
JPH05265864A (en) Memory managing circuit and processor unit with memory managing circuit
JPS5831680B2 (en) Control method for multiplexed storage device
JPH10293743A (en) Bus transfer processing system