JP2002073411A - Method and device to judge memory capacity of eeprom - Google Patents

Method and device to judge memory capacity of eeprom

Info

Publication number
JP2002073411A
JP2002073411A JP2000253523A JP2000253523A JP2002073411A JP 2002073411 A JP2002073411 A JP 2002073411A JP 2000253523 A JP2000253523 A JP 2000253523A JP 2000253523 A JP2000253523 A JP 2000253523A JP 2002073411 A JP2002073411 A JP 2002073411A
Authority
JP
Japan
Prior art keywords
eeprom
address data
data input
serial
storage capacity
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
JP2000253523A
Other languages
Japanese (ja)
Inventor
Yasunori Fukumitsu
康則 福光
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2000253523A priority Critical patent/JP2002073411A/en
Publication of JP2002073411A publication Critical patent/JP2002073411A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and a device to judge an EEPROM memory capacity, which can decide an access sequence by using a result of the judgment based upon the procured EEPROM memory capacity that can be automatically determined when the capacity of the EEPROM is unknown in advance. SOLUTION: The device enters an address data into an EEPROM 2 and counts the number of address bits entered until an EEPROM 2 output reaches a pre-determined value.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はEEPROM(electrical
ly erasable and programmable read only memory)の
記憶容量を判別するEEPROMの記憶容量判別装置およびEE
PROMの記憶容量判別方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an EEPROM (electrical
EEPROM storage capacity determination device and EE for determining storage capacity of ly erasable and programmable read only memory
The present invention relates to a method for determining the storage capacity of a PROM.

【0002】[0002]

【従来の技術】従来から広く用いられているEEPROMに
は、記憶容量が1kビットのものと、2kビットのもの
とが存在している。このようなEEPROMにアクセスするに
は、アドレスデータをシリアルに入力してアクセスする
のが通常であり、1kビットの記憶容量のEEPROMでは1
個のアドレスデータが6ビットで構成され、2kビット
の記憶容量のEEPROMでは1個のアドレスデータが8ビッ
トで構成されている。アドレスデータのビット数が異な
るので、1kビットの記憶容量のEEPROMを用いる場合
と、2kビットの記憶容量のEEPROMを用いる場合とで、
異なるEEPROMの駆動プログラムを用いなければならな
い。
2. Description of the Related Art Conventionally, EEPROMs widely used include those having a storage capacity of 1 k bits and those having a storage capacity of 2 k bits. In order to access such an EEPROM, it is usual to access by inputting address data serially. In an EEPROM having a storage capacity of 1 kbit, 1 is required.
Address data is composed of 6 bits, and in an EEPROM having a storage capacity of 2 k bits, one address data is composed of 8 bits. Since the number of bits of the address data is different, a case where an EEPROM having a storage capacity of 1 kbit is used and a case where an EEPROM having a storage capacity of 2 kbit are used are as follows.
A different EEPROM drive program must be used.

【0003】そのため、従来から、EEPROMの記憶容量を
予め1kビットか2kビットか定めてそれぞれに適した
アクセスシーケンスをプログラム化して使用していた。
For this reason, conventionally, the storage capacity of the EEPROM has been determined in advance to be 1 kbit or 2 kbit, and an access sequence suitable for each has been programmed and used.

【0004】[0004]

【発明が解決しようとする課題】しかるに、近年のIC
不足の影響により、事前に1kビットの記憶容量のEEPR
OMを入手できるのか、2kビットの記憶容量のEEPROMを
入手できるのか判明しない場合が多々生じるようになっ
た。このため、実際にEEPROMを入手するまでEEPROMの駆
動ソフトを作成できず、製品計画の日程の遅れを生じる
原因となっている。
SUMMARY OF THE INVENTION However, recent ICs
Due to the shortage, EEPROM of 1 kbit storage capacity
In many cases, it is not known whether an OM can be obtained or an EEPROM having a storage capacity of 2 k bits can be obtained. For this reason, software for driving the EEPROM cannot be created until the EEPROM is actually obtained, causing a delay in the product planning schedule.

【0005】本発明の課題は、EEPROMの記憶容量が事前
に分からない場合にも、入手したEEPROMの記憶容量を自
動的に判別でき、その判別結果を利用することにより、
アクセスシーケンスを決定することのできるEEPROMの記
憶容量判別装置およびEEPROMの記憶容量判別方法を提供
することにある。
[0005] An object of the present invention is to make it possible to automatically determine the storage capacity of an obtained EEPROM even when the storage capacity of the EEPROM is not known in advance, and to use the result of the determination.
An object of the present invention is to provide an EEPROM storage capacity determination device and an EEPROM storage capacity determination method capable of determining an access sequence.

【0006】[0006]

【課題を解決するための手段】上記課題を達成するた
め、本願請求項1に記載の発明に係るEEPROMの記憶容量
判別装置は、EEPROMをアクセス可能な状態にするチップ
セレクト信号を該EEPROMに入力するチップセレクト信号
入力手段と、前記EEPROMをデータ読み出しモードとする
読み出し命令と所定のビット数のアドレスデータを含む
シリアルデータを前記EEPROMに入力するシリアルデータ
入力手段と、該シリアルデータ入力手段が前記EEPROMに
入力したアドレスデータの入力ビット数をカウントする
アドレスデータ入力ビット数カウント手段と、前記EEPR
OMの出力レベルを監視し、該出力レベルが所定の値を取
ったときに前記アドレスデータ入力ビット数カウント手
段のカウント動作を停止させる停止信号を該アドレスデ
ータ入力ビット数カウント手段に入力するEEPROMの出力
レベル判定手段とを備えたことを特徴とするものであ
る。
According to a first aspect of the present invention, there is provided an EEPROM storage capacity determining apparatus for inputting a chip select signal for making an EEPROM accessible to the EEPROM. Chip select signal inputting means, serial data inputting means for inputting serial data including a read command for setting the EEPROM to a data reading mode and address data of a predetermined number of bits to the EEPROM, and the serial data inputting means comprising: Address data input bit number counting means for counting the number of input bits of the address data input to the
An EEPROM for monitoring the output level of the OM and inputting a stop signal to the address data input bit number counting means to stop the counting operation of the address data input bit number counting means when the output level takes a predetermined value. Output level determining means.

【0007】本発明によれば、チップセレクト信号の入
力によりアクセス可能な状態になったEEPROMに、読み出
し命令を含むシリアルデータを入力することにより、EE
PROMはデータ読み出しモードとなる。データ読み出しモ
ードでは、EEPROMは、必要なビット数のアドレスデータ
が入力された判断すると、その仕様に従い、出力端子の
レベルを高インピーダンス状態からローレベルに変化さ
せる。したがって、アドレスデータ入力ビット数カウン
ト手段によりアドレスデータのビット数をカウントしな
がら、シリアルデータ入力手段により1ビットずつEEPRO
Mに入力していくと、このアドレスデータの入力を受け
たEEPROMが、必要なビット数のアドレスデータが入力さ
れた判断したときに、その出力端子のレベルを高インピ
ーダンス状態からローレベルに変化させるのをEEPROMの
出力レベル判定手段により検出してアドレスデータ入力
ビット数カウント手段のカウント動作を停止させる。
According to the present invention, by inputting serial data including a read command to an EEPROM which can be accessed by inputting a chip select signal,
The PROM is in the data read mode. In the data read mode, the EEPROM changes the level of the output terminal from the high impedance state to the low level according to the specification when determining that address data of a required number of bits has been input. Therefore, while counting the number of bits of the address data by the address data input bit number counting means, the serial data input means sets the EEPRO bit by bit.
When input to M, the EEPROM that receives this address data changes the level of its output terminal from a high impedance state to a low level when it determines that the required number of bits of address data has been input. Is detected by the output level determining means of the EEPROM, and the counting operation of the address data input bit number counting means is stopped.

【0008】これにより、記憶容量が1kビットのEEPR
OMは、シリアルデータ入力手段から入力されるアドレス
データが6ビットとなったときに出力レベルをローレベ
ルとするので、このときアドレスデータ入力ビット数カ
ウント手段のカウントが停止され、そのカウント値が6
を指すこととなるので、そのEEPROMが1kビットの記憶
容量のもであるということが自動的に判定できる。記憶
容量が2kビットのものは、入力されるアドレスデータ
が8ビットとなったときに出力レベルをローレベルとす
るので、アドレスデータ入力ビット数カウント手段のカ
ウント値は8を指し、同様に、そのEEPROMが2kビット
の記憶容量のものであるということが自動的に判定でき
る。
As a result, an EEPROM having a storage capacity of 1 kbits
Since the output level of the OM becomes low when the address data input from the serial data input means becomes 6 bits, the counting of the address data input bit number counting means is stopped at this time, and the count value becomes 6 bits.
Therefore, it can be automatically determined that the EEPROM has a storage capacity of 1 kbit. When the memory capacity is 2 k bits, the output level is set to a low level when the input address data becomes 8 bits. Therefore, the count value of the address data input bit number counting means indicates 8, and similarly, It can be automatically determined that the EEPROM has a storage capacity of 2 kbits.

【0009】したがって、請求項1の発明によれば、入
手したEEPROMの記憶容量を自動的に判別でき、その判別
結果を利用することにより、アクセスシーケンスを決定
することができる。
Therefore, according to the first aspect of the present invention, the storage capacity of the obtained EEPROM can be automatically determined, and the access sequence can be determined by using the result of the determination.

【0010】また、本願請求項2に記載の発明は、請求
項1記載されたEEPROMの記憶容量判別装置において、前
記アドレスデータ入力ビット数カウント手段のカウント
したカウント値を保持するアドレスデータ入力ビット数
記憶手段を更に備えたことを特徴とするものである。本
発明によれば、EEPROMの記憶容量の判別結果がアドレス
データ入力ビット数記憶手段に保持されているので、必
要に応じてEEPROMの記憶容量の判別結果を利用すること
ができ、アクセスシーケンスの決定時等に便利である。
According to a second aspect of the present invention, in the EEPROM storage capacity judging device according to the first aspect, the address data input bit number holding the count value counted by the address data input bit number counting means is provided. It is characterized by further comprising storage means. According to the present invention, since the determination result of the storage capacity of the EEPROM is held in the address data input bit number storage means, the determination result of the storage capacity of the EEPROM can be used as needed, and the access sequence is determined. It is convenient at times.

【0011】また、本願請求項3に記載の発明は、請求
項1または2に記載されたEEPROMの記憶容量判別装置お
いて、シリアルクロックを生成して該生成したシリアル
クロックを前記EEPROMに入力するシリアルクロック入力
手段を更に備えたことを特徴とするものである。本発明
によれば、シーケンシャル動作の基礎となるシリアルク
ロックを外部から供給を受けずに、EEPROMの記憶容量判
別装置自身で生成することができるので、このEEPROMの
記憶容量判別装置をプリンタ等の装置に組み込む自由度
が増大し、使い勝手の良いEEPROMの記憶容量判別装置が
得られる。
According to a third aspect of the present invention, in the EEPROM storage capacity determining apparatus according to the first or second aspect, a serial clock is generated and the generated serial clock is input to the EEPROM. A serial clock input means is further provided. According to the present invention, a serial clock serving as a basis for a sequential operation can be generated by an EEPROM storage capacity determination device itself without receiving external supply, so that the EEPROM storage capacity determination device can be used as a device such as a printer. This increases the degree of freedom of embedding in the memory, and provides an easy-to-use EEPROM storage capacity determination device.

【0012】また、本願請求項4に記載の発明に係るEE
PROMの記憶容量判別方法は、EEPROMをアクセス可能な状
態にするチップセレクト信号を該EEPROMに入力するチッ
プセレクト信号入力ステップと、前記EEPROMをデータ読
み出しモードとする読み出し命令と所定のビット数のア
ドレスデータとを含むシリアルデータを前記EEPROMに入
力するシリアルデータ入力ステップと、該シリアルデー
タ入力ステップにおいて前記EEPROMに入力したアドレス
データの入力ビット数をカウントするアドレスデータ入
力ビット数カウントステップと、前記EEPROMの出力レベ
ルを監視し、該出力レベルが所定の値を取ったときに前
記アドレスデータ入力ビット数のカウント動作を停止さ
せるEEPROMの出力レベル判定ステップとを備えたことを
特徴とするものである。本発明によれば、請求項1の発
明と同様な効果が得られる。
The EE according to the invention described in claim 4 of the present application.
A method of determining the storage capacity of a PROM includes a chip select signal inputting step of inputting a chip select signal to the EEPROM to enable access to the EEPROM, a read command to set the EEPROM in a data read mode, and address data of a predetermined number of bits. A serial data input step of inputting serial data to the EEPROM, an address data input bit number counting step of counting the number of input bits of address data input to the EEPROM in the serial data input step, and an output of the EEPROM. An EEPROM output level determining step of monitoring a level and stopping the operation of counting the number of input bits of the address data when the output level takes a predetermined value. According to the present invention, the same effect as that of the first aspect can be obtained.

【0013】また、本願請求項5に記載の発明は、請求
項4に記載されたEEPROMの記憶容量判別方法において、
前記アドレスデータ入力ビット数カウントステップでカ
ウントしたカウント値を保持するアドレスデータ入力ビ
ット数記憶ステップを更に備えたことを特徴とするもの
である。本発明によれば、アドレスデータ入力ビット数
記憶ステップにより記憶したEEPROMの記憶容量の判別結
果を必要に応じて利用することにより、請求項2の発明
と同様な効果が得られる。
According to a fifth aspect of the present invention, there is provided the EEPROM storage capacity determining method according to the fourth aspect, wherein:
An address data input bit number storing step of holding a count value counted in the address data input bit number counting step is further provided. According to the present invention, the same effect as that of the second aspect of the present invention can be obtained by utilizing the determination result of the storage capacity of the EEPROM stored in the address data input bit number storage step as needed.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図1は本発明に係るEEPROMの記憶
容量判別装置の一実施の形態の機能ブロックを示す機能
ブロック図である。本実施の形態の各機能ブロックは、
ハードウェアにより実現しても、コンピュータ上でソフ
トウェアにより実現しても良い。また、図2は、これら
の各機能ブロックとEEPROMとの間で送受信される各信号
の信号波形を示すタイミングチャートである。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a functional block diagram showing functional blocks of an embodiment of an EEPROM storage capacity determination device according to the present invention. Each functional block of the present embodiment includes:
It may be realized by hardware or by software on a computer. FIG. 2 is a timing chart showing signal waveforms of signals transmitted and received between these functional blocks and the EEPROM.

【0015】図1及び図2において、本実施の形態のEE
PROMの記憶容量判別装置1は、EEPROM2の記憶容量を判
別するための次の機能ブロックを有している。
Referring to FIGS. 1 and 2, EE of this embodiment is shown.
The PROM storage capacity determination device 1 has the following functional blocks for determining the storage capacity of the EEPROM 2.

【0016】すなわち、EEPROM2をアクセス可能な状態
にするチップセレクト信号CSをEEPROM2に入力するチ
ップセレクト信号入力手段11と、EEPROM2をデータ読
み出しモードとする読み出し命令と所定のビット数のア
ドレスデータとを含むシリアルデータDIをEEPROM2に
入力するシリアルデータ入力手段12と、シリアルデー
タ入力手段12がEEPROM2に入力したアドレスデータの
入力ビット数をカウントするアドレスデータ入力ビット
数カウント手段13と、EEPROM2の出力レベルを監視
し、該出力レベルが所定の値を取ったときにアドレスデ
ータ入力ビット数カウント手段13のカウント動作を停
止させる停止信号をアドレスデータ入力ビット数カウン
ト手段13に入力するEEPROM2の出力レベル判定手段1
4と、アドレスデータ入力ビット数カウント手段13の
カウントしたカウント値を保持するアドレスデータ入力
ビット数記憶手段15と、シリアルクロックSKを生成
してこの生成したシリアルクロックSKをEEPROM2に入
力するシリアルクロック入力手段16とを備えている。
That is, it includes a chip select signal input means 11 for inputting a chip select signal CS for making the EEPROM 2 accessible to the EEPROM 2, a read command for setting the EEPROM 2 in a data read mode, and address data of a predetermined number of bits. Serial data input means 12 for inputting serial data DI to EEPROM 2, address data input bit number counting means 13 for counting the number of input bits of address data input to EEPROM 2 by serial data input means 12, and monitoring the output level of EEPROM 2. Then, a stop signal for stopping the counting operation of the address data input bit number counting means 13 is input to the address data input bit number counting means 13 when the output level takes a predetermined value.
4, an address data input bit number storage means 15 for holding the count value counted by the address data input bit number counting means 13, and a serial clock input for generating a serial clock SK and inputting the generated serial clock SK to the EEPROM 2. Means 16.

【0017】次に、本実施の形態の動作を図3のフロー
チャートをも参照しながら説明する。まず、EEPROM2に
アクセスするために、チップセレクト信号CSをハイレ
ベルに立ち上げてチップセレクト信号入力手段11から
EEPROM2に入力する(ステップS1)。
Next, the operation of this embodiment will be described with reference to the flowchart of FIG. First, in order to access the EEPROM 2, the chip select signal CS is raised to a high level and the chip select signal input means 11
The data is input to the EEPROM 2 (step S1).

【0018】一方、シリアルクロック入力手段16は、
シリアルクロックSKを生成して、順次EEPROM2に入力
する。EEPROM2においては、シリアルクロックSKの立
ち上がりに同期してシリアルデータDIを取り込むこと
により命令が実行される。
On the other hand, the serial clock input means 16
The serial clock SK is generated and sequentially input to the EEPROM 2. The instruction is executed in the EEPROM 2 by fetching the serial data DI in synchronization with the rising edge of the serial clock SK.

【0019】チップセレクト信号CSがハイレベルに立
ち上がると、EEPROM2は動作を開始してアクセス可能な
状態となり、シリアルデータ入力手段12はシリアルデ
ータDIをハイレベルに立ち上げ、論理1とする(ステ
ップS2)。このシリアルデータDIの最初の立ち上が
りをスタートビットと称し、このスタートビットが立ち
上がった後の最初のシリアルクロックSKの立ち上がり
(ステップS3)(クロックNo.1)で、スタートビッ
トの論理1がEEPROM2に取り込まれ、EEPROM2がそれま
でのスタンバイ状態を解除して動作を開始する。
When the chip select signal CS rises to a high level, the EEPROM 2 starts operating and becomes accessible, and the serial data input means 12 raises the serial data DI to a high level and sets it to logic 1 (step S2). ). The first rise of the serial data DI is referred to as a start bit. At the first rise of the serial clock SK (step S3) (clock No. 1) after the rise of the start bit, the logic 1 of the start bit is taken into the EEPROM 2. Then, the EEPROM 2 releases the standby state up to that point and starts operation.

【0020】次に、シリアルデータ入力手段12は、シ
リアルクロックSKの次の2クロック分(クロックNo.
2,3)に対応する信号レベルの変化、すなわち、クロ
ックNo.2,3で取り込まれる2ビット分の論理値によ
って、データの読み取り(1,0)、書き込み(0,
1)、データ消去(1,1)等のEEPROM2の各動作に対
する命令をEEPROM2に入力する(ステップS4)。この
2ビット分の論理値をオペコードと称する。本実施の形
態では、EEPROM2にデータ読み取り動作を行わせるため
に、シリアルクロックSKのクロックNo.2,3で(ス
テップS5)オペコード(0,1)が読み取れる様に、
シリアルデータDIのレベルを変化させる。
Next, the serial data input means 12 supplies the next two clocks of the serial clock SK (clock No.
Data reading (1, 0) and writing (0,
1) A command for each operation of the EEPROM 2, such as data erasing (1, 1), is input to the EEPROM 2 (step S4). The logical value of these two bits is called an operation code. In the present embodiment, in order to make the EEPROM 2 perform a data reading operation, the operation code (0, 1) can be read by the clock Nos. 2, 3 of the serial clock SK (step S5).
The level of the serial data DI is changed.

【0021】次に、シリアルデータ入力手段12は、シ
リアルクロックSKの少なくとも8個のクロックの立ち
上がりで読み取られる時間分シリアルデータDIの信号
レベルを変化させてアドレスデータとして出力する(ス
テップS6〜S9)。すなわち、少なくとも8ビットの
アドレスデータをビットシリアルに出力する。
Next, the serial data input means 12 changes the signal level of the serial data DI for at least the time read at the rise of at least eight clocks of the serial clock SK and outputs it as address data (steps S6 to S9). . That is, address data of at least 8 bits is output bit-serial.

【0022】図2のタイミングチャートでは、シリアル
クロックSKのクロックNo.4〜11の立ち上がりに同
期して読み取られるべきアドレスデータの各ビットとし
て、X,A6,A5,…,A0が示されている。
In the timing chart of FIG. 2, X, A6, A5,..., A0 are shown as each bit of the address data to be read in synchronization with the rising of the clocks No. 4 to No. 11 of the serial clock SK. .

【0023】更に詳細にこの読み取り動作を説明する
と、シリアルデータ入力手段12がシリアルデータDI
の信号レベルをアドレス信号の1ビット(X)として設
定し、EEPROM2に入力する(ステップS6)。このシリ
アルデータ入力手段12によるアドレスデータの入力動
作をアドレスデータ入力ビット数カウント手段13がビ
ット数1としてカウントする(ステップS7)。次にシ
リアルクロック入力手段16がクロックNo.4のシリア
ルクロックSKをEEPROM2に入力し(ステップS8)、
EEPROM2では、このNo.4のシリアルクロックSKの立
ち上がりに同期してシリアルデータDIの信号レベルを
アドレスデータの最初の1ビット(X)として取り入れ
る。続いて、EEPROM2の出力レベル判定手段14がEEPR
OM2のシリアル出力データDOの信号レベルを判定し
(ステップS9)、論理0の信号レベル(ローレベル)
ではないと判定して、ステップS6に戻り、アドレスデ
ータの次のビット(A6)の信号レベルの読み取り動作
が行われる。なお、EEPROM2のシリアル出力データDO
の出力端子は所定ビット数(記憶容量1kビットの場合
には6ビット,記憶容量2kビットの場合には8ビッ
ト)のアドレスデータが入力されるまでは、ハイインピ
ーダンス状態にあり、論理0の信号レベルにはならない
ようになっている。また、ここで入力されるアドレスデ
ータは、実際の読み取り動作に供するものではなく、EE
PROM2の記憶容量の判定のためのものであるから、どの
ようなデータであってもかまわない。すなわち、ダミー
データとして、少なくとも8ビットのデータを構成すれ
ばよい。
The reading operation will be described in more detail. The serial data input means 12 outputs the serial data DI
Is set as one bit (X) of the address signal and input to the EEPROM 2 (step S6). The address data input operation by the serial data input means 12 is counted by the address data input bit number counting means 13 as 1 bit number (step S7). Next, the serial clock input means 16 inputs the serial clock SK of the clock No. 4 to the EEPROM 2 (step S8),
The EEPROM 2 takes in the signal level of the serial data DI as the first bit (X) of the address data in synchronization with the rise of the serial clock SK of No. 4. Subsequently, the output level determination means 14 of the EEPROM 2
The signal level of the serial output data DO of OM2 is determined (step S9), and the signal level of logic 0 (low level)
Then, the process returns to step S6, and the operation of reading the signal level of the next bit (A6) of the address data is performed. Note that the serial output data DO of the EEPROM 2
The output terminal is in a high-impedance state until a predetermined number of bits (6 bits in the case of 1 k-bit storage capacity, 8 bits in the case of 2 k-bit storage capacity) are inputted, and a logic 0 signal is input. It does not become a level. The address data input here is not used for the actual reading operation,
Since the data is for determining the storage capacity of the PROM 2, any data may be used. That is, at least 8-bit data may be configured as the dummy data.

【0024】このようにして、シリアルデータDIのア
ドレスデータの各ビットの値がEEPROM2に入力されてい
くと、EEPROM2が記憶容量1kビットのEEPROMであれ
ば、6ビット目(A2)のアドレスデータが入力される
と、EEPROM2が読み取り動作を行うためのアドレスデー
タが入力されたものとして、シリアル出力データDOの
信号レベルをローレベルとする。したがって、EEPROM2
の出力レベル判定手段14は、このシリアル出力データ
DOの信号レベルの変化を検出し(ステップS9)、ア
ドレスデータ入力ビット数カウント手段13のカウント
動作を停止させる。このときのアドレスデータ入力ビッ
ト数カウント手段13のカウント値は6であり、EEPROM
2の記憶容量が1kビットであることを表す。このアド
レスデータ入力ビット数カウント手段13のカウント値
はアドレスデータ入力ビット数記憶手段15により記憶
される(ステップS10)。この後、通常のデータ読み
取り、データ書き込み動作を継続してもよいが、EEPROM
2の記憶容量の判定のみの目的であれば、チップセレク
ト信号CSを立ち下げて判定動作を終了する(ステップ
S11)。
As described above, when the value of each bit of the address data of the serial data DI is input to the EEPROM 2, if the EEPROM 2 is an EEPROM having a storage capacity of 1 k bits, the address data of the sixth bit (A2) is When the signal is input, the signal level of the serial output data DO is set to the low level, assuming that the address data for the EEPROM 2 to perform the reading operation has been input. Therefore, EEPROM2
The output level determination means 14 detects a change in the signal level of the serial output data DO (step S9), and stops the counting operation of the address data input bit number counting means 13. At this time, the count value of the address data input bit number counting means 13 is 6,
2 indicates that the storage capacity is 1 k bits. The count value of the address data input bit number counting means 13 is stored by the address data input bit number storage means 15 (step S10). After this, normal data reading and data writing operations may be continued,
If the purpose is only to determine the storage capacity of No. 2, the chip select signal CS falls and the determination operation ends (step S11).

【0025】なお、EEPROM2の記憶容量が2kビットで
あれば、EEPROM2はシリアルデータDIのビット数が8
ビットとなるまで(ビットA0)出力端子がハイインピ
ーダンスである状態を継続し、8ビット目(A0)のア
ドレスデータが取りこまれた時点で、シリアル出力デー
タDOを論理0とする。
If the storage capacity of the EEPROM 2 is 2 k bits, the number of bits of the serial data DI is 8
The output terminal continues to be in a high impedance state until it becomes a bit (bit A0), and when the address data of the eighth bit (A0) is taken in, the serial output data DO is set to logic 0.

【0026】また、EEPROM2は、チップセレクト信号C
Sがローレベルとならない限り、シリアル出力データD
Oを論理0とした後のシリアルクロックSKの最初の立
ち上がり(図2の例ではNo.12のクロックの立ち上が
り)から、入力されたアドレスに記録されているデータ
の出力を行う(図2の例ではD15がこのデータの最初
のビットとなる)。
The EEPROM 2 stores a chip select signal C
Unless S goes low, the serial output data D
From the first rise of the serial clock SK after O is set to logic 0 (the rise of the clock of No. 12 in the example of FIG. 2), the data recorded at the input address is output (the example of FIG. 2). D15 is the first bit of this data).

【0027】なお、図1に示した機能ブロックの内、シ
リアルクロック入力手段16は、本実施の形態のEEPROM
の記憶容量判別装置の一構成要素として設けずに、この
記憶容量判別装置が組み込まれるプリンタ等のシステム
のシステムクロックを利用しても良く、また、アドレス
データ入力ビット数記憶手段15も必ずしも設ける必要
はない。さらに、チップセレクト信号入力手段11、シ
リアルデータ入力手段12、アドレスデータ入力ビット
数カウント手段13、およびEEPROMの出力レベル判定手
段14の機能ブロックは、この記憶容量判別装置が組み
込まれるプリンタ等のシステムのCPUの機能の一部と
して実現しても良い。
The serial clock input means 16 of the functional blocks shown in FIG.
The system clock of a system such as a printer in which the storage capacity determination device is incorporated may be used instead of being provided as one component of the storage capacity determination device, and the address data input bit number storage means 15 must always be provided. There is no. Further, the function blocks of the chip select signal input unit 11, the serial data input unit 12, the address data input bit number counting unit 13, and the output level determination unit 14 of the EEPROM are used in a system such as a printer in which the storage capacity determination device is incorporated. It may be realized as a part of the function of the CPU.

【0028】[0028]

【発明の効果】以上説明した様に、本発明のEEPROMの記
憶容量判別装置およびEEPROMの記憶容量判別方法におい
ては、EEPROMにアドレスデータを入力して、EEPROMの出
力レベルが所定の値となるときまでにEEPROMに入力した
アドレスデータのビット数をカウントするようにしたの
で、EEPROMの記憶容量を自動的に判別することができ、
その判別結果を利用することにより、アクセスシーケン
スを決定することができる。
As described above, in the EEPROM storage capacity determining apparatus and the EEPROM storage capacity determining method of the present invention, when the address data is input to the EEPROM and the output level of the EEPROM reaches a predetermined value. By the time the number of bits of address data input to the EEPROM is counted, the storage capacity of the EEPROM can be automatically determined,
The access sequence can be determined by using the result of the determination.

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

【図1】本発明になるEEPROMの記憶容量判別装置の一実
施の形態の機能ブロックを示す機能ブロック図である。
FIG. 1 is a functional block diagram showing functional blocks of an embodiment of an EEPROM storage capacity determination device according to the present invention.

【図2】図1に示した各機能ブロックとEEPROMとの間で
送受信される各信号の信号波形を示すタイミングチャー
トである。
FIG. 2 is a timing chart showing signal waveforms of signals transmitted and received between each functional block shown in FIG. 1 and an EEPROM.

【図3】図1に示した実施の形態の動作を示すフローチ
ャートである。
FIG. 3 is a flowchart showing an operation of the embodiment shown in FIG. 1;

【符号の説明】[Explanation of symbols]

1 EEPROMの記憶容量判別装置 2 EEPROM 11 チップセレクト信号入力手段 12 シリアルデータ入力手段 13 アドレスデータ入力ビット数カウント手段 14 EEPROMの出力レベル判定手段 15 アドレスデータ入力ビット数記憶手段 16 シリアルクロック入力手段 CS チップセレクト信号 DI シリアルデータ SK シリアルクロック 1 EEPROM storage capacity determination device 2 EEPROM 11 Chip select signal input means 12 Serial data input means 13 Address data input bit number counting means 14 EEPROM output level determination means 15 Address data input bit number storage means 16 Serial clock input means CS chip Select signal DI Serial data SK Serial clock

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 EEPROMをアクセス可能な状態にするチッ
プセレクト信号を該EEPROMに入力するチップセレクト信
号入力手段と、 前記EEPROMをデータ読み出しモードとする読み出し命令
と所定のビット数のアドレスデータとを含むシリアルデ
ータを前記EEPROMに入力するシリアルデータ入力手段
と、 該シリアルデータ入力手段が前記EEPROMに入力したアド
レスデータの入力ビット数をカウントするアドレスデー
タ入力ビット数カウント手段と、 前記EEPROMの出力レベルを監視し、該出力レベルが所定
の値を取ったときに前記アドレスデータ入力ビット数カ
ウント手段のカウント動作を停止させる停止信号を該ア
ドレスデータ入力ビット数カウント手段に入力するEEPR
OMの出力レベル判定手段とを備えたことを特徴とするEE
PROMの記憶容量判別装置。
1. A chip select signal input means for inputting a chip select signal for making an EEPROM accessible to the EEPROM, a read command for setting the EEPROM in a data read mode, and address data of a predetermined number of bits. Serial data input means for inputting serial data to the EEPROM; address data input bit number counting means for counting the number of input bits of address data input to the EEPROM by the serial data input means; and monitoring the output level of the EEPROM And a stop signal for stopping the counting operation of the address data input bit number counting means when the output level takes a predetermined value.
EE comprising OM output level determination means
PROM storage capacity determination device.
【請求項2】 請求項1において、前記アドレスデータ
入力ビット数カウント手段のカウントしたカウント値を
保持するアドレスデータ入力ビット数記憶手段を更に備
えたことを特徴とするEEPROMの記憶容量判別装置。
2. An EEPROM storage capacity determining device according to claim 1, further comprising address data input bit number storage means for holding a count value counted by said address data input bit number counting means.
【請求項3】 請求項1または2において、シリアルク
ロックを生成して該生成したシリアルクロックを前記EE
PROMに入力するシリアルクロック入力手段を更に備えた
ことを特徴とするEEPROMの記憶容量判別装置。
3. The method according to claim 1, wherein a serial clock is generated, and the generated serial clock is transmitted to the EE.
An EEPROM storage capacity judging device further comprising a serial clock input means for inputting data to a PROM.
【請求項4】 EEPROMをアクセス可能な状態にするチッ
プセレクト信号を該EEPROMに入力するチップセレクト信
号入力ステップと、 前記EEPROMをデータ読み出しモードとする読み出し命令
と所定のビット数のアドレスデータとを含むシリアルデ
ータを前記EEPROMに入力するシリアルデータ入力ステッ
プと、 該シリアルデータ入力ステップにおいて前記EEPROMに入
力したアドレスデータの入力ビット数をカウントするア
ドレスデータ入力ビット数カウントステップと、 前記EEPROMの出力レベルを監視し、該出力レベルが所定
の値を取ったときに前記アドレスデータ入力ビット数の
カウント動作を停止させるEEPROMの出力レベル判定ステ
ップとを備えたことを特徴とするEEPROMの記憶容量判別
方法。
4. A chip select signal inputting step of inputting a chip select signal for making the EEPROM accessible to the EEPROM, a read command for setting the EEPROM in a data read mode, and address data of a predetermined number of bits. A serial data input step of inputting serial data to the EEPROM, an address data input bit number counting step of counting the number of input bits of address data input to the EEPROM in the serial data input step, and monitoring an output level of the EEPROM An EEPROM output level determining step of stopping the operation of counting the number of address data input bits when the output level takes a predetermined value.
【請求項5】 請求項4において、前記アドレスデータ
入力ビット数カウントステップでカウントしたカウント
値を保持するアドレスデータ入力ビット数記憶ステップ
を更に備えたことを特徴とするEEPROMの記憶容量判別方
法。
5. The method according to claim 4, further comprising the step of storing an address data input bit number storing a count value counted in the address data input bit number counting step.
JP2000253523A 2000-08-24 2000-08-24 Method and device to judge memory capacity of eeprom Withdrawn JP2002073411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000253523A JP2002073411A (en) 2000-08-24 2000-08-24 Method and device to judge memory capacity of eeprom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000253523A JP2002073411A (en) 2000-08-24 2000-08-24 Method and device to judge memory capacity of eeprom

Publications (1)

Publication Number Publication Date
JP2002073411A true JP2002073411A (en) 2002-03-12

Family

ID=18742605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000253523A Withdrawn JP2002073411A (en) 2000-08-24 2000-08-24 Method and device to judge memory capacity of eeprom

Country Status (1)

Country Link
JP (1) JP2002073411A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2462837A (en) * 2008-08-21 2010-02-24 Topaz Electronic Systems Ltd Programming Memory Devices for Replaceable Printer Components
US8917565B2 (en) 2005-01-11 2014-12-23 Samsung Electronics Co., Ltd. Solid state disk controller apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8917565B2 (en) 2005-01-11 2014-12-23 Samsung Electronics Co., Ltd. Solid state disk controller apparatus
GB2462837A (en) * 2008-08-21 2010-02-24 Topaz Electronic Systems Ltd Programming Memory Devices for Replaceable Printer Components

Similar Documents

Publication Publication Date Title
US6772276B2 (en) Flash memory command abstraction
US7779174B2 (en) Method and apparatus for dynamically changing burst length using direct memory access control
CN107797821A (en) Retry read method and the device using this method
US8015448B2 (en) System and method for conducting BIST operations
JP2002073411A (en) Method and device to judge memory capacity of eeprom
US6785174B2 (en) Testing method and device for non-volatile memories having a LPC (low pin count) communication serial interface
JPH07192481A (en) Semiconductor memory device
EP0359232A2 (en) Computer system and method for setting recovery time
US6298412B1 (en) Microcomputer and method of determining completion of writing in the microcomputer
JPS62205599A (en) Read only memory circuit capable of writing
JPH08149160A (en) Data receiver
JPH11176174A (en) Writing circuit of non-volatile memory and non-volatile memory
JP2003203490A (en) Semiconductor memory device, control device, and control method for semiconductor memory device
JP3190421B2 (en) IC memory card system
JP3333265B2 (en) Semiconductor integrated circuit
JPH11328089A (en) Id information write circuit in device for pci bus interface
JP2001084172A (en) Semiconductor storage device
US6529415B2 (en) Nonvolatile semiconductor memory device achieving shorter erasure time
CN114267397A (en) Global configuration programming method, device and system
JPS59132376A (en) Test pattern reading control system
JP2021165995A (en) Memory control device and control method for memory control device
JP2000276347A (en) Portable electronic apparatus
JP2001307491A (en) Non-volatile semiconductor memory and its control method
JP2001290755A (en) Method for accessing eeprom and electronic device having eeprom
JP2001337914A (en) Low-speed device access control method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041022

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061206

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070221

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20070416