JP4103452B2 - Data input control device for serial EEPROM - Google Patents

Data input control device for serial EEPROM Download PDF

Info

Publication number
JP4103452B2
JP4103452B2 JP2002139943A JP2002139943A JP4103452B2 JP 4103452 B2 JP4103452 B2 JP 4103452B2 JP 2002139943 A JP2002139943 A JP 2002139943A JP 2002139943 A JP2002139943 A JP 2002139943A JP 4103452 B2 JP4103452 B2 JP 4103452B2
Authority
JP
Japan
Prior art keywords
data
input
serial
signal
flip
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
JP2002139943A
Other languages
Japanese (ja)
Other versions
JP2003331587A (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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2002139943A priority Critical patent/JP4103452B2/en
Publication of JP2003331587A publication Critical patent/JP2003331587A/en
Application granted granted Critical
Publication of JP4103452B2 publication Critical patent/JP4103452B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Static Random-Access Memory (AREA)
  • Read Only Memory (AREA)
  • Manipulation Of Pulses (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、入力されたシリアルデータが不揮発性のメモリセルに記憶されるシリアルEEPROMについて、シリアルデータの入力を制御するデータ入力制御装置に関する。
【0002】
【発明が解決しようとする課題】
シリアルEEPROMは、信号線の数を極力少なくすることを目的として、不揮発性のメモリセルに記憶されるデータの入出力をシリアルに行なう。そして、データの入力制御についても、制御信号線を削減するためにチップセレクト信号を利用するように構成されているものがある。
【0003】
図4には、斯様なタイプのシリアルEEPROMにおけるデータ入力及び書込みのタイミングチャートの一例を示す。即ち、ハイアクティブのチップセレクト信号CSのレベルがロウからハイに変化すると、シリアルクロックSKに同期して、データ入力端子DIにスタートビット、書込み命令、アドレス、データがシリアルに入力される。この時、入力されたデータは、シフトレジスタにおいてシリアル/パラレル変換される。
【0004】
そして、チップセレクト信号CSのレベルがハイからロウに変化すると、シフトレジスタに保持されたデータをEEPROMのメモリセルに書込む処理が開始されるようになっている。
【0005】
しかしながら、斯様な構成のシリアルEEPROMでは、チップセレクト信号CSのレベルを参照することでデータ入力制御を行なっているため、例えば、チップセレクト信号にノイズが印加されることで、データ入力の途中であるにもかかわらずチップセレクト信号のレベルがロウに変化すると、その時点で入力データの書き込みが行なわれてしまうおそれがある、という問題があった。
【0006】
本発明は上記事情に鑑みてなされたものであり、その目的は、入力サイクルの途中でチップセレクト信号にノイズが印加されたような場合に、不完全なデータをメモリセルに書き込んでしまうことを確実に防止できるシリアルEEPROMのデータ入力制御装置を提供することにある。
【0007】
【課題を解決するための手段】
請求項1記載のシリアルEEPROMのデータ入力制御装置によれば、シリアルEEPROMに入力されるチップセレクト信号の一方のエッジを検出するとそのエッジ検出に基づいてシリアルデータの入力を許可すると共に、データの入力サイクルが終了する以前に他方のエッジを検出するとそのエッジ検出に基づいてシリアルデータの入力を禁止する。
【0008】
即ち、例えばマイクロコンピュータなどがシリアルEEPROMに対して出力するチップセレクト信号を変化させてシリアルデータの書込みを行う場合、チップセレクト信号が非アクティブからアクティブに変化する場合と、アクティブから非アクティブに変化する場合とで、チップセレクト信号の夫々異なるエッジが検出される。そして、一方のエッジがデータの入力サイクルの開始を意味すれば、他方のエッジはその入力サイクルの終了を意味することになる。
【0009】
また、データは、所定のフォーマットに従ってシリアルEEPROMに入力されるので、データの入力状態を参照すればその入力がどの段階にあるのかを判定することができる。従って、データの入力サイクルが終了する以前にチップセレクト信号の他方のエッジが検出された場合は当該信号の変化タイミングが明らかに異常であるから、その時点でシリアルデータの入力を禁止すれば、不完全なデータがメモリセルに書き込まれてしまうことを確実に防止できる。
【0010】
また、第1フリップフロップは、チップセレクト信号の一方のエッジを検出するとセット状態となってシリアルクロックの入力を許可すると共に、シリアルクロックに同期して入力データのシリアル/パラレル変換を行なうためのシフトレジスタのリセットを解除する。従って、一方のエッジの検出によってシフトレジスタに対するシリアルデータの入力が可能となる。
【0011】
そして、第2フリップフロップは、データの入力サイクルが終了する以前にチップセレクト信号の他方のエッジを検出するとセット状態となり、第1フリップフロップをリセットする信号を出力する。すると、その時点でシリアルクロックの入力が禁止されると共にシフトレジスタはリセットされるので、シリアルデータの入力は禁止される。従って、簡単な構成によりデータ入力制御装置を構成することができる。
【0012】
【発明の実施の形態】
以下、本発明の一実施例について図1乃至図3を参照して説明する。図2は、マイクロコンピュータ(マイコン)1と、シリアルEEPROM(以下、単にEEPROMと称する)2との電気的接続状態を示すものである。マイコン1は、その内部にCPUやROM,RAMなどを有して構成されている。そして、EEPROM2に対してデータの書込み及び読出しを行なうためのインターフェイスであるパラレル/シリアル変換回路,シリアル/パラレル変換回路やアドレスデコーダなども備えている(何れも図示せず)。
【0013】
そして、マイコン1は、EEPROM2に対してデータの書込みを行う場合はチップセレクト信号CSをアクティブ(ハイレベル)にしてEEPROM2のシリアルクロック端子にシリアルクロック信号SKを出力すると共に、データ入力端子DIに、書込み命令,書込みアドレス,書込みデータを順次シリアルに出力する。
【0014】
また、マイコン1がデータの読出しを行う場合は、同様にチップセレクト信号CSをアクティブにしてシリアルクロック信号SKを出力すると共に、データ入力端子DIに、読出し命令,読出しアドレスを順次シリアルに出力した後、データ出力端子DOよりシリアルに出力される読み出しデータを受信するようになっている。尚、リセット信号は、図示しないリセット回路によってパワーオンリセット時などに出力される。
【0015】
図1は、EEPROM2の内部を、主として本発明の要旨にかかるデータ入力制御部(データ入力制御装置)3を中心として示すものである。尚、以降では、煩雑となることを避けるため、EEPROM2の端子とその信号名に同じ名称を使用する。ANDゲート4の一方の入力端子には入力データDIが与えられていると共に、他方の入力端子にはチップセレクト信号CSが与えられている。そして、ANDゲート4の出力端子は、受信レジスタ部5のデータ入力端子Dに接続されている。尚、ANDゲート4の出力端子より出力されるデータを「di」とする。
【0016】
マイコン1より出力されるシリアルクロック信号SKは、Dフリップフロップ6(FF3)のクロック入力端子CLKに与えられていると共に、ANDゲート7を介して受信レジスタ部5のクロック入力端子CLKにも与えられている。Dフリップフロップ6のデータ入力端子Dはプルアップされており、その出力端子Qは、ANDゲート7のもう1つの入力端子に接続されている。尚、ANDゲート7の出力端子より出力されるクロック信号を「sk」とする。
【0017】
受信レジスタ部5は、入力されるシリアルデータをクロック信号skに同期してシリアル/パラレル変換するシフトレジスタを備えて構成されている。受信レジスタ部5に入力された命令は、コマンドデコーダ8に出力されてデコードされる。また、受信レジスタ部5に入力されたアドレス、データは、図示しないアドレスバッファ、データバッファに振り分けられて格納されるようになっている。そして、図示しない制御ロジック部が、デコードされた命令に基づいて、メモリセル9との間でデータの書込み、読出し、消去などの処理を実行するようになっている。
【0018】
また、チップセレクト信号CSは、Dフリップフロップ(第1フリップフロップ,FF1)10のクロック入力端子CLKに与えられていると共に、NOTゲート11を介してDフリップフロップ(第2フリップフロップ,FF2)12のクロック入力端子CLKにも与えられている。
【0019】
Dフリップフロップ10の出力端子Qは、受信レジスタ部5、Dフリップフロップ6及び12の各リセット端子RST(ロウアクティブ)に与えられており、Dフリップフロップ12の出力端子Qは、ANDゲート13の一方の入力端子に接続されている。また、Dフリップフロップ10及び12のデータ入力端子Dは、何れもプルアップされている。
【0020】
受信完了信号出力部14,命令終了信号出力部15及びクロック超過信号出力部16は、データ入力制御部3内部の制御において使用されるタイミング信号を生成して出力するものである。
【0021】
受信完了信号出力部14は、Dフリップフロップ10の出力端子Qより与えられる信号レベルがハイになると、クロック信号skに基づいてデータdiの入力ビット数をカウントとする。そして、コマンドデコーダ8によってデコードされた命令内容に応じたデータビット数をカウントすると、ハイレベルの受信完了信号をNOTゲート17を介してANDゲート13のもう一方の入力端子に出力するようになっている。
【0022】
尚、受信完了信号は、Dフリップフロップ10の出力信号がロウレベルになるとリセットされるようになっている。また、ANDゲート13の出力信号は、3入力NORゲート18の1つの入力端子に与えられている。
【0023】
命令終了信号出力部15は、Dフリップフロップ12の出力端子Qより与えられる信号レベルがハイになると、入力された書込みデータをメモリセル9に書き込む処理に使用されるクロック信号WR_ckをカウントする。そして、コマンドデコーダ8によってデコードされた命令内容に応じた書込みクロック数をカウントすると、ハイレベルの命令終了信号をモノパルスでNORゲート18の他の1つの入力端子に出力するようになっている。
【0024】
クロック超過信号出力部16は、Dフリップフロップ10の出力端子Qより与えられる信号レベルがハイになると、クロック信号skの入力クロック数をカウントする。そして、コマンドデコーダ8によってデコードされた命令内容に応じて定まるクロック信号skの入力クロック数を超過した場合は、ハイレベルのクロック超過信号をNORゲート18の他の1つの入力端子に出力するようになっている。
【0025】
NORゲート18の出力信号は、遅延素子19を介して負論理のORゲート20の一方の入力端子に出力される。また、ORゲート20の他方の入力端子には、ロウアクティブのリセット信号が与えられており、ORゲート20の出力端子は、Dフリップフロップ10のリセット端子に接続されている。
【0026】
尚、EEPROM2よりデータを読出す場合に動作するデータ出力側の構成については図示を省略するが、受信レジスタ部5の一部はデータを出力する場合にも使用されるようになっている。
【0027】
次に、本実施例の作用について図3を参照して説明する。図3は、マイコン1がEEPROM2にデータの書込みを行う場合におけるタイミングチャートである。マイコン1は、チップセレクト信号CSをハイレベルにすると共に((a)、時点▲1▼参照)、シリアルクロック信号SKを出力する((c)参照)。
【0028】
すると、データ入力制御部3におけるDフリップフロップ10の出力端子Qは、チップセレクト信号CSの立上がりエッジを検出してハイレベルとなるので((i)又は(j)参照)、受信レジスタ部5及びDフリップフロップ6のリセットは解除される。そして、Dフリップフロップ6はシリアルクロック信号SKの立上がりエッジによってセットされ続けるので、ANDゲート7はクロック信号skの出力が可能となる((h)参照)。
【0029】
また、ANDゲート4もチップセレクト信号CSがハイレベルになることでデータdiの出力が可能となり((g)参照)、受信完了信号出力部14及びクロック超過信号出力部16は夫々のカウント動作を開始する。
【0030】
それから、マイコン1は、入力データDIとして、最初の2ビットに命令(この場合、書込み)を出力すると((b)、時点▲2▼参照)、続いて書込みアドレス及び書込みデータをシリアルに出力する(時点▲3▼参照)。
【0031】
書込みのための入力サイクルが正常に行なわれた場合は、最後のデータが入力されると時点▲4▼において受信完了信号出力部14が受信完了信号を出力する((d)参照)。そして、マイコン1は、全てのシリアルデータを出力した後チップセレクト信号CSをロウレベルにする(時点▲5▼参照)。このとき、Dフリップフロップ12の出力端子Qは、チップセレクト信号CSの立下がりエッジを検出してハイレベルとなるが、受信完了信号が出力されているのでANDゲート13はハイレベルとならない。
【0032】
受信完了信号が出力されると、受信レジスタ部5のデータバッファにセットされた書込みデータをメモリセル9に書込むための書き込み処理が開始される。すると、書込み用のクロック信号WR_ckが図示しない書き込み処理部によって出力され、命令終了信号出力部15はその出力クロック数をカウントする。そして、所定の書込みクロック数をカウントすると命令終了信号出力部15は命令終了信号を出力する(時点▲6▼参照)。
【0033】
その命令終了信号は、NORゲート18及び遅延素子19を介してORゲート20に出力されるので、Dフリップフロップ10は、遅延素子19によって遅延時間が付与されたタイミングでリセットされる(時点▲7▼参照)。すると、それに伴って、受信レジスタ部5及びDフリップフロップ6並びに12もリセットされる。
【0034】
ここで、入力サイクルが行なわれている途中で、ハイレベルとなっているチップセレクト信号CSに時点▲8▼においてノイズが印加された場合を想定する。すると、Dフリップフロップ12の出力端子Qはその立下りを検出してハイレベルとなる。
【0035】
この時、受信完了信号出力部14は受信完了信号を出力していないので、ANDゲート13がハイレベルとなってDフリップフロップ10はリセットされる((i)、時点▲9▼参照)。従って、この時点で入力サイクルは中止されることになり、サイクルの途中で不完全なデータがメモリセル9に書き込まれることは防止される。
【0036】
その後、マイコン1が、EEPROM2の所定アドレスに書き込もうとしたデータを読み出してみることで、実際に正しく書き込まれているかどうかを確認するベリファイ処理を行なえば書込みが失敗したことを判定できるので、その場合は同じアドレスに対して同じデータの書込みを再実行すれば良い。
【0037】
また、クロック超過信号出力部16は、入力サイクルの開始からクロック信号skの入力数をカウントするが、例えば、シリアルクロック信号SKに対して上述したチップセレクト信号CSと同様にノイズが印加されるなどして、命令完了信号が出力される前に入力クロック数が所定値を超えたような場合はクロック超過信号を出力する((f)、時点(10)参照)。すると、その時点でDフリップフロップ10はリセットされて入力サイクルは中止される。
【0038】
以上のように本実施例によれば、データ入力制御部3は、マイコン1によってEEPROM2に入力されるチップセレクト信号CSの立上がりエッジを検出するとそのエッジ検出に基づいてシリアルデータDIの入力を許可すると共に、データの入力サイクルが終了する以前に立下がりエッジを検出するとそのエッジ検出に基づいてシリアルデータDIの入力を禁止するようにした。
【0039】
具体的には、Dフリップフロップ10がチップセレクト信号CSの立上がりエッジを検出するとセット状態となって、シリアルクロック信号SKの入力を許可すると共に受信レジスタ部5のリセットを解除し、Dフリップフロップ12が、受信終了信号が出力される以前にチップセレクト信号CSの立下がりエッジを検出すると、セット状態となってDフリップフロップ10をリセットするように構成した。
【0040】
即ち、データの入力サイクルが終了する以前にチップセレクト信号CSの立下がりエッジが検出された場合は当該信号の変化タイミングが明らかに異常であるから、その時点でシリアルデータの入力を禁止することで、不完全なデータがメモリセル9に書き込まれてしまうことを確実に防止できる。
【0041】
本発明は上記し且つ図面に記載した実施例にのみ限定されるものではなく、次のような変形又は拡張が可能である。
遅延素子19は、NORゲート18やORゲート20などによるゲート遅延時間によってDフリップフロップ10をリセットするためのホールドタイムが十分確保できる場合は、不要である。
チップセレクト信号CSはロウアクティブであっても良く、その場合は、第1フリップフロップによって信号の立下りを検出し、第2フリップフロップによって立上りを検出すれば良い。
クロック超過信号出力部16は、必要に応じて設ければ良い。
【図面の簡単な説明】
【図1】本発明の一実施例であり、シリアルEEPROMの内部について、主として本発明の要旨にかかるデータ入力制御部を中心として示す図
【図2】マイクロコンピュータとシリアルEEPROMとの電気的接続状態を示す図
【図3】マイクロコンピュータがシリアルEEPROMにデータの書込みを行う場合におけるタイミングチャート
【図4】従来のシリアルEEPROMにおけるデータ入力及び書込みのタイミングチャートの一例を示す図
【符号の説明】
2はシリアルEEPROM、3はデータ入力制御部(データ入力制御装置)、5は受信レジスタ部(シフトレジスタ)、9はメモリセル、10はDフリップフロップ(第1フリップフロップ)、12はDフリップフロップ(第2フリップフロップ)を示す。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data input control device for controlling input of serial data in a serial EEPROM in which input serial data is stored in a nonvolatile memory cell.
[0002]
[Problems to be solved by the invention]
The serial EEPROM serially inputs and outputs data stored in a nonvolatile memory cell for the purpose of minimizing the number of signal lines. Some data input control is configured to use a chip select signal in order to reduce control signal lines.
[0003]
FIG. 4 shows an example of a timing chart of data input and writing in such a type serial EEPROM. That is, when the level of the high active chip select signal CS changes from low to high, a start bit, a write command, an address, and data are serially input to the data input terminal DI in synchronization with the serial clock SK. At this time, the input data is serial / parallel converted in the shift register.
[0004]
Then, when the level of the chip select signal CS changes from high to low, the process of writing the data held in the shift register to the EEPROM memory cell is started.
[0005]
However, in the serial EEPROM having such a configuration, since data input control is performed by referring to the level of the chip select signal CS, for example, when noise is applied to the chip select signal, the data input is in progress. However, there is a problem that when the level of the chip select signal changes to low, input data may be written at that time.
[0006]
The present invention has been made in view of the above circumstances, and its purpose is to write incomplete data into a memory cell when noise is applied to the chip select signal during the input cycle. It is an object of the present invention to provide a data input control device of a serial EEPROM that can be surely prevented.
[0007]
[Means for Solving the Problems]
According to the serial EEPROM data input control device of the first aspect, when one edge of the chip select signal input to the serial EEPROM is detected, the serial data input is permitted based on the detected edge and the data input is performed. If the other edge is detected before the end of the cycle, input of serial data is prohibited based on the edge detection.
[0008]
That is, for example, when writing the serial data by changing the chip select signal output from the microcomputer to the serial EEPROM, the chip select signal changes from inactive to active, and changes from active to inactive. Depending on the case, different edges of the chip select signal are detected. If one edge means the start of the data input cycle, the other edge means the end of the input cycle.
[0009]
Since data is input to the serial EEPROM according to a predetermined format, it is possible to determine which stage the input is in by referring to the input state of the data. Therefore, if the other edge of the chip select signal is detected before the data input cycle is completed, the change timing of the signal is clearly abnormal. It is possible to reliably prevent complete data from being written into the memory cell.
[0010]
The first flip-flop, along with becoming detects one edge of the chip select signal to a set state to allow the input of the serial clock, the shift for in synchronization with the serial clock for serial / parallel conversion of the input data Release the reset of the register. Accordingly, serial data can be input to the shift register by detecting one edge.
[0011]
When the second flip-flop detects the other edge of the chip select signal before the end of the data input cycle, the second flip-flop enters a set state and outputs a signal for resetting the first flip-flop. Then, at that time, the input of the serial clock is prohibited and the shift register is reset, so that the input of serial data is prohibited. Therefore, the data input control device can be configured with a simple configuration.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below with reference to FIGS. FIG. 2 shows an electrical connection between a microcomputer 1 and a serial EEPROM (hereinafter simply referred to as EEPROM) 2. The microcomputer 1 includes a CPU, a ROM, a RAM, and the like inside. It also includes a parallel / serial conversion circuit, a serial / parallel conversion circuit, an address decoder, etc., which are interfaces for writing and reading data to / from the EEPROM 2 (none of which are shown).
[0013]
When the microcomputer 1 writes data to the EEPROM 2, the chip select signal CS is made active (high level) and the serial clock signal SK is output to the serial clock terminal of the EEPROM 2, and at the data input terminal DI, Write commands, write addresses, and write data are serially output.
[0014]
Similarly, when the microcomputer 1 reads data, the chip select signal CS is similarly activated to output the serial clock signal SK, and a read command and a read address are sequentially serially output to the data input terminal DI. The read data output serially from the data output terminal DO is received. The reset signal is output at the time of power-on reset by a reset circuit (not shown).
[0015]
FIG. 1 shows the inside of the EEPROM 2 mainly with a data input control unit (data input control device) 3 according to the gist of the present invention as a center. In the following, in order to avoid complication, the same name is used for the terminal of the EEPROM 2 and its signal name. The input data DI is given to one input terminal of the AND gate 4, and the chip select signal CS is given to the other input terminal. The output terminal of the AND gate 4 is connected to the data input terminal D of the reception register unit 5. It is assumed that data output from the output terminal of the AND gate 4 is “di”.
[0016]
The serial clock signal SK output from the microcomputer 1 is supplied to the clock input terminal CLK of the D flip-flop 6 (FF 3) and also to the clock input terminal CLK of the reception register unit 5 through the AND gate 7. ing. The data input terminal D of the D flip-flop 6 is pulled up, and its output terminal Q is connected to another input terminal of the AND gate 7. Note that the clock signal output from the output terminal of the AND gate 7 is “sk”.
[0017]
The reception register unit 5 includes a shift register that performs serial / parallel conversion on input serial data in synchronization with a clock signal sk. The instruction input to the reception register unit 5 is output to the command decoder 8 and decoded. The address and data input to the reception register unit 5 are distributed and stored in an address buffer and a data buffer (not shown). A control logic unit (not shown) performs processing such as data writing, reading, and erasing with the memory cell 9 based on the decoded instruction.
[0018]
Further, the chip select signal CS is given to the clock input terminal CLK of the D flip-flop (first flip-flop, FF1) 10 and also through the NOT gate 11 to the D flip-flop (second flip-flop, FF2) 12. The clock input terminal CLK is also provided.
[0019]
The output terminal Q of the D flip-flop 10 is given to each reset terminal RST (low active) of the reception register unit 5 and the D flip-flops 6 and 12, and the output terminal Q of the D flip-flop 12 is connected to the AND gate 13. It is connected to one input terminal. The data input terminals D of the D flip-flops 10 and 12 are both pulled up.
[0020]
The reception completion signal output unit 14, the command end signal output unit 15, and the clock excess signal output unit 16 generate and output timing signals used in the control inside the data input control unit 3.
[0021]
When the signal level supplied from the output terminal Q of the D flip-flop 10 becomes high, the reception completion signal output unit 14 counts the number of input bits of the data di based on the clock signal sk. When the number of data bits corresponding to the instruction content decoded by the command decoder 8 is counted, a high level reception completion signal is output to the other input terminal of the AND gate 13 via the NOT gate 17. Yes.
[0022]
The reception completion signal is reset when the output signal of the D flip-flop 10 becomes low level. The output signal of the AND gate 13 is given to one input terminal of the 3-input NOR gate 18.
[0023]
When the signal level applied from the output terminal Q of the D flip-flop 12 becomes high, the instruction end signal output unit 15 counts the clock signal WR_ck used for the process of writing the input write data into the memory cell 9. When the number of write clocks corresponding to the instruction content decoded by the command decoder 8 is counted, a high-level instruction end signal is output to another input terminal of the NOR gate 18 in a monopulse.
[0024]
When the signal level applied from the output terminal Q of the D flip-flop 10 becomes high, the clock excess signal output unit 16 counts the number of input clocks of the clock signal sk. Then, when the number of input clocks of the clock signal sk determined according to the content of the instruction decoded by the command decoder 8 is exceeded, a high level clock excess signal is output to the other one input terminal of the NOR gate 18. It has become.
[0025]
The output signal of the NOR gate 18 is output to one input terminal of the negative logic OR gate 20 via the delay element 19. The other input terminal of the OR gate 20 is supplied with a row active reset signal, and the output terminal of the OR gate 20 is connected to the reset terminal of the D flip-flop 10.
[0026]
Although the illustration of the configuration on the data output side that operates when reading data from the EEPROM 2 is omitted, a part of the reception register unit 5 is also used when outputting data.
[0027]
Next, the operation of this embodiment will be described with reference to FIG. FIG. 3 is a timing chart when the microcomputer 1 writes data into the EEPROM 2. The microcomputer 1 sets the chip select signal CS to high level (see (a), time point (1)) and outputs the serial clock signal SK (see (c)).
[0028]
Then, since the output terminal Q of the D flip-flop 10 in the data input control unit 3 detects the rising edge of the chip select signal CS and becomes high level (see (i) or (j)), the reception register unit 5 and The reset of the D flip-flop 6 is released. Since the D flip-flop 6 is continuously set by the rising edge of the serial clock signal SK, the AND gate 7 can output the clock signal sk (see (h)).
[0029]
The AND gate 4 can also output the data di when the chip select signal CS becomes high level (see (g)), and the reception completion signal output unit 14 and the clock excess signal output unit 16 perform the respective counting operations. Start.
[0030]
Then, when the microcomputer 1 outputs an instruction (in this case, writing) to the first two bits as input data DI (see (b), time point (2)), it subsequently outputs the writing address and writing data serially. (Refer to point (3)).
[0031]
When the input cycle for writing is normally performed, the reception completion signal output unit 14 outputs a reception completion signal at time point (4) when the last data is input (see (d)). Then, after outputting all the serial data, the microcomputer 1 sets the chip select signal CS to the low level (see time point (5)). At this time, the output terminal Q of the D flip-flop 12 detects the falling edge of the chip select signal CS and becomes high level, but since the reception completion signal is output, the AND gate 13 does not become high level.
[0032]
When the reception completion signal is output, a write process for writing the write data set in the data buffer of the reception register unit 5 into the memory cell 9 is started. Then, a write clock signal WR_ck is output by a write processing unit (not shown), and the instruction end signal output unit 15 counts the number of output clocks. When a predetermined number of write clocks is counted, the instruction end signal output unit 15 outputs an instruction end signal (see time point (6)).
[0033]
Since the instruction end signal is output to the OR gate 20 via the NOR gate 18 and the delay element 19, the D flip-flop 10 is reset at the timing when the delay time is given by the delay element 19 (time point 7). ▼). Accordingly, the reception register unit 5 and the D flip-flops 6 and 12 are also reset accordingly.
[0034]
Here, it is assumed that noise is applied to the chip select signal CS that is at the high level at the time point (8) while the input cycle is being performed. Then, the output terminal Q of the D flip-flop 12 detects its fall and becomes high level.
[0035]
At this time, since the reception completion signal output unit 14 does not output the reception completion signal, the AND gate 13 becomes high level and the D flip-flop 10 is reset (see (i), time point 9). Accordingly, the input cycle is stopped at this point, and incomplete data is prevented from being written in the memory cell 9 in the middle of the cycle.
[0036]
After that, the microcomputer 1 can determine that the writing has failed if the verification process is performed to check whether the data is actually written correctly by reading the data to be written to the predetermined address of the EEPROM 2. In this case, the same data may be rewritten to the same address.
[0037]
The clock excess signal output unit 16 counts the number of input clock signals sk from the start of the input cycle. For example, noise is applied to the serial clock signal SK in the same manner as the above-described chip select signal CS. Then, when the number of input clocks exceeds a predetermined value before the instruction completion signal is output, a clock excess signal is output (see (f), time point (10)). At that time, the D flip-flop 10 is reset and the input cycle is stopped.
[0038]
As described above, according to the present embodiment, when the data input control unit 3 detects the rising edge of the chip select signal CS input to the EEPROM 2 by the microcomputer 1, the data input control unit 3 permits the input of the serial data DI based on the edge detection. At the same time, if a falling edge is detected before the end of the data input cycle, the input of serial data DI is prohibited based on the detected edge.
[0039]
Specifically, when the D flip-flop 10 detects the rising edge of the chip select signal CS, the D flip-flop 10 is set, permits the input of the serial clock signal SK, cancels the reset of the reception register unit 5, and the D flip-flop 12. However, when the falling edge of the chip select signal CS is detected before the reception end signal is output, the D flip-flop 10 is reset in the set state.
[0040]
That is, if the falling edge of the chip select signal CS is detected before the end of the data input cycle, the change timing of the signal is clearly abnormal. Thus, it is possible to reliably prevent incomplete data from being written into the memory cell 9.
[0041]
The present invention is not limited to the embodiments described above and shown in the drawings, and the following modifications or expansions are possible.
The delay element 19 is unnecessary when a sufficient hold time for resetting the D flip-flop 10 can be secured by the gate delay time of the NOR gate 18 or the OR gate 20.
The chip select signal CS may be low active. In this case, the falling edge of the signal may be detected by the first flip-flop, and the rising edge may be detected by the second flip-flop.
The clock excess signal output unit 16 may be provided as necessary.
[Brief description of the drawings]
FIG. 1 is a diagram showing an internal configuration of a serial EEPROM according to an embodiment of the present invention, mainly showing a data input control unit according to the gist of the present invention. FIG. 2 is an electrical connection state between a microcomputer and a serial EEPROM. FIG. 3 is a timing chart when the microcomputer writes data to the serial EEPROM. FIG. 4 is an example of a timing chart of data input and writing in the conventional serial EEPROM.
2 is a serial EEPROM, 3 is a data input controller (data input controller), 5 is a reception register (shift register), 9 is a memory cell, 10 is a D flip-flop (first flip-flop), and 12 is a D flip-flop. (Second flip-flop) is shown.

Claims (1)

チップセレクト信号がアクティブとなっている間にシリアルデータの入力が行なわれ、その後、前記チップセレクト信号が非アクティブに変化すると入力されたデータがメモリセルに書き込まれるように構成されるシリアルEEPROMについて、前記データの入力を制御するデータ入力制御装置において、
シリアルEEPROMに入力されるチップセレクト信号の一方のエッジを検出するとそのエッジ検出に基づいてシリアルデータの入力を許可すると共に、データの入力サイクルが終了する以前に他方のエッジを検出するとそのエッジ検出に基づいてシリアルデータの入力を禁止するもので
前記チップセレクト信号の一方のエッジを検出するとセット状態となることで、シリアルクロックの入力を許可すると共に、前記シリアルクロックに同期して入力データのシリアル/パラレル変換を行なうためのシフトレジスタのリセットを解除する第1フリップフロップと、
データの入力サイクルが終了する以前に前記チップセレクト信号の他方のエッジを検出するとセット状態となることで、前記第1フリップフロップをリセットする信号を出力する第2フリップフロップとを備えて構成されることを特徴とするシリアルEEPROMのデータ入力制御装置。
Serial EEPROM is configured such that serial data is input while the chip select signal is active, and then the input data is written to the memory cell when the chip select signal changes to inactive. In the data input control device for controlling the input of the data,
When one edge of the chip select signal input to the serial EEPROM is detected, serial data input is permitted based on the edge detection, and when the other edge is detected before the data input cycle is completed, the edge detection is performed. intended to prohibit the input of the serial data based,
When one edge of the chip select signal is detected, the set state is set, so that the input of the serial clock is permitted and the shift register for performing the serial / parallel conversion of the input data in synchronization with the serial clock is reset. A first flip-flop to be released;
And a second flip-flop that outputs a signal that resets the first flip-flop when the other edge of the chip select signal is detected before the data input cycle is completed. A data input control device for serial EEPROM.
JP2002139943A 2002-05-15 2002-05-15 Data input control device for serial EEPROM Expired - Fee Related JP4103452B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002139943A JP4103452B2 (en) 2002-05-15 2002-05-15 Data input control device for serial EEPROM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002139943A JP4103452B2 (en) 2002-05-15 2002-05-15 Data input control device for serial EEPROM

Publications (2)

Publication Number Publication Date
JP2003331587A JP2003331587A (en) 2003-11-21
JP4103452B2 true JP4103452B2 (en) 2008-06-18

Family

ID=29700938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002139943A Expired - Fee Related JP4103452B2 (en) 2002-05-15 2002-05-15 Data input control device for serial EEPROM

Country Status (1)

Country Link
JP (1) JP4103452B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH077389U (en) * 1993-07-15 1995-02-03 玉置機械工業株式会社 Pruning device with direction adjustment function

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011154595A (en) * 2010-01-28 2011-08-11 Seiko Epson Corp Integrated circuit device and electronic equipment
JP6510380B2 (en) * 2015-10-08 2019-05-08 エイブリック株式会社 Nonvolatile storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH077389U (en) * 1993-07-15 1995-02-03 玉置機械工業株式会社 Pruning device with direction adjustment function

Also Published As

Publication number Publication date
JP2003331587A (en) 2003-11-21

Similar Documents

Publication Publication Date Title
JP4550439B2 (en) ECC controller
TWI512755B (en) Method and system to access memory
US20090322770A1 (en) Data transfer circuit and semiconductor memory device including the same
EP3625800B1 (en) Systems and methods for frequency mode detection and implementation
US20080016415A1 (en) Evaluation system and method
JP2005063442A (en) Memory controller and smart card equipped with the same, and method of controlling operation of reading data in memory
JP6014777B2 (en) Data path consistency verification
JP4173863B2 (en) Memory card and its initialization setting method
JP2005182996A (en) Synchronous flash memory system and its operation method
JP4103452B2 (en) Data input control device for serial EEPROM
JPH07296599A (en) Nonvolatile semiconductor memory
US20070260964A1 (en) Semiconductor memory
US20180075928A1 (en) Memory system and memory control method
US7389445B2 (en) Circuit for detecting abnormal operation of memory and integrated circuit and method for detecting abnormal operation
JP3998452B2 (en) Nonvolatile memory control circuit
US9633718B1 (en) Nonvolatile memory device
JP2009252294A (en) Memory controller, memory system, and writing method of data to memory device
US6751130B2 (en) Integrated memory device, method of operating an integrated memory, and memory system having a plurality of integrated memories
JPS60181851A (en) Partial writing control system
JP4209708B2 (en) Semiconductor memory device
US10566062B2 (en) Memory device and method for operating the same
TWI701553B (en) Read method applied to nand flash
JP5350049B2 (en) Interface circuit
JP4757196B2 (en) Memory system and test method thereof
JP2009086908A (en) Microcomputer device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040702

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070914

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20071002

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071106

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080304

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080317

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110404

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees