TWI690929B - Memory apparatus and method for adjusting reading reference voltage thereof - Google Patents

Memory apparatus and method for adjusting reading reference voltage thereof Download PDF

Info

Publication number
TWI690929B
TWI690929B TW108112711A TW108112711A TWI690929B TW I690929 B TWI690929 B TW I690929B TW 108112711 A TW108112711 A TW 108112711A TW 108112711 A TW108112711 A TW 108112711A TW I690929 B TWI690929 B TW I690929B
Authority
TW
Taiwan
Prior art keywords
value
difference
count
reading
count value
Prior art date
Application number
TW108112711A
Other languages
Chinese (zh)
Other versions
TW202038240A (en
Inventor
胡家瑋
謝宗儒
魏志嘉
Original Assignee
點序科技股份有限公司
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 點序科技股份有限公司 filed Critical 點序科技股份有限公司
Priority to TW108112711A priority Critical patent/TWI690929B/en
Priority to CN201910397356.6A priority patent/CN111816225B/en
Application granted granted Critical
Publication of TWI690929B publication Critical patent/TWI690929B/en
Publication of TW202038240A publication Critical patent/TW202038240A/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/26Sensing or reading circuits; Data output circuits
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C5/00Details of stores covered by group G11C11/00
    • G11C5/14Power supply arrangements, e.g. power down, chip selection or deselection, layout of wirings or power grids, or multiple supply levels
    • G11C5/147Voltage reference generators, voltage or current regulators; Internally lowered supply levels; Compensation for voltage drops

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Read Only Memory (AREA)

Abstract

A memory apparatus and a method for adjusting reading reference voltage thereof are provided. The method includes: obtaining a plurality counting numbers of memory cells which are set to a setting logic level, where the counting numbers are respectively correspond to a plurality of reading steps; calculating a plurality of counting difference values according to the counting number, generating an average difference value according to the counting difference values, and generating a threshold value according to the average difference value; calculating a balance counting value of the memory cells; respectively obtaining a first reference counting value and second reference counting value according to a first reading step and a second reading step, and calculating a reference counting difference value; and, setting a voltage adjusting value according to the reference counting difference value, the threshold value, and the balance counting value, and adjusting the reading reference voltage to generate an adjusted reading reference voltage according to the voltage adjusting value.

Description

記憶體裝置及其讀取參考電壓的調整方法Memory device and adjustment method for reading reference voltage

本發明是有關於一種記憶體裝置及其讀取參考電壓的調整方法,且特別是有關於一種可動態調整讀取參考電壓的記憶體裝置及調整方法。The invention relates to a memory device and an adjustment method for reading a reference voltage, and particularly relates to a memory device and an adjustment method for dynamically adjusting the reading reference voltage.

在快閃記憶體的技術領域中,為了判讀出記憶胞中所儲存的資料的邏輯準位,需要設定一個或多個的讀取參考電壓,並透過使記憶胞的臨界電壓與讀取參考電壓進行比較,來判讀出記憶胞中所儲存的資料的邏輯準位。然而,在快閃記憶體經過ˋ較長時間的使用後,在多次的程式化/抹除循環,或長時間的資料保存,記憶胞的特性可能產生改變。如此一來,記憶胞依據所儲存的資料所呈現的臨界電壓的特性,會產生飄移。在這樣的條件下,利用原始設定的讀取參考電壓來進行記憶胞的資料讀出動作,將會產生讀出資料不正確的情況。In the technical field of flash memory, in order to determine the logical level of the data stored in the memory cell, one or more read reference voltages need to be set, and the threshold voltage of the memory cell and the read reference voltage Compare to determine the logical level of the data stored in the memory cell. However, after the flash memory has been used for a longer period of time, the characteristics of the memory cell may change after repeated programming/erasing cycles or long-term data storage. In this way, the memory cell will drift according to the characteristics of the threshold voltage presented by the stored data. Under such conditions, using the originally set reading reference voltage to perform the data reading operation of the memory cell will result in the situation where the reading data is incorrect.

本發明提供一種記憶體裝置及其讀取參考電壓的調整方法,可提升讀取資料的正確性。The invention provides a memory device and a method for adjusting the reading reference voltage, which can improve the accuracy of reading data.

本發明的讀取參考電壓的調整方法包括:針對記憶體的多個記憶胞進行多個讀取步階的讀取動作,並分別獲得為設定邏輯準位的記憶胞的多個計數值,計數值分別對應讀取步階;依據計數值以計算出多個計數差值,依據計數差值以產生平均差值,並依據平均差值以產生臨界值;計算記憶胞的平衡計數值,其中平衡計數值等於記憶胞被程式化為設定邏輯準位的數量;依據讀取參考電壓設定第一讀取步階以及第二讀取步階,分別獲得為設定邏輯準位的記憶胞的第一參考計數值以及第二參考計數值,並計算出第一參考計數值以及第二參考計數值的參考計數差值;以及,依據參考計數差值、臨界值以及平衡計數值以設定電壓調整值,並依據電壓調整值以調整讀取參考電壓來產生調整後參考電壓。The method for adjusting the reading reference voltage of the present invention includes: performing a plurality of reading steps of reading steps on a plurality of memory cells of the memory, and obtaining a plurality of count values for the memory cells with set logic levels, respectively The values correspond to the reading steps respectively; multiple count differences are calculated based on the count value, an average difference is generated based on the count difference, and a critical value is generated based on the average difference; the balance count value of the memory cell is calculated, where balance The count value is equal to the number of memory cells programmed to set the logic level; the first reading step and the second reading step are set according to the reading reference voltage to obtain the first reference of the memory cell setting the logic level, respectively The count value and the second reference count value, and calculate the reference count difference between the first reference count value and the second reference count value; and, according to the reference count difference value, the threshold value, and the balance count value to set the voltage adjustment value, and The read reference voltage is adjusted according to the voltage adjustment value to generate the adjusted reference voltage.

本發明的記憶體裝置包括記憶體、記憶體控制器以及主機端。記憶體控制器耦接記憶體。主機端耦接記憶體控制器。主機端用以:針對記憶體的多個記憶胞進行多個讀取步階的讀取動作,並分別獲得為設定邏輯準位的記憶胞的多個計數值,計數值分別對應讀取步階;依據計數值以計算出多個計數差值,依據計數差值以產生平均差值,並依據平均差值以產生臨界值;計算記憶胞的平衡計數值,其中平衡計數值等於記憶胞被程式化為設定邏輯準位的數量。記憶體控制器用以依據讀取參考電壓設定第一讀取步階以及第二讀取步階,分別獲得為設定邏輯準位的記憶胞的第一參考計數值以及第二參考計數值,並計算出第一參考計數值以及第二參考計數值的參考計數差值;以及,依據參考計數差值、臨界值以及平衡計數值以設定電壓調整值,並依據電壓調整值以調整讀取參考電壓來產生調整後參考電壓。The memory device of the present invention includes a memory, a memory controller, and a host. The memory controller is coupled to the memory. The host is coupled to the memory controller. The host is used to: perform multiple reading steps for multiple memory cells of the memory, and obtain multiple count values of the memory cells with set logic levels respectively, and the count values respectively correspond to the reading steps Calculate multiple count differences based on the count value, generate an average difference based on the count difference, and generate a critical value based on the average difference; calculate the balance count value of the memory cell, where the balance count value is equal to the memory cell is programmed Into the number of set logic levels. The memory controller is used to set the first reading step and the second reading step according to the reading reference voltage, respectively obtain the first reference count value and the second reference count value of the memory cell for setting the logic level, and calculate Generating a reference count difference between the first reference count value and the second reference count value; and, setting the voltage adjustment value according to the reference count difference value, the threshold value and the balance count value, and adjusting the read reference voltage according to the voltage adjustment value The adjusted reference voltage is generated.

基於上述,本發明透過計算記憶胞中,對應多個讀取步階的多個計數值的變化狀態,並依據計數值的變化狀態以區分出三個分布區域。透過計算目前的讀取參考電壓所在的分布區域,並據以調整讀取參考電壓的電壓值,以提升提取資料的正確性。Based on the above, the present invention calculates the change state of multiple count values corresponding to multiple reading steps in the memory cell, and distinguishes three distribution areas according to the change state of the count value. By calculating the distribution area where the current reading reference voltage is located, and adjusting the voltage value of the reading reference voltage accordingly, the accuracy of the extracted data is improved.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, the embodiments are specifically described below in conjunction with the accompanying drawings for detailed description as follows.

請參照圖1,圖1繪示本發明一實施例的讀取參考電壓的調整方法的流程圖。圖1的讀取參考電壓的調整方法適用於記憶體的讀取動作。在本實施例中,記憶體可以為一非揮發性記憶體,例如快閃記憶體。在圖1中,步驟S110針對記憶體的多個記憶胞進行多個讀取步階的讀取動作,並分別獲得為一設定邏輯準位的記憶胞的多個計數值,其中,計數值分別對應上述的多個讀取步階。在此請同步參照圖1以及圖2A,其中圖2A繪示本發明實施例的計數值與讀取步階的關係曲線圖。在本實施例中,設定邏輯準位例如為邏輯準位1。讀取步階用以對應讀取參考電壓,例如,第一階的讀取步階可以對應等於第一電壓值的讀取參考電壓,而第二階的讀取步階可以對應等於第二電壓值的讀取參考電壓,其中第二電壓值大於第一電壓值,並且第二電壓值可以等於第一電壓值遞增一個步階值dV。依此類推,讀取步階的階數可隨著讀取參考電壓的增加而增加,而第n階的讀取步階對應的讀取參考電壓的電壓值可以等於第一電壓值 + (n-1) × dV。Please refer to FIG. 1, which is a flowchart of an adjustment method for reading a reference voltage according to an embodiment of the present invention. The method for adjusting the reading reference voltage in FIG. 1 is suitable for the reading operation of the memory. In this embodiment, the memory may be a non-volatile memory, such as flash memory. In FIG. 1, step S110 performs a plurality of reading steps on a plurality of memory cells of the memory, and obtains a plurality of count values for a memory cell with a set logic level, wherein the count values are respectively Corresponding to the above multiple reading steps. Please refer to FIG. 1 and FIG. 2A at the same time. FIG. 2A is a graph showing the relationship between the count value and the reading step according to an embodiment of the present invention. In this embodiment, the logic level is set to logic level 1, for example. The reading step corresponds to reading the reference voltage. For example, the first reading step may correspond to the reading reference voltage equal to the first voltage value, and the second reading step may correspond to the second voltage. The reference voltage of the value is read, wherein the second voltage value is greater than the first voltage value, and the second voltage value may be equal to the first voltage value by one step value dV. By analogy, the number of reading steps can increase as the reading reference voltage increases, and the voltage value of the reading reference voltage corresponding to the nth reading step can be equal to the first voltage value + (n -1) × dV.

透過依序遞增的讀取步階,以對記憶體中的記憶胞進行讀取動作,並透過計算對應多個讀取步階時,讀出記憶胞中儲存的資料為邏輯準位1的多個計數值,可獲得圖2A繪示的曲線210。其中,曲線210為一連續遞增的曲線,並且在區域Z21、Z22中,曲線210具有相對大的上升斜率。By sequentially increasing the reading steps, the reading operation is performed on the memory cells in the memory, and by calculating the corresponding multiple reading steps, the data stored in the memory cells is read as the logic level 1 For each count value, the curve 210 shown in FIG. 2A can be obtained. Among them, the curve 210 is a continuously increasing curve, and in the zones Z21 and Z22, the curve 210 has a relatively large rising slope.

請重新參照圖1,在步驟S120中,依據步驟S110中的計數值以計算出多個計數差值,依據計數差值以產生一平均差值,並依據平均差值以產生臨界值。在細節上,針對相鄰的二讀取步階對應的二計數值進行相減動作,並取其絕對值,可以獲得多個計數差值。計數差值用以反應計數值的變化狀態。接著,並將所有的計數差值加總,並使加總的結果除以讀取步階的總數以產生平均差值。另外,使平均差值乘以一常數k以產生臨界值,其中,常數k為一預設的數值,並為大於1的實數。Please refer to FIG. 1 again. In step S120, a plurality of count differences are calculated according to the count value in step S110, an average difference is generated according to the count difference, and a threshold value is generated based on the average difference. In detail, a subtraction action is performed on the two count values corresponding to the adjacent two reading steps, and the absolute value is taken to obtain multiple count difference values. The count difference is used to reflect the changing state of the count value. Then, all the difference counts are added up, and the totaled result is divided by the total number of reading steps to produce an average difference. In addition, the average difference is multiplied by a constant k to generate a critical value, where the constant k is a preset value and is a real number greater than 1.

在此請同步參照圖1、圖2A以及圖2B,其中圖2B繪示本發明實施例的計數差值與讀取步階的關係曲線圖。在圖2B中,多個計數差值構成曲線220。透過並將所有的計數差值加總,使加總的結果除以讀取步階的總數以產生平均差值,並使平均差值乘以一常數k可產生臨界值TH。在圖2B中,藉由臨界值TH與曲線220中的多個計數差值比較,可獲得讀取步階RS1、RS2,讀取步階RS1、RS2並可將所有的讀取步階區分成三個分布區域 A、B、C。其中,分布區域A的讀取步階小於讀取步階RS1;分布區域B的讀取步階介於讀取步階RS1以及RS2間;以及,分布區域C的讀取步階大於讀取步階RS2。Please refer to FIG. 1, FIG. 2A and FIG. 2B simultaneously. FIG. 2B is a graph showing the relationship between the count difference and the reading step according to an embodiment of the present invention. In FIG. 2B, a plurality of count differences constitute a curve 220. The threshold value TH can be generated by summing all the count differences, dividing the total result by the total number of reading steps to generate an average difference, and multiplying the average difference by a constant k. In FIG. 2B, by comparing the threshold value TH with a plurality of count differences in the curve 220, the reading steps RS1, RS2 can be obtained, and the reading steps RS1, RS2 can be divided into all the reading steps Three distribution areas A, B, C. Among them, the reading step of the distribution area A is smaller than the reading step RS1; the reading step of the distribution area B is between the reading steps RS1 and RS2; and, the reading step of the distribution area C is larger than the reading step Order RS2.

值得注意的,在圖2B中,具有分別對應圖2A中的區域Z21、Z22的區域Z21A以及Z22A。其中,圖2A中具有相對大變化的計數值的區域Z21、Z22對應至圖2B中具有相對大計數差值的區域Z21A、Z22A。It is worth noting that in FIG. 2B, there are regions Z21A and Z22A corresponding to the regions Z21 and Z22 in FIG. 2A, respectively. Among them, the regions Z21 and Z22 in FIG. 2A with relatively large count values correspond to the regions Z21A and Z22A in FIG. 2B with relatively large count differences.

承續上述的說明,步驟S130計算記憶胞的一平衡計數值,其中,平衡計數值等於記憶胞被程式化為設定邏輯準位(例如邏輯準位1)的數量。以具有16K位元組(byte)的記憶胞為範利,在當有一半的記憶胞被程式化為邏輯準位1時,平衡計數值等於16384 × 8 / 2 = 65536。Following the above description, step S130 calculates a balance count value of the memory cell, where the balance count value is equal to the number of memory cells programmed to set a logic level (eg, logic level 1). Taking a memory cell with 16K bytes as a van Lee, when half of the memory cells are programmed to logical level 1, the balance count value is equal to 16384 × 8/2 = 65536.

接著,步驟S140依據讀取參考電壓以設定第一讀取步階以及第二讀取步階,依據第一讀取步階以及第二讀取步階以分別獲得為設定邏輯準位的記憶胞的第一參考計數值以及第二參考計數值,並計算出第一參考計數值以及第二參考計數值的參考計數差值。在此請同步參照圖1、圖3A以及圖3B。圖3A以及圖3B繪示本發明實施例的參考電壓調整動作的示意圖。在圖3A中,藉由依據第一讀取步階RRS1以及第二讀取步階RRS2以分別獲得為設定邏輯準位的記憶胞的第一參考計數值Cn以及第二參考計數值Cn+1。在本實施例中,第一參考計數值Cn以及第二參考計數值Cn+1分別為73370以及70580。並且,透過使第一參考計數值Cn以及第二參考計數值Cn+1相減,並取其絕對值,可獲得參考計數差值dn = 2750。Next, in step S140, the first reading step and the second reading step are set according to the reading reference voltage, and the memory cells are set as the logic level according to the first reading step and the second reading step, respectively. The first reference count value and the second reference count value, and calculate the reference count difference between the first reference count value and the second reference count value. Please refer to FIG. 1, FIG. 3A and FIG. 3B simultaneously. FIG. 3A and FIG. 3B are schematic diagrams illustrating the adjustment operation of the reference voltage according to an embodiment of the invention. In FIG. 3A, the first reference count value Cn and the second reference count value Cn+1 of the memory cell for setting the logic level are obtained by the first reading step RRS1 and the second reading step RRS2, respectively . In this embodiment, the first reference count value Cn and the second reference count value Cn+1 are 73370 and 70580, respectively. Moreover, by subtracting the first reference count value Cn and the second reference count value Cn+1 and taking the absolute value thereof, the reference count difference value dn = 2750 can be obtained.

接著,步驟S150依據參考計數差值dn、臨界值TH以及平衡計數值B以設定電壓調整值,並據該電壓調整值以調整讀取參考電壓來產生調整後參考電壓。承續圖3A、圖3B的實施例,其中,以平均值等於1000、常數k等於2、第一讀取步階的步階數等於2、平衡計數值B等於65536為範例,臨界值TH可等於1000 × 2 = 2000。如此一來,參考計數差值dn(=2750)大於臨界值TH,且平衡計數值B與第一參考計數值Cn的差值(B – Cn)大於臨界值與第一讀取步階的步階數的乘積(n × TH),表示目前設定的讀取步階落於區域A或區域C(本實施例為落於區域A)。因此,可使平衡計數值B與第一參考計數值Cn的差值除以平均差值dn來獲得電壓調整值,並依據計算出的電壓調整值來調整讀取參考電壓RV以產生調整後讀取參考電壓TRV。Next, step S150 sets a voltage adjustment value according to the reference count difference dn, the threshold value TH, and the balance count value B, and adjusts the read reference voltage according to the voltage adjustment value to generate the adjusted reference voltage. Continuing with the embodiments of FIGS. 3A and 3B, where the average value is equal to 1000, the constant k is equal to 2, the number of steps of the first reading step is equal to 2, and the balance count value B is equal to 65536, the threshold value TH can be Equal to 1000 × 2 = 2000. In this way, the reference count difference dn (=2750) is greater than the threshold TH, and the difference (B-Cn) between the balance count B and the first reference count Cn is greater than the threshold and the step of the first reading step The product of the order (n × TH) indicates that the currently set reading step falls in the area A or the area C (in this embodiment, it falls in the area A). Therefore, the difference between the balance count value B and the first reference count value Cn can be divided by the average difference value dn to obtain the voltage adjustment value, and the read reference voltage RV can be adjusted according to the calculated voltage adjustment value to generate the adjusted read Take the reference voltage TRV.

由圖3B的繪示可以發現,透過讀取參考電壓的調整動作,調整後讀取參考電壓TRV可落於曲線的中心部位,提升讀出資料的正確度。It can be found from the drawing of FIG. 3B that, through the adjustment operation of reading the reference voltage, the adjusted reading reference voltage TRV can fall in the center of the curve to improve the accuracy of reading the data.

在此請參照圖4A以及圖4B。圖4A以及圖4B繪示本發明實施例的參考電壓調整動作的另一實施方式的示意圖。在圖4A中,藉由依據第一讀取步階RRS1以及第二讀取步階RRS2以分別獲得為設定邏輯準位的記憶胞的第一參考計數值Cn以及第二參考計數值Cn+1。在本實施例中,第一參考計數值Cn以及第二參考計數值Cn+1分別為68680以及67340。並且,透過使第一參考計數值Cn以及第二參考計數值Cn+1相減,並取其絕對值,可獲得參考計數差值dn = 1340。基於參考計數差值dn小於臨界值TH(=2000),表示目前設定的讀取步階落於區域B。因此,可使平衡計數值B與第一參考計數值Cn的差值除以參考計數差值dn來獲得電壓調整值,並依據計算出的電壓調整值來調整讀取參考電壓RV以產生調整後讀取參考電壓TRV。Please refer to FIGS. 4A and 4B here. 4A and 4B are schematic diagrams illustrating another implementation manner of the reference voltage adjustment operation according to an embodiment of the present invention. In FIG. 4A, the first reference count value Cn and the second reference count value Cn+1 of the memory cell for setting the logic level are obtained by the first reading step RRS1 and the second reading step RRS2, respectively . In this embodiment, the first reference count value Cn and the second reference count value Cn+1 are 68680 and 67340, respectively. Moreover, by subtracting the first reference count value Cn and the second reference count value Cn+1 and taking the absolute value thereof, the reference count difference value dn=1340 can be obtained. Based on that the reference count difference dn is less than the critical value TH (=2000), it indicates that the currently set reading step falls in area B. Therefore, the difference between the balance count value B and the first reference count value Cn can be divided by the reference count difference value dn to obtain the voltage adjustment value, and the read reference voltage RV can be adjusted according to the calculated voltage adjustment value to generate the adjustment Read the reference voltage TRV.

請參照圖5,圖5繪示本發明實施例的記憶體裝置的示意圖。記憶體裝置500包括記憶體512、記憶體控制器511以及主機端520。記憶體控制器511耦接記憶體512,並可整合於一記憶卡510中。主機端513連接記憶卡510,並耦接記憶體控制器511。在本實施例中,主機端513可用以執行如圖1實施例的步驟S110~S130以獲得平均差值、臨界值以及平衡計數值。記憶體控制器511則可用以執行如圖1實施例的步驟S140~S150,以進行參考讀取電壓的調整動作。Please refer to FIG. 5, which is a schematic diagram of a memory device according to an embodiment of the invention. The memory device 500 includes a memory 512, a memory controller 511, and a host 520. The memory controller 511 is coupled to the memory 512 and can be integrated into a memory card 510. The host terminal 513 is connected to the memory card 510 and is coupled to the memory controller 511. In this embodiment, the host 513 can be used to perform steps S110-S130 as shown in the embodiment of FIG. 1 to obtain the average difference value, the threshold value, and the balance count value. The memory controller 511 can be used to execute steps S140-S150 shown in the embodiment of FIG. 1 to perform the adjustment operation of the reference read voltage.

關於上述步驟S110~S150的實施細節,在前述的實施例中已有詳細的說明,在此恕不多贅述。Regarding the implementation details of the above steps S110-S150, detailed descriptions have been given in the foregoing embodiments, and will not be repeated here.

附帶一提的,主機端513可以為一電腦裝置,或任何具有運算能力的電子裝置。主機端513可用以與記憶卡510連接,並獲得平均差值、臨界值以及平衡計數值等資訊。主機端513另可將平均差值、臨界值以及平衡計數值等資訊儲存在記憶卡510中。在主機端513與記憶卡510離線(不相連接)的條件下,記憶卡控制器511可針對值型記憶體512讀取動作時的讀取參考電壓的調整動作,以維持讀出資料的正確性。Incidentally, the host 513 may be a computer device, or any electronic device with computing capability. The host 513 can be used to connect to the memory card 510 and obtain information such as average difference, threshold, and balance count. The host 513 can also store information such as the average difference value, the threshold value, and the balance count value in the memory card 510. Under the condition that the host 513 and the memory card 510 are offline (not connected), the memory card controller 511 can adjust the reading reference voltage during the reading operation of the value memory 512 to maintain the correctness of the read data Sex.

請參照圖6,圖6繪示本發明實施例的讀取參考電壓的調整方法的動作示意圖。配合圖5的記憶體裝置500,在步驟S610中,主機端513可透過執行步驟S110~S130進行初始化設定,並獲得平衡計數值B以及平均差值Avg。接著,在當針對記憶體512進行資料讀取動作時,可執行步驟S620的錯誤檢查糾正(Error check and correction, ECC)的檢查動作。在當ECC檢查通過時,可持續進行資料的讀取動作。在當ECC檢查失敗時,可透過步驟S630以執行追蹤流程。在此,步驟S630的追蹤流程可透過步驟S140~S150來執行,並藉以調整讀取參考電壓。Please refer to FIG. 6, which is a schematic diagram illustrating the operation of the method for reading the reference voltage according to an embodiment of the present invention. In conjunction with the memory device 500 of FIG. 5, in step S610, the host 513 can perform initialization settings by executing steps S110-S130, and obtain the balance count value B and the average difference Avg. Next, when a data reading operation is performed on the memory 512, an error checking and correction (ECC) check operation of step S620 may be performed. When the ECC check is passed, the data reading operation can be continued. When the ECC check fails, the tracking process can be performed through step S630. Here, the tracking process of step S630 can be performed through steps S140-S150, and the read reference voltage can be adjusted accordingly.

透過步驟S630的追蹤流程,可適應性的調整讀取參考電壓,並可維持資料讀取的正確性,提升記憶體的使用效能。Through the tracking process of step S630, the reading reference voltage can be adjusted adaptively, and the accuracy of data reading can be maintained to improve the use efficiency of the memory.

綜上所述,本發明透過計算對應多個讀取步階的多個計數值的變化狀態,來進行讀取參考電壓的調整動作。如此一來,在當記憶胞的特性發生變化時,仍可有效設定對應的讀取參考電壓,以提升讀出資料的正確性。In summary, the present invention performs the adjustment operation of reading the reference voltage by calculating the change states of the multiple count values corresponding to the multiple reading steps. In this way, when the characteristics of the memory cell change, the corresponding reading reference voltage can still be effectively set to improve the accuracy of reading data.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to the scope defined in the appended patent application.

S110~S150、S610~S630:讀取參考電壓的調整步驟 210、220:曲線 Z21、Z22、Z21A、Z22A:區域 RS1、RS2、RRS1、RRS2:讀取步階 A、B、C:分布區域 Cn、Cn+1:參考計數值 TH:臨界值 RV:讀取參考電壓 TRV:調整後讀取參考電壓 500:記憶體裝置 512:記憶體 511:記憶體控制器 520:主機端 510:記憶卡 S110~S150, S610~S630: Adjustment steps for reading reference voltage 210, 220: curve Z21, Z22, Z21A, Z22A: area RS1, RS2, RRS1, RRS2: read step A, B, C: distribution area Cn, Cn+1: reference count value TH: critical value RV: read reference voltage TRV: Read the reference voltage after adjustment 500: memory device 512: memory 511: memory controller 520: Host side 510: memory card

圖1繪示本發明一實施例的讀取參考電壓的調整方法的流程圖。 圖2A繪示本發明實施例的計數值與讀取步階的關係曲線圖。 圖2B繪示本發明實施例的計數差值與讀取步階的關係曲線圖。 圖3A以及圖3B繪示本發明實施例的參考電壓調整動作的示意圖。 圖4A以及圖4B繪示本發明實施例的參考電壓調整動作的另一實施方式的示意圖。 圖5繪示本發明實施例的記憶體裝置的示意圖。 圖6繪示本發明實施例的讀取參考電壓的調整方法的動作示意圖。 FIG. 1 is a flowchart of an adjustment method for reading a reference voltage according to an embodiment of the invention. FIG. 2A is a graph showing the relationship between the count value and the reading step according to an embodiment of the invention. FIG. 2B is a graph showing the relationship between the count difference and the reading step according to an embodiment of the invention. FIG. 3A and FIG. 3B are schematic diagrams illustrating the adjustment operation of the reference voltage according to an embodiment of the invention. 4A and 4B are schematic diagrams illustrating another implementation manner of the reference voltage adjustment operation according to an embodiment of the present invention. 5 is a schematic diagram of a memory device according to an embodiment of the invention. FIG. 6 is a schematic diagram illustrating the operation of the read reference voltage adjustment method according to an embodiment of the invention.

S110~S150:讀取參考電壓的調整步驟 S110~S150: Adjustment steps for reading reference voltage

Claims (11)

一種讀取參考電壓的調整方法,適用於一記憶體,包括:針對該記憶體的多個記憶胞進行多個讀取步階的讀取動作,並分別獲得為一設定邏輯準位的記憶胞的多個計數值,該些計數值分別對應該些讀取步階;依據該些計數值以計算出多個計數差值,依據該些計數差值以產生一平均差值,並依據該平均差值以產生一臨界值;計算該些記憶胞的一平衡計數值,其中該平衡計數值等於該些記憶胞被程式化為該設定邏輯準位的數量;依據一讀取參考電壓設定一第一讀取步階以及一第二讀取步階,分別獲得為該設定邏輯準位的記憶胞的一第一參考計數值以及一第二參考計數值,並計算出該第一參考計數值以及該第二參考計數值的一參考計數差值;以及依據該參考計數差值、該臨界值以及該平衡計數值以設定一電壓調整值,並依據該電壓調整值以調整該讀取參考電壓來產生一調整後讀取參考電壓。 An adjustment method for reading a reference voltage is applicable to a memory, including: performing a plurality of reading steps for a plurality of memory cells of the memory, and respectively obtaining a memory cell with a set logic level A plurality of count values corresponding to the reading steps; based on the count values, a plurality of count difference values are calculated, based on the count difference values, an average difference value is generated, and based on the average value The difference is used to generate a critical value; a balance count value of the memory cells is calculated, wherein the balance count value is equal to the number of memory cells programmed to the set logic level; a first reference is set according to a read reference voltage A reading step and a second reading step, respectively obtaining a first reference count value and a second reference count value of the memory cell for which the logic level is set, and calculating the first reference count value and A reference count difference of the second reference count value; and setting a voltage adjustment value according to the reference count difference value, the threshold value and the balance count value, and adjusting the read reference voltage according to the voltage adjustment value After generating an adjustment, the reference voltage is read. 如申請專利範圍第1項所述的讀取參考電壓的調整方法,其中該設定邏輯準位為邏輯準位1。 The method for adjusting the read reference voltage as described in item 1 of the patent application scope, wherein the set logic level is logic level 1. 如申請專利範圍第1項所述的讀取參考電壓的調整方法,其中依據該參考計數差值、該臨界值以及該平衡計數值以設定該電壓調整值的步驟包括: 當該參考計數差值大於該臨界值,且該平衡計數值與該第一參考計數值的差值大於該臨界值與該第一讀取步階的步階數的乘積時,使該平衡計數值與該第一參考計數值的差值除以該平均差值來獲得該電壓調整值;以及當該參考計數差值小於該臨界值時,使該平衡計數值與該第一參考計數值的差值除以該參考計數差值來獲得該電壓調整值。 The adjustment method for reading a reference voltage as described in item 1 of the patent application scope, wherein the step of setting the voltage adjustment value according to the reference count difference, the threshold value and the balance count value includes: When the reference count difference is greater than the critical value, and the difference between the balance count value and the first reference count value is greater than the product of the critical value and the number of steps of the first reading step, the balance The difference between the value and the first reference count value is divided by the average difference to obtain the voltage adjustment value; and when the difference between the reference count value and the threshold value is less than the critical value, the balance count value and the first reference count value The difference is divided by the reference count difference to obtain the voltage adjustment value. 如申請專利範圍第1項所述的讀取參考電壓的調整方法,其中依據該些計數值以計算出該些計數差值的步驟包括:計算對應相鄰的讀取步階的二計數值的差以獲得各該計數差值。 The method for adjusting the reading reference voltage as described in item 1 of the patent application scope, wherein the step of calculating the count difference based on the count values includes: calculating the second count value corresponding to the adjacent reading step Difference to obtain the difference between the counts. 如申請專利範圍第1項所述的讀取參考電壓的調整方法,其中並依據該平均差值以產生該臨界值的步驟包括:使該平均差值乘以一常數以產生該臨界值,其中該常數為大於1的實數。 The adjustment method for reading a reference voltage as described in item 1 of the patent application scope, wherein the step of generating the threshold based on the average difference includes: multiplying the average difference by a constant to generate the threshold, wherein This constant is a real number greater than 1. 如申請專利範圍第1項所述的讀取參考電壓的調整方法,其中該平衡計數值為該些記憶胞的總數量的一半。 The adjustment method for reading the reference voltage as described in item 1 of the patent application scope, wherein the balance count value is half of the total number of the memory cells. 一種記憶體裝置,包括一記憶體;一記憶體控制器,耦接該記憶體;以及一主機端,耦接該記憶體控制器,其中該主機端用以: 針對該記憶體的多個記憶胞進行多個讀取步階的讀取動作,並分別獲得為一設定邏輯準位的記憶胞的多個計數值,該些計數值分別對應該些讀取步階;依據該些計數值以計算出多個計數差值,依據該些計數差值以產生一平均差值,並依據該平均差值以產生一臨界值;以及計算該些記憶胞的一平衡計數值,其中該平衡計數值等於該些記憶胞被程式化為該設定邏輯準位的數量;該記憶體控制器用以:依據一讀取參考電壓設定一第一讀取步階以及一第二讀取步階,分別獲得為該設定邏輯準位的記憶胞的一第一參考計數值以及一第二參考計數值,並計算出該第一參考計數值以及該第二參考計數值的一參考計數差值;以及依據該參考計數差值、該臨界值以及該平衡計數值以設定一電壓調整值,並依據該電壓調整值以調整該讀取參考電壓來產生一調整後參考電壓。 A memory device includes a memory; a memory controller coupled to the memory; and a host terminal coupled to the memory controller, wherein the host terminal is used to: Perform multiple reading steps of reading steps on the plurality of memory cells of the memory, and obtain a plurality of count values of a memory cell with a set logic level, and the count values respectively correspond to the reading steps Calculate multiple count differences based on the count values, generate an average difference based on the count differences, and generate a critical value based on the average difference; and calculate a balance of the memory cells Count value, wherein the balance count value is equal to the number of the memory cells programmed into the set logic level; the memory controller is used to: set a first reading step and a second according to a reading reference voltage Read the steps to obtain a first reference count value and a second reference count value for the memory cell of the set logic level, and calculate a reference for the first reference count value and the second reference count value Counting difference; and setting a voltage adjustment value according to the reference counting difference, the threshold value and the balance count value, and adjusting the read reference voltage according to the voltage adjustment value to generate an adjusted reference voltage. 如申請專利範圍第7項所述的記憶體裝置,其中該設定邏輯準位為邏輯準位1。 The memory device as described in item 7 of the patent application range, wherein the set logic level is logic level 1. 如申請專利範圍第7項所述的記憶體裝置,其中該記憶體控制器更用以:當該參考計數差值大於該臨界值,且該平衡計數值與該第一參考計數值的差值大於該臨界值與該第一讀取步階的步階數的乘 積時,使該平衡計數值與該第一參考計數值的差值除以該平均差值來獲得該電壓調整值;以及當該參考計數差值小於該臨界值時,使該平衡計數值與該第一參考計數值的差值除以該參考計數差值來獲得該電壓調整值。 The memory device as described in item 7 of the patent application range, wherein the memory controller is further used to: when the reference count difference is greater than the critical value, and the difference between the balance count value and the first reference count value Multiplied by the threshold value and the number of steps of the first reading step During the product, the difference between the balance count value and the first reference count value is divided by the average difference value to obtain the voltage adjustment value; and when the reference count difference value is less than the critical value, the balance count value is equal to The difference between the first reference count value is divided by the reference count difference to obtain the voltage adjustment value. 如申請專利範圍第7項所述的記憶體裝置,其中該主機端更用以:計算對應相鄰的讀取步階的二計數值的差以獲得各該計數差值。 The memory device as described in item 7 of the patent application range, wherein the host end is further used to: calculate a difference between two count values corresponding to adjacent reading steps to obtain each count difference. 如申請專利範圍第7項所述的記憶體裝置,其中該主機端更用以:使該平均差值乘以一常數以產生該臨界值,其中該常數為大於1的實數;以及使該平衡計數值等於該些記憶胞的總數量的一半。 The memory device as described in item 7 of the patent application range, wherein the host side is further used to: multiply the average difference by a constant to generate the critical value, wherein the constant is a real number greater than 1; and to balance the The count value is equal to half of the total number of memory cells.
TW108112711A 2019-04-11 2019-04-11 Memory apparatus and method for adjusting reading reference voltage thereof TWI690929B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW108112711A TWI690929B (en) 2019-04-11 2019-04-11 Memory apparatus and method for adjusting reading reference voltage thereof
CN201910397356.6A CN111816225B (en) 2019-04-11 2019-05-14 Memory device and adjusting method of reading reference voltage thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108112711A TWI690929B (en) 2019-04-11 2019-04-11 Memory apparatus and method for adjusting reading reference voltage thereof

Publications (2)

Publication Number Publication Date
TWI690929B true TWI690929B (en) 2020-04-11
TW202038240A TW202038240A (en) 2020-10-16

Family

ID=71134492

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108112711A TWI690929B (en) 2019-04-11 2019-04-11 Memory apparatus and method for adjusting reading reference voltage thereof

Country Status (2)

Country Link
CN (1) CN111816225B (en)
TW (1) TWI690929B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201001425A (en) * 2008-06-23 2010-01-01 Sandisk Il Ltd Ad hoc flash memory reference cells
TW201044405A (en) * 2009-04-09 2010-12-16 Sandisk Corp Two pass erase for non-volatile storage
US20130067151A1 (en) * 2007-04-30 2013-03-14 Sandisk Il Ltd. Method for efficient storage of metadata in flash memory
TW201601159A (en) * 2014-06-16 2016-01-01 愛思開海力士有限公司 Semiconductor device with fuse array and method for operating the same
CN107068187A (en) * 2016-02-11 2017-08-18 希捷科技有限公司 Likelihood value assigns the reading for retrying the change sign at different reading voltages for each reading to retry operation
TW201913678A (en) * 2017-09-08 2019-04-01 旺宏電子股份有限公司 Method for programming non-volatile memory and memory system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7450425B2 (en) * 2006-08-30 2008-11-11 Micron Technology, Inc. Non-volatile memory cell read failure reduction
US9645177B2 (en) * 2012-05-04 2017-05-09 Seagate Technology Llc Retention-drift-history-based non-volatile memory read threshold optimization
KR102038408B1 (en) * 2012-10-25 2019-10-30 삼성전자주식회사 Semiconductor memory system using regression alalysis and read method thereof
US20140359202A1 (en) * 2013-05-31 2014-12-04 Western Digital Technologies, Inc. Reading voltage calculation in solid-state storage devices
US20190304556A1 (en) * 2018-03-29 2019-10-03 Macronix International Co., Ltd. Method for programming non-volatile memory and memory system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130067151A1 (en) * 2007-04-30 2013-03-14 Sandisk Il Ltd. Method for efficient storage of metadata in flash memory
TW201001425A (en) * 2008-06-23 2010-01-01 Sandisk Il Ltd Ad hoc flash memory reference cells
CN102099866A (en) * 2008-06-23 2011-06-15 桑迪士克以色列有限公司 Ad hoc flash memory reference cells
TW201044405A (en) * 2009-04-09 2010-12-16 Sandisk Corp Two pass erase for non-volatile storage
TW201601159A (en) * 2014-06-16 2016-01-01 愛思開海力士有限公司 Semiconductor device with fuse array and method for operating the same
CN107068187A (en) * 2016-02-11 2017-08-18 希捷科技有限公司 Likelihood value assigns the reading for retrying the change sign at different reading voltages for each reading to retry operation
TW201913678A (en) * 2017-09-08 2019-04-01 旺宏電子股份有限公司 Method for programming non-volatile memory and memory system

Also Published As

Publication number Publication date
CN111816225A (en) 2020-10-23
TW202038240A (en) 2020-10-16
CN111816225B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
US10811091B2 (en) Adaptive processing for read threshold voltage calibration
US9021319B2 (en) Non-volatile memory management system with load leveling and method of operation thereof
CN110832594A (en) Memory device with dynamic target calibration
CN110832593A (en) Memory device with dynamic processing level calibration
KR101610729B1 (en) Storage system
CN110870014A (en) Memory device with dynamic programming calibration
TWI512737B (en) Method for reading data stored in a flash memory and memory controller thereof
JP5090538B2 (en) Memory device and memory data reading method
US10580485B2 (en) System and method for adjusting read levels in a storage device based on bias functions
US9595343B1 (en) Early prediction of failure in programming a nonvolatile memory
KR20090129205A (en) Memory device and method of controlling read level
US20140281769A1 (en) Memory system and memory controller
CN105321571B (en) Data storage device and operation method thereof
US9865348B2 (en) Devices and methods for selecting a forming voltage for a resistive random-access memory
US8913438B2 (en) Adaptive architecture in a channel detector for NAND flash channels
US9747974B2 (en) Non-volatile memory apparatus and on-the-fly self-adaptive read voltage adjustment method thereof
US11635777B2 (en) Temperature control circuit, memory storage device and temperature control method
US9965202B2 (en) Non-volatile storage device, non-volatile storage system, and memory control method with a refresh processing of a data
US20150169404A1 (en) Apparatus and methods of programming memory cells using adjustable charge state level(s)
US20150113354A1 (en) Generating soft decoding information for flash memory error correction using hard decision patterns
TWI717781B (en) Method of programming multilevel cell nand flash memory device and mlc nand flash memory device
TWI690929B (en) Memory apparatus and method for adjusting reading reference voltage thereof
US10691536B2 (en) Method to select flash memory blocks for refresh after read operations
TW201732825A (en) Memory reading method and memory device
US10483782B2 (en) Battery control method and battery control apparatus