# Patent

## Title
Soft programming for recovery of overerasure

## Abstract

A method of erasing a memory cell includes the step of erasing a memory cell. The current in the memory cell is measured. If the measured memory cell current approximately exceeds a predetermined level, the memory cell is soft programmed so if the memory cell is not overerased, the memory cell is undisturbed. The memory cell is soft programmed until the measured memory cell current is less than or equal to the predetermined level.

## Background
RELATED APPLICATIONS
This application is a Continuation of U.S. application Ser. No. 09/034,861 filed Feb. 27, 1998 now U.S. Pat. No. 6,587,903, which is incorporated herein by reference.


FIELD OF THE INVENTION
The present invention relates to operations in flash memory devices. More particularly, the present invention relates to a method and apparatus to diminish undesirable programming in a flash memory device.
BACKGROUND
Flash memory devices have proven to be important memory elements in the past several years, and industry pundits predict an ever-increasing role for such devices in the future. A great advantage flash memory devices have over typical EPROM's and EEPROM's are, respectively, system programmability and lower cost.
Despite the many advantages of flash memories over other memories, flash memory devices have several opportunities for improvement. For example, flash memories in their typical implementations suffer from the problems of “overerased memory cells” and “wild cells” which result in all memory cells not behaving exactly alike with respect to their electrical behavior. In fact, many flash memory devices include wide variations of electrical behavior between adjacent memory cells.
Overerased memory cells are particularly undesirable. Overerased memory cells arise when a block of memory cells is erased. Because of the behavioral dissimilarities of the memory cells within the block, one memory cell typically takes longer to erase than other memory cells. As a result, this memory cell defines the erasure time for all memory cells in the block.
Erasing the block for the defined erasure time results in some memory cells being overerased. Overerased memory cells are memory cells that were erased for an excessive period of time. Overerased memory cells have an undesirable large positive charge on their floating gate. For example, an overerased memory cell will have a floating gate voltage of 3V. A non-overerased memory cell will typically have a floating gate voltage of 0.5V. As a result, overerased memory cells operate in the depletion mode. Hence, overerased memory cells conduct current through a bit line to which they are coupled even when the overerased cells are biased with zero drain voltages.
Thus, selected programmed memory cells, coupled to the same bit line as an overerased memory cell, will appear to draw current and appear to be erased. Therefore, data stored in the flash memory devices may not be accurately read. Therefore, overerased memory cells are preferably corrected.
Typically, overerased memory cells are corrected, by applying a gate voltage of 12 volts to the entire block of memory cells. As the floating gate voltage of such memory cells becomes sufficiently lower to come out of depletion mode. With the gate of the overerased cells sufficiently higher than normally erased cells, the control gate couples the floating gate even higher, through a tunnelling mechanism in the channel or source area. Electrons are pulled to the floating gate, and lower the voltage of the floating gate. However, during the aforementioned process, since the procedure affects all of the cells in the block, some non-overerased memory cells become undesirably programmed. Therefore, there is a need to correct overerased memory cells while avoiding undesired programming of non-overerased memory cells.
SUMMARY OF THE INVENTION
The present invention provides a method of erasing a memory cell, including the step of erasing a memory cell. The current in the memory cell is measured. If the measured memory cell current approximately exceeds a predetermined level, the memory cell is soft programmed so if the memory cell is not overerased, the memory cell is undisturbed. The memory cell is soft programmed until the measured memory cell current is less than or equal to the predetermined level.
In one embodiment, the memory cell is soft programmed for approximately 100 microseconds. In another embodiment, the predetermined level is 10 microamps. In yet another embodiment, the present invention includes the step of applying a gate voltage between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to a memory cell.
In another embodiment, the present invention provides a state machine, controlling soft programming of a memory cell, that includes a distribution adjustment group. The distribution adjustment group includes a read column state for ascertaining whether overerased cells exist in a column. An increment column state, coupled to the read column state, selects a next column. A soft program row state, coupled to the read column state, corrects an overerased memory cell while not disturbing a non-overased memory cell. An increment row state, coupled to the soft program row and read column states, selects a memory cell in a subsequent row.
In yet a further embodiment, the present invention provides a memory, including a memory cell array including blocks of memory cells, and a command execution logic module. A state machine, coupled to the command execution logic module, controls soft programming of a memory cell in the memory cell array. An X-interface circuit is coupled to the state machine. A Y-interface circuit is coupled to the state machine. The state machine includes a distribution adjustment group that comprises a read column state. An increment column state is coupled to the read column state. A soft program row state, in which a non-overerased memory cell is undisturbed, is coupled to the read column state. An increment row state is coupled to the soft program row and read column states. In another embodiment, as system may be formed by coupling the memory to a memory controller.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows a schematic diagram illustrating generally a memory system embodying features of the present invention.
FIG. 2 shows a state diagram of an erase operation for use with a state machine.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
In the following detailed description, reference is made to the accompanying drawings which form a part hereof, and in which is shown, by way of illustration, specific embodiments in which the invention may be practiced. In the drawings, like numerals describe substantially similar components throughout the several views. The embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. Other embodiments may be used and logical, structural, and electrical changes may be made without departing from the scope of the present invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the claims and their equivalents.
The present invention provides a method of soft programming overerased cells so that non-overerased cells are not undesirably programmed. In one embodiment, soft programming is accomplished by applying a relatively low gate voltage, of approximately 6 to 7 volts, to memory cells. As a result, non- overerased memory cells are not undesirably programmed, or disturbed, because the relatively lower gate voltage in addition to the relatively low floating gate voltage of the non-overerased cell are insufficient to draw hot electrons into the floating gates of the non-overerased memory cells. However, the present invention permits overerased memory cells to be corrected by hot electron injection. This technique can be used in a memory system as described below.
FIG. 1 is a schematic diagram illustrating generally, by way of example, but not by way of limitation, one embodiment of a memory system 100 embodying features of the present invention. Memory system 100 includes memory controller 105 and memory integrated circuit (IC) 110. Controller 105 includes a microprocessor or any other controller providing interface signals to the memory IC 110, as described below. Such interface signals include addressing signals, provided at address lines 115, and data signals, communicated at data lines 120. Other interface signals provided by controller 105 include write enable (WE*) at node 121, chip enable (CE*) at node 122, reset/power-down (RP*) at node 123, and output enable (OE*) at node 124, all of which are active low signals. Memory IC 110 provides a status signal (RY/BY*) at node 125 to controller 105 to indicate the status of internal state machine 130. Memory IC 110 also receives a positive power supply voltage (VCC) at node 126 (e.g., approximately 3.3 Volts or approximately 5 Volts), a write/erase supply voltage (VPP) at node 127 (e.g., approximately 5 Volts), and a reference voltage such as substrate ground voltage (VSS) at node 128 (e.g., approximately 0 Volts).
In the embodiment of FIG. 1, memory IC 110 includes a memory cell array 135 of floating gate transistor memory cells arranged in 32 memory cell blocks. Each memory cell block in memory cell array 135 contains 64 kilobytes of floating gate transistor memory cells. Data stored in each memory cell block is erased independently, as described below, without disturbing data stored in other memory cell blocks. A command execution logic module 140 receives the above-described interface signals from controller 105. The command execution logic module 140 controls an internal state machine 130, which provides write and block erase timing sequences to memory cell array 135 through X-interface circuit 145 and Y-interface circuit 150.
Y-interface circuit 150 provides access to individual memory cells through bit lines in memory cell array 135. Y-interface circuit 150 includes a Y-decoder circuit, Y-select gates, sense-amplifiers, and write/erase bit compare and verify circuits. X-interface circuit 145 provides access to rows of memory cells through wordlines in memory cell array 135, which are electrically coupled to control gates (also called select gates) of floating gate transistors in memory cell array 135. X-interface circuit 145 includes decoding and control circuits for erasing individual blocks of memory cells in memory cell array 135.
FIG. 2 shows a state diagram, of the state machine 130, for controlling an erase operation in a flash memory. Another state machine is described in U.S. Pat. No. 5,619,453, which is hereby incorporated by reference for its description of the state diagram therein. The state diagram includes a plurality of interconnected execution cycles including incremental cycles and other cycles. The execution cycles of the erase operation are arranged in a plurality of interconnected groups, including a pre-program group 210, an erase group 212, and a distribution adjustment group 214 connected together in the order shown. In order to erase a block of flash memory, the state machine 130 executes the cycles in the interconnected groups.
The pre-program group 210 includes a plurality of interconnected execution cycles including incremental cycles and other cycles. As shown in FIG. 2, the pre-program group includes a high voltage state 216 connected to a setup verify state 218. The setup verify state 218 is connected to a program verify state 220. If the program verify state 220 determines that the program is not in order, the operation jumps to a high voltage level setup state 222. The high voltage level setup state 222 is connected back to the high voltage state 216. If the program verify state 220 determines that the operation is indeed in order, the operation jumps to a program cleanup state 224. The above described states are designated as other cycles, as opposed to incremental cycles described below.
The program clean up state 224 jumps to an increment address state 226 when the operation has completed the program for a given address. The increment address state 226 is designated as an incremental cycle because it adjusts a variable, determines if the adjusted variable is a predefined stopping point, and, if so, proceeds with the operation. If not, the incremental cycle sends the operation back into another loop, as appreciated by those skilled in the art. With regard to the increment address state 226, the operation increases the address variable and compares it to a predetermined maximum address. If the variable is at the maximum address, the operation proceeds to the erase group 212 of cycles. If not, the operation jumps back to the high voltage level setup state 222 and repeats the cycles in the preprogram group 210.
The erase group 212 also includes a plurality of cycles including incremental cycles and other cycles. The initial cycle in the erase group 212 is a high voltage level setup state 230 which takes approximately 400 nanoseconds to complete. The high voltage level setup state 230 then jumps to a high voltage state 232 which takes approximately 10 milliseconds to complete.
In one embodiment of the present invention, a block of memory cells is erased during the high voltage state 232. In another embodiment, the block of memory cells is erased by applying a gate voltage of approximately −10 to −11 volts to the memory cells. By Fowler-Nordheim tunneling, electrons are drawn from the floating gates into the sources of the memory cells. In this state, some memory cells become overerased and have a floating gate biased with a net positive voltage. As described above, the net positive voltage causes the overerased memory cells to become normally conductive. Therefore, the present invention provides a method for soft programming a block of memory cells to correct overerasures, as subsequently described.
The next cycle is the setup verify state 234, which takes approximately 5 microseconds to complete. The erase verify state 236 follows the setup verify state 234 and takes approximately 200 nanoseconds to complete. The above described cycles of the erase group 212 are known as other cycles, again as opposed to increment cycles. If the erase verify state 236 determines that the erase operation is complete, the operation jumps to an increment address state 238 which is an increment cycle.
The increment address state 238 of the erase group 212 is designated as an incremental cycle because, like the increment address state 226 of the pre-program group 210, it adjusts a variable, determines if the adjusted variable is a predefined stopping point, and, if so, proceeds with the operation. If not, the incremental cycle sends the operation back into another loop. With regard to the increment address state 238 of the erase group 212, the operation increases the address variable and compares it to a predetermined maximum address. If the variable is at the maximum address, the operation proceeds to distribution adjustment group 214 of cycles. If not, the operation jumps back to the erase verify state 236.
The distribution adjustment group 214 includes a plurality of other cycles. The erase group 212 jumps to the read column state 240 of the distribution adjustment group 214. Upon commencing the read column state 240, the first column is selected. This read operation is performed with no rows selected. If the read column state 240 ascertains that no memory cells in the selected column are overerased then the operation jumps to the increment column state 242 which selects the next column. Subsequently, the operation jumps back to the read column state 240, until the last column is selected. After the last column is selected, the operation proceeds to the erase done group 250.
However, if the read column state 240 ascertains that one or more memory cells in the selected column are overerased, then the operation jumps from the read column state 240 to soft program row state 244.
Upon commencing the soft program row state 244 in this manner, the memory cell in the first row of the selected column is selected. The memory cell in selected row is then soft programmed to correct the memory cell if it is overerased. The operation then jumps to the increment row state 248 which selects the memory cell in a subsequent row. Then, the operation jumps to the read column state 240 to ascertain whether any memory cells in the selected column remain overerased. If no memory cells remain overerased, then the operation jumps to the increment column state 242, and proceeds as described above.
However, if memory cells remain overerased, the operation sequentially jumps to the soft program row state 244 and then the increment row state 248, as described above. As a result, subsequent rows are soft programmed, even repeatedly, until either the read column state 240 ascertains that no overerased cells remain in the column, or until each memory cell is soft programmed a maximum number of times.
One embodiment of soft programming according to the present invention will now be described. First, during the read column state 240, a column of memory cells is read, with all memory cells biased off, by measuring current in a corresponding bit line. Each column includes a bit line to which memory cells are coupled. The memory cells are biased off by applying a gate voltage of zero volts to each memory cell coupled to the bit line. If the current does not exceed approximately a predetermined level, the next column is read during the increment column state 242. The predetermined level is a current level, for example, approximately between 10 and 12 microamps, which would not mask, and hence permits, an accurate reading of a programmed memory cell.
If the bit line current exceeds the predetermined level, then memory cells in the column are soft programmed, in the soft program row state 244 in the manner described below, until the bit line current does not exceed the predetermined level.
A memory cell is soft programmed during the soft program row state 240 by biasing the selected memory cell with a gate voltage of between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts for approximately 100 microseconds. Typically, even the most overerased memory cells are corrected by applying this bias for such a time period. After soft programming the selected memory cell, the bit line current is measured again during the read column state 240. If the current is below the predetermined level, then the next column is analyzed during the read column state 240 after performing the increment column state 240. However, if the bit line current still exceeds the predetermined level, subsequent memory cells in the column are sequentially soft programmed as described above until the measured current is less than the predetermined level. Again, each bit line in a block of flash memory cells is measured during the read column state 240, and if necessary, soft programmed as described above. In one embodiment, each memory cell coupled to a bit line is soft programmed a maximum of one time. In another embodiment, the foregoing technique can be used to soft program a single memory cell.
This method effectively eliminates overerasures. However, numerous non-overerased memory cells may precede the overerased memory cells in a column. Thus, execution of the distribution adjustment group 214 may take a long time, for example, approximately at least two seconds. Such a lengthy process is undesirable in many systems incorporating flash memory devices. Therefore, there is a further need to diminish the performance time of the distribution adjustment group 214.
An alternative embodiment of the present invention provides a faster method of soft programming. The alternative method of soft programming differs from the first method in that each memory cell is soft programmed during the soft program row state 240 for a relatively shorter predetermined period of time, such as equal to or less than approximately 10, 25 or 50 microseconds, which is substantially less time than required to correct an average overerased memory cell. After each memory cell is soft programmed, the column current is measured. If the column current is below the predetermined level, then the next column is analyzed. However, if the current still exceeds the predetermined level, the subsequent memory cell in the column is soft programmed as described above. If the last memory cell in the column is soft programmed, and the measured current still exceeds the predetermined level, then the foregoing process is repeated such that the first and subsequent memory cells in the column are soft programmed until the measured current is less than the predetermined level, or until each memory cell in the column has been soft programmed a maximum number, for example 10 or 32, of times. If the memory cells in a column have been soft programmed a maximum number of times, and the corresponding measured bit line current still exceeds the predetermined level, then a status register in the memory 110 is set and the memory fails soft programming.
The alternative embodiment of the method of soft programming has the benefit that the overerased cells are soft programmed for a diminished period of time. Thus, the speed of operation of the flash memory is enhanced. Furthermore, the disturbance of non-overerased cells is also diminished.
It is to be understood that the above description is intended to be illustrative, and not restrictive. Many other embodiments will be apparent to those of skill in the art upon reviewing the above description. The invention should, therefore, be determined with reference to the appended claims, along with the full scope to which such claims are entitled.

## Claims

1. A state machine controlling soft programming of a memory cell, comprising:
a distribution adjustment group including:
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell while not disturbing a non-overased memory cell; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

2. The state machine of claim 1, wherein the memory cell has a gate voltage between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts in the soft program row state.

3. The state machine of claim 1, further comprising:
an erase group coupled to the distribution adjustment group;
a preprogram group coupled to the erase group; and
an erase done group coupled to the increment column state.

4. The state machine of claim 1, wherein the soft program state includes a soft programming voltage applied to a control gate, and wherein the soft programming voltage is between a control gate programming voltage and a drain programming voltage to correct the overerased memory cell.

5. A memory, comprising:
a memory cell array including blocks of memory cells;
a command execution logic module;
a state machine, coupled to the command execution logic module, controlling soft programming of a memory cell in the memory cell array;
an X-interface circuit coupled to the state machine;
a Y-interface circuit coupled to the state machine; and
wherein the state machine includes,
a distribution adjustment group including,
a read column state;
an increment column state coupled to the read column state;
a soft program row state, in which a non-overerased memory cell is undisturbed, coupled to the read column state; and
an increment row state coupled to the soft program row and read column states.

6. The memory of claim 5, wherein the memory cell has a gate voltage between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts in the soft program row state.

7. The memory of claim 5, further comprising:
an erase group coupled to the distribution adjustment group;
a preprogram group coupled to the erase group; and
an erase done group coupled to the increment column state.

8. A memory, comprising:
a memory cell array including blocks of memory cells;
a command execution logic module;
a state machine, coupled to the command execution logic module, controlling soft programming of a memory cell in the memory cell array;
an X-interface circuit coupled to the state machine;
a Y-interface circuit coupled to the state machine; and
wherein the state machine includes,
a distribution adjustment group including,
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell while not disturbing a non-overased memory cell; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

9. The memory of claim 8, wherein the memory cell has a gate voltage between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts in the soft program row state.

10. The memory of claim 8, further comprising:
an erase group coupled to the distribution adjustment group;
a preprogram group coupled to the erase group; and
an erase done group coupled to the increment column state.

11. A system comprising,
a memory controller; and
a memory, coupled to the memory controller, including,
a memory cell array including blocks of memory cells;
a command execution logic module;
a state machine, coupled to the command execution logic module, for soft programming a memory cell in the memory cell array;
an X-interface circuit coupled to the state machine;
a Y-interface circuit coupled to the state machine; and
wherein the state machine includes,
a distribution adjustment group including,
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell while not disturbing a non-overased memory cell; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

12. The system of claim 11, wherein the memory cell has a gate voltage between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts in the soft program row state.

13. The system of claim 11, further comprising:
an erase group coupled to the distribution adjustment group;
a preprogram group coupled to the erase group; and
an erase done group coupled to the increment column state.

14. A state machine controlling soft programming of a memory cell, comprising:
a read column state for ascertaining whether overerased cells exist in a column, wherein the read column state includes a state for measuring a first leakage current in a column containing the memory cell;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell while not disturbing a non-overased memory cell if the measured leakage current exceeds a predetermined level; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

15. The state machine of claim 14, wherein the read column state includes a state for measuring a second leakage current in the column after soft programming each memory cell in the column to determine if the second leakage current is below the predetermined level.

16. The state machine of claim 15, wherein the soft programming state includes a soft programming state that applies appropriate voltages to a gate and a drain of each memory cell for a time period of less than 100 microseconds.

17. The state machine of claim 15, wherein the soft programming state includes a soft programming state that applies a gate voltage of between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to each memory cell.

18. A state machine, comprising:
a memory cell erase state;
a read column state for ascertaining whether overerased memory cells exist in a column by measuring a first current;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell while not disturbing a non-overased memory cell, the soft programming state including a state for applying a gate voltage of between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to a memory cell for a time period of less than 50 microseconds if the first current exceeds a predetermined level;
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

19. The state machine of claim 18, wherein the time period comprises approximately 25 microseconds.

20. The state machine of claim 18, wherein the predetermined level comprises 10 microamps.

21. The state machine of claim 18, wherein the time period comprises approximately 10 microseconds.

22. A state machine controlling soft programming of a memory cell, comprising:
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell by applying a gate voltage that is between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to the memory cells for a time period of less than 100 microseconds, and by measuring a current of the array column after soft programming each memory cell in the column to determine if the current is below a predetermined level; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

23. A state machine controlling soft programming of a memory cell, comprising:
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell by applying a gate voltage that is between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to the memory cells for a time period of less than 50 microseconds, and by measuring a current of the array column after soft programming each memory cell in the column to determine if the current is below a predetermined level; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

24. A state machine controlling soft programming of a memory cell, comprising:
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell by applying a gate voltage that is between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to the memory cells for a time period of less than 25 microseconds, and by measuring a current of the array column after soft programming each memory cell in the column to determine if the current is below a predetermined level; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

25. A state machine controlling soft programming of a memory cell, comprising:
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell by applying a gate voltage that is between approximately 6 and 7 volts, and a drain voltage of approximately 5 volts to the memory cells for a time period of less than 10 microseconds, and by measuring a current of the array column after soft programming each memory cell in the column to determine if the current is below a predetermined level; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

26. A state machine controlling soft programming of a memory cell, comprising:
a read column state for ascertaining whether overerased cells exist in a column;
an increment column state, coupled to the read column state, for selecting a next column;
a soft program row state, coupled to the read column state, for correcting an overerased memory cell by applying appropriate voltages to a gate and a drain of the memory cell for a time period of less than 50 microseconds, and applying a soft program gate voltage that is approximately one-half of a program gate voltage applied during a program operation, and a drain voltage of approximately 5 volts to a memory cell; and
an increment row state, coupled to the soft program row and read column states, for selecting a memory cell in a subsequent row.

27. The state machine of claim 26, wherein the program gate voltage comprises approximately 12 volts.