Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2897687B2 - Flash memory data eraser - Google Patents
[go: Go Back, main page]

JP2897687B2 - Flash memory data eraser - Google Patents

Flash memory data eraser

Info

Publication number
JP2897687B2
JP2897687B2 JP12307695A JP12307695A JP2897687B2 JP 2897687 B2 JP2897687 B2 JP 2897687B2 JP 12307695 A JP12307695 A JP 12307695A JP 12307695 A JP12307695 A JP 12307695A JP 2897687 B2 JP2897687 B2 JP 2897687B2
Authority
JP
Japan
Prior art keywords
flash memory
data
control signal
control circuit
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP12307695A
Other languages
Japanese (ja)
Other versions
JPH08297985A (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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP12307695A priority Critical patent/JP2897687B2/en
Publication of JPH08297985A publication Critical patent/JPH08297985A/en
Application granted granted Critical
Publication of JP2897687B2 publication Critical patent/JP2897687B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Read Only Memory (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はフラッシュメモリのデー
タ消去に係り、特にフラッシュメモリの過消去を防止す
るデータ消去装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to erasing data in a flash memory, and more particularly to a data erasing device for preventing over-erasing of a flash memory.

【0002】[0002]

【従来の技術】一般に、フラッシュメモリのデータ消去
を行う際には、過消去による破壊を防止するためにフラ
ッシュメモリの全領域の内容が‘0’であることを確認
する必要がある。例えば、特開平4−228193号公
報には、フラッシュEEPROMの読み出しセンスアン
プの出力をベリファイ/消去制御回路に接続し、消去ベ
リファイを行った後で消去電圧を印加する回路が開示さ
れている。
2. Description of the Related Art Generally, when erasing data in a flash memory, it is necessary to confirm that the contents of the entire area of the flash memory are "0" in order to prevent destruction due to over-erasure. For example, Japanese Patent Application Laid-Open No. 4-228193 discloses a circuit in which the output of a read sense amplifier of a flash EEPROM is connected to a verify / erase control circuit, and an erase voltage is applied after performing an erase verify.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、フラッ
シュメモリとプロセッサとがバスラインで接続されてプ
ロセッサがフラッシュメモリを制御するシステムでは、
何らかの原因でデータバスラインや制御ラインに異常が
発生すると、フラッシュメモリからの読み出しデータが
‘0’でないにもかかわらず、プロセッサが読み出しデ
ータを全て‘0’であると誤認してデータ消去が実行さ
れ、過消去により破壊が生じる場合がある。
However, in a system in which a flash memory and a processor are connected by a bus line and the processor controls the flash memory,
If an error occurs on the data bus line or control line for any reason, the processor mistakenly recognizes that all the read data is '0' and executes the data erase even though the read data from the flash memory is not '0'. Overerasing may cause destruction.

【0004】本発明の目的は、過消去を確実に防止する
ことができるフラッシュメモリのデータ消去装置を提供
することにある。
It is an object of the present invention to provide a flash memory data erasing device capable of reliably preventing over-erasing.

【0005】[0005]

【課題を解決するための手段】本発明によるデータ消去
装置は、フラッシュメモリのデータ入出力端子及び制御
信号入力端子に接続され、フラッシュメモリの読み出し
データと制御回路から制御信号入力端子に入力した制御
信号との全ビットが一定レベルであるか否かを判定する
第1ビット判定手段と、制御回路のデータ入力端子及び
制御信号出力端子に接続されフラッシュメモリから受信
したデータと制御信号出力端子から出力されている制御
信号との全ビットが前記一定レベルであるか否かを判定
する第2ビット判定手段と、第1ビット判定手段の判定
結果と第2ビット判定手段の判定結果とが不一致である
時にフラッシュメモリのデータ消去を禁止する消去禁止
手段と、からなることを特徴とする。
A data erasing device according to the present invention is connected to a data input / output terminal and a control signal input terminal of a flash memory, and receives data read from the flash memory and a control signal inputted from a control circuit to the control signal input terminal. First bit determining means for determining whether all bits of the signal are at a constant level, and data received from the flash memory connected to the data input terminal and the control signal output terminal of the control circuit and output from the control signal output terminal The second bit determining means for determining whether or not all bits of the set control signal are at the constant level, the determination result of the first bit determining means does not match the determination result of the second bit determining means. Erasure prohibiting means for sometimes prohibiting erasure of data in the flash memory.

【0006】[0006]

【作用】フラッシュメモリからの読み出しデータ及び制
御信号が全てが一定レベルか否かの判断結果と制御回路
が受信したフラッシュメモリの読み出しデータ及び制御
信号とが全て前記一定レベルか否かの判断結果とが比較
され、不一致が検出された場合に、データ消去処理が禁
止される。したがって、例えば、データバスライン及び
/又は制御ラインの異常により、制御回路の読み込みデ
ータ及び制御信号が全て‘0’の場合であってもフラッ
シュメモリ側の読み出しデータ及び制御信号が‘0’以
外のビットを含む場合にはデータ消去処理が禁止され、
過消去が確実に防止される。
According to the present invention, it is determined whether or not all the read data and control signals from the flash memory are at a constant level, and whether or not all of the read data and control signals of the flash memory received by the control circuit are at the constant level. Are compared, and when a mismatch is detected, the data erasing process is prohibited. Therefore, for example, even when the read data and the control signal of the control circuit are all “0” due to the abnormality of the data bus line and / or the control line, the read data and the control signal of the flash memory side are other than “0”. If it contains bits, the data erasure process is prohibited,
Over-erasure is reliably prevented.

【0007】[0007]

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0008】図1は本発明によるフラッシュメモリアク
セス回路の一実施例を示すブロック図である。フラッシ
ュメモリ101のデータ入出力端子は、バスバッファ1
02、バスライン103、及びバスバッファ104を通
して制御回路(CPU)105のデータ入出力端子に接
続されている。
FIG. 1 is a block diagram showing one embodiment of a flash memory access circuit according to the present invention. The data input / output terminal of the flash memory 101 is a bus buffer 1
02, a bus line 103, and a bus buffer 104 are connected to a data input / output terminal of a control circuit (CPU) 105.

【0009】フラッシュメモリ101には、周知のよう
に、データ消去手段が内蔵されており、CPU105か
らバスライン103を通して受信したデータ消去命令に
従って記憶データの消去を行う。
As is well known, the flash memory 101 has a built-in data erasing means, and erases stored data according to a data erasing command received from the CPU 105 through the bus line 103.

【0010】CPU105は、フラッシュメモリ101
へ制御ラインを通してリード信号(RD)を出力し、ア
ドレスバスを通してアドレスを出力する。また、アドレ
スバスはアドレスデコーダ110に接続され、アドレス
デコーダ110は制御ラインを通してフラッシュメモリ
101へチップセレクト信号(CS)を出力する。
The CPU 105 includes a flash memory 101
A read signal (RD) is output through a control line, and an address is output through an address bus. The address bus is connected to the address decoder 110, and the address decoder 110 outputs a chip select signal (CS) to the flash memory 101 through a control line.

【0011】フラッシュメモリ101側のバスラインの
全ビット線と制御ライン(リード信号RD及びチップセ
レクト信号CS)の全ビット線とは、NORゲート10
6に接続されている。他方、CPU105側のバスライ
ンの全ビット線と制御ライン(リード信号RD及びチッ
プセレクト信号CS)の全ビット線とは、NORゲート
107に接続されている。NORゲート106及び10
7の出力は排他的論理和(ExOR)ゲート108に入
力し、ExORゲート108の出力はフリップフロップ
回路109を介してCPU105の割り込み端子に入力
する。
All bit lines of the bus line on the flash memory 101 side and all bit lines of the control line (read signal RD and chip select signal CS) are connected to the NOR gate 10.
6 is connected. On the other hand, all the bit lines of the bus lines on the CPU 105 side and all the bit lines of the control lines (the read signal RD and the chip select signal CS) are connected to the NOR gate 107. NOR gates 106 and 10
7 is input to an exclusive OR (ExOR) gate 108, and the output of the ExOR gate 108 is input to an interrupt terminal of the CPU 105 via a flip-flop circuit 109.

【0012】このような構成において、CPU105が
フラッシュメモリ101をリードアクセスする場合に
は、アドレスデコーダ110から出力されるチップセレ
クト信号CSをロー(L)レベルとし、更にリード信号
RDをLレベルにする。これによって、読み出しデータ
がフラッシュメモリ101からバスライン103を通し
てCPU105へ出力される。
In such a configuration, when the CPU 105 performs read access to the flash memory 101, the chip select signal CS output from the address decoder 110 is set to low (L) level, and the read signal RD is set to L level. . As a result, the read data is output from the flash memory 101 to the CPU 105 through the bus line 103.

【0013】フラッシュメモリ101のデータ入出力端
子の読み出しデータビットが全て‘0’のときには、N
ORゲート106には全てLレベル信号が入力するか
ら、NORゲート106はハイ(H)レベルを出力す
る。逆に、その読み出しデータビットに少なくとも1つ
の‘1’が存在するときにはNORゲート106の出力
はLレベルになる。
When the read data bits of the data input / output terminals of the flash memory 101 are all "0", N
Since all the L-level signals are input to the OR gate 106, the NOR gate 106 outputs a high (H) level. Conversely, when at least one '1' exists in the read data bit, the output of the NOR gate 106 goes to L level.

【0014】同様に、CPU105のデータ入出力端子
のデータビットが全て‘0’のときには、NORゲート
107には全てLレベル信号が入力するから、NORゲ
ート107はハイ(H)レベルを出力する。逆に、その
データビットに少なくとも1つの‘1’が存在するとき
にはNORゲート107の出力はLレベルになる。
Similarly, when all the data bits of the data input / output terminals of the CPU 105 are "0", since all the L level signals are inputted to the NOR gate 107, the NOR gate 107 outputs a high (H) level. Conversely, when there is at least one "1" in the data bit, the output of the NOR gate 107 goes low.

【0015】従って、読み出しデータを伝送するバスラ
イン103及び制御信号を伝送する制御ラインに異常が
なければ、NORゲート106及び107の出力は常に
一致する。バスラインあるいは制御ラインに何らかの異
常が発生したことによりデータビットあるいは制御信号
ビットが変化した場合には、NORゲート106及び1
07の出力は一致しなくなる。また、バスライン切断状
態やフラッシュメモリ101を正常にアクセスできない
状態の時には、フラッシュメモリ101側の読み出しデ
ータには‘1’が存在するにも拘わらず、CPU105
の受信データは全て‘0’となり、NORゲート106
及び107の出力は一致しなくなる。
Therefore, if there is no abnormality in the bus line 103 transmitting the read data and the control line transmitting the control signal, the outputs of the NOR gates 106 and 107 always coincide. If the data bit or the control signal bit changes due to some abnormality in the bus line or the control line, the NOR gates 106 and 1
07 no longer matches. Further, when the bus line is disconnected or the flash memory 101 cannot be normally accessed, the CPU 105 may read “1” in the read data on the flash memory 101 side.
Are all "0", and the NOR gate 106
And 107 no longer match.

【0016】このようなNORゲート106及び107
の出力の一致/不一致がExORゲート108によって
検出される。NORゲート106及び107の出力が一
致する場合には、ExORゲート108はLレベルを、
不一致の場合にはHレベルを出力する。ExORゲート
108の出力がLレベルの時には、バスバッファ102
及び104の間でデータビットの変化がないために、C
PU105の割り込み処理は実行されない。ExORゲ
ート108の出力がHレベルになると、何らかの異常が
発生してCPU105が正しい読み出しデータを取得で
きないのであるから、CPU13に対して割り込みを実
行し、データ消去プログラムの実行を即時中止する。
Such NOR gates 106 and 107
Is detected by the ExOR gate 108. If the outputs of the NOR gates 106 and 107 match, the ExOR gate 108 sets the L level to
If they do not match, an H level is output. When the output of the ExOR gate 108 is at L level, the bus buffer 102
Since there is no change in the data bits between
The interrupt processing of the PU 105 is not executed. When the output of the ExOR gate 108 becomes H level, an abnormality occurs and the CPU 105 cannot acquire correct read data. Therefore, an interrupt is executed to the CPU 13 and the execution of the data erase program is immediately stopped.

【0017】このように、CPU105は、フラッシュ
メモリ101からの読み出しデータが全て‘0’である
ことを確実に判断することができ、1ビットでも‘0’
以外のデータが存在する場合は、消去処理を禁止してフ
ラッシュメモリ101の過消去を防止することができ
る。
As described above, the CPU 105 can reliably determine that the data read from the flash memory 101 is all "0", and even a single bit is "0".
If data other than the above exists, the erasing process can be prohibited to prevent the flash memory 101 from being over-erased.

【0018】また、本実施例では、フラッシュメモリ1
01の記憶データだけでなく、CPU105からフラッ
シュメモリ101へ出力されるリード信号RD及びチッ
プセレクト信号CS等の制御信号に対しても一致/不一
致を検出するために、制御ラインの故障も検知してフラ
ッシュメモリ101の過消去を防止することができる。
In this embodiment, the flash memory 1
In order to detect a match / mismatch not only with the storage data 01 but also with a control signal such as a read signal RD and a chip select signal CS output from the CPU 105 to the flash memory 101, a failure of the control line is also detected. Over-erasing of the flash memory 101 can be prevented.

【0019】[0019]

【発明の効果】以上説明したように、本発明によるフラ
ッシュメモリのデータ消去装置は、フラッシュメモリか
ら出力された読み出しデータが全て‘0’か否かの判断
結果と制御回路が受信したフラッシュメモリの読み出し
データが全て‘0’か否かの判断結果とが比較され、不
一致が検出された場合に、データ消去処理が禁止され
る。したがって、制御回路の読み込みデータが全て
‘0’の場合であっても、データバスライン及び/又は
制御ラインの異常によりフラッシュメモリ側の読み出し
データが‘0’以外のビットを含む時には、データ消去
処理が禁止される。これによってフラッシュメモリの過
消去が確実に防止される。
As described above, the data erasing device for a flash memory according to the present invention can determine whether the read data output from the flash memory is all "0" or not and determine whether the control circuit has received the data. The result of the determination as to whether or not all the read data is '0' is compared with each other, and if a mismatch is detected, the data erasing process is prohibited. Therefore, even when the read data of the control circuit is all “0”, when the read data on the flash memory side includes bits other than “0” due to an abnormality of the data bus line and / or the control line, the data erasing process is performed. Is forbidden. As a result, over-erasing of the flash memory is reliably prevented.

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

【図1】本発明によるデータ消去装置の一実施例を組み
込んだメモリアクセス回路のブロック図である。
FIG. 1 is a block diagram of a memory access circuit incorporating one embodiment of a data erasing device according to the present invention.

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

101 フラッシュメモリ 102 バスバッファ 103 バスライン 104 バスバッファ 105 CPU 106 NORゲート 107 NORゲート 108 ExORゲート 109 フリップフロップ 110 アドレスデコーダ DESCRIPTION OF SYMBOLS 101 Flash memory 102 Bus buffer 103 Bus line 104 Bus buffer 105 CPU 106 NOR gate 107 NOR gate 108 ExOR gate 109 Flip-flop 110 Address decoder

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 フラッシュメモリ及び制御回路からなる
データ消去装置において、 前記フラッシュメモリのデータ入出力端子及び制御信号
入力端子に接続され、前記フラッシュメモリの読み出し
データと前記制御回路から前記制御信号入力端子に入力
した制御信号との全ビットが一定レベルであるか否かを
判定する第1ビット判定手段と、 前記制御回路のデータ入力端子及び制御信号出力端子に
接続され、前記フラッシュメモリから受信したデータと
前記制御信号出力端子から出力されている前記制御信号
との全ビットが前記一定レベルであるか否かを判定する
第2ビット判定手段と、 前記第1ビット判定手段の判定結果と前記第2ビット判
定手段の判定結果とが不一致である時に、前記フラッシ
ュメモリのデータ消去を禁止する消去禁止手段と、 からなることを特徴とするフラッシュメモリのデータ消
去装置。
1. A data erasing device comprising a flash memory and a control circuit, wherein the data erasing device is connected to a data input / output terminal of the flash memory and a control signal input terminal, and receives read data of the flash memory and the control signal input terminal from the control circuit. First bit determining means for determining whether all bits of the control signal input to the control circuit are at a constant level, and data received from the flash memory connected to a data input terminal and a control signal output terminal of the control circuit. A second bit determination unit that determines whether all bits of the control signal output from the control signal output terminal are at the constant level, and a determination result of the first bit determination unit and the second bit determination unit. An erasure prohibiting means for prohibiting erasure of data in the flash memory when the determination result of the bit determination means does not match. A data erasing device for a flash memory, comprising: a stage;
【請求項2】 前記制御信号は、前記フラッシュメモリ
のチップセレクト信号と、読み出し制御信号と、からな
ることを特徴とする請求項1記載のフラッシュメモリの
データ消去装置。
2. The flash memory data erasing device according to claim 1, wherein said control signal comprises a chip select signal of said flash memory and a read control signal.
【請求項3】 前記フラッシュメモリと前記制御回路と
は、バスラインで接続されていることを特徴とする請求
項1又は2のいずれかに記載のフラッシュメモリのデー
タ消去装置。
3. The flash memory data erasing device according to claim 1, wherein the flash memory and the control circuit are connected by a bus line.
JP12307695A 1995-04-24 1995-04-24 Flash memory data eraser Expired - Lifetime JP2897687B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12307695A JP2897687B2 (en) 1995-04-24 1995-04-24 Flash memory data eraser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12307695A JP2897687B2 (en) 1995-04-24 1995-04-24 Flash memory data eraser

Publications (2)

Publication Number Publication Date
JPH08297985A JPH08297985A (en) 1996-11-12
JP2897687B2 true JP2897687B2 (en) 1999-05-31

Family

ID=14851602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12307695A Expired - Lifetime JP2897687B2 (en) 1995-04-24 1995-04-24 Flash memory data eraser

Country Status (1)

Country Link
JP (1) JP2897687B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100257854B1 (en) * 1997-12-10 2000-06-01 김영환 How to erase flash memory

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62293438A (en) * 1986-06-12 1987-12-21 Fujitsu Ltd Computer applied device
JPH03259499A (en) * 1990-03-08 1991-11-19 Mitsubishi Electric Corp Nonvolatile semiconductor memory device

Also Published As

Publication number Publication date
JPH08297985A (en) 1996-11-12

Similar Documents

Publication Publication Date Title
US7305596B2 (en) Nonvolatile memory and nonvolatile memory apparatus
US4698750A (en) Security for integrated circuit microcomputer with EEPROM
US5414825A (en) Method of programming a semiconductor memory device within a microcomputer address space
US6700816B2 (en) Semiconductor storage device conducting a late-write operation and controlling a test read-operation to read data not from a data latch circuit but from a memory core circuit regardless
US5721877A (en) Method and apparatus for limiting access to nonvolatile memory device
JP2005056394A (en) Storage device and memory card
EP0428396B1 (en) Bit error correcting circuit for a nonvolatile memory
US20020174310A1 (en) Non-volatile memory
US6535442B2 (en) Semiconductor memory capable of debugging an incorrect write to or an incorrect erase from the same
US6385112B1 (en) Nonvolatile semiconductor memory device with reliable verify operation
US6320791B1 (en) Writing apparatus for a non-volatile semiconductor memory device
US6215717B1 (en) Semiconductor memory device for reducing a time needed for performing a protecting operation
JP2897687B2 (en) Flash memory data eraser
US6813191B2 (en) Microcomputer with nonvolatile memory protected against false erasing or writing
JPH1166885A (en) Nonvolatile semiconductor memory device
JP3762558B2 (en) Semiconductor memory device, output signal control method and output signal control circuit in semiconductor memory device
US5446873A (en) Memory checker
JPH06162786A (en) Information processor using flash memory
KR100525537B1 (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
JP2503968B2 (en) Storage device
JP2751822B2 (en) Memory control method for FIFO memory device
JP2000207235A (en) Information processor
KR100437826B1 (en) flash memory
JP2701790B2 (en) Nonvolatile semiconductor memory device
JPS6325380B2 (en)

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990209