Non-volatile memory and associated control method

12591508 ยท 2026-03-31

Assignee

Inventors

Cpc classification

International classification

Abstract

A control method for a non-volatile memory is provided. After the non-volatile memory is enabled, a judging step is performed to judge whether the non-volatile memory enters a read mode, a program mode or an erase mode. If the judging result indicates that the non-volatile memory enters the read mode, the program mode or the erase mode, a worst threshold voltage of plural reference cells of the non-volatile memory is searched. Then, at least one of a control voltage for read action, a control voltage for program verify and a control voltage for erase verify is determined. Then, a read action, a program action or an erase action is performed on plural data cells of the non-volatile memory.

Claims

1. A control method for a non-volatile memory, the non-volatile memory comprising a memory cell array, the memory cell array comprising plural reference cells and plural data cells, the plural reference cells being maintained in a first storage state, the control method comprising steps of: (a1) judging whether the non-volatile memory enters a read mode, a program mode or an erase mode after the non-volatile memory is enabled; (a2) if a judging result of the step (a1) indicates that the non-volatile memory enters the read mode, the program mode or the erase mode, searching a worst threshold voltage of the plural reference cells; (a3) determining at least one of a control voltage for read action, a control voltage for program verify and a control voltage for erase verify according to the worst threshold voltage; and (a4) performing a read action, a program action or an erase action on the plural data cells; wherein when the erase action is performed, the plural data cells are changed to an erased state, and the plural reference cells are changed from the first storage state to a second storage state and then changed from the second storage state to the first storage state, and a program/erase cycling count of each of the plural reference cells is added by 1.

2. The control method as claimed in claim 1, wherein the non-volatile memory further comprises a control voltage generator, and each of the plural reference cells and each of the plural data cells comprises a storage device, wherein the control voltage generator is connected with the storage devices of the plural reference cells and the storage devices of the plural data cells through a control line.

3. The control as claimed in claim 2, wherein the control voltage generator comprises: an adjusting register for temporarily storing a digital number and outputting the digital number; and a digital-to-analog converter receiving the digital number, and generating a control voltage according to the digital number, wherein the control voltage is served as the control voltage for read action, the control voltage for program verify and the control voltage for erase verify.

4. The control method as claimed in claim 2, wherein the storage device is a stacked-gate floating gate transistor, and a control gate of the stacked-gate floating gate transistor is connected with the control line.

5. The control method as claimed in claim 2, wherein the storage device comprises a floating gate transistor and a capacitor, wherein a floating gate of the floating gate transistor is connected with a first terminal of the capacitor, and a second terminal of the capacitor is connected with the control line.

6. The control method as claimed in claim 2, wherein the storage device is a SONOS transistor, wherein a gate dielectric layer of the SONOS transistor is an oxide layer-nitride layer-oxide layer stack structure, and a gate terminal of the SONOS transistor is connected with the control line.

7. The control as claimed in claim 2, wherein the step (a2) comprises steps of: (b1) controlling the voltage generator to load a predetermined voltage as a control voltage; (b2) providing the control voltage to the plural reference cells; (b3) judging whether the plural reference cells are in the first storage state; (b4) the control voltage generator adjusting the control voltage according to a judging result of the step (b3); (b5) judging whether a binary search iteration process is ended; (b6) if a judging result of the step (b5) indicates that the binary search iteration process is not ended, performing the step (b2) again; and (b7) if the judging result of the step (b5) indicates that the binary search iteration process is ended, determining the control voltage as the worst threshold voltage.

8. The control as claimed in claim 7, wherein the storage device comprises a P-type transistor, and the first storage state is the erased state, wherein the step (b4) comprises steps of: if the plural reference cells are all in the erased state, the control voltage generator decreasing the control voltage; and if the plural reference cells are not all in the erased state, the control voltage generator increasing the control voltage.

9. The control as claimed in claim 7, wherein the storage device comprises a P-type transistor, and the first storage state is a programmed state, wherein the step (b4) comprises steps of: if the plural reference cells are all in the programmed state, the control voltage generator increasing the control voltage; and if the plural reference cells are not all in the programmed state, the control voltage generator decreasing the control voltage.

10. The control method as claimed in claim 2, wherein a first voltage difference, a second voltage difference and a third voltage difference are recorded in the control voltage generator, wherein the control voltage for erase verify is equal to a sum of the worst threshold voltage and the first voltage difference, the control voltage for read action is equal to a sum of the worst threshold voltage and the second voltage difference, and the control voltage for program verify is equal to a sum of the worst threshold voltage and the third voltage difference.

11. The control method as claimed in claim 2, wherein when the non-volatile memory enters the read mode and the read action is performed in the step (a4), the control voltage generator provides the control voltage for read action determined in the step (a3) to a selected data cell of the plural data cells, and the selected data cell is determined as a programmed state or the erased state according to the control voltage for read action.

12. The control method as claimed in claim 2, wherein when the non-volatile memory enters the program mode and the program action is performed in the step (a4), a selected data cell of the plural data cells is programmed, the control voltage generator provides the control voltage for program verify determined in the step (a3) to the selected data cell, and a program verify process is performed according to the control voltage for program verify.

13. The control as claimed in claim 2, wherein a first sector of the memory cell array comprises the plural reference cells and the plural data cells, and the first storage state is the erased state, wherein when the non-volatile memory enters the erase mode, the step of performing the erase action in the step (a4) comprises steps of: (c1) performing the program action to program the plural reference cells; (c2) performing a program verify process on all of the plural reference cells according to the control voltage for program verify determined in the step (a3); (c3) if the plural reference cells fail to pass the program verify process, modifying the control voltage for read action, the control voltage for program verify and the control voltage for erase verify; performing a sector erase action to erase all of the plural reference cells and all of the plural data cells in the first sector; providing the control voltage for erase verify to the plural reference cells and the plural data cells; and performing an erase verify process on the plural reference cells and the plural data cells according to the control voltage for erase verify; and (c4) if all of the plural reference cells pass the program verify process, performing a sector erase action to erase all of the plural reference cells and all of the plural data cells in the first sector; providing the control voltage for erase verify to the plural reference cells and the plural data cells; and performing the erase verify process on the plural reference cells and the plural data cells according to the control voltage for erase verify.

14. The control method as claimed in claim 13, wherein the storage device comprises a P-type transistor, wherein in the step (c3), each of the control voltage for read action, the control voltage for program verify and the control voltage for erase verify is decreased by one voltage increment.

15. The control as claimed in claim 2, wherein a first sector of the memory cell array comprises the plural reference cells and the plural data cells, and the first storage state is a programmed state, wherein when the non-volatile memory enters the erase mode, the step of performing the erase action in the step (a4) comprises steps of: (d1) performing a sector erase action to erase all of the plural reference cells and all of the plural data cells in the first sector; (d2) providing the control voltage for erase verify determined in the step (a3) to the plural reference cells and the plural data cells, and performing an erase verify process on the plural reference cells and the plural data cells according to the control voltage for erase verify; (d3) if the plural reference cells fail to pass the erase verify process, modifying the control voltage for read action, the control voltage for program verify and the control voltage for erase verify; performing the program action to program the plural reference cells; providing the control voltage for program verify to the plural reference cells; and performing a program verify process on the plural reference cells according to the control voltage for program verify; and (d4) if all of the plural reference cells pass the erase verify process, performing the program action to program the plural reference cells; providing the control voltage for program verify to the plural reference cells; and performing the program verify process on the plural reference cells according to the control voltage for program verify.

16. The control method as claimed in claim 15, wherein the storage device comprises a P-type transistor, wherein in the step (d3), each of the control voltage for read action, the control voltage for program verify and the control voltage for erase verify is increased by one voltage increment.

17. A control method for a non-volatile memory, the non-volatile memory comprising a memory cell array and a control voltage generator, the memory cell array comprising plural reference cells and plural data cells connected with the control voltage generator, each of the plural reference cells and each of the plural data cells comprising a storage device, the plural reference cells being maintained in a first storage state, and the control method comprising steps of: (a1) searching a worst threshold voltage of the plural reference cells; (a2) determining at least one of a control voltage for read action, a control voltage for program verify and a control voltage for erase verify according to the worst threshold voltage; and (a3) providing the control voltage for read action to the memory cell array when a read action is performed, providing the control voltage for program verify to the memory cell array when a program verify process is performed, or providing the control voltage for erase verify to the memory cell array when an erase verify process is performed; wherein the step (a1) comprises steps of: (b1) controlling the voltage generator to load a predetermined voltage as a control voltage; (b2) providing the control voltage to the plural reference cells; (b3) judging whether the plural reference cells are in the first storage state; (b4) the control voltage generator adjusting the control voltage according to a judging result of the step (b3); (b5) judging whether a search process is ended; (b6) if a judging result of the step (b5) indicates that the search process is not ended, performing the step (b2) again; and (b7) if the judging result of the step (b5) indicates that the search process is ended, determining the control voltage as the worst threshold voltage.

18. The control as claimed in claim 17, wherein the storage device comprises a P-type transistor, and the first storage state is an erased state, wherein the step (b4) comprises steps of: if the plural reference cells are all in the erased state, the control voltage generator decreasing the control voltage; and if the plural reference cells are not all in the erased state, the control voltage generator increasing the control voltage.

19. The control as claimed in claim 17, wherein the storage device comprises a P-type transistor, and the first storage state is a programmed state, wherein the step (b4) comprises steps of: if the plural reference cells are all in the programmed state, the control voltage generator increasing the control voltage; and if the plural reference cells are not all in the programmed state, the control voltage generator decreasing the control voltage.

20. The control method as claimed in claim 17, wherein a first voltage difference, a second voltage difference and a third voltage difference are recorded in the control voltage generator, wherein the control voltage for erase verify is equal to a sum of the worst threshold voltage and the first voltage difference, the control voltage for read action is equal to a sum of the worst threshold voltage and the second voltage difference, and the control voltage for program verify is equal to a sum of the worst threshold voltage and the third voltage difference.

21. The control method as claimed in claim 17, wherein when the read action is performed in the step (a3), the control voltage generator provides the control voltage for read action to a selected data cell of the plural data cells, and the selected data cell is determined as a programmed state or an erased state according to the control voltage for read action.

22. The control method as claimed in claim 17, wherein when a program action is performed, a selected data cell of the plural data cells is programmed, the control voltage generator provides the control voltage for program verify to the selected data cell, and the program verify process is performed according to the control voltage for program verify.

23. The control as claimed in claim 17, wherein a first sector of the memory cell array comprises the plural reference cells and the plural data cells, and the first storage state is an erased state, wherein an erase action of the non-volatile memory comprises steps of: (c1) performing a program action to program the plural reference cells; (c2) performing the program verify process on all of the plural reference cells according to the control voltage for program verify; (c3) if the plural reference cells fail to pass the program verify process, modifying the control voltage for read action, the control voltage for program verify and the control voltage for erase verify; performing a sector erase action to erase all of the plural reference cells and all of the plural data cells in the first sector; providing the control voltage for erase verify to the plural reference cells and the plural data cells; and performing an erase verify process on the plural reference cells and the plural data cells according to the control voltage for erase verify; and (c4) if all of the plural reference cells pass the program verify process, performing the sector erase action to erase all of the plural reference cells and all of the plural data cells in the first sector; providing the control voltage for erase verify to the plural reference cells and the plural data cells; and performing an erase verify process on the plural reference cells and the plural data cells according to the control voltage for erase verify.

24. The control as claimed in claim 17, wherein a first sector of the memory cell array comprises the plural reference cells and the plural data cells, and the first storage state is a programmed state, wherein an erase action of the non-volatile memory comprises steps of: (d1) performing a sector erase action to erase all of the plural reference cells and all of the plural data cells in the first sector; (d2) providing the control voltage for erase verify to the plural reference cells and the plural data cells, and performing the erase verify process on the plural reference cells and the plural data cells according to the control voltage for erase verify; (d3) if the plural reference cells fail to pass the erase verify process, modifying the control voltage for read action, the control voltage for program verify and the control voltage for erase verify; performing a program action to program the plural reference cells; providing the control voltage for program verify to the plural reference cells; and performing the program verify process on the plural reference cells according to the control voltage for program verify; and (d4) if all of the plural reference cells pass the erase verify process, performing the program action to program the plural reference cells; providing the control voltage for program verify to the plural reference cells; and performing the program verify process on the plural reference cells according to the control voltage for program verify.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:

(2) FIGS. 1A, 1B and 1C (prior art) are schematic circuit diagrams of various memory cells of a non-volatile memory cell;

(3) FIGS. 2A and 2B (prior art) are plots illustrating the changes of the characteristics of the storage device in the memory cell of the non-volatile memory;

(4) FIG. 3A is a schematic circuit block diagram illustrating a non-volatile memory according to an embodiment of the present invention;

(5) FIG. 3B is a flowchart of a control method for the non-volatile memory according to the embodiment of the present invention;

(6) FIG. 4 is a flowchart illustrating a method of performing a searching action by using a binary search iteration process;

(7) FIG. 5A schematically illustrates the relationships between the control voltage for program verify (V.sub.PV), the control voltage for read action (V.sub.CRD), the control voltage for erase verify (V.sub.EV) and the worst threshold voltage .sub.TRIM_E;

(8) FIG. 5B schematically illustrates the relationships between the control voltage for program verify (V.sub.PV), the control voltage for read action (V.sub.CRD), the control voltage for erase verify (V.sub.EV) and the worst threshold voltage .sub.TRIM_P;

(9) FIG. 6A is a flowchart of a control method for the non-volatile memory according to the embodiment of the present invention when the non-volatile memory is in a read mode;

(10) FIG. 6B is a flowchart of a control method for the non-volatile memory according to the embodiment of the present invention when the non-volatile memory is in a program mode;

(11) FIG. 6C is a flowchart of a control method for the non-volatile memory in the erase mode, in which the storage device is the P-type transistor and the reference cells are maintained in the erased state;

(12) FIG. 6D is a flowchart of a control method for the non-volatile memory in the erase mode, in which the storage device is the P-type transistor and the reference cells are maintained in the programmed state; and

(13) FIG. 7 is a schematic circuit block diagram illustrating a non-volatile memory according to another embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

(14) The present invention provides a non-volatile memory and a control method for the non-volatile memory. The non-volatile memory comprises reference cells. According to the changes of the characteristics of the reference cells, a control voltage V.sub.CTRL is dynamically adjusted according to the changes of the characteristics of the reference cells. In addition, the control voltage V.sub.CTRL is applied to a read action, a program verify process and an erase verify process. Hereinafter, the control voltage V.sub.CTRL applied to the read action is referred as a control voltage for read action (V.sub.CRD), the control voltage V.sub.CTRL applied to the program verify process is referred as a control voltage for program verify (V.sub.PV), and the control voltage V.sub.CTRL applied to the erase verify process is referred as a control voltage for erase verify (V.sub.EV).

(15) The abovementioned control voltage, i.e., the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) or the control voltage for erase verify (V.sub.EV), is transmitted to the memory cell of the non-volatile memory through a control line CL. The memory cell with the circuitry circuit shown in FIG. 1A, FIG. 1B or FIG. 1C or any other appropriate memory cell with the control line CL can be used as the reference cell or a data cell of a memory cell array in the non-volatile memory of the present invention.

(16) FIG. 3A is a schematic circuit block diagram illustrating a non-volatile memory according to an embodiment of the present invention. As shown in FIG. 3A, the non-volatile memory 200 comprises a memory cell array 210 and a control voltage generator 220. The memory cell array 210 comprises a reference cell region 215 and a data cell region 213. The data cells in the data cell region 213 are used to store data that are inputted by an external host (not shown). When a searching action is performed, the control voltage V.sub.CTRL is adjusted by the control voltage generator 220, and the adjusted control voltage V.sub.CTRL is transmitted to the reference cells in the reference cell region 215. Consequently, the changes of the characteristics of the reference cells are traced.

(17) The memory cell array 210 is connected with a source line SL, the control line CL, M word lines WL.sub.1WL.sub.M and N bit lines BL.sub.1BL.sub.N. According to the activated word line of the word lines WL.sub.1WL.sub.M and the activated bit line of the bit lines BL.sub.1BL.sub.N, the corresponding memory cell of the memory cell array 210 is a selected cell. That is, the selected cell is either any reference cell in the reference cell region 215 or any data cell in the data cell region 213. Furthermore, by providing proper bias voltages to the source line SL, the control line CL, the word lines WL.sub.1WL.sub.M and the bit lines BL.sub.1BL.sub.N, a program action, an erase action or a read action can be selectively performed on the selected cell.

(18) The control voltage generator 220 comprises a adjusting register 223 and a digital-to-analog converter (DAC) 225. The adjusting register 223 provides a digital number D to the DAC 225. According to the digital number D, the DAC 225 generates the control voltage V.sub.CTRL to the memory cell array 210 through the control line CL. In other words, by changing the digital number D in the adjusting register 223, the control voltage V.sub.CTRL outputted from the control voltage generator 220 is correspondingly adjusted.

(19) Furthermore, in the memory cell array 210, the reference cells in the reference cell region 215 and the data cells in the data cell region 213 are collaboratively constituted as a sector. When the non-volatile memory 200 is subjected to a sector erase action, all memory cells in the sector are erased into the erased state. In addition, the program/erase (P/E) cycling count corresponding to the reference cells in the reference cell region 215 is added by 1. However, after the sector erase action is completed, the reference cells are possibly maintained in the erased state or programmed into the programmed state. According to the actual requirements, the reference cells can be set to maintain in the erased state or to maintain in the programmed state. Taking the reference cells maintained in the erased state as an example, the reference cells are initially set in the erased state before entering the read mode or the program mode or the erase mode.

(20) FIG. 3B is a flowchart of a control method for the non-volatile memory according to the embodiment of the present invention.

(21) After the non-volatile memory (NVM) 200 is enabled, the power system of the non-volatile memory 200 is ready. Meanwhile, the non-volatile memory 200 is in a standby state.

(22) Then, a step S302 is performed to judge whether the non-volatile memory 200 enters a read mode, a program mode or an erase mode.

(23) When the non-volatile memory 200 receives a control command from the host, the non-volatile memory 200 enters the read mode, the program mode or the erase mode according to the control command. Meanwhile, the judging condition of the step S302 is satisfied. Then, the non-volatile memory 200 performs a searching action to search the worst threshold voltage of all reference cells (Step S304). The worst threshold voltage is determined based on the storage state of the reference cells. According to the present invention, the lowest threshold voltage among all reference cells maintained in the programmed state can be considered as the worst threshold voltage. Conversely, the highest threshold voltage among all reference cells maintained in the erased state can be considered as the worst threshold voltage.

(24) Then, a control voltage for read action (V.sub.CRD), a control voltage for program verify (V.sub.PV) and a control voltage for erase verify (V.sub.EV) are determined according to the worst threshold voltage (Step S306). The control voltage for read action (V.sub.CRD) is applied to the read action. The control voltage for program verify (V.sub.PV) is applied to the program verify process. The control voltage for erase verify (V.sub.EV) is applied to the erase verify process.

(25) After the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are confirmed, a read action, a program action or an erase action is selectively performed on the data cells in the data cell region 213 of the non-volatile memory 200 (Step S308). Then, the non-volatile memory 200 is disabled.

(26) As mentioned above in the control method of FIG. 3B, whenever the non-volatile memory 200 enters the read mode, the program mode or the erase mode, the control voltage V.sub.CTRL is adjusted by the control voltage generator 220, and the changes of the characteristics of all reference cells in the reference cell region 215 are traced according to the adjusted control voltage V.sub.CTRL. After the worst threshold voltage of all reference cells is searched, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are determined according to the worst threshold voltage.

(27) Generally, after the memory cell in the memory cell array 210 has been programmed or erased for a long data retention time, the misjudgment problem possibly occurs because of the threshold voltage change. For solving the misjudgment problem, it is necessary to perform the program verify process on the programmed memory cell during the program action, so that the memory cell is in the high-quality programmed state. Similarly, it is necessary to perform the erase verify process on the erase memory cell during the erase action, so that the memory cell is in the high-quality erased state. In case that the storage device is a P-type transistor, the memory cell in the high-quality programmed state indicates that the threshold voltage V.sub.thP of the storage device is sufficiently high, and the memory cell in the high-quality erased state indicates that the threshold voltage V.sub.thE of the storage device is sufficiently low.

(28) The control voltage generator 220 can provide the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV). The control voltage for read action (V.sub.CRD) is applied to the read action. The control voltage for program verify (V.sub.PV) is applied to the program verify process. The control voltage for erase verify (V.sub.EV) is applied to the erase verify process. Consequently, it can be assured that the memory cell is in the high-quality programmed state or the high-quality erased state. After a long data retention time, the correctness of the data in the memory cell is still satisfactory.

(29) For example, the storage device is a P-type transistor. When the read action is performed, the control voltage generator 220 provides the control voltage for read action (V.sub.CRD) to the control line CL of the selected cell. For example, the control voltage for read action (V.sub.CRD) is 3.0V. If the selected cell is turned on and the magnitude of the select cell current is higher, it is determined that the selected cell is in the programmed state. That is, the threshold voltage V.sub.thP of the storage device is higher than the control voltage for read action (V.sub.CRD). Whereas, if the selected cell is not turned on and the magnitude of the select cell is very low, it is determined that the selected cell is in the erased state. That is, the threshold voltage V.sub.thE of the storage device is lower than the control voltage for read action (V.sub.CRD).

(30) When the program verify process is performed, the control voltage generator 220 provides the control voltage for program verify (V.sub.PV) to the control line CL of the selected cell. The control voltage for program verify (V.sub.PV) is higher than the control voltage for read action (V.sub.CRD). For example, the control voltage for program verify (V.sub.PV) is 4.0V. If the selected cell is still determined to be in the programmed state, it means that the threshold voltage V.sub.thP of the storage device is higher than 4.0V. In other words, the memory cell is in the high-quality programmed state. Whereas, if the programmed state of the selected cell cannot be determined, it means that the threshold voltage V.sub.thP of the storage device is lower than 4.0V. In other words, the memory cell is not in the high-quality programmed state. Then, the program action and the program verify process are repeatedly performed on the selected cell until the selected cell passes the program verify process and the memory cell is determined to be in the high-quality programmed state.

(31) Similarly, when the erase verify process is performed, the control voltage generator 220 provides the control voltage for erase verify (V.sub.EV) to the control line CL of the selected cell. The control voltage for erase verify (V.sub.EV) is lower than the control voltage for read action (V.sub.CRD). For example, the control voltage for erase verify (V.sub.EV) is 2.8V. If the selected cell is still determined to be in the erased state, it means that the threshold voltage V.sub.thE of the storage device is lower than 2.8V. In other words, the memory cell is in the high-quality erased state. Whereas, if the erased state of the selected cell cannot be determined, it means that the threshold voltage V.sub.thE of the storage device is higher than 2.8V. In other words, the memory cell is not in the high-quality erased state. Then, the erase action and the erase verify process are repeatedly performed on the selected cell until the selected cell passes the erase verify process and the memory cell is determined to be in the high-quality erased state.

(32) After the program action or the erase action has been performed many times, the selected memory cell fails to pass the program verify process or the erase verify process. Under this circumstance, it is determined that the selected cell is in a program failure condition or an erase failure condition.

(33) Especially, in the memory cell array 210 of the non-volatile memory 200, the characteristics of the reference cells in the reference cell region 215 are inferior to the characteristics of the data cells in the data cell region 213. For achieving this purpose, the P/E cycling count of the reference cell in the reference cell region 215 is larger than or equal to the P/E cycling count of the data cell in the data cell region 213.

(34) In an example, the reference cells in the reference cell region 215 are maintained in the erased state. When the non-volatile memory 200 is subjected to the sector erase action, all reference cells in the reference cell region 215 are firstly subjected to the program action and programmed into the programmed state. Then, an erase action is performed, and all reference cells in the reference cell region 215 and all data cells of the data cell region 213 are erased into the erased state. Consequently, after the sector erase action is completed, all reference cells in the reference cell region 215 and all data cells of the data cell region 213 are erased into the erased state.

(35) In another example, the reference cells in the reference cell region 215 are maintained in the programmed state. When the non-volatile memory 200 is subjected to the sector erase action, all reference cells in the reference cell region 215 and all data cells of the data cell region 213 are erased into the erased state. Then, all reference cells in the reference cell region 215 are subjected to the programmed action and programmed into the programmed state. Consequently, after the sector erase action is completed, all data cells of the data cell region 213 are erased into the erased state, and all reference cells in the reference cell region 215 are programmed into the programmed state.

(36) As mentioned above, when the non-volatile memory 200 is subjected to the sector erase action, the storage states of the reference cells in the reference cell region 215 are temporarily changed, and then restored to the erased state or the programmed state. That is, whenever the sector erase action is performed on the non-volatile memory 200, the P/E cycling count of each reference cell in the reference cell region 215 of the memory cell array 210 is added by 1, but the P/E cycling count of each data cell in the data cell region 213 is not necessarily added by 1. In this way, it can be assured that the P/E cycling count of the reference cell in the reference cell region 215 is larger than or equal to the P/E cycling count of the data cell in the data cell region 213. In addition, the characteristics of the reference cells in the reference cell region 215 are inferior to the characteristics of the data cells in the data cell region 213.

(37) Then, when the non-volatile memory 200 is subjected to any other action, the storage state of each reference cell in the reference cell region 215 is kept unchanged.

(38) As mentioned above, in the memory cell array 210, the characteristics of the reference cells in the reference cell region 215 are inferior. When the searching action is performed, the control voltage V.sub.CTRL is adjusted by the control voltage generator 220, and the changes of the characteristics of all reference cells in the reference cell region 215 are traced according to the adjusted control voltage V.sub.CTRL. In addition, the worst threshold voltage of all reference cells is searched. After worst threshold voltage is searched, it is almost confirmed that the reference cell with the worst threshold voltage is the memory cell with the worst characteristics in the memory cell array 210. The control voltages determined according to the memory cell with the worst characteristics and the worst threshold voltage are applied to the read action, the program verify process and the erase verify process. Consequently, the correctness of the data in the memory cells can be effectively enhanced.

(39) FIG. 4 is a flowchart illustrating a method of performing the searching action by using a binary search iteration process. For illustration, the storage device is a P-type transistor, and the reference cell is maintained in the erased state.

(40) After the searching action is started, a predetermined control voltage V.sub.CTRL is loaded into the control voltage generator 220 (Step S401), and the control voltage V.sub.CTRL is provided to all reference cells (Step S403). Then, a step S405 is performed to judge whether the storage states of all reference cells are identical. According to the judging result of the step S405, the control voltage V.sub.CTRL is adjusted by the control voltage generator 220 (Step S410).

(41) In case that the storage device is the P-type transistor and the reference cells are maintained in the erased state, the step S405 is used to judge whether the storage states of all reference cells are the erased state. According to the judging result of the step S405, the control voltage V.sub.CTRL is adjusted (Step S410). If the storage states of all reference cells are the erased state, the magnitude of the control voltage V.sub.CTRL is decreased (Step S412). Whereas, if the reference cells are not all in the erased state, the magnitude of the control voltage V.sub.CTRL is increased (Step S416).

(42) Then, a step S420 is performed to judge whether the number of iterations in the binary search iteration process is reached. For example, in an embodiment, 5 binary search iterations are required. If the number of iterations is smaller than 5, the judging condition of the step S420 is not satisfied, and the binary search iteration process is not ended. Then, the step S403 is repeatedly done. Whereas, if the number of iterations is 5, the judging condition of the step S420 is satisfied, and the binary search iteration process is ended. Under this circumstance, the control voltage V.sub.CTRL is regarded as the worst threshold voltage V.sub.TRIM_E (Step S422). That is, in case that all reference cells are in the erased state, the control voltage V.sub.CTRL is regarded as the worst threshold voltage V.sub.TRIM_E.

(43) The method of performing the searching action in step of S410 of FIG. 4 may be modified according to the type of the storage device (e.g., an N-type transistor or a P-type transistor) and the storage states of the reference cells.

(44) For example, in case that the storage device is the P-type transistor and the reference cells are maintained in the programmed state, the step S405 is used to judge whether the storage states of all reference cells are the programmed state. According to the judging result of the step S405, the control voltage V.sub.CTRL is adjusted (Step S410). If the storage states of all reference cells are the programmed state, the magnitude of the control voltage V.sub.CTRL is increased. Whereas, if the reference cells are not all in the programmed state, the magnitude of the control voltage V.sub.CTRL is decreased. After judging result of the step S420 indicates that the binary search iteration process is ended, the worst threshold voltage V.sub.TRIM_P of the reference cells in the programmed state is searched.

(45) In the same way, in case that the storage device is an N-type transistor, the similar judging procedures are performed to adjust the control voltage V.sub.CTRL and search the worst threshold voltage of the reference cells.

(46) In the above embodiment, the binary search iteration process is used to perform the searching action. In some other embodiment, another search process, such as a direct method, is used to adjust the control voltage V.sub.CTRL. For example, the storage device is the P-type transistor, and the reference cells are maintained in the erased state. In an embodiment, a higher control voltage is firstly provided by the control voltage generator 220, and thus the reference cells are all determined to be in the erased state. Then, the magnitude of the control voltage V.sub.CTRL is gradually decreased. When the control voltage V.sub.CTRL is decreased to a specified control voltage V.sub.CTRL and at least one of the reference cells is not in the erased state, the specified control voltage V.sub.CTRL may be regarded as the worst threshold voltage V.sub.TRIM_E. In another embodiment, a lower control voltage is firstly provided by the control voltage generator 220, and thus the reference cells are not all determined to be in the erased state. Then, the magnitude of the control voltage V.sub.CTRL is gradually increased. When the control voltage V.sub.CTRL is increased to a specified control voltage V.sub.CTRL and all of the reference cells are determined to be in the erased state, the specified control voltage V.sub.CTRL may be regarded as the worst threshold voltage V.sub.TRIM_E.

(47) After the worst threshold voltage is searched, at least one of the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) can be determined according to the worst threshold voltage.

(48) FIG. 5A schematically illustrates the relationships between the control voltage for program verify (V.sub.PV), the control voltage for read action (V.sub.CRD), the control voltage for erase verify (V.sub.EV) and the worst threshold voltage V.sub.TRIM_E. As shown in FIG. 5A, three voltage differences V.sub.1, V.sub.2 and V.sub.3 are recorded in the control voltage generator 220, and the worst threshold voltage V.sub.TRIM_E of the reference cells in the erased state is searched when the step S405 is to judge that whether the storage states of all reference cells are in the erased state. Consequently, the control voltage for erase verify (V.sub.EV) is equal to V.sub.TRIM_E+V.sub.1, the control voltage for read action (V.sub.CRD) is equal to V.sub.TRIM_E+V.sub.2, and the control voltage for program verify (V.sub.PV) is equal to V.sub.TRIM_E+V.sub.3.

(49) For example, the worst threshold voltage V.sub.TRIM_E is 2.4V, V.sub.1 is 0.2V, V.sub.2 is 0.8V, and V.sub.3 is 1.6V. In other words, the control voltage for erase verify (V.sub.EV) is 2.6V, the control voltage for read action (V.sub.CRD) is 3.2V, and the control voltage for program verify (V.sub.PV) is 4.0V. The control voltage for erase verify (V.sub.EV) is lower than the control voltage for read action (V.sub.CRD), and the control voltage for read action (V.sub.CRD) is lower than the control voltage for program verify (V.sub.PV).

(50) FIG. 5B schematically illustrates the relationships between the control voltage for program verify (V.sub.PV), the control voltage for read action (V.sub.CRD), the control voltage for erase verify (V.sub.EV) and the worst threshold voltage V.sub.TRIM_P. As shown in FIG. 5B, three voltage differences V.sub.1, V.sub.2 and V.sub.3 are recorded in the control voltage generator 220, and the worst threshold voltage V.sub.TRIM_P of the reference cells in the programmed state is searched when the step S405 is to judge that whether the storage states of all reference cells are in the programmed state. Consequently, the control voltage for erase verify (V.sub.EV) is equal to V.sub.TRIM_PV.sub.1, the control voltage for read action (V.sub.CRD) is equal to V.sub.TRIM_PV.sub.2, and the control voltage for program verify (V.sub.PV) is equal to V.sub.TRIM_PV.sub.3.

(51) For example, the worst threshold voltage V.sub.TRIM_P is 4.1V, V.sub.1 is +1.5V, V.sub.2 is +1.0V, and V.sub.3 is +0.2V. In other words, the control voltage for erase verify (V.sub.EV) is 2.6V, the control voltage for read action (V.sub.CRD) is 3.1V, and the control voltage for program verify (V.sub.PV) is 3.9V. The control voltage for erase verify (V.sub.EV) is lower than the control voltage for read action (V.sub.CRD), and the control voltage for read action (V.sub.CRD) is lower than the control voltage for program verify (V.sub.PV).

(52) FIG. 6A is a flowchart of a control method for the non-volatile memory according to the embodiment of the present invention when the non-volatile memory is in a read mode. After the non-volatile memory 200 enters the read mode, the searching action is performed to search the worst threshold voltage of all reference cells in the non-volatile memory 200 (Step S602). Then, the control voltage for read action (V.sub.CRD) is determined according to the worst threshold voltage (Step S604). After the control voltage for read action (V.sub.CRD) is confirmed, a read action is performed, and the control voltage for read action (V.sub.CRD) is provided to the selected data cell (Step S606). That is, when the read action is performed, the control voltage generator 220 provides the control voltage for read action (V.sub.CRD) to the selected data cell through the control line CL, and the storage state of the selected data cell is judged and determined.

(53) FIG. 6B is a flowchart of a control method for the non-volatile memory according to the embodiment of the present invention when the non-volatile memory is in a program mode. After the non-volatile memory 200 enters the program mode, the searching action is performed to search the worst threshold voltage of all reference cells in the non-volatile memory 200 (Step S612). Then, the control voltage for program verify (V.sub.PV) is determined according to the worst threshold voltage (Step S614). Then, a program action is performed to program the selected data cell, and the program verify process is performed on the selected data cell according to the control voltage for program verify (V.sub.PV) (Step S616). That is, when the program action is performed, the selected data cell is firstly programmed into the programmed state. Then, when the program verify process of the program action is performed, the control voltage generator 220 provides the control voltage for program verify (V.sub.PV) to the selected data cell through the control line CL, and the non-volatile memory 200 judges whether the selected data cell passes the program verify process.

(54) FIG. 6C is a flowchart of a control method for the non-volatile memory in the erase mode, in which the storage device is the P-type transistor and the reference cells are maintained in the erased state. FIG. 6D is a flowchart of a control method for the non-volatile memory in the erase mode, in which the storage device is the P-type transistor and the reference cells are maintained in the programmed state. As mentioned above, in the erased mode, the P/E cycling count of each reference cell in the reference cell region 215 of the memory cell array 210 is added by 1. Consequently, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) may be further modified.

(55) In case that the storage device is the P-type transistor and the reference cells are maintained in the erased state, the flowchart of the control method for the non-volatile memory 200 in the erase mode is shown in FIG. 6C. After the non-volatile memory 200 enter the erase mode, the searching action is performed to search the worst threshold voltage of all reference cells in the non-volatile memory 200 (Step S632). Then, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are determined according to the worst threshold voltage (Step S634). Then, a program action is performed to program all reference cells, and the program verify process is performed on all reference cells according to the control voltage for program verify (V.sub.PV) (Step S636). That is, after the non-volatile memory 200 enters the erase mode, all reference cells are firstly programmed into the programmed state. Then, when the program verify process of the program action is performed, the control voltage generator 220 provides the control voltage for program verify (V.sub.PV) to the selected data cell through the control line CL, and the non-volatile memory 200 judges whether all reference cells pass the program verify process (Step S638).

(56) If the judging result of the step S638 indicates that any reference cell fails to pass the program verify process, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are modified (Step S640). In case that the storage device is the P-type transistor, each of the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) is decreased by one voltage increment, for example 0.1V. After the step S640 is completed, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are decreased.

(57) Whereas, if the judging result of the step S638 indicates that all reference cells pass the program verify process, a sector erase action is performed to erase all memory cells in a sector of the non-volatile memory 200, and an erase verify process is performed on all memory cells in the sector according to the control voltage for erase verify (V.sub.EV) (Step S642). That is, after the sector erase action is completed, all reference cells in the reference cell region 215 and all data cells in the data cell region 213 are erased into the erased state.

(58) In case that the storage device is the P-type transistor and the reference cells are maintained in the programmed state, the flowchart of the control method for the non-volatile memory 200 in the erase mode is shown in FIG. 6D. After the non-volatile memory 200 enter the erase mode, the searching action is performed to search the worst threshold voltage of all reference cells in the non-volatile memory 200 (Step S652). Then, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are determined according to the worst threshold voltage (Step S654). Then, a sector erase action is performed to erase all memory cells in a sector of the non-volatile memory 200, and an erase verify process is performed on all memory cells in the sector according to the control voltage for erase verify (V.sub.EV) (Step S656). Then, when the erase verify process of the erase action is performed, the control voltage generator 220 provides the control voltage for erase verify (V.sub.EV) to all memory cells through the control line CL, and the non-volatile memory 200 judges whether all memory cells pass the erase verify process (Step S658).

(59) If the judging result of the step S658 indicates that any memory cell fails to pass the erase verify process, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are modified (Step S660). In case that the storage device is the P-type transistor, each of the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) is increased by one voltage increment, for example 0.1V. After the step S660 is completed, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are increased.

(60) Whereas, if the judging result of the step S658 indicates that all reference cells pass the erase verify process, a program action is performed to program all reference cells, and the program verify process is performed on all reference cells according to the control voltage for program verify (V.sub.PV) (Step S662). That is, after the program action is completed, all reference cells in the reference cell region 215 are programmed into the programmed state, and all data cells in the data cell region 213 are erased into the erased state.

(61) In some embodiment, since the characteristics of the reference cells are inferior, the step S656 in FIG. 6D may be modified. For example, the modified step S656 is performed to judge whether all reference cells pass the erase verify process.

(62) In the non-volatile memory 200 of FIG. 3A and the above flowcharts, the memory cell array 210 contains a single sector only, and the read action, the program action and the sector erase action are performed on the single sector. In practice, the memory cell array of the non-volatile memory contains plural sectors, and the non-volatile memory can perform the similar read action, program action and sector erase action on any of the sectors in the manner described above.

(63) In another embodiment, the memory cell array of the non-volatile memory contains plural sectors. After the non-volatile memory enters one of various operating mode, the control method for performing the corresponding actions may be modified. The associated control method will be described as follows.

(64) FIG. 7 is a schematic circuit block diagram illustrating a non-volatile memory according to another embodiment of the present invention. In this embodiment, the non-volatile memory 700 comprises a memory cell array 710 and a control voltage generator 220. In comparison with the non-volatile memory of FIG. 3A, the memory cell array 710 comprises plural sectors Sector.sub.1Sector.sub.x. The first sector Sector.sub.1 comprises a reference cell region 715 and a data cell region 713. The second sector Sector.sub.2 comprises a reference cell region 725 and a data cell region 723. The rest may be deduced by analogy. The x-th sector Sector.sub.x comprises a reference cell region 7x5 and a data cell region 7x3.

(65) When one of various actions is performed, the worst threshold voltage of all reference cells is searched in the individual sector. For example, when the read action, the program action and the sector erase action is performed on the data cells in the first sector Sector.sub.1, the worst threshold voltage of all reference cells is searched in the reference cell region 715 of the first sector Sector.sub.1. Then, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are determined and applied to the data cells in the data cell region 713 of the first sector Sector.sub.1.

(66) In addition to the searching action on the reference cells in the first sector Sector.sub.1, the searching action can be performed on the reference cells in the reference cell region 7257x5 of the other sectors Sector.sub.2Sector.sub.x in order to determine the worst threshold voltage. Consequently, the correctness of the data in the memory cells can be effectively enhanced. In other words, after all reference cells in the reference cell region 7157x5 of the memory cell array 710 are searched, the worst threshold voltage is determined. In addition, the control voltage for read action (V.sub.CRD), the control voltage for program verify (V.sub.PV) and the control voltage for erase verify (V.sub.EV) are determined according to the worst threshold voltage.

(67) From the above descriptions, the present invention provides the control method for the non-volatile memory. The reference cells are maintained in the first storage state. When the non-volatile memory is subjected to the sector erase action, the data cells are changed to the erased state, and the reference cells are firstly changed from the first storage state to a second storage state and then changed from the second storage state to the first storage state. Since the P/E cycling count of each reference cell is added by 1, it can be assured that the characteristics of the reference cells are inferior. The first storage state and the second storage state are different storage states. For example, in case that the first storage state is the erased state, the second storage state is the programmed state. Whereas, in case that the first storage state is the programmed state, the second storage state is the erased state.

(68) Furthermore, when the searching action is performed, the worst threshold voltage is searched from the reference cells. The control voltage for read action, the control voltage for program verify and the control voltage for erase verify are determined according to the worst threshold voltage. Consequently, the correctness of the data in the memory cells can be effectively enhanced.

(69) While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.