JP3128817B2 - Memory type determination method - Google Patents

Memory type determination method

Info

Publication number
JP3128817B2
JP3128817B2 JP02305775A JP30577590A JP3128817B2 JP 3128817 B2 JP3128817 B2 JP 3128817B2 JP 02305775 A JP02305775 A JP 02305775A JP 30577590 A JP30577590 A JP 30577590A JP 3128817 B2 JP3128817 B2 JP 3128817B2
Authority
JP
Japan
Prior art keywords
data
memory
polling operation
rom
completion time
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.)
Expired - Fee Related
Application number
JP02305775A
Other languages
Japanese (ja)
Other versions
JPH04177744A (en
Inventor
桂二 岸上
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.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP02305775A priority Critical patent/JP3128817B2/en
Publication of JPH04177744A publication Critical patent/JPH04177744A/en
Application granted granted Critical
Publication of JP3128817B2 publication Critical patent/JP3128817B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 《産業上の利用分野》 本発明はメモリの種別判定方法に係り、特に、FA機器
等の機器本体にメモリ容量拡張を行うために接続される
メモリの種別、つまりEEP−ROM(電気的消去可能なP−
ROM)や、EP−ROM、RAM等の種別を判定するメモリの種
別判定方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a method for determining the type of a memory, and in particular, the type of a memory connected to a device body such as an FA device for expanding the memory capacity, that is, an EEP. -ROM (electrically erasable P-
ROM), EP-ROM, RAM and the like.

《従来の技術》 従来、プログラマブルコントローラ(以下、PCとい
う)等の機器本体に接続されるメモリユニットのメモリ
の種別、つまりRAMとか、EP−ROM、EEP−ROMの違いは、
例えば第4図に示すような工程で判定していた。
<< Conventional technology >> Conventionally, the type of memory of a memory unit connected to a device body such as a programmable controller (hereinafter, referred to as a PC), that is, a difference between a RAM and an EP-ROM or an EEP-ROM is as follows.
For example, the determination was made in a process as shown in FIG.

つまり、まずユニットの任意のアドレス「A」のデー
タ「D」をリードする(ST100)。
That is, first, data “D” at an arbitrary address “A” of the unit is read (ST100).

次に、データ「D」とは異なる「D′」を生成し(ST
200)、アドレス「A」にデータ「D′」をライトする
(ST300)。
Next, “D ′” different from the data “D” is generated (ST
200) Then, data "D '" is written to address "A" (ST300).

そして、アドレス「A」のデータをリードしてリード
データ「RD1」とし(ST400)、最後に「RD1」と
「D′」との値を比較してそれらが同一か否かを判定し
(ST500)、「RD1」と「D′」と等しければRAMと判定
する一方(ST510)、「RD1」と「D′」と等しくなけれ
ばEP−ROMと判定する(ST520)。
Then, the data at the address "A" is read to be read data "RD1" (ST400), and finally, the values of "RD1" and "D '" are compared to determine whether they are the same (ST500). ), If "RD1" is equal to "D '", it is determined to be RAM (ST510). If "RD1" is not equal to "D'", it is determined to be EP-ROM (ST520).

《発明が解決しようとする課題》 ところで、従来の上記判定方法は、単にメモリへデー
タが書き込めるか否かによりメモリの種別を判定してい
たため、RAMとEP−ROMとの種別判定は行えるが、RAMとE
EP−ROM、あるいはEP−ROMとEEP−ROMとの種別判定がで
きなかった。これは、EEP−ROMが電気的にその記憶内容
を消去し、別の情報を書き込むことが可能であるからで
ある。
<< Problems to be Solved by the Invention >> By the way, the above-described conventional determination method simply determines the type of the memory based on whether data can be written to the memory, so the type of the RAM and the EP-ROM can be determined. RAM and E
The type of EP-ROM or EP-ROM and EEP-ROM could not be determined. This is because the EEP-ROM is capable of electrically erasing its stored contents and writing other information.

このため、例えば従来のPCにおいては、EEP−ROMを内
蔵したメモリユニットをPC本体に接続した状態で、ユー
ザがそのメモリユニットの種別を入力する必要があり、
ユーザに負荷がかかると共に、誤入力のおそれがあると
いう問題があった。
For this reason, for example, in a conventional PC, it is necessary for the user to input the type of the memory unit while the memory unit having the built-in EEP-ROM is connected to the PC main body.
There is a problem that a load is imposed on the user and there is a risk of erroneous input.

そこで、本発明は上記問題に鑑みなされたもので、ユ
ーザに負荷がかからず自動的にEEP−ROMと、EP−ROMお
よびRAMとを判定できるメモリの種別判定方法を提供す
ることを目的とする。
Therefore, the present invention has been made in view of the above problems, and has as its object to provide a memory type determination method capable of automatically determining EEP-ROM and EP-ROM and RAM without imposing a load on a user. I do.

《課題を解決するための手段》 上記課題を達成するために、請求項1の発明は、 データが書き込まれるときにポーリング動作を行うEE
P−ROMや、EP−ROM、RAMの種別を判別するメモリの種別
判定方法において、 上記メモリの任意のアドレスにデータを書き込み、 上記EEP−ROMのポーリング動作完了時間より前に上記
メモリの上記アドレスからデータを読み出すと共に、 上記EEP−ROMのポーリング動作完了時間より後に上記
メモリの上記アドレスからデータを読み出し、 上記メモリに書き込んだ上記データと、上記ポーリン
グ動作完了時間より前に読み出した上記データおよび上
記ポーリング動作完了時間より後に読み出した上記デー
タとをそれぞれ比較し、 上記ライトデータとポーリング動作完了時間前のリー
ドデータとが等しければRAMであると判定し、 上記ライトデータがポーリング動作完了時間前のリー
ドデータとが等しくなく且つポーリング動作完了時間後
のリードデータとが等しければEEP−ROMと判定し、 ライトデータがポーリング動作完了時間前のリードデ
ータとが等しくなく且つポーリング動作完了時間後のリ
ードデータとが等しくなければEP−ROMと判定する ことを特徴とする。
<< Means for Solving the Problems >> In order to achieve the above object, the invention according to claim 1 is a device which performs a polling operation when data is written.
In the method of determining the type of a memory for determining the type of a P-ROM, an EP-ROM, or a RAM, data is written to an arbitrary address of the memory, and the address of the memory is determined before a polling operation completion time of the EEP-ROM. Read data from the address of the memory after the completion time of the polling operation of the EEP-ROM, read the data written in the memory, the data read before the completion time of the polling operation, and The data read after the polling operation completion time is compared with each other.If the write data is equal to the read data before the polling operation completion time, it is determined that the RAM is a RAM, and the write data is read before the polling operation completion time. Read data not equal to data and after polling operation completion time If they are equal, it is determined that the EEPROM is an EEP-ROM, and if the write data is not equal to the read data before the polling operation completion time and the read data after the polling operation completion time is not equal, it is determined to be an EP-ROM. .

また、請求項2の発明は、 データが書き込まれるときにポーリング動作を行うEE
P−ROMとEP−ROMの種別を判定するメモリの種別判定方
法において、 上記メモリの任意のアドレスにデータを書き込み、 上記EEP−ROMのポーリング動作完了時間より後に上記
メモリの上記アドレスからデータを読み出し、 上記メモリに書き込んだ上記データと、上記ポーリン
グ動作完了時間より後に読み出した上記データとをそれ
ぞれ比較し、 上記ライトデータがポーリング動作完了時間後のリー
ドデータとが等しければEEP−ROMと判定し、 ライトデータがポーリング動作完了時間後のリードデ
ータとが等しくなければEP−ROMと判定する ことを特徴とする。
Further, according to the second aspect of the present invention, a polling operation is performed when data is written.
In the memory type determination method for determining the type of the P-ROM and the EP-ROM, data is written to an arbitrary address of the memory, and data is read from the address of the memory after the completion time of the polling operation of the EEP-ROM. Comparing the data written to the memory with the data read after the polling operation completion time, and if the write data is equal to the read data after the polling operation completion time, determines that the data is EEP-ROM; If the write data is not equal to the read data after the polling operation completion time, it is determined that the EP-ROM is used.

また、請求項3の発明は、 データが書き込まれるときにポーリング動作を行うEE
P−ROMと、RAMの種別を判定するメモリの種別判定方法
において、 上記メモリの任意のアドレスにデータを書き込み、 上記EEP−ROMのポーリング動作完了時間より前に上記
メモリの上記アドレスからデータを読み出すと共に、 上記メモリに書き込んだ上記データと、上記ポーリン
グ動作完了時間より前に読み出した上記データとをそれ
ぞれ比較し、 上記ライトデータとポーリング動作完了時間前のリー
ドデータとが等しければRAMであると判定し、 上記ライトデータがポーリング動作完了時間前のリー
ドデータとが等しくなければEEP−ROMと判定する ことを特徴とする。
Further, according to the third aspect of the present invention, a polling operation is performed when data is written.
In the memory type determination method for determining the type of the P-ROM and the RAM, data is written to an arbitrary address of the memory, and data is read from the address of the memory before the polling operation completion time of the EEP-ROM. At the same time, the data written in the memory is compared with the data read before the polling operation completion time, respectively, and if the write data is equal to the read data before the polling operation completion time, it is determined to be a RAM. If the write data is not equal to the read data before the polling operation completion time, it is determined that the EEPROM is an EEP-ROM.

尚、EEP−ROMのポーリング動作とは、EEP−ROMへのラ
イトサイクルが完了した後、即座にデータがメモリチッ
プ内部のメモリセルに書き込まれるのではなく、メモリ
セルへの書き込み完了まで所定時間のウエイトがあるの
で、そのデータ書込み完了を検出するため、リードデー
タとライトデータとが一致するまでメモリセルを読み出
しそのリードデータとライトデータとを照合する動作の
ことをいう。
Note that the polling operation of the EEP-ROM does not mean that data is immediately written to the memory cells inside the memory chip after the write cycle to the EEP-ROM is completed, but that the data is written for a predetermined time until the completion of the writing to the memory cells. Since there is a wait, this operation refers to an operation of reading a memory cell until the read data and the write data match to detect the completion of the data write, and comparing the read data with the write data.

《作用》 本発明では、メモリに書き込んだデータ(以下、ライ
トデータという)と、ポーリング動作完了時間より前に
読み出したデータ(以下、リードデータという)および
ポーリング動作完了時間より後のリードデータとをそれ
ぞれ比較し、その比較結果によりメモリ種別を判定す
る。
<< Operation >> In the present invention, data written to the memory (hereinafter, referred to as write data), data read before the polling operation completion time (hereinafter, read data), and read data after the polling operation completion time are compared. Each is compared, and the memory type is determined based on the comparison result.

つまり、上記ライトデータとポーリング動作完了時間
前のリードデータとが等しければ即座にデータの書き込
みがあったのでRAMであると判定する。
In other words, if the write data is equal to the read data before the polling operation completion time, the data is immediately written, and thus the RAM is determined.

一方、上記ライトデータがポーリング動作完了時間前
のリードデータとが等しくなく且つポーリング動作完了
時間後のリードデータとが等しければEEP−ROMと判定
し、さらにライトデータがポーリング動作完了時間前の
リードデータとが等しくなく且つポーリング動作完了時
間後のリードデータとが等しなければEP−ROMと判定す
る。
On the other hand, if the write data is not equal to the read data before the polling operation completion time and the read data after the polling operation completion time is equal, it is determined that the write data is an EEP-ROM. Are not equal to each other and the read data after the polling operation completion time are not equal, the EP-ROM is determined.

《実施例》 以下、本発明に係るメモリの種別判定方法を採用した
PCの一実施例を、図面を参照して説明する。
<< Embodiment >> Hereinafter, a memory type determination method according to the present invention is adopted.
An embodiment of the PC will be described with reference to the drawings.

このPCは第1図に示すように構成されており、同図に
示すようにベースユニット1にCPUユニット2や、通信
ユニット3、電源ユニット4が接続されており、CPUユ
ニット2にメモリユニット5およびプログラミングツー
ル6が装着されている。
This PC is configured as shown in FIG. 1. As shown in FIG. 1, a CPU unit 2, a communication unit 3, and a power supply unit 4 are connected to a base unit 1, and a memory unit 5 is connected to the CPU unit 2. And a programming tool 6 are mounted.

そして、このPCのCPUユニット2は、第2図に示すよ
うにMPU21と、ベースユニット1内のCPUバス11と接続さ
れるインタフェース(I/F)22と、入出力(I/O)データ
メモリ23と、システムプログラムメモリ24と、プログラ
ミンツール6と接続される通信インタフェース25とを有
し、これらが内部バス26を介して接続されている。尚、
このPCは図示していないが、ユーザプログラムROMや、
ワークRAM等のメモリも有する。
As shown in FIG. 2, the CPU unit 2 of the PC includes an MPU 21, an interface (I / F) 22 connected to the CPU bus 11 in the base unit 1, and an input / output (I / O) data memory. 23, a system program memory 24, and a communication interface 25 connected to the programming tool 6, which are connected via an internal bus 26. still,
Although this PC is not shown, a user program ROM,
It also has a memory such as a work RAM.

そして、本実施例のCPUユニット2のシステムプログ
ラムメモリ24には、メモリユニット5に使用されるEEP
−ROMのポーリング動作完了時間と共に、メモリユニッ
ト5のフォーマット開始のコマンドが入力した時に、こ
のCPUユニット2のMPU21が、まずメモリユニット5に内
蔵されたメモリの任意のアドレスに適当なデータを書き
込み、次に上記EEP−ROMのポーリング動作が完了する時
間より前に上記メモリの上記アドレスからデータを読み
出すと共に、上記EEP−ROMのポーリング動作が完了する
時間より後に上記メモリの上記アドレスからデータを読
み出し、最後にメモリに書き込んだライトデータと、上
記ポーリング動作完了時間より前に読み出した上記デー
タおよび上記ポーリング動作完了時間より後に読み出し
た上記データとをそれぞれ比較し、後述するようにメモ
リの種別判定を行うようにプログラミングされたシステ
ムプログラムが内蔵されている。
The system program memory 24 of the CPU unit 2 according to the present embodiment has an EEPROM used for the memory unit 5.
-When the format start command of the memory unit 5 is input together with the completion time of the polling operation of the ROM, the MPU 21 of the CPU unit 2 first writes appropriate data to an arbitrary address of the memory built in the memory unit 5, Next, reading data from the address of the memory before the time when the polling operation of the EEP-ROM is completed, and reading data from the address of the memory after the time when the polling operation of the EEP-ROM is completed, The write data last written to the memory is compared with the data read before the polling operation completion time and the data read after the polling operation completion time, respectively, and the type of the memory is determined as described later. Built-in system program programmed as That.

なお、上記EEP−ROMのポーリング動作完了時間はメー
カにより異なるので、メーカからのデータシート等を参
照して、予めシステムプログラムメモリ24に適当な数値
を設定する。
Since the completion time of the polling operation of the EEP-ROM varies depending on the manufacturer, an appropriate numerical value is set in the system program memory 24 in advance with reference to a data sheet or the like from the manufacturer.

また、メモリユニット5はEEP−ROMや、EP−ROM、あ
るいはRAM(本実施例では、S−RAMとする)等のICメモ
リを内蔵したもので、CPUユニット2に装着されたとき
にはCPUユニット2の間でデータの送受信を行えるよう
に、第2図に示す如くCPUユニット2のMPU21に内部バス
26を介して接続される。
The memory unit 5 has a built-in IC memory such as an EEP-ROM, an EP-ROM, or a RAM (S-RAM in this embodiment). As shown in FIG. 2, the internal bus is connected to the MPU 21 of the CPU unit 2 so that data can be transmitted and received between
Connected via 26.

次に、上記のように構成されたPCにおいて、本発明に
係るメモリの種別判定方法を第3図に示すフローチャー
トに基づいて説明する。
Next, a method of determining the type of memory according to the present invention in the PC configured as described above will be described with reference to the flowchart shown in FIG.

まず、第1図に示すようにメモリユニット5がCPUユ
ニット2に装着され、このCPUユニット2に接続された
プログラミングツール6、あるいは通信ユニット3を介
した他のPCのプログラミングツールから送信されたフォ
ーマットコマンドの受信により、MPU21はメモリユニッ
ト5のフォーマットを開始し、メモリユニット5のメモ
リ種別を判定する。
First, as shown in FIG. 1, a memory unit 5 is mounted on the CPU unit 2 and a format transmitted from a programming tool 6 connected to the CPU unit 2 or a programming tool of another PC via the communication unit 3. Upon receiving the command, the MPU 21 starts formatting the memory unit 5 and determines the memory type of the memory unit 5.

すなわち、まず最初にメモリユニット5の任意のアド
レス「A」からデータ「D」をリードする(ST100)。
That is, first, data “D” is read from an arbitrary address “A” of the memory unit 5 (ST100).

次に、そのリードデータ「D」とは異なる「D′」を
生成する(ST200)。
Next, “D ′” different from the read data “D” is generated (ST200).

そして、上記アドレス「A」にそのデータ「D′」を
ライトする。尚、ここまでは従来の方法と同様である
(ST300)。
Then, the data "D '" is written to the address "A". The process up to this point is the same as the conventional method (ST300).

次に、本発明に係る判定方法は、このメモリユニット
5に使用されていると思われるEEP−ROMのポーリング動
作完了時間より前に、アドレス「A」からデータをリー
ドし、これをリードデータ「RD1」とする(ST400)。
Next, in the determination method according to the present invention, data is read from the address “A” before the polling operation completion time of the EEP-ROM considered to be used for the memory unit 5 and the read data is read. RD1 ”(ST400).

そして、上記EEP−ROMのポーリング動作完了時間より
後、つまり少なくともEEP−ROMのポーリング動作が十分
完了する(データ書き込み完了)時間までウエイトし、
再度、アドレス「A」からデータをリードし、これをリ
ードデータ「RD2」とする(ST500)。
Then, wait after the completion time of the polling operation of the EEP-ROM, that is, at least until the time when the polling operation of the EEP-ROM is sufficiently completed (data write completion),
The data is read again from the address "A", and is set as read data "RD2" (ST500).

そして最後に、MPU21は最初にアドレス「A」に書き
込んだライトデータ「D′」と、ポーリング動作完了時
間前のリードデータ「RD1」およびポーリング動作完了
時間後のリードデータ「RD2」とをそれぞれ比較して、
メモリの種別を判定する。
Finally, the MPU 21 compares the write data "D '" initially written to the address "A" with the read data "RD1" before the polling operation completion time and the read data "RD2" after the polling operation completion time, respectively. do it,
Determine the type of memory.

つまり、ポーリング動作完了時間前のリードデータ
「RD1」と上記ライトデータ「D′」とを比較し(ST60
0)、等しければ(ST600“Yes")、ポーリング動作が行
われず即座にデータが書き込まれたということで、その
メモリをS−RAMと判定する(ST610)。
That is, the read data “RD1” before the polling operation completion time is compared with the write data “D ′” (ST60).
0), if they are equal (ST600 “Yes”), the data is immediately written without performing the polling operation, and the memory is determined to be an S-RAM (ST610).

これに対して、上記リードデータ「RD1」と上記ライ
トデータ「D′」とが等しくないときは(ST600“N
o")、MPU21はさらにポーリング動作完了時間後のリー
ドデータ「RD2」と上記ライトデータ「D′」とを比較
する(ST620)。
On the other hand, when the read data "RD1" is not equal to the write data "D '" (ST600 "N
o "), the MPU 21 further compares the read data" RD2 "after the polling operation completion time with the write data" D '"(ST620).

そして、上記リードデータ「RD2」と上記ライトデー
タ「D′」とが等しければ(ST620“Yes")、ポーリン
グ動作が完了しメモリチップ内のメモリセルにライトデ
ータ「D′」が書き込まれたことを示すのでEEP−ROMと
判定する(ST630)。
If the read data "RD2" is equal to the write data "D '" (ST620 "Yes"), the polling operation is completed and the write data "D'" is written to the memory cell in the memory chip. Is determined, it is determined to be an EEP-ROM (ST630).

一方、リードデータ「RD2」と上記ライトデータ
「D′」とが等しくないときは(ST620“No")、全くラ
イトデータが書き込まれてないことを示すので、電気的
消去不可であるEP−ROMと判定する(ST640)。
On the other hand, if the read data "RD2" is not equal to the write data "D '" (ST620 "No"), it indicates that no write data has been written, and thus the EP-ROM which cannot be electrically erased. Is determined (ST640).

従って、本実施例によれば自動的にメモリユニットが
EEP−ROMであるか、またS−RAM、EP−ROMであるかを判
定できるので、ユーザはメモリユニットに実装されてい
るメモリの種別を意識せずに使用することができ、ユー
ザに負荷がかからず、また誤入力のおそれもなくなると
いう効果を奏する。
Therefore, according to this embodiment, the memory unit is automatically
Since it is possible to determine whether the memory is an EEP-ROM, an S-RAM, or an EP-ROM, the user can use the memory without being aware of the type of memory installed in the memory unit, and the load on the user is reduced. This has the effect of eliminating the possibility of erroneous input.

また、本実施例では、以上のようにしてもシステムプ
ログラムメモリに格納されたプログラムにより、MPU21
がメモリユニット5のフォーマット時にそのメモリ種別
判定を行うようにしたが、さらにシステムプログラムメ
モリ24に、MPU21がメモリ種別判定後のメモリユニット
5の適当なアドレスにその種別を書き込み、再度、その
メモリユニット5を装着するときには、そのアドレスか
らその種別を読み出し、メモリの種別を認識するように
したプログラムを格納しておけば、メモリユニット5の
装着の度にメモリの種別を判定する必要がなくなり、メ
モリユニット5の立上り時間を短縮化することが可能と
なる。
Further, in the present embodiment, even in the above manner, the MPU 21 is executed by the program stored in the system program memory.
Performs the determination of the memory type when the memory unit 5 is formatted. In addition, the MPU 21 writes the type into the system program memory 24 at an appropriate address of the memory unit 5 after the determination of the memory type, and again, When the memory unit 5 is mounted, the type of the memory is read from the address and a program for recognizing the type of the memory is stored, so that it is not necessary to determine the type of the memory every time the memory unit 5 is mounted. The rise time of the unit 5 can be shortened.

尚、本実施例ではPCのCPUユニットに直接装着される
メモリユニットにより説明したが、本発明ではそのよう
なメモリユニットに限らず、一般的なICメモリや、パソ
コンやFA機器等の機器本体に接続される一般的なICメモ
リを内蔵したメモリカードでもよい。
In the present embodiment, the description has been given of the memory unit directly mounted on the CPU unit of the PC.However, the present invention is not limited to such a memory unit, but may be applied to a general IC memory or a device body such as a personal computer or FA device. A memory card having a built-in general IC memory to be connected may be used.

《発明の効果》 以上説明したように、本発明ではメモリの任意のアド
レスに書き込んだライトデータと、EEP−ROMのポーリン
グ動作完了時間より前に上記アドレスから読み出したデ
ータ、および上記ポーリング動作完了時間より後に上記
アドレスから読み出したデータとをそれぞれ比較し、メ
モリの種別を判定するようにしたため、メモリがEEP−R
OMであるか、またRAM、あるいはEP−ROMであるかを判定
することができる。
<< Effects of the Invention >> As described above, according to the present invention, write data written to an arbitrary address of a memory, data read from the above address before the polling operation completion time of the EEP-ROM, and the polling operation completion time Later, the data read from the above address is compared with each other to determine the type of the memory.
It can be determined whether it is an OM, a RAM, or an EP-ROM.

このため、ユーザがメモリユニットに実装されている
メモリの種別を意識せずに使用することができ、ユーザ
に負荷がかからず、また誤入力等のおそれもなくなると
いう効果を奏する。
For this reason, the user can use the memory without being aware of the type of the memory mounted in the memory unit, and there is an effect that the load is not imposed on the user and there is no risk of erroneous input.

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

第1図は本発明に係るメモリの種別判定方法を採用した
PCを示す斜視図、第2図は同PCの回路構成を示すブロッ
ク図、第3図は本発明に係るメモリ判定方法を示すフロ
ーチャート、第4図は従来のメモリの種別判定方法を示
すフローチャートである。 5……メモリユニット
FIG. 1 shows a method for determining the type of memory according to the present invention.
FIG. 2 is a block diagram showing a circuit configuration of the PC, FIG. 3 is a flowchart showing a memory determination method according to the present invention, and FIG. 4 is a flowchart showing a conventional memory type determination method. is there. 5 Memory unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/06 510 H01L 21/66 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 12/06 510 H01L 21/66

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データが書き込まれるときにポーリング動
作を行うEEP−ROMや、EP−ROM、RAMの種別を判別するメ
モリの種別判定方法において、 上記メモリの任意のアドレスにデータを書き込み、 上記EEP−ROMのポーリング動作完了時間より前に上記メ
モリの上記アドレスからデータを読み出すと共に、 上記EEP−ROMのポーリング動作完了時間より後に上記メ
モリの上記アドレスからデータを読み出し、 上記メモリに書き込んだ上記データと、上記ポーリング
動作完了時間より前に読み出した上記データおよび上記
ポーリング動作完了時間より後に読み出した上記データ
とをそれぞれ比較し、 上記ライトデータとポーリング動作完了時間前のリード
データとが等しければRAMであると判定し、 上記ライトデータがポーリング動作完了時間前のリード
データとが等しくなく且つポーリング動作完了時間後の
リードデータとが等しければEEP−ROMと判定し、 ライトデータがポーリング動作完了時間前のリードデー
タとが等しくなく且つポーリング動作完了時間後のリー
ドデータとが等しくなければEP−ROMと判定する ことを特徴とするメモリの種別判定方法。
1. A method of determining the type of a memory for determining the type of an EEP-ROM, EP-ROM, or RAM that performs a polling operation when data is written, comprising: writing data to an arbitrary address of the memory; Reading data from the address of the memory before the completion time of the polling operation of the ROM; reading data from the address of the memory after the completion time of the polling operation of the EEP-ROM; Comparing the data read before the polling operation completion time with the data read after the polling operation completion time, respectively, and if the write data and the read data before the polling operation completion time are equal, it is a RAM. And the write data is read data before the polling operation completion time. If the read data after the polling operation completion time is not equal to the read data after the polling operation completion time, it is determined that the read data after the polling operation completion time is not equal to the read data before the polling operation completion time. If the values are not equal, the memory type is determined to be EP-ROM.
【請求項2】データが書き込まれるときにポーリング動
作を行うEEP−ROMとEP−ROMの種別を判定するメモリの
種別判定方法において、 上記メモリの任意のアドレスにデータを書き込み、 上記EEP−ROMのポーリング動作完了時間より後に上記メ
モリの上記アドレスからデータを読み出し、 上記メモリに書き込んだ上記データと、上記ポーリング
動作完了時間より後に読み出した上記データとをそれぞ
れ比較し、 上記ライトデータがポーリング動作完了時間後のリード
データとが等しければEEP−ROMと判定し、 ライトデータがポーリング動作完了時間後のリードデー
タとが等しくなければEP−ROMと判定する ことを特徴とするメモリの種別判定方法。
2. A method for determining the type of an EEP-ROM and an EP-ROM that performs a polling operation when data is written, comprising: writing data to an arbitrary address of the memory; The data is read from the address of the memory after the completion time of the polling operation, the data written to the memory is compared with the data read after the completion time of the polling operation, and the write data is the completion time of the polling operation. A memory type determination method characterized by determining that the read data after the polling operation is equal to the EEP-ROM if the subsequent read data is equal to the read data after the completion time of the polling operation.
【請求項3】データが書き込まれるときにポーリング動
作を行うEEP−ROMと、RAMの種別を判定するメモリの種
別判定方法において、 上記メモリの任意のアドレスにデータを書き込み、 上記EEP−ROMのポーリング動作完了時間より前に上記メ
モリの上記アドレスからデータを読み出すと共に、 上記メモリに書き込んだ上記データと、上記ポーリング
動作完了時間より前に読み出した上記データとをそれぞ
れ比較し、 上記ライトデータとポーリング動作完了時間前のリード
データとが等しければRAMであると判定し、 上記ライトデータがポーリング動作完了時間前のリード
データとが等しくなければEEP−ROMと判定する ことを特徴とするメモリの種別判定方法。
3. An EEP-ROM for performing a polling operation when data is written, and a memory type determining method for determining a type of a RAM, wherein data is written to an arbitrary address of the memory, and polling of the EEP-ROM is performed. Data is read from the address of the memory before the operation completion time, and the data written to the memory is compared with the data read before the polling operation completion time, respectively. If the read data before the completion time is equal, it is determined to be a RAM, and if the write data is not equal to the read data before the polling operation completion time, it is determined to be an EEP-ROM. .
JP02305775A 1990-11-09 1990-11-09 Memory type determination method Expired - Fee Related JP3128817B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02305775A JP3128817B2 (en) 1990-11-09 1990-11-09 Memory type determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02305775A JP3128817B2 (en) 1990-11-09 1990-11-09 Memory type determination method

Publications (2)

Publication Number Publication Date
JPH04177744A JPH04177744A (en) 1992-06-24
JP3128817B2 true JP3128817B2 (en) 2001-01-29

Family

ID=17949201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02305775A Expired - Fee Related JP3128817B2 (en) 1990-11-09 1990-11-09 Memory type determination method

Country Status (1)

Country Link
JP (1) JP3128817B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022680A (en) * 1999-07-06 2001-01-26 Seiko Epson Corp Computer peripheral device

Also Published As

Publication number Publication date
JPH04177744A (en) 1992-06-24

Similar Documents

Publication Publication Date Title
US7640424B2 (en) Initialization of flash storage via an embedded controller
CN100456272C (en) System and method of booting by flaoh memory
EP1387284A3 (en) Computer system with nand flash memory for booting and data storage
US7260697B2 (en) Data storage device and method of erasing data stored in the data storage device
JPH0764770A (en) Microcontroller apparatus provided with remotely writable eprom and writing method
JP2004005699A (en) Nand flash memory interface device
WO2002075745A1 (en) Storage device, storage device controlling method, and program
US20030145191A1 (en) Computer system and method of controlling the same
JPH10177563A (en) Microcomputer with built-in flash memory
JP3117668B2 (en) Memory management method for portable terminal equipment
JP2001344148A (en) Boot block flash memory control circuit, ic memory card provided with it, semiconductor storage device, and boot block flash memory deleting method
CN110825421B (en) Firmware upgrading method, system and readable storage medium
JP3128817B2 (en) Memory type determination method
JPH03252993A (en) Information writing device for e2prom
CN105988737B (en) Storage system, computing system including the same, and method of operating the storage system
US20020089875A1 (en) Microcomputer
JP2003523029A (en) Real-time writing method with protection for nonvolatile memory
CN114496052A (en) Method and device for testing permission mode function of SSD (solid State drive) in non-operation power state
JP4793798B2 (en) Microcomputer
JPH07281986A (en) Extended board, information processor using the same and control method for peripheral device
JP2001147863A (en) Flash memory rewrite device
JP2513421B2 (en) Storage device
JP3019346B2 (en) Data processing device
JP2003331236A (en) Portable electronic device
JPS62289999A (en) Data writing method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071117

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081117

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees