JPH05274217A - Eeprom/eprom detecting system - Google Patents

Eeprom/eprom detecting system

Info

Publication number
JPH05274217A
JPH05274217A JP4067770A JP6777092A JPH05274217A JP H05274217 A JPH05274217 A JP H05274217A JP 4067770 A JP4067770 A JP 4067770A JP 6777092 A JP6777092 A JP 6777092A JP H05274217 A JPH05274217 A JP H05274217A
Authority
JP
Japan
Prior art keywords
address
data
eeprom
eprom
read
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.)
Withdrawn
Application number
JP4067770A
Other languages
Japanese (ja)
Inventor
Hiroshi Sakai
宏史 坂井
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP4067770A priority Critical patent/JPH05274217A/en
Publication of JPH05274217A publication Critical patent/JPH05274217A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To detect erroneous mounting when switching connection is different from a mounted device by performing specified device detection flow. CONSTITUTION:First of all, a CPU (C) performs EEPROM setting by impressing signals at an 'L' level to a selector SC. In this case, inputs B1, and B2, of the selector SC are connected to outputs Y1 and Y2. At such a time, data X are read from an address 4000(H), data Y are read from an address 0000(H), it is judged whether both of data X and Y are coincident or not, when they are not coincident, EEPROM mounting is judged and when they are coincident, the CPU switches the select signal to an 'H' level. In this case, inputs A1 and A2 of the selector SC are connected to the outputs Y1 and Y2. At such a time, the data X are read from the address 4000(H), the data Y are read from the address 0000(H), it is judged whether both of data X and Y are coincident or not, when they are not coincident, EPROM mounting is judged and when they are coincident, unmounting is judged.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラメモリのユーザプログラムメモリとして使用する
EEPROM/EPROMの検出方式に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an EEPROM / EPROM detection system used as a user program memory of a programmable controller memory.

【0002】[0002]

【従来の技術】図4は従来例方式を用いた回路構成を示
しており、256KbitのEEPROMや、EPRO
Mを差換え接続することができるICソケット(A)は
28個の接続ピンを備え、図に於いて、1から8番まで
の接続ピンはデータD0 〜D7のデータ端子に対応し、
また9番の接続ピンはグランド端子に対応し、更にまた
10から23番までの接続ピンはアドレスA0 〜A13
対応し、更に24番の接続ピンはEPROMではアドレ
スA14の端子に、またEERROMでは読み出し、書込
みの制御端子に対応し、更に25番の接続ピンはEPR
OMではVpp端子に、EEPROMではアドレスA14
の端子に対応し、26番、27番の接続ピンは夫々CS
端子、OE端子に対応し、更に28番の接続ピンはVc
c端子に対応しており、上記1から8番までの接続ピン
はデータバス(DB)を介してCPU(C)に接続さ
れ、また10から23番までの接続ピンは直接アドレス
バス(AB)を介してCPU(C)に、また24番の接
続ピンは切換スイッチ(SW1)の共通端子C1 に接続
され、切換によりCPU(C)の読み書き用の制御線
(MWR)或いはアドレスA14に対応するアドレスバス
(AB)に切換接続されるようになっている。またまた
25番の接続ピンは切換スイッチ(SW1 )に連動する
切換スイッチ(SW2 )の共通端子C2 に接続され、ア
ドレスA14に対応するアドレスバス(AB)或いは電源
Vppに接続されるようになっている。
2. Description of the Related Art FIG. 4 shows a circuit configuration using a conventional example system, which is a 256 Kbit EEPROM or EPRO.
The IC socket (A) that can connect and replace M is equipped with 28 connection pins. In the figure, the connection pins 1 to 8 correspond to the data terminals of data D 0 to D 7 ,
The 9th connecting pin corresponds to the ground terminal, the 10th to 23rd connecting pins correspond to the addresses A 0 to A 13 , and the 24th connecting pin corresponds to the address A 14 terminal in the EPROM. In addition, the EERROM corresponds to the read / write control terminals, and the 25th connection pin is EPR.
For OM, it is connected to Vpp terminal, and for EEPROM, address A 14
No. 26 and No. 27 connecting pins are CS
Corresponds to terminals and OE terminals, and the 28th connection pin is Vc
Corresponding to the c terminal, the connection pins 1 to 8 are connected to the CPU (C) via the data bus (DB), and the connection pins 10 to 23 are the direct address bus (AB). connecting pins of the CPU (C), also the 24th through is connected to the common terminal C 1 of the change-over switch (SW 1), the control lines for reading and writing CPU by switching (C) (MWR) or address a 14 Are switched and connected to the address bus (AB) corresponding to. In addition, the connection pin No. 25 is connected to the common terminal C 2 of the changeover switch (SW 2 ) interlocking with the changeover switch (SW 1 ) and connected to the address bus (AB) corresponding to the address A 14 or the power supply Vpp. It has become.

【0003】上記のようにICソケット(A)に接続さ
れるものがEERROMかEPROMかの違いによって
対応する端子が異なるため、従来例回路では切換スイッ
チ(SW1 )及び(SW2 )の切り換えにより使用デバ
イスに対応させるようにしていた。
As described above, since the corresponding terminals are different depending on whether the one connected to the IC socket (A) is EERROM or EPROM, in the conventional circuit, the changeover switches (SW 1 ) and (SW 2 ) are changed. It was made to correspond to the device used.

【0004】[0004]

【発明が解決しようとする課題】ところで上記従来例で
は装着したデバイスに対応しない切換接続を行なった場
合には、次のような不都合が生じる問題があった。つま
りEEPROMに対応した切換接続を行なっている状態
で、EPROMを接続した場合、CPU(C)からデー
タの読み取りを行なうと制御線(MWR)が”H”とな
るため、EPROMのアドレスA14が”H”となり、そ
のため後半の16KB分しか読めないことなる。
By the way, in the above-mentioned conventional example, there is a problem that the following inconvenience occurs when the switching connection which does not correspond to the mounted device is made. That is, when the EPROM is connected while the switching connection corresponding to the EEPROM is being performed, when the data is read from the CPU (C), the control line (MWR) becomes "H", so that the address A 14 of the EPROM is It becomes "H", so that only the latter half of 16KB can be read.

【0005】またEPROMに対応した切換接続を行な
っている状態で、EEPROMを接続した場合、CPU
(C)からのチップセレクトによりCS端子が図5
(a)に示すように”L”となってチップセレクトさ
れ、例えば0番地を呼び出すアドレスが設定された場
合、アドレスA1 〜A13に対応する端子には図5(b)
に示すように所定のアドレスデータが与えられるが、ア
ドレスA14に対応する端子は電源Vccに吊り上げられ
て図5(c)に示すように”H”となり、またWR端子
に対応する端子は図5(e)に示すように”L”となる
ため、EEPROMは、CPU(C)からアウトイネー
ブル信号がOE端子に図5(d)に示すように与えられ
ている期間において、EEPROMに対して書込みが為
されて、誤った書込みが発生してしまうということが起
きるという問題があった。
If the EEPROM is connected while the switching connection corresponding to the EPROM is being made, the CPU
By selecting the chip from (C), the CS terminal is shown in FIG.
As shown in FIG. 5A, when the chip is selected as “L” and the address for calling address 0 is set, the terminals corresponding to the addresses A 1 to A 13 are connected to the terminals shown in FIG.
As shown in FIG. 5, given address data is given, but the terminal corresponding to the address A 14 is hung up by the power supply Vcc to become “H” as shown in FIG. 5C, and the terminal corresponding to the WR terminal is As shown in FIG. 5 (e), it becomes "L", so that the EEPROM is in a state in which the out enable signal is applied from the CPU (C) to the OE terminal as shown in FIG. 5 (d). There is a problem in that writing may occur and incorrect writing may occur.

【0006】請求項1記載の発明は、上記問題点に鑑み
て為されたもので、その目的とするところは切り換え接
続と、装着デバイスとが異なっている場合にこの誤装着
を検出することができ、またEEPROMの記憶内容が
破壊することがないEEPROM/EPROM検出方式
を提供するにある。請求項2記載の発明の目的とすると
ころは切り換え接続と、装着デバイスとが異なっている
場合にこの誤装着を検出して、自動的に正しい切り換え
接続を行なうことができるEEPROM/EPROM検
出方式を提供するにある。
The invention according to claim 1 is made in view of the above problems, and the purpose thereof is to detect this erroneous mounting when the switching connection and the mounting device are different. Another object of the present invention is to provide an EEPROM / EPROM detection method which can be done and which does not destroy the contents stored in the EEPROM. An object of the present invention is to provide an EEPROM / EPROM detection system capable of detecting the erroneous mounting when the switching connection and the mounting device are different and automatically performing the correct switching connection. To provide.

【0007】[0007]

【課題を解決するための手段】請求項1記載の発明は、
同一記憶容量で且つピン数が同じEPROMのアドレス
端子中の最上位のビットに対応するアドレス端子に読み
書き制御の信号が接続される端子が対応し、且つアドレ
ス端子中最上位のビットの端子がEPROMのアドレス
端子以外の端子に対応し、残りのアドレス端子がEPR
OMの残りのアドレス端子と同じ位置で且つデータ端子
も同じ位置にあるEEPROMと、上記EPROMとを
同一ICソケットに交換自在に装着し、装着デバイスに
応じてCPUとICソケットの接続を切り換えるシステ
ムに用いられ、使用するEEPROMと、EPROMの
最上位ビットの論理値が”1”で残りのビットの論理値
が”0”である所定ビット数の2進数で表現された第1
のアドレスに予め所定のデータを書き込むとともに、全
てのビットの論理値が”0”である上記所定ビット数の
2進数で表現された第2のアドレスに対して上記データ
とは異なるデータを予め書込み、これらEEPROM又
はEPROMの何れかのデバイスがICソケットに装着
された状態でCPUが上記第1のアドレス、第2のアド
レス、第1のアドレスのデータを順次読み取り、最初に
第1のアドレスから読み取ったデータと2回目に第1の
アドレスから読み取ったデータが不一致の場合には、最
初に第1のアドレスから読み取ったデータを書き戻しデ
ータとして記憶するとともに、EPROMに対する切り
換え接続に対してEEPROMが装着されていると判定
し、最初に第1のアドレスから読み取ったデータと2回
目に第1のアドレスから読み取ったデータが一致し且つ
且つ最初に第1のアドレスから読み取ったデータと第2
のアドレスから読み取ったデータとが一致した場合には
EEPROMに対する切り換え接続に対してEPROM
が装着されている判定し、最初に第1のアドレスから読
み取ったデータと2回目に第1のアドレスから読み取っ
たデータとが一致し且つ最初に第1のアドレスから読み
取ったデータと第2のアドレスから読み取ったデータと
が不一致の場合には接続切り換えに対して正しいデバイ
スが装着されていると判定し、書き戻しデータが記憶さ
れている場合には装着されているEEPROMに書き戻
しデータを書き込むことを特徴とする特徴とするもので
ある。
The invention according to claim 1 is
A terminal to which a read / write control signal is connected corresponds to an address terminal corresponding to the most significant bit in an address terminal of an EPROM having the same storage capacity and the same number of pins, and the terminal of the most significant bit in the address terminal is the EPROM. Corresponding to the terminals other than the address terminals, and the remaining address terminals are EPR
A system in which an EEPROM having the same position as the remaining address terminals of the OM and a data terminal at the same position and the EPROM are exchangeably mounted in the same IC socket and the connection between the CPU and the IC socket is switched according to the mounting device. The EEPROM used and the first bit represented by a binary number of a predetermined number of bits in which the logical value of the most significant bit of the EPROM is "1" and the logical value of the remaining bits is "0".
Data is written in advance to the second address and data different from the above data is written in advance to the second address represented by the binary number of the above predetermined number of bits in which the logical values of all bits are "0". The CPU sequentially reads the data at the first address, the second address, and the first address while the EEPROM or any one of the EPROM devices is mounted in the IC socket, and first reads the data from the first address. If the read data and the data read from the first address for the second time do not match, the data read from the first address first is stored as write-back data, and the EEPROM is mounted for the switching connection to the EPROM. Data is read from the first address and the first address is read second time. Data read from the match and and first data and the second read from the first address
If the data read from the address of the same matches the EPROM for the switching connection to the EEPROM.
The data read from the first address is the same as the data read from the first address for the second time, and the data read from the first address and the second address If the read data does not match, it is determined that the correct device is installed for connection switching, and if the write-back data is stored, write-back data is written to the mounted EEPROM. Is a feature.

【0008】請求項2記載の発明は、同一記憶容量で且
つピン数が同じEPROMのアドレス端子中の最上位の
ビットに対応するアドレス端子に読み書き制御の信号が
接続される端子が対応し、且つアドレス端子中最上位の
ビットの端子がEPROMのアドレス端子以外の端子に
対応し、残りのアドレス端子がEPROMの残りのアド
レス端子と同じ位置で且つデータ端子も同じ位置にある
EEPROMと、上記EPROMとを同一ICソケット
に交換自在に装着し、装着デバイスに応じてCPUとI
Cソケットの接続を切り換えるシステムに用いられ、装
着デバイスに応じてCPUとICソケットの接続切り換
えをCPUからの選択信号で行なうセレクタを使用し、
使用するEEPROMと、EPROMの最上位ビットの
論理値が”1”で残りのビットの論理値が”0”である
第1のアドレスに予め所定のデータを書き込むととも
に、全てのビットの論理値が”0”である第2のアドレ
スに対して上記データとは異なるデータを予め書込み、
これらEEPROM又はEPROMの何れかが装着され
た状態で最初に上記セレクタに対してEEPROMに対
応する切り換え接続を行なう選択信号をCPUから与え
るとともに、CPUでは上記第1のアドレス、第2のア
ドレスのデータを順次読み取り、第1のアドレスから読
み取ったデータと、第2のアドレスから読み取ったデー
タとが不一致であれば装着デバイスが切り換え接続に対
応していると判定し、一致していれば上記セレクタに対
してEPROMに対応する切り換え接続を行なう選択信
号をCPUから与えるとともに、CPUでは上記第1の
アドレス、第2のアドレスのデータを順次読み取り、第
1のアドレスから読み取ったデータと、第2のアドレス
から読み取ったデータとが不一致であれば装着デバイス
が切り換え接続に対応していると判定し、一致であれば
デバイス未装着と判定することを特徴とする。
According to a second aspect of the invention, a terminal to which a read / write control signal is connected corresponds to an address terminal corresponding to the most significant bit among the address terminals of EPROMs having the same storage capacity and the same number of pins, and The most significant bit of the address terminals corresponds to a terminal other than the address terminal of the EPROM, the remaining address terminals are at the same position as the remaining address terminals of the EPROM, and the data terminals are also at the same position; Are mounted in the same IC socket interchangeably, and the CPU and I
It is used in a system that switches the connection of the C socket, and uses a selector that switches the connection between the CPU and the IC socket according to the mounting device by a selection signal from the CPU.
The EEPROM to be used and the first address in which the logical value of the most significant bit of the EPROM is “1” and the logical value of the remaining bits is “0” are written in advance, and the logical values of all bits are Data different from the above data is written in advance to the second address which is "0",
While either the EEPROM or the EPROM is mounted, the CPU first provides the selector with a selection signal for switching connection corresponding to the EEPROM, and in the CPU, the data of the first address and the second address is also supplied. Are sequentially read, and if the data read from the first address and the data read from the second address do not match, it is determined that the mounting device is compatible with switching connection, and if they match, the above selector is selected. On the other hand, a selection signal for switching connection corresponding to the EPROM is given from the CPU, and the CPU sequentially reads the data of the first address and the second address, and the data read from the first address and the second address. If the data read from the device does not match, the attached device switches and connects. Determined to be response to the determining means determines that the device is not mounted when the match.

【0009】[0009]

【作用】請求項1記載の発明によれば、誤ったデバイス
装着をしてしまっても、それを検出することができ、E
PROMに対応する切り換え接続が為されている状態で
誤ってEEPROMを装着しても、検出後、切り換え接
続を変更しなおすことにより、EEPROMの記憶内容
を元の正しい内容に書き戻すことができ、記憶内容が破
壊されることがない。
According to the first aspect of the invention, even if a wrong device is attached, it can be detected.
Even if the EEPROM is mistakenly mounted in the state where the switching connection corresponding to the PROM is made, it is possible to rewrite the stored content of the EEPROM to the original correct content by changing the switching connection after the detection. Memory contents are not destroyed.

【0010】請求項2記載の発明によれば、装着された
デバイスがEEPROMなのかEPROMなのかを自動
的に検出することができ、またデバイスに応じた切り換
え接続を自動的に行なうため、ユーザが装着するデバイ
スを意識することなく、システムを構築することがで
き、またスイッチ切り換えを手動で行なう必要がないた
め、運転中に誤って切り換え接続を行い、誤動作を引き
起こすというトラブルの発生も起きない。
According to the second aspect of the present invention, it is possible to automatically detect whether the mounted device is the EEPROM or the EPROM, and the switching connection according to the device is automatically performed. The system can be constructed without being aware of the device to be mounted, and since it is not necessary to switch the switch manually, there is no trouble that the switch connection is erroneously made during operation to cause a malfunction.

【0011】[0011]

【実施例】以下本発明を実施例により説明する。 (実施例1)本実施例の構成は図2の従来例と同じ構成
であるが、使用する256KibtのEEPROM及び
EPROMの4000(H) のアドレスにFF(H) 以外の
データを予め書込み、0000(H) には上記4000
(H) に書き込んであるデータと異なるデータを書込む。
つまりデバイスによってICソケット(A)の接続ピン
が異なるアドレスA14に注目し、その論理値が”
1”(”H”)となるアドレスである4000(H) と、
その論理値が”0”(”L”)となるアドレスである0
000(H) とに異なるデータを書き込むのである。
EXAMPLES The present invention will be described below with reference to examples. (Embodiment 1) The constitution of this embodiment is the same as that of the conventional example shown in FIG. 2, but data other than FF (H) is written in advance to the address of 4000 (H) of the 256 Kibit EEPROM and EPROM to be used. (H) above 4000
Write data different from the data written in (H) .
In other words, pay attention to the address A 14 where the connection pin of the IC socket (A) differs depending on the device, and its logical value is "
4000 (H) which is the address that becomes 1 ”(“ H ”),
0, which is the address whose logical value is "0"("L")
Different data is written to 000 (H) .

【0012】而してCPU(C)では図1のような読み
取り判定を行なって、装着デバイスを検出するのであ
る。つまり図示するデバイス検出フローをスタートさせ
ると、まずCPU(C)は4000(H) のアドレスから
データXを読み取り、次に0000(H) のアドレスから
データYを読み取り、再度4000(H) のアドレスから
データZを読み取り、最初に読み取ったデータXと再度
読み取ったデータZとが同じであるのかどうかを判定
し、異なっておれば0000(H) のアドレスからのデー
タ読み取り時に内容が書き変わったと判断し、データX
を書き戻しデータとして記憶するとともに、EPROM
の設定に対してEEPROMの装着があったと判断して
エラー報知を行なう。このエラー報知があると、切換ス
イッチ(SW1 )(SW2 )の切り換え設定をユーザー
はEEPROM側に設定しなおす。
Then, the CPU (C) performs the read determination as shown in FIG. 1 to detect the mounted device. That is, when the device detection flow shown in the drawing is started, the CPU (C) first reads the data X from the address of 4000 (H) , then reads the data Y from the address of 0000 (H) , and again the address of 4000 (H) . The data Z is read from and it is judged whether the data X read first and the data Z read again are the same. If they are different, it is judged that the contents were rewritten when the data was read from the address of 0000 (H). And data X
Is stored as write-back data and EPROM
When it is determined that the EEPROM has been mounted, the error is notified. When this error notification is issued, the user resets the changeover switch (SW 1 ) (SW 2 ) to the EEPROM side.

【0013】一方上記のデータXとデータZとが一致し
た場合には、データXとデータYとが等しくないかどう
かを判定し、一致しておればEEPROMの設定で、E
PROMが装着され、アドレスA14がCPU(C)の制
御線MWRが接続されて”H”(”1”)となってお
り、0000(H) のアドレスのデータの呼出時において
も実際には4000(H) のアドレスのデータXを読み出
すことになって上記の判定結果一致となる。従ってこの
場合CPU(C)はエラー報知を行なう。この場合ユー
ザーは切換スイッチ(SW1 )(SW2 )の切り換え設
定を装着デバイスに合わせて設定しなおせば良いのであ
る。
On the other hand, when the data X and the data Z match, it is judged whether or not the data X and the data Y are not equal. If they match, the EEPROM is set by E.
The PROM is installed, the address A 14 is connected to the control line MWR of the CPU (C) and is "H"("1"), and even when the data at the address of 0000 (H) is called, it is actually The data X at the address of 4000 (H) is read out, and the above judgment result coincides. Therefore, in this case, the CPU (C) gives an error notification. In this case, the user may reset the switching setting of the changeover switches (SW 1 ) (SW 2 ) according to the mounting device.

【0014】さて上述の処理を経て上記の読み取りデー
タXとYとが不一致の場合には、更に上記の書き戻しデ
ータXが記憶されているか否かの判定を行い、記憶され
ていなければ最終的に設定と装着デバイスとが一致する
と判定する。若し書き戻しデータXが記憶されている場
合には、前回のデバイス検出でエラー検出があって今回
正しい切り換え設定でEEPROMが装着されていると
判定して、記憶してある書き戻しデータXを4000
(H) のアドレスに書き込み、データ修正を行なうのであ
る。
If the read data X and Y do not match after the above processing, it is further judged whether or not the write-back data X is stored, and if not, the final result is obtained. It is determined that the setting and the attached device match. If the write-back data X is stored, it is determined that an error was detected in the previous device detection and the EEPROM is installed with the correct switching setting this time, and the stored write-back data X is stored. 4000
The data is corrected by writing to the address (H) .

【0015】(実施例2)上記実施例1はハード構成は
従来例と同じで、CPU(C)のデバイス検出フロー用
のプログラムを設定して、ソフトウェア的にデバイス検
出を行い、エラー報知時にはユーザーが手動で設定変更
を行なうにしたものであるが、本実施例では、切換スイ
ッチ(SW1 )(SW2 )の代わりに、図2に示すよう
にCPU(C)からの選択信号SELで出力端子と入力
端子との接続を切り換えることができる2入力1出力の
セレクタ回路を2組有するセレクタ(SC)を設けたも
のであり、CPU(C)は図3に示すデバイス検出フロ
ーを実行する。尚使用デバイス及びそのデバイスの40
00(H) のアドレスに書き込むデータ及び0000(H )
のアドレスに書き込むデータは実施例1に準ずる。
(Second Embodiment) The first embodiment has the same hardware configuration as that of the conventional example, and a device detection flow program of the CPU (C) is set to perform device detection by software. However, in this embodiment, instead of the changeover switches (SW 1 ) and (SW 2 ), the selection signal SEL is output from the CPU (C) as shown in FIG. A selector (SC) having two pairs of 2-input 1-output selector circuits capable of switching the connection between the terminals and the input terminals is provided, and the CPU (C) executes the device detection flow shown in FIG. In addition, the device used and 40 of that device
Data to be written at the address of 00 (H) and 0000 (H )
The data to be written to the address is in accordance with the first embodiment.

【0016】而してまずCPU(C)は”L”の選択信
号SELをセレクタ(SC)に与えて、EEPROM設
定を行なう。この場合セレクタ(SC)のB1 、B2
力がY1 、Y2 出力に接続される。ここで4000(H)
のアドレスからデータXを読み出すとともに、0000
(H) のアドレスからデータYを読み取り、両データX,
Yが一致しているかどうかを判定し、一致していなけれ
ばEEPROM装着と判定し、一致していなければ、C
PU(C)は選択信号SELを”H”に切換える。この
場合セレクタ(SC)のA1 、A2 入力がY1 、Y2
力に接続される。ここで4000(H) のアドレスからデ
ータXを読み出すとともに、0000(H ) のアドレスか
らデータYを読み取り、両データX,Yとが一致してい
るかどうかを判定し、一致していなければEPROM装
着と判定し、一致していなければデバイス未装着と判定
する。
First, the CPU (C) gives the selection signal SEL of "L" to the selector (SC) to set the EEPROM. In this case, the B 1 and B 2 inputs of the selector (SC) are connected to the Y 1 and Y 2 outputs. 4000 (H) here
Read data X from the address of
Data Y is read from the address of (H) and both data X,
It is determined whether or not Y matches, and if they do not match, it is determined that the EEPROM is mounted. If they do not match, C
PU (C) switches the selection signal SEL to "H". In this case, the A 1 and A 2 inputs of the selector (SC) are connected to the Y 1 and Y 2 outputs. Here, the data X is read from the address of 4000 (H), the data Y is read from the address of 0000 (H ) , and it is determined whether or not both the data X and Y match. If they do not match, EPROM mounting If not, it is determined that the device is not attached.

【0017】[0017]

【発明の効果】請求項1記載の発明は誤ったデバイス装
着をしてしまっても、それを検出することができ、EP
ROMに対応する切り換え接続が為されている状態で誤
ってEEPROMを装着しても、検出後切り換え接続を
変更しなおすことにより、EEPROMの記憶内容を元
の正しい内容に書き戻すことができ、結果記憶内容が破
壊されることがなく、信頼性の高いシステムを構築する
ことができるという効果がある。
According to the invention described in claim 1, even if a wrong device is attached, it can be detected.
Even if the EEPROM is mistakenly installed while the switching connection corresponding to the ROM is made, by changing the switching connection after detection, the stored content of the EEPROM can be rewritten to the original correct content. There is an effect that a highly reliable system can be constructed without the memory contents being destroyed.

【0018】請求項2記載の発明は、装着されたデバイ
スがEEPROMなのかEPROMなのかを自動的に検
出することができ、またデバイスに応じた切り換え接続
を自動的に行なうため、装着するデバイスをユーザーが
意識することなく、システムを構築することができ、ま
たスイッチ切り換えを手動で行なう必要がないため、運
転中に誤って切り換え接続を行い、誤動作を引き起こす
というトラブルの発生も起きず、信頼性の高いシステム
を構築することができるという効果がある。
According to the second aspect of the present invention, it is possible to automatically detect whether the mounted device is the EEPROM or the EPROM, and the switching connection according to the device is automatically performed. The system can be constructed without the user's awareness, and since it is not necessary to switch the switch manually, the trouble of accidentally connecting the switch during operation and causing a malfunction does not occur, and reliability is improved. The effect is that a high-quality system can be constructed.

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

【図1】請求項1記載の発明の実施例の動作フローチャ
ートである。
FIG. 1 is an operation flowchart of an embodiment of the invention described in claim 1.

【図2】請求項2記載の発明の実施例の回路構成図であ
る。
FIG. 2 is a circuit configuration diagram of an embodiment of the invention according to claim 2;

【図3】請求項3記載の発明の実施例の動作フローチャ
ートである。
FIG. 3 is an operation flowchart of an embodiment of the invention described in claim 3;

【図4】従来例及び請求項1記載の発明の実施例に適用
する回路構成図である。
FIG. 4 is a circuit configuration diagram applied to a conventional example and an embodiment of the invention described in claim 1;

【図5】従来例の動作説明用タイミングチャートであ
る。
FIG. 5 is a timing chart for explaining the operation of the conventional example.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】同一記憶容量で且つピン数が同じEPRO
Mのアドレス端子中の最上位のビットに対応するアドレ
ス端子に読み書き制御の信号が接続される端子が対応
し、且つアドレス端子中最上位のビットの端子がEPR
OMのアドレス端子以外の端子に対応し、残りのアドレ
ス端子がEPROMの残りのアドレス端子と同じ位置で
且つデータ端子も同じ位置にあるEEPROMと、上記
EPROMとを同一ICソケットに交換自在に装着し、
装着デバイスに応じてCPUとICソケットの接続を切
り換えるシステムに用いられ、使用するEEPROM
と、EPROMの最上位ビットの論理値が”1”で残り
のビットの論理値が”0”である所定ビット数の2進数
で表現された第1のアドレスに予め所定のデータを書き
込むとともに、全てのビットの論理値が”0”である上
記所定ビット数の2進数で表現された第2のアドレスに
対して上記データとは異なるデータを予め書込み、これ
らEEPROM又はEPROMの何れかのデバイスがI
Cソケットに装着された状態でCPUが上記第1のアド
レス、第2のアドレス、第1のアドレスのデータを順次
読み取り、最初に第1のアドレスから読み取ったデータ
と2回目に第1のアドレスから読み取ったデータが不一
致の場合には、最初に第1のアドレスから読み取ったデ
ータを書き戻しデータとして記憶するとともに、EPR
OMに対する切り換え接続に対してEEPROMが装着
されていると判定し、最初に第1のアドレスから読み取
ったデータと2回目に第1のアドレスから読み取ったデ
ータが一致し且つ且つ最初に第1のアドレスから読み取
ったデータと第2のアドレスから読み取ったデータとが
一致した場合にはEEPROMに対する切り換え接続に
対してEPROMが装着されている判定し、最初に第1
のアドレスから読み取ったデータと2回目に第1のアド
レスから読み取ったデータとが一致し且つ最初に第1の
アドレスから読み取ったデータと第2のアドレスから読
み取ったデータとが不一致の場合には接続切り換えに対
して正しいデバイスが装着されていると判定し、書き戻
しデータが記憶されている場合には装着されているEE
PROMに書き戻しデータを書き込むことを特徴とする
EEPROM/EPROM検出方式。
1. An EPRO having the same storage capacity and the same number of pins.
A terminal to which a read / write control signal is connected corresponds to the address terminal corresponding to the most significant bit of the M address terminals, and the terminal of the most significant bit of the address terminals is the EPR.
An EEPROM in which the remaining address terminals are in the same position as the remaining address terminals of the EPROM and the data terminals are also in the same position corresponding to terminals other than the address terminals of the OM, and the above EPROM are exchangeably mounted in the same IC socket. ,
EEPROM used in a system that switches the connection between the CPU and the IC socket according to the mounting device
And writing predetermined data to a first address represented by a binary number of a predetermined number of bits in which the logical value of the most significant bit of the EPROM is “1” and the logical value of the remaining bits is “0”, Data different from the above data is written in advance to the second address represented by the binary number of the predetermined number of bits in which the logical values of all the bits are "0", and one of these EEPROM or EPROM devices I
The CPU sequentially reads the data of the first address, the second address, and the first address while being mounted in the C socket, and first reads the data read from the first address and the second address from the first address. If the read data does not match, the data read from the first address is stored as write-back data and the EPR is performed.
It is determined that the EEPROM is mounted for the switching connection to the OM, the data read from the first address at the first time matches the data read from the first address at the second time, and the first address is read first. If the data read from the data and the data read from the second address match, it is determined that the EPROM is mounted for the switching connection to the EEPROM, and the first
Connection when the data read from the address of No. 2 and the data read from the first address for the second time match and the data read from the first address first and the data read from the second address do not match. It is determined that the correct device is installed for switching, and if the write-back data is stored, the installed EE
An EEPROM / EPROM detection method characterized by writing write-back data to PROM.
【請求項2】同一記憶容量で且つピン数が同じEPRO
Mのアドレス端子中の最上位のビットに対応するアドレ
ス端子に読み書き制御の信号が接続される端子が対応
し、且つアドレス端子中最上位のビットの端子がEPR
OMのアドレス端子以外の端子に対応し、残りのアドレ
ス端子がEPROMの残りのアドレス端子と同じ位置で
且つデータ端子も同じ位置にあるEEPROMと、上記
EPROMとを同一ICソケットに交換自在に装着し、
装着デバイスに応じてCPUとICソケットの接続を切
り換えるシステムに用いられ、装着デバイスに応じてC
PUとICソケットの接続切り換えをCPUからの選択
信号で行なうセレクタを使用し、使用するEEPROM
と、EPROMの最上位ビットの論理値が”1”で残り
のビットの論理値が”0”である第1のアドレスに予め
所定のデータを書き込むとともに、全てのビットの論理
値が”0”である第2のアドレスに対して上記データと
は異なるデータを予め書込み、これらEEPROM又は
EPROMの何れかが装着された状態で最初に上記セレ
クタに対してEEPROMに対応する切り換え接続を行
なう選択信号をCPUから与えるとともに、CPUでは
上記第1のアドレス、第2のアドレスのデータを順次読
み取り、第1のアドレスから読み取ったデータと、第2
のアドレスから読み取ったデータとが不一致であれば装
着デバイスが切り換え接続に対応していると判定し、一
致していれば上記セレクタに対してEPROMに対応す
る切り換え接続を行なう選択信号をCPUから与えると
ともに、CPUでは上記第1のアドレス、第2のアドレ
スのデータを順次読み取り、第1のアドレスから読み取
ったデータと、第2のアドレスから読み取ったデータと
が不一致であれば装着デバイスが切り換え接続に対応し
ていると判定し、一致であればデバイス未装着と判定す
ることを特徴とするEEPROM/EPROM検出方
式。
2. An EPRO having the same storage capacity and the same number of pins.
A terminal to which a read / write control signal is connected corresponds to the address terminal corresponding to the most significant bit of the M address terminals, and the terminal of the most significant bit of the address terminals is the EPR.
An EEPROM in which the remaining address terminals are in the same position as the remaining address terminals of the EPROM and the data terminals are also in the same position corresponding to terminals other than the address terminals of the OM, and the above EPROM are exchangeably mounted in the same IC socket. ,
It is used in a system that switches the connection between the CPU and the IC socket according to the mounting device.
An EEPROM that uses a selector that uses a selection signal from the CPU to switch the connection between the PU and the IC socket
Then, predetermined data is written in advance to the first address in which the logical value of the most significant bit of the EPROM is "1" and the logical value of the remaining bits is "0", and the logical values of all bits are "0". In advance, data different from the above data is written to the second address, and a selection signal for performing switching connection corresponding to the EEPROM is first sent to the selector in a state where any of these EEPROM or EPROM is mounted. In addition to being given by the CPU, the CPU sequentially reads the data at the first address and the second address, and reads the data read from the first address and the second data.
If the data read from the address does not match, it is determined that the mounting device is compatible with the switching connection, and if they match, the CPU gives the selector a selection signal for performing the switching connection corresponding to the EPROM. At the same time, the CPU sequentially reads the data at the first address and the data at the second address, and if the data read from the first address and the data read from the second address do not match, the mounting device switches and connects. An EEPROM / EPROM detection method characterized in that it is determined that they correspond, and if they match, it is determined that the device is not attached.
JP4067770A 1992-03-26 1992-03-26 Eeprom/eprom detecting system Withdrawn JPH05274217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4067770A JPH05274217A (en) 1992-03-26 1992-03-26 Eeprom/eprom detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4067770A JPH05274217A (en) 1992-03-26 1992-03-26 Eeprom/eprom detecting system

Publications (1)

Publication Number Publication Date
JPH05274217A true JPH05274217A (en) 1993-10-22

Family

ID=13354515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4067770A Withdrawn JPH05274217A (en) 1992-03-26 1992-03-26 Eeprom/eprom detecting system

Country Status (1)

Country Link
JP (1) JPH05274217A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568792A (en) * 2021-07-16 2021-10-29 山东浪潮科学研究院有限公司 EEPROM analysis system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568792A (en) * 2021-07-16 2021-10-29 山东浪潮科学研究院有限公司 EEPROM analysis system and method
CN113568792B (en) * 2021-07-16 2023-06-02 山东浪潮科学研究院有限公司 EEPROM analysis system and method

Similar Documents

Publication Publication Date Title
KR100302888B1 (en) Devices and methods for automatic recognition and configuration of peripherals
US5327531A (en) Data processing system including corrupt flash ROM recovery
US5606662A (en) Auto DRAM parity enable/disable mechanism
US6925510B2 (en) Peripheral or memory device having a combined ISA bus and LPC bus
KR19980035435A (en) Computer system with automatic detection
US7966486B2 (en) Computer system with dual basic input output system and operation method thereof
CN101499044A (en) Computer system with double basic input/output systems and its operation method
US7447853B2 (en) Data copy device
JPH05274217A (en) Eeprom/eprom detecting system
JP2000293376A (en) Circuit and method for switching boot program
US6629262B1 (en) Multiplexed storage controlling device
JP2743756B2 (en) Semiconductor disk device
JPH03266154A (en) Information processor
KR100198670B1 (en) Automatic control circuit in plug and play
JP2827539B2 (en) Peripheral device of programmable controller
JP2906813B2 (en) Collective panel device
JPS6349955A (en) Memory checking device
JPH06202961A (en) Microcomputer with built-in memory test function
JPH02150926A (en) Parity preparing device
JPH03276354A (en) Interface substrate
JPH0264726A (en) Information processor to connect external memory device
JPH05265842A (en) Access control circuit for eeprom
JPH09274611A (en) Microcomputer
JPH09231141A (en) Memory device
JPH0573404A (en) Single chip microcomputer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990608