Memory device and method of operating the same

By configuring the threshold voltage of the memory cell and performing refresh programming operations, the data storage reliability problem caused by the instability of the threshold voltage in the memory device is solved, and the stability of the memory device and data reading reliability are improved.

CN114360610BActive Publication Date: 2024-11-15SK HYNIX INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110607475.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-13
Filing Date
2021-06-01
Publication Date
2024-11-15
Estimated Expiration
2041-06-01

AI Technical Summary

Technical Problem

The existing memory devices have instability in threshold voltages in programming and reading operations, resulting in problems of data storage reliability and read failures.

Method used

By configuring the memory cell to have threshold voltages corresponding to multiple programming states, and performing a test read operation using peripheral circuits and control logic, it is determined whether to perform a refresh programming operation based on the number of threshold voltages to maintain threshold voltage stability of the memory cell.

Benefits of technology

It improves the reliability of the memory device and the stability of data storage, reduces the risk of read failure, and extends the service life of the memory cell.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114360610B_ABST
    Figure CN114360610B_ABST
Patent Text Reader

Abstract

The present application discloses a memory device and a method for operating the memory device. According to the present technology, a memory device may include: a plurality of memory cells configured to be programmed so that each memory cell has a threshold voltage corresponding to any one of a plurality of programming states; a peripheral circuit configured to perform a read operation or a programming operation on the memory cell; and a control logic configured to control the peripheral circuit to perform a test read operation of reading the memory cell using a test read voltage as any one of the preset default read voltages, and to perform a refresh programming operation of applying a refresh programming voltage to some of the plurality of memory cells according to the number of memory cells having a threshold voltage greater than the test read voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to electronic devices, and more particularly, to a memory device and a method of operating the memory device. Background Art

[0002] A storage device is a device that stores data under the control of a host device such as a computer or a smart phone. The storage device may include a memory device that stores data and a storage controller that controls the memory device. The memory device may be classified into a volatile memory device and a nonvolatile memory device.

[0003] A volatile memory device may be a device that stores data only when power is supplied and loses the stored data when the power is cut off. The volatile memory device may include a static random access memory (SRAM), a dynamic random access memory (DRAM), and the like.

[0004] A nonvolatile memory device is a device that does not lose data even if the power is turned off. Nonvolatile memory devices include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, etc. Summary of the invention

[0005] According to an embodiment of the present disclosure, a memory device may include: a plurality of memory cells, which are configured to be programmed so that each memory cell has a threshold voltage corresponding to any one of a plurality of programming states; a peripheral circuit, which is configured to perform a read operation or a programming operation on the memory cells; and a control logic, which is configured to control the peripheral circuit to perform a test read operation of reading the memory cells using a test read voltage that is any one of preset default read voltages, and to perform a refresh programming operation of applying a refresh programming voltage to some of the plurality of memory cells according to the number of memory cells having a threshold voltage greater than the test read voltage.

[0006] According to an embodiment of the present disclosure, there is provided a method for operating a memory device including a plurality of memory cells, wherein the plurality of memory cells are programmed so that each memory cell has a threshold voltage corresponding to any one of a plurality of programming states, the method may include the following steps: obtaining test read data obtained by sensing the memory cell using a test read voltage that is any one of preset default read voltages; and applying a refresh programming voltage to some of the plurality of memory cells according to the number of reference logic values ​​included in the test read data.

[0007] According to an embodiment of the present disclosure, a memory device may include: a memory cell array, which includes a plurality of memory cells, and the plurality of memory cells are configured to be programmed so that each memory cell has a threshold voltage corresponding to one of a plurality of programming states; a peripheral circuit, which is configured to perform a read operation or a programming operation on the plurality of memory cells; and a refresh operation controller, which is configured to control the peripheral circuit to perform a refresh programming operation for a programming state in which the number of memory cells whose threshold voltages are reduced among the plurality of memory cells among the plurality of programming states exceeds a preset reference number. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a diagram showing a storage device including a memory device according to an embodiment of the present disclosure.

[0009] Figure 2 It is shown Figure 1 Diagram of a memory device.

[0010] Figure 3 It is shown Figure 2 A diagram of the structure of any one of the storage blocks.

[0011] Figure 4A and Figure 4B is a diagram showing threshold voltage distribution of a single-level cell.

[0012] Figure 5A and Figure 5B is a diagram showing threshold voltage distribution of a multi-level cell.

[0013] Fig. 6A and Figure 6B is a diagram showing threshold voltage distribution of a three-level cell.

[0014] Fig. 7A and Figure 7B is a diagram showing the threshold voltage distribution of a four-level cell.

[0015] Figure 8 is a diagram illustrating a programming operation.

[0016] Fig. 9A and Fig. 9B is a graph showing a change in threshold voltage of a memory cell due to retention.

[0017] Fig.10 is a diagram showing a sampling read operation.

[0018] Fig.11 is a diagram showing a method of generating refresh data using sampled read data.

[0019] Fig.12 It is shown Figure 1Diagram of the structure of a refresh action controller.

[0020] Fig.13 is a flowchart illustrating an operating method of a memory device according to an embodiment of the present disclosure.

[0021] Fig.14 is a flowchart illustrating an operating method of a memory device according to an embodiment of the present disclosure.

[0022] Fig.15 is a diagram illustrating a method of determining a program state in which a refresh program operation is to be performed according to an embodiment of the present disclosure.

[0023] Fig.16 is a diagram illustrating a method of determining a program state in which a refresh program operation is to be performed according to an embodiment of the present disclosure.

[0024] Fig.17 is a diagram illustrating a method of determining a program state in which a refresh program operation is to be performed according to an embodiment of the present disclosure.

[0025] Fig.18 It is shown Figure 1 FIG. 1 is a diagram of another embodiment of a storage controller.

[0026] Fig.19 is a block diagram illustrating a memory card system to which a storage device according to an embodiment of the present disclosure is applied.

[0027] Fig. 20 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present disclosure is applied.

[0028] Fig.21 is a block diagram illustrating a user system to which a storage device according to an embodiment of the present disclosure is applied. DETAILED DESCRIPTION

[0029] Only the specific structural or functional description of the embodiments according to the concepts disclosed in this specification or application is shown to describe the embodiments according to the concepts of the present disclosure. The embodiments according to the concepts of the present disclosure can be implemented in various forms and these descriptions are not limited to the embodiments described in this specification or application.

[0030] Embodiments of the present disclosure provide a memory device having improved reliability and a method of operating the memory device.

[0031] According to the present technology, a memory device having improved reliability and a method of operating the memory device can be provided.

[0032] Figure 1is a diagram showing a storage device including a memory device according to an embodiment of the present disclosure.

[0033] Reference Figure 1 , the storage device 50 may include a memory device 100 and a storage controller 200. The storage device 50 may be a device that stores data under the control of a host 400 (e.g., a cellular phone, a smart phone, an MP3 player, a laptop computer, a desktop computer, a game console, a TV, a tablet PC, or an in-vehicle infotainment system). Alternatively, the storage device 50 may be a device that stores data under the control of a host 400 that stores large amounts of data in one place (e.g., a server or a data center).

[0034] The storage device 50 may be manufactured as one of various types of storage devices according to a host interface as a communication method with the host 400. For example, the storage device 50 may be configured as any of various types of storage devices, such as multimedia cards in the form of SSD, MMC, eMMC, RS-MMC, and micro-MMC, secure digital cards in the form of SD, mini-SD, and micro-SD, a universal serial bus (USB) storage device, a universal flash memory (UFS) device, a personal computer memory card international association (PCMCIA) card type storage device, a peripheral component interconnect (PCI) card type storage device, a high-speed PCI (PCI-E) card type storage device, a compact flash (CF) card, a smart media card, and a memory stick.

[0035] The memory device 50 may be manufactured into any of various types of packages. For example, the memory device 50 may be manufactured into any of various types of package types such as package on package (POP), system on package (SIP), system on chip (SOC), multi-chip package (MCP), chip on board (COB), wafer-level fabrication package (WFP), and wafer-level stacked package (WSP).

[0036] The memory device 100 may store data. The memory device 100 operates under the control of the memory controller 200. The memory device 100 may include a memory cell array (not shown) including a plurality of memory cells storing data.

[0037] Each memory cell may be configured as a single level cell (SLC) storing one data bit, a multi level cell (MLC) storing two data bits, a triple level cell (TLC) storing three data bits, or a quad level cell (QLC) capable of storing four data bits.

[0038] The memory cell array (not shown) may include a plurality of memory blocks. Each memory block may include a plurality of memory cells. Each memory block may include a plurality of pages. In an embodiment, a page may be a unit for storing data in the memory device 100 or reading data stored in the memory device 100. A memory block may be a unit for erasing data.

[0039] In an embodiment, the memory device 100 may be a double data rate synchronous dynamic random access memory (DDR SDRAM), a low power double data rate 4 (LPDDR4) SDRAM, a graphic double data rate (GDDR) SDRAM, a low power DDR (LPDDR), a Rambus dynamic random access memory (RDRAM), a NAND flash memory, a vertical NAND flash memory, a NOR flash memory, a resistive random access memory (RRAM), a phase change random access memory (PRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a spin transfer torque random access memory (STT-RAM), etc. In this specification, for the convenience of description, it is assumed that the memory device 100 is a NAND flash memory.

[0040] The memory device 100 is configured to receive commands and addresses from the storage controller 200 and access the area selected by the address in the memory cell array. The memory device 100 can perform the operation indicated by the command on the area selected by the address. For example, the memory device 100 can perform a write operation (programming operation), a read operation, and an erase operation. During the programming operation, the memory device 100 can program data in the area selected by the address. During the read operation, the memory device 100 can read data from the area selected by the address. During the erase operation, the memory device 100 can erase the data stored in the area selected by the address.

[0041] The memory device 100 may include a refresh operation controller 160 .

[0042] The refresh operation controller 160 may control a refresh program operation that increases the threshold voltage of the memory cells whose threshold voltages are reduced.

[0043] The refresh operation controller 160 may receive a refresh command and a refresh address from the host 400. The refresh operation controller 160 may determine whether to perform a refresh programming operation in response to the refresh command. The refresh operation controller 160 may perform a test read operation on a page corresponding to the refresh address, and determine whether to perform a refresh programming operation based on the result of the test read operation. The test read operation may be a read operation using a test read voltage. The test read operation may be an operation of sensing a memory cell included in a page corresponding to the refresh address using a test read voltage. The test read voltage may be some of the default read voltages (the read voltage set as a default value of the memory device 100). For example, when a memory cell included in the memory device 100 stores two or more bits, a plurality of default read voltages may be used to sense the data stored in the memory cell. In an embodiment, the test read voltage may be some of the default read voltages (the read voltage preset as a default value of the memory device 100 (i.e., the preset default read voltage)). The test read voltage may be any one of the plurality of default read voltages. In an embodiment, the test read voltage may be a read voltage that distinguishes between a highest programming state and a programming state adjacent to the highest programming state among a plurality of programming states that a memory cell may have. The word "preset" used herein with respect to a parameter (e.g., a preset default read voltage or a preset reference number) means that the value of the parameter is determined before the parameter is used in a process or algorithm. For some embodiments, the value of the parameter is determined before the process or algorithm begins. In other embodiments, the value of the parameter is determined during the process or algorithm but before the parameter is used in the process or algorithm.

[0044] The refresh operation controller 160 may count the number of reference logic values ​​included in the test data obtained by the test read operation. Here, the reference logic value may be "0" or "1". In an embodiment, the reference logic value may be sensing data of a memory cell having a threshold voltage higher than the test read voltage. That is, the reference logic value may be data indicating a memory cell read as a cut-off cell.

[0045] When the number of reference logic values ​​included in the test data obtained by the test read operation is less than the first reference number, the refresh operation controller 160 may perform a refresh program operation. When the number of reference logic values ​​included in the test data obtained by the test read operation is equal to or greater than the first reference number, the refresh operation controller 160 may not perform a refresh program operation.

[0046] The refresh operation controller 160 may perform a sampling read operation to determine a memory cell on which a refresh programming operation is to be performed. The sampling read operation may be performed multiple times. The refresh operation controller 160 may generate refresh data indicating a memory cell on which a refresh programming operation is to be performed using the sampling data obtained by the sampling read operation and the test data obtained by the test read operation.

[0047] The refresh operation controller 160 may perform a refresh program operation using the refresh data. A refresh program voltage applied during the refresh program operation may be related to the number of times the sampling read operation is performed.

[0048] The specific contents of the refresh program operation performed by the refresh operation controller 160 refer to the following description. FIG. 9A to FIG. 15 to describe.

[0049] The memory controller 200 may control the overall operation of the memory device 50 .

[0050] When power is applied to the memory device 50, the memory controller 200 may execute firmware (FW). When the memory device 100 is a flash memory device, the memory controller 200 may execute firmware such as a flash translation layer (FTL) for controlling communication between the host 400 and the memory device 100.

[0051] In an embodiment, the memory controller 200 may receive data and a logical address (LA) from the host 400 and may convert the LA into a physical address (PA) indicating an address of a memory cell where data included in the memory device 100 is to be stored.

[0052] The memory controller 200 may control the memory device 100 to perform a program operation, a read operation, or an erase operation according to a request of the host 400. During a program operation, the memory controller 200 may provide a program command, a PA, and data to the memory device 100. During a read operation, the memory controller 200 may provide a read command and a PA to the memory device 100. During an erase operation, the memory controller 200 may provide an erase command and a PA to the memory device 100.

[0053] In an embodiment, the memory controller 200 may generate commands, addresses, and data independently of a request from the host 400, and send the commands, addresses, and data to the memory device 100. For example, the memory controller 200 may provide commands, addresses, and data to the memory device 100 for performing program operations, read operations, and erase operations, along with performing wear leveling, read recycling, garbage collection, and the like.

[0054] In an embodiment, the storage controller 200 may convert the write data received from the host 400 into programming data. The programming data may be data that is converted so as to have the same ratio as the number of data corresponding to each of a plurality of programming states determined according to the number of bits that can be stored in each memory cell included in the memory device 100. For example, assuming that each memory cell can store two bits of data, the programming data may be data obtained by converting the write data so that the data corresponding to each of the erase state and the first to third programming states is included by 1 / 4. Alternatively, assuming that each memory cell can store three bits of data, the programming data may be data obtained by converting the write data so that the data corresponding to each of the erase state and the first to seventh programming states is included by 1 / 8. Thus, the storage controller 200 may prevent the memory cells or memory cells of the configuration page included in the memory device 100 from being mainly programmed to a specific programming state. In addition, since the programming data is data converted so that each state can be uniformly programmed, the security of the data may be enhanced.

[0055] In an implementation, the memory controller 200 may further include a data converter (not shown) for converting write data into program data.

[0056] In an embodiment, the memory controller 200 may control at least two or more memory devices 100. In this case, the memory controller 200 may control the memory devices 100 according to an interleaving method to improve operation performance. The interleaving method may be a method of controlling operations of at least two memory devices 100 to overlap with each other.

[0057] The host 400 may communicate with the storage device 50 using at least one of various communication methods such as a universal serial bus (USB), a serial AT attachment (SATA), a serial attached SCSI (SAS), a high-speed inter-chip (HSIC), a small computer system interface (SCSI), a peripheral component interconnect (PCI), PCI express (PCIe), a non-volatile memory express (NVMe), a universal flash memory (UFS), a secure digital (SD), a multimedia card (MMC), an embedded MMC (eMMC), a dual in-line memory module (DIMM), a registered DIMM (RDIMM), and a load reduction DIMM (LRDIMM).

[0058] Figure 2 It is shown Figure 1 Diagram of a memory device.

[0059] Reference Figure 2, the memory device 100 may include a memory cell array 110, a voltage generator 120, an address decoder 130, an input / output circuit 140, and a control logic 150. The control logic 150 may be implemented as hardware, software, or a combination of hardware and software. For example, the control logic 150 may be a control logic circuit operating according to an algorithm and / or a processor executing a control logic code.

[0060] The memory cell array 110 includes a plurality of memory blocks BLK1 to BLKi. The plurality of memory blocks BLK1 to BLKi are connected to the address decoder 130 through row lines RL. The plurality of memory blocks BLK1 to BLKi may be connected to the input / output circuit 140 through column lines CL. In an embodiment, the row lines RL may include word lines, source selection lines, and drain selection lines. In an embodiment, the column lines CL may include bit lines.

[0061] Each of the plurality of memory blocks BLK1 to BLKi includes a plurality of memory cells. In an embodiment, the plurality of memory cells may be nonvolatile memory cells. The memory cells connected to the same word line among the plurality of memory cells may be defined as one physical page. That is, the memory cell array 110 may include a plurality of physical pages. Each memory cell of the memory device 100 may be configured as an SLC storing one data bit, an MLC storing two data bits, a TLC storing three data bits, or a QLC capable of storing four data bits.

[0062] Some of the plurality of memory blocks BLK1 to BLKi may be memory reference blocks. Figure 1 The remaining memory blocks among the plurality of memory blocks BLK1 to BLKi may be normal blocks storing data requested by the host 400 .

[0063] In an implementation, the voltage generator 120, the address decoder 130, and the input / output circuit 140 may be collectively referred to as a peripheral circuit. The peripheral circuit may drive the memory cell array 110 under the control of the control logic 150. The peripheral circuit may drive the memory cell array 110 to perform a program operation, a read operation, and an erase operation.

[0064] The voltage generator 120 is configured to generate a plurality of operating voltages using an external power supply voltage supplied to the memory device 100. The voltage generator 120 operates in response to the control of the control logic 150.

[0065] As an embodiment, the voltage generator 120 may generate an internal power supply voltage by adjusting an external power supply voltage. The internal power supply voltage generated by the voltage generator 120 is used as an operation voltage of the memory device 100.

[0066] As an embodiment, the voltage generator 120 may generate a plurality of operating voltages using an external power supply voltage or an internal power supply voltage. The voltage generator 120 may be configured to generate various voltages required in the memory device 100. For example, the voltage generator 120 may generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of selected read voltages, and a plurality of unselected read voltages.

[0067] The voltage generator 120 may include a plurality of pumping capacitors receiving an internal power supply voltage to generate a plurality of operating voltages having various voltage levels, and may generate the plurality of operating voltages by selectively enabling the plurality of pumping capacitors in response to control of the control logic 150 .

[0068] The generated plurality of operating voltages may be supplied to the memory cell array 110 through the address decoder 130 .

[0069] The address decoder 130 is connected to the memory cell array 110 through the row line RL. The address decoder 130 is configured to operate in response to the control of the control logic 150. The address decoder 130 may receive the address ADDR from the control logic 150. The address decoder 130 may decode the block address among the received address ADDR. The address decoder 130 selects at least one storage block among the storage blocks BLK1 to BLKi according to the decoded block address. The address decoder 130 may decode the row address among the received address ADDR. The address decoder 130 may select at least one word line among the word lines of the selected storage block according to the decoded row address. In an embodiment, the address decoder 130 may decode the column address among the received address ADDR. The address decoder 130 may connect the input / output circuit 140 and the memory cell array 110 to each other according to the decoded column address.

[0070] For example, the address decoder 130 may include components such as a row decoder, a column decoder, and an address buffer.

[0071] The input / output circuit 140 may include a plurality of page buffers. The plurality of page buffers may be connected to the memory cell array 110 through bit lines. During a program operation, data may be stored in a selected memory cell according to data stored in the plurality of page buffers.

[0072] During a read operation, data stored in a selected memory cell may be sensed through a bit line, and the sensed data may be stored in a page buffer.

[0073] The control logic 150 may control the address decoder 130, the voltage generator 120, and the input / output circuit 140. The control logic 150 may operate in response to a command CMD sent from an external device. The control logic 150 may generate a control signal in response to the command CMD and the address ADDR to control the peripheral circuit. In an embodiment, the control logic 150 may include a refresh operation controller 160.

[0074] Figure 3 It is shown Figure 2 A diagram of the configuration of any one of the storage blocks.

[0075] The storage block BLKi is Figure 2 Any memory block BLKi among the memory blocks BLK1 to BLKi.

[0076] Reference Figure 3 , a plurality of word lines arranged in parallel to each other may be connected between a first selection line and a second selection line. Here, the first selection line may be a source selection line SSL, and the second selection line may be a drain selection line DSL. More specifically, the memory block BLKi may include a plurality of strings ST connected between the bit lines BL1 to BLn and the source line SL. The bit lines BL1 to BLn may be connected to the strings ST, respectively, and the source line SL may be connected to the strings ST in common. Since the strings ST may be configured to be identical to each other, as an example, the string ST connected to the first bit line BL1 is specifically described.

[0077] The string ST may include a source selection transistor SST, a plurality of memory cells MC1 to MC16, and a drain selection transistor DST connected in series between a source line SL and a first bit line BL1. One string ST may include at least one or more of the source selection transistor SST and the drain selection transistor DST, and may include memory cells MC1 to MC16 (exceeding the number shown in the figure).

[0078] The source of the source select transistor SST may be connected to the source line SL, and the drain of the drain select transistor DST may be connected to the first bit line BL1. The memory cells MC1 to MC16 may be connected in series between the source select transistor SST and the drain select transistor DST. The gates of the source select transistors SST included in different strings ST may be connected to the source select line SSL, the gates of the drain select transistors DST may be connected to the drain select line DSL, and the gates of the memory cells MC1 to MC16 may be connected to a plurality of word lines WL1 to WL16. A group of memory cells connected to the same word line among the memory cells included in different strings ST may be referred to as a page PG. Therefore, the memory block BLKi may include a page PG of the number of word lines WL1 to WL16.

[0079] One memory cell can store one bit of data. This is generally referred to as a single-level cell (SLC). In this case, one physical page PG can store one logical page (LPG) of data. One logical page (LPG) of data can include the same number of data bits as the number of cells included in one physical page PG.

[0080] One memory cell may store two or more bits of data. In this case, one physical page PG may store two or more logical pages (LPG) of data.

[0081] Figure 4A and Figure 4B is a diagram showing the threshold voltage distribution of SLC.

[0082] Reference Figure 4A and Figure 4B , the horizontal axis indicates the threshold voltage of the memory cell, and the vertical axis indicates the number of memory cells.

[0083] The memory device can perform a programming operation in units of word lines. A plurality of memory cells connected to one word line can configure one physical page. A physical page can be a unit of a programming operation or a read operation.

[0084] The memory device may perform a program operation to store data in memory cells connected to a selected word line among a plurality of word lines.

[0085] As a memory cell connected to the selected word line, the selected memory cell may have a Figure 4A The threshold voltage distribution corresponding to the erased state E is shown.

[0086] When the memory cell stores data corresponding to one bit, the memory cell may be programmed to have a threshold voltage corresponding to any one of the erase state E or the first program state P1.

[0087] The erase state E may correspond to data “1” and the first program state P1 may correspond to data “0”. However, the data corresponding to the first program state P1 is exemplary and the erase state E may correspond to data “0” and the first program state P1 may correspond to data “1”.

[0088] When the programming operation is completed, Figure 4B As shown, the selected memory cell may have a threshold voltage corresponding to either the erase state E or the first program state P1. Between the erase state E and the first program state P1, the memory device may read data stored in the selected memory cell by performing a read operation using a first read voltage R1.

[0089] Figure 5A and Figure 5Bis a diagram showing the threshold voltage distribution of MLC.

[0090] Reference Figure 5A and Figure 5B , the horizontal axis indicates the threshold voltage of the memory cell (V TH ), and the vertical axis indicates the number of memory cells (number of cells).

[0091] As a memory cell connected to the selected word line, the selected memory cell may have a Figure 5A The threshold voltage distribution corresponding to the erased state E is shown.

[0092] When the memory cell stores data corresponding to two bits, the memory cell may be programmed to have a threshold voltage corresponding to any one of an erase state E, a first program state P1, a second program state P2, and a third program state P3.

[0093] The erased state E may correspond to data “11”, the first program state P1 may correspond to data “10”, the second program state P2 may correspond to data “00”, and the third program state P3 may correspond to data “01”. However, the data corresponding to the respective program states are exemplary and may be modified variously.

[0094] When the programming operation is completed, Figure 5B As shown, the selected memory cell may have a threshold voltage corresponding to any one of the erase state E, the first program state P1, the second program state P2, and the third program state P3. The memory device may read data stored in the selected memory cell by performing a read operation using the first read voltage R1 to the third read voltage R3.

[0095] The first read voltage R1 may be a read voltage distinguishing between the erase state E and the first programming state P1, the second read voltage R2 may be a read voltage distinguishing between the first programming state P1 and the second programming state P2, and the third read voltage R3 may be a read voltage distinguishing between the second programming state P2 and the third programming state P3.

[0096] Fig. 6A and Figure 6B is a diagram showing threshold voltage distribution of TLC.

[0097] Reference Fig. 6A and Figure 6B , the horizontal axis indicates the threshold voltage of the memory cell, and the vertical axis indicates the number of memory cells.

[0098] As a memory cell connected to the selected word line, the selected memory cell may have a Fig. 6A The threshold voltage distribution corresponding to the erased state E is shown.

[0099] When the memory cell stores three bits of data, such as Figure 6B As shown, the memory cell can be programmed to have a threshold voltage corresponding to any one of the erase state E, the first programming state P1, the second programming state P2, the third programming state P3, the fourth programming state P4, the fifth programming state P5, the sixth programming state P6 and the seventh programming state P7.

[0100] The erased state E may correspond to data "111", the first programming state P1 may correspond to data "110", the second programming state P2 may correspond to data "101", the third programming state P3 may correspond to data "100", the fourth programming state P4 may correspond to data "011", the fifth programming state P5 may correspond to data "010", the sixth programming state P6 may correspond to data "001", and the seventh programming state P7 may correspond to data "000". However, the data corresponding to the respective programming states are exemplary and may be modified variously.

[0101] When the programming operation ends, the selected memory cell may have a threshold voltage corresponding to any one of the erase state E, the first programming state P1, the second programming state P2, the third programming state P3, the fourth programming state P4, the fifth programming state P5, the sixth programming state P6, and the seventh programming state P7. Figure 6B As shown, the memory device may read data stored in a selected memory cell by performing a read operation using the first to seventh read voltages R1 to R7.

[0102] The first read voltage R1 may be a read voltage for distinguishing between the erase state E and the first programming state P1, the second read voltage R2 may be a read voltage for distinguishing between the first programming state P1 and the second programming state P2, the third read voltage R3 may be a read voltage for distinguishing between the second programming state P2 and the third programming state P3, the fourth read voltage R4 may be a read voltage for distinguishing between the third programming state P3 and the fourth programming state P4, the fifth read voltage R5 may be a read voltage for distinguishing between the fourth programming state P4 and the fifth programming state P5, the sixth read voltage R6 may be a read voltage for distinguishing between the fifth programming state P5 and the sixth programming state P6, and the seventh read voltage R7 may be a read voltage for distinguishing between the sixth programming state P6 and the seventh programming state P7.

[0103] Fig. 7A and Figure 7B is a diagram showing threshold voltage distribution of QLC.

[0104] Reference Fig. 7A and Figure 7B , the horizontal axis indicates the threshold voltage of the memory cell, and the vertical axis indicates the number of memory cells.

[0105] As a memory cell connected to the selected word line, the selected memory cell may have a Fig. 7A The threshold voltage distribution corresponding to the erased state E is shown.

[0106] When a memory cell stores data corresponding to four bits, such as Figure 7B As shown, the memory cell may be programmed to have a threshold voltage corresponding to the erase state E and any one of the first to fifteenth program states P1 to P15.

[0107] The erased state E may correspond to data "1111", the first programming state P1 may correspond to data "1110", the second programming state P2 may correspond to data "1101", the third programming state P3 may correspond to data "1100", the fourth programming state P4 may correspond to data "1011", the fifth programming state P5 may correspond to data "1010", the sixth programming state P6 may correspond to data "1001", and the seventh programming state P7 may correspond to data "1000". In addition, the eighth programming state P8 may correspond to data "0111", the ninth programming state P9 may correspond to data "0110", the tenth programming state P10 may correspond to data "0101", the eleventh programming state P11 may correspond to data "0100", the twelfth programming state P12 may correspond to data "0011", the thirteenth programming state P13 may correspond to data "0010", the fourteenth programming state P14 may correspond to data "0001", and the fifteenth programming state P15 may correspond to data "0000". However, data corresponding to each programming state is exemplary and may be variously modified.

[0108] When the programming operation is completed, Figure 7B As shown, the selected memory cell may have a threshold voltage corresponding to any one of the erase state E and the first to fifteenth program states P1 to P15. The memory device may read data stored in the selected memory cell by performing a read operation using the first to fifteenth read voltages R1 to R15.

[0109] The first read voltage R1 may be a read voltage for distinguishing between the erase state E and the first programming state P1, the second read voltage R2 may be a read voltage for distinguishing between the first programming state P1 and the second programming state P2, the third read voltage R3 may be a read voltage for distinguishing between the second programming state P2 and the third programming state P3, the fourth read voltage R4 may be a read voltage for distinguishing between the third programming state P3 and the fourth programming state P4, the fifth read voltage R5 may be a read voltage for distinguishing between the fourth programming state P4 and the fifth programming state P5, the sixth read voltage R6 may be a read voltage for distinguishing between the fifth programming state P5 and the sixth programming state P6, the seventh read voltage R7 may be a read voltage for distinguishing between the sixth programming state P6 and the seventh programming state P7, the eighth read voltage R8 may be a read voltage for distinguishing between the seventh programming state P7 and the eighth programming state P8. voltage, the ninth read voltage R9 may be a read voltage for distinguishing between the eighth programming state P8 and the ninth programming state P9, the tenth read voltage R10 may be a read voltage for distinguishing between the ninth programming state P9 and the tenth programming state P10, the eleventh read voltage R11 may be a read voltage for distinguishing between the tenth programming state P10 and the eleventh programming state P11, the twelfth read voltage R12 may be a read voltage for distinguishing between the eleventh programming state P11 and the twelfth programming state P12, the thirteenth read voltage R13 may be a read voltage for distinguishing between the twelfth programming state P12 and the thirteenth programming state P13, the fourteenth read voltage R14 may be a read voltage for distinguishing between the thirteenth programming state P13 and the fourteenth programming state P14, and the fifteenth read voltage R15 may be a read voltage for distinguishing between the fourteenth programming state P14 and the fifteenth programming state P15.

[0110] Figure 8 is a diagram illustrating a programming operation.

[0111] exist Figure 8 In the embodiment, for convenience of description, it is assumed that each of the plurality of memory cells is an MLC storing 2-bit data. However, the scope of the present disclosure is not limited thereto, and each of the plurality of memory cells may be a TLC storing 3-bit data or a QLC storing 4-bit data.

[0112] The program operation of the memory device 100 may include a plurality of program loops PL1 to PLn. That is, the memory device 100 may perform programming by executing the plurality of program loops PL1 to PLn so that the selected memory cells have a threshold voltage corresponding to any one of the plurality of program states P1, P2, and P3.

[0113] Each of the plurality of program loops PL1 to PLn may include a program voltage applying step PGMStep of applying a program voltage and a verification step Verify Step of determining whether a memory cell is programmed by applying a verification voltage.

[0114] For example, when the first programming loop PL1 is executed, the first verification voltage Vvfy1 to the third verification voltage Vvfy3 are sequentially applied after the first programming pulse Vpgm1 is applied to verify the programming states of the plurality of memory cells. At this time, the memory cells whose target programming states are the first programming state P1 can be verified by the first verification voltage Vvfy1, the memory cells whose target programming states are the second programming state P2 can be verified by the second verification voltage Vvfy2, and the memory cells whose target programming states are the third programming state P3 can be verified by the third verification voltage Vvfy3.

[0115] The memory cells verified by the verification voltages Vvfy1 to Vvfy3 may be determined to have a target program state and may then be program-inhibited in the second programming loop PL2. In the second programming loop PL2, a second programming pulse Vpgm2 higher by a unit voltage ΔVpgm than the first programming pulse Vpgm1 is applied to program the remaining memory cells except the program-inhibited memory cells. Thereafter, the verification operation is performed identically to the verification operation of the first programming loop PL1. For example, verification passing indicates that the memory cell is read as a cut-off cell by the corresponding verification voltage.

[0116] As described above, when the memory device 100 programs the MLC storing 2 bits, the memory device 100 verifies the memory cells whose program states have the target program state using the first to third verification voltages Vvfy1 to Vvfy3 , respectively.

[0117] During a verification operation, a verification voltage may be applied to a selected word line to which a selected memory cell is connected, and the page buffer may determine whether verification of the memory cell passes based on a current or voltage flowing through bit lines respectively connected to the selected memory cell.

[0118] Fig. 9A and Fig. 9B is a graph showing a change in threshold voltage of a memory cell due to retention.

[0119] Hereinafter, for the convenience of description, it is assumed that each memory cell included in the memory device 100 is programmed as a TLC capable of storing three-bit data. However, this is for the convenience of description and does not limit the content of the present disclosure.

[0120] Fig. 9A The threshold voltage distribution of the memory cells immediately after the programming operation is completed (ie, the initial distribution) is shown.

[0121] As reference Figure 1As described above, the memory controller 200 converts the write data into the program data. At this time, the data may be converted so that the number of memory cells storing each state is equal.

[0122] Assuming that the number of memory cells included in one page is 800, the number of memory cells programmed into the erase state E and the first to seventh program states P1 to P7, respectively, may be 100.

[0123] After the programming operation is completed, when the programmed memory cell is left for a predetermined time, charges may leak from the charge trapping layer of the memory cell to the channel region of the memory cell string. As a result, it may occur that the threshold voltage of the memory cell is lower than Fig. 9A The word "predetermined" as used herein with respect to a parameter (e.g., a predetermined time, a predetermined level, or a predetermined sampling step voltage) means that the value of the parameter is determined before the parameter is used in a process or algorithm. For some embodiments, the value of the parameter is determined before the process or algorithm begins. In other embodiments, the value of the parameter is determined during the process or algorithm but before the parameter is used in the process or algorithm.

[0124] Fig. 9B 2 shows the threshold voltage change of the memory cell which is left for a predetermined time after the programming operation is completed. Fig. 9B , the threshold voltages of memory cells programmed to the erased state E and the first programming state P1 to the seventh programming state P7, respectively, are generally reduced. In a higher programming state, the degree of reduction in the threshold voltage may be more severe. For example, the degree of reduction in the threshold voltage of the memory cells of the fourth programming state P4 to the seventh programming state P7 may be greater than the degree of reduction in the threshold voltage of the memory cells of the first programming state P1 to the third programming state P3. This is because the higher the programming state, the more charge is included in the charge trapping layer, and therefore the amount of charge leaked is also greater.

[0125] Therefore, the memory cell of the seventh programming state P7, which is the highest programming state, may be most affected by the retention phenomenon as described above. Fig. 9A In the initial distribution of , the number of memory cells programmed to the erased state E and the first to seventh programmed states P1 to P7 is 100, but after being left for a predetermined time (eg Fig. 9B As shown in FIG. 1 , the threshold voltage of the memory cell in the seventh programming state P7 may be reduced enough to have a threshold voltage lower than the seventh read voltage R7. Therefore, the number of memory cells having a threshold voltage between the sixth read voltage R6 and the seventh read voltage R7 may increase, and the number of memory cells having a threshold voltage higher than the seventh read voltage R7 may decrease.

[0126] As the number of memory cells having a threshold voltage higher than the seventh read voltage R7 decreases more, the retention phenomenon occurs more seriously. Therefore, the memory device 100 may determine whether to perform a refresh program operation based on the number of memory cells having a threshold voltage higher than the seventh read voltage R7.

[0127] For example, the memory device 100 may perform a read operation using the seventh read voltage R7 and count the number of off cells having a threshold voltage higher than the seventh read voltage R7. Specifically, the memory device 100 may count the number of bits having a reference logic value (e.g., "0") in the data obtained by the read operation using the seventh read voltage R7. Here, the seventh read voltage R7 may be a test read voltage.

[0128] The memory device 100 may perform a read operation using the seventh read voltage R7 and determine whether the number of off cells having a threshold voltage higher than the seventh read voltage R7 is less than a first reference number. The first reference number may be a reference for determining whether to perform a refresh program operation. The first reference number may be a value determined experimentally during a test of the memory device 100.

[0129] exist Fig. 9A and Fig. 9B Assuming that the first reference number is 80, since the number of memory cells having a threshold voltage higher than the seventh read voltage R7 is 79, execution of a refresh program operation may be triggered.

[0130] Fig.10 is a diagram showing a sampling read operation.

[0131] Fig.11 is a diagram showing a method of generating refresh data using sampled read data.

[0132] Reference Fig.10 and Fig.11 , Fig.10 is only shown in Fig. 9B A graph of threshold voltage distributions corresponding to the sixth programmed state P6 and the seventh programmed state P7 is shown.

[0133] Since the number of reference logic values ​​(e.g., "0") included in the data read using the seventh read voltage R7 is less than the first reference number (e.g., 80), the memory device 100 may perform a refresh programming operation. The target of the refresh programming operation may be a memory cell whose threshold voltage is reduced by a predetermined level or more. The memory device 100 may perform at least one sampling read operation to determine a memory cell that becomes the target of the refresh programming operation.

[0134] Specifically, Fig.10Memory cells included in the shaded area in are memory cells whose threshold voltage needs to be increased, that is, are targets of a refresh program operation. Data indicating memory cells included in the shaded area may be refresh data.

[0135] The memory device 100 may first read a memory cell using a first sampled read voltage Vs1 (a read voltage obtained by reducing a sampling step voltage Vstep(sampling) from a seventh read voltage R7 ).

[0136] As data read using the first sampling read voltage Vs1, the number of off cells included in the first sampling data Sampling DATA1 may be the sum of the number of off cells sensed using the seventh read voltage R7 as the test read voltage and the number of memory cells included in the first region ①.

[0137] The memory device 100 may determine whether the number of reference logic values ​​(e.g., "0") included in the first sampling data Sampling DATA1 (data read using the first sampling read voltage Vs1) exceeds the second reference number. Here, the second reference number may be the same as the first reference number used to determine the execution of the refresh programming operation, or may be a value greater than the first reference number. In an embodiment, the second reference number may be greater than the first reference number, and may be less than a value obtained by dividing the number of memory cells included in one page by the number of states. Fig.10 In the implementation manner, it is assumed that the second reference number is 95.

[0138] When the number of reference logic values ​​(eg, “0”) included in the first sampling data Sampling DATA1 exceeds a second reference number, the memory device 100 may complete the sampling read operation and generate refresh data using the sampling data and the test data.

[0139] Fig.11 It is shown that the Fig. 9A and Fig. 9B as well as Fig.10 A diagram of the data of some memory cells in the page shown.

[0140] Reference Fig.11 In the test data read using the seventh read voltage R7, the first memory cell MC1, the third memory cell MC3, the sixth memory cell MC6, the seventh memory cell MC7 and the ninth memory cell MC9 can be read as the cut-off cell "0", and the second memory cell MC2, the fourth memory cell MC4, the fifth memory cell MC5 and the eighth memory cell MC8 can be read as the turn-on cell "1".

[0141] Referring to the first sampling data Sampling DATA1 read using the first sampling read voltage Vs1, the fourth memory cell MC4 read as a turn-on cell "1" in the test data may be read as a turn-off cell "0". Therefore, the threshold voltage of the fourth memory cell MC4 may be included in Fig.10 In the first area①.

[0142] Assuming that the number of reference logic values ​​(eg, “0”) included in the first sampling data Sampling DATA1 is equal to or less than the second reference number, the memory device 100 may perform an additional sampling read operation using the second sampling read voltage Vs2 .

[0143] The second sampled read voltage Vs2 may be a read voltage smaller than the first sampled read voltage Vs1 by a sampling step voltage Vstep(sampling).

[0144] The number of cut-off cells included in the second sampling data Sampling DATA2 (data read using the second sampling read voltage Vs2) may be the number of the sum of the number of cut-off cells sensed using the seventh read voltage R7 as a test read voltage, the number of memory cells included in the first region ①, and the number of memory cells included in the second region ②.

[0145] The memory device 100 may determine whether the number of reference logic values ​​(eg, “0”) included in the second sampling data Sampling DATA2 (data read using the second sampling read voltage Vs2 ) exceeds a second reference number.

[0146] The fifth memory cell MC5 and the eighth memory cell MC8 read as the on cell (“1”) in the test data and the first sampling data Sampling DATA1 are read as the off cell (“0”) in the second sampling data Sampling DATA2, and the fifth memory cell MC5 and the eighth memory cell MC8 may be included in Fig.10 In the second area ②.

[0147] Assuming that the number of reference logic values ​​(eg, “0”) included in the second sampling data Sampling DATA2 is equal to or less than the second reference number, the memory device 100 may perform an additional sampling read operation using the third sampling read voltage Vs3 .

[0148] The third sampled read voltage Vs3 may be a read voltage that is smaller than the second sampled read voltage Vs2 by a sampling step voltage Vstep(sampling).

[0149] The number of cut-off cells included in the third sampling data Sampling DATA3 (data read using the third sampling read voltage Vs3) is the number of the sum of the number of cut-off cells sensed using the seventh read voltage R7 as the test read voltage, the number of memory cells included in the first area ①, the number of memory cells included in the second area ②, and the number of memory cells included in the third area ③.

[0150] The second memory cell MC2 read as a turn-on cell ("1") in the test data, the first sampling data Sampling DATA1 and the second sampling data Sampling DATA2 is read as a turn-off cell ("0") in the third sampling data Sampling DATA3, and the second memory cell MC2 may be included in Fig.10 In the third area③.

[0151] Assuming that the number of reference logic values ​​(e.g., “0”) included in the third sampling data Sampling DATA3 (data read using the third sampling read voltage Vs3) exceeds the second reference number, the memory device 100 can use the sampling data and the test data to generate refresh data, which is data indicating the memory cells on which the refresh programming operation is to be performed.

[0152] The memory cell on which the refresh programming operation is to be performed may be a memory cell that is read as a turn-on cell ("1") in the test read operation and then read as a turn-off cell ("0") in the sampling read operation. That is, the memory cell on which the refresh programming operation is to be performed may be a memory cell in which the value of the test data and the value of the sampling data are changed.

[0153] The memory device 100 may generate refresh data Refresh DATA by performing an exclusive OR (XOR) operation on the test data and the sampling data. When performing the sampling read operation two or more times, the memory device 100 may generate refresh data Refresh DATA by cumulatively performing an XOR operation on the test data and a plurality of sampling data.

[0154] exist Fig.11 , when an XOR operation is cumulatively performed on the test data Test DATA and the first to third sampling data Sampling DATA1 to Sampling DATA3, a target cell of the refresh program operation may be indicated by a logic value '1', and a cell that is not a target of the refresh program operation may be indicated by a logic value '0'.

[0155] Alternatively, in various embodiments, when the sampling read operation is performed two or more times, the memory device 100 may generate the refresh data Refresh DATA by performing an XOR operation on the test data and the last performed sampling data.

[0156] exist Fig.11 , when an XOR operation is performed on the test data Test DATA and the third sampling data Sampling DATA3, a target cell of the refresh program operation may be indicated by a logic value '1', and a cell that is not a target of the refresh program operation may be indicated by a logic value '0'.

[0157] Fig.12 It is shown Figure 1 Diagram of the structure of a refresh action controller.

[0158] Reference Fig.12 The refresh operation controller 160 may include a refresh command input circuit 161 , a test read operation controller 162 , a reference cell count information storage section 163 , a refresh data determiner 164 , and a refresh program operation controller 165 .

[0159] The refresh command input circuit 161 can receive a refresh command Refresh CMD. The refresh command Refresh CMD can be obtained from the reference Figure 1 The storage controller 200 described provides.

[0160] The refresh command input circuit 161 may generate a test read operation start signal Test Read Operation Trigger indicating the start of a test read operation in response to the refresh command Refresh CMD. The generated test read operation start signal Test Read Operation Trigger may be provided to the test read operation controller 162.

[0161] The test read operation controller 162 may perform a test read operation in response to a test read operation start signal Test Read Operation Trigger, and output a refresh operation start signal Refresh Operation Trigger instructing to perform a refresh operation based on an execution result of the test read operation.

[0162] Specifically, the test read operation controller 162 can control the reference Figure 2The voltage generator 120, the address decoder 130, and the input / output circuit 140 described above perform a test read operation of reading memory cells included in a page corresponding to a refresh address using a test read voltage. According to the test read operation, test data Test DATA, which is data obtained by reading the memory cells, may be stored in a page buffer included in the input / output circuit 140. The test read operation controller 162 may obtain the test data Test DATA from the page buffer.

[0163] The test read voltage may be some read voltages among the default read voltages that are basically set for the memory device 100. The test read voltage may be a read voltage for distinguishing between the highest programming state and the programming state adjacent to the highest programming state among the plurality of default read voltages. For example, in the case of TLC, the seventh read voltage R7 may be the test read voltage, and in the case of QLC, the fifteenth read voltage R15 may be the test read voltage.

[0164] The test read operation controller 162 may compare the reference number with the number of reference logic values ​​(e.g., “0”) included in the test data Test DATA based on the reference cell count information Ref cell Count Info stored in the reference cell count information storage unit 163. Specifically, the reference number compared with the number of reference logic values ​​(e.g., “0”) included in the test data Test DATA may be a first reference number. The first reference number may be a value smaller than a value obtained by dividing the number of memory cells configuring one page by the number of states of the memory cells after the program operation is completed.

[0165] When the number of reference logic values ​​(e.g., “0”) included in the test data Test DATA is less than a first reference number, the test read operation controller 162 may output a refresh operation start signal Refresh Operation Trigger, and when the number of reference logic values ​​(e.g., “0”) included in the test data Test DATA is equal to or greater than the first reference number, the test read operation controller 162 may not output the refresh operation start signal Refresh Operation Trigger.

[0166] The reference cell count information storage unit 163 may store reference cell count information Ref cell count info. The reference cell count information Ref cell count info may include a first reference number compared with the number of reference logic values ​​(e.g., “0”) included in the test data Test DATA and a second reference number compared with the number of reference logic values ​​(e.g., “0”) included in the sampling data Sampling DATA.

[0167] In an embodiment, the first reference number may be less than a value obtained by dividing the number of memory cells configuring one page by the number of states of the memory cells after the programming operation is completed. The second reference number may be a value greater than the first reference number. The second reference number may be greater than the first reference number and may be less than a value obtained by dividing the number of memory cells configuring one page by the number of states of the memory cells after the programming operation is completed. In various embodiments, the first reference number and the second reference number may be the same. Alternatively, the first reference number and the second reference number may be the same as a value obtained by dividing the number of memory cells configuring one page by the number of states of the memory cells after the programming operation is completed.

[0168] The refresh data determiner 164 may determine the refresh data Refresh DATA in response to the refresh operation start signal Refresh Operation Trigger. The refresh data Refresh DATA may be data identifying a memory cell on which a refresh programming operation is to be performed. That is, the refresh data Refresh DATA may be data identifying a memory cell whose threshold voltage is reduced by a predetermined level or more due to retention. Specifically, the refresh data Refresh DATA may be data indicating a memory cell that is read as a turn-on cell in a test read operation and then read as a turn-off cell in a sampling read operation.

[0169] The refresh data determiner 164 may control the voltage generator 120, the address decoder 130, and the input / output circuit 140 to perform a sampling read operation Sampling Read Operation. The sampling read operation Sampling Read Operation may be an operation of reading a memory cell included in a page corresponding to a refresh address using a sampling read voltage. The sampling read voltage may be a voltage lower than the test read voltage by a predetermined sampling step voltage. The refresh data determiner 164 may obtain sampling data Sampling DATA as a result of the execution of the sampling read operation Sampling Read Operation.

[0170] The refresh data determiner 164 may use the reference cell count information Ref cell Count Info to determine whether to end the sampling read operation or perform the additional sampling read operation. When the number of reference logic values ​​(e.g., "0") included in the sampling data Sampling DATA exceeds the second reference number, the refresh data determiner 164 may end the sampling read operation Sampling Read Operation and generate the refresh data Refresh DATA. When the number of reference logic values ​​(e.g., "0") included in the sampling data Sampling DATA is equal to or less than the second reference number, the refresh data determiner 164 may additionally perform the sampling read operation Sampling Read Operation. At this time, the additional sampling read voltage applied may be a voltage lower than the previously applied sampling read voltage by a sampling step voltage. The refresh data determiner 164 may repeatedly perform the sampling read operation Sampling Read Operation while reducing the sampling read voltage by the sampling step voltage until the number of reference logic values ​​(e.g., "0") included in the sampling data Sampling DATA exceeds the second reference number.

[0171] When the number of reference logic values ​​(e.g., "0") included in the sampling data Sampling DATA exceeds the second reference number, the refresh data determiner 164 may generate the refresh data Refresh DATA by performing an XOR operation on the test data Test DATA and the sampling data Sampling DATA. When the sampling read operation Sampling Read Operation is performed two or more times, the refresh data Refresh DATA may be obtained by cumulatively performing an XOR operation on the obtained sampling data Sampling DATA or performing an XOR operation on the last obtained sampling data Sampling DATA and the test data Test DATA.

[0172] The refresh data determiner 164 may provide the determined refresh data Refresh DATA to the refresh program operation controller 165 .

[0173] The refresh program operation controller 165 may control the voltage generator 120, the address decoder 130, and the input / output circuit 140 to perform a refresh program operation Refresh PGM Operation. During the refresh program operation Refresh PGM Operation, a refresh program voltage may be applied to a memory cell selected by a refresh address. The refresh program voltage may be a program voltage corresponding to a highest program state among a plurality of program states. Alternatively, the refresh program voltage may be a voltage greater than the program voltage corresponding to the highest program state by a magnitude of a sampling step voltage. When determining the refresh data Refresh DATA, when performing the sampling read operation Sampling Read Operation two or more times, the refresh program voltage may be a voltage greater than the program voltage corresponding to the highest program state by a magnitude obtained by multiplying the number of times the sampling read operation Sampling Read Operation is performed by the sampling step voltage.

[0174] When the refresh program voltage is applied, a program enable voltage may be applied to a bit line to which a memory cell targeted for a refresh program operation is connected according to refresh data Refresh DATA, and a program inhibit voltage may be applied to bit lines to which remaining memory cells are connected.

[0175] The refresh program operation Refresh PGM Operation may include a verification operation corresponding to the highest program state.

[0176] Fig.13 is a flowchart illustrating an operating method of a memory device according to an embodiment of the present disclosure.

[0177] Reference Fig.13 , in step S1301, the memory device may receive a refresh command from the memory controller.

[0178] In step S1303, the memory device may perform a test read operation. The test read operation may be a read operation using a test read voltage. The test read voltage may be some read voltages among the default read voltages.

[0179] In step S1305, the memory device may determine whether the number of memory cells read as off cells by the test read operation is less than a first reference number. When the number of memory cells read as off cells by the test read operation is less than the first reference number, the operation may proceed to step S1307 to perform a refresh programming operation, and when the number of memory cells read as off cells by the test read operation is equal to or greater than the first reference number, the operation may end.

[0180] Fig.14is a flowchart illustrating an operating method of a memory device according to an embodiment of the present disclosure.

[0181] Fig.14 The operations shown are described in more detail with reference to Fig.13 The refresh programming operation of step S1307 is described.

[0182] In step S1401, the memory device may read the memory cells using a sampled read voltage. The sampled read voltage may be a voltage lower than the test read voltage by a predetermined sampled step voltage.

[0183] In step S1403, the memory device may determine whether the number of memory cells read as off cells as a result of reading using the sampled read voltage exceeds a second reference number. When the number of memory cells read as off cells as a result of reading using the sampled read voltage exceeds the second reference number, the operation proceeds to step S1407, and when the number of memory cells read as off cells as a result of reading using the sampled read voltage does not exceed the second reference number, the operation proceeds to step S1405.

[0184] In step S1405, the memory device may reduce the sampled read voltage by the sampled step voltage. Thereafter, the memory device may return to step S1401 and perform a read operation again using the changed sampled read voltage.

[0185] In step S1407, the memory device may generate refresh data using the sampled data and the test data. Specifically, the refresh data may be data obtained by performing an XOR operation on the sampled data and the test data. When step S1401 is performed two or more times, the refresh data may be data obtained by performing an XOR operation on all the sampled data and the test data. Alternatively, the refresh data may be data obtained by performing an XOR operation on the test data and the sampled data of the last sampled read operation performed.

[0186] In step S1409 , the memory device may apply a refresh program voltage to memory cells on which a refresh program operation is to be performed according to refresh data.

[0187] In this specification, for the convenience of description, the refresh programming operation is performed only on the memory cell corresponding to the highest programming state, but according to the embodiment of the present disclosure, the refresh programming operation can be performed on multiple programming states. In this case, the refresh data corresponding to each programming state can be based on the reference FIG. 9A to FIG. 11 The method described above can generate and perform a refresh programming operation using the generated refresh data.

[0188] Fig.15is a diagram illustrating a method of determining a program state in which a refresh program operation is to be performed according to an embodiment of the present disclosure.

[0189] exist Fig.15 In the embodiment, it is assumed that the memory cells are programmed as MLCs storing two bits of data per memory cell. The number of target program states as program states for which a refresh program operation is to be performed may be multiple. That is, a refresh program operation may also be performed for program states other than the highest program state.

[0190] The memory device may determine a target program state in which a test read operation is to be performed according to the length of a retention time tret, which is a time placed from when a program operation storing data in a memory cell is completed to when a refresh command is input.

[0191] As reference Fig. 9A and Fig. 9B As described above, as the retention phenomenon of the programming state becomes higher, the reduction amount of the threshold voltage can be greater. In addition, as the retention time tret, which is the placement time, increases, the reduction amount of the threshold voltage can be further increased. Therefore, when the retention time tret is very long, performing a refresh programming operation only for the highest programming state may not prevent the occurrence of a read failure.

[0192] Therefore, the memory device according to the embodiment of the present disclosure can increase the number of programming states for which a refresh programming operation is to be performed as the retention time tret increases. As the retention time tret increases, the memory device can include programming states for which a refresh programming operation is to be performed in an order from programming states corresponding to relatively high threshold voltages to programming states corresponding to relatively low threshold voltages.

[0193] For example, when the retention time tret is equal to or less than tm1, the memory device may not perform a test read operation. When the retention time tret exceeds tm1 and is equal to or less than tm2, the memory device may perform a test read operation for the third programming state P3 to determine whether to perform a refresh programming operation. When the retention time tret exceeds tm2 and is less than tm3, the memory device may perform a test read operation for the second programming state P2 and the third programming state P3 to determine whether to perform a refresh programming operation. That is, the memory device may perform steps S1303 to S1307 for the third programming state P3 as the highest programming state. Thereafter, steps S1303 to S1307 may be performed for the second programming state P2. In an embodiment, the memory device may generate refresh data for each of the second programming state P2 and the third programming state P3, and then simultaneously perform an operation of applying a refresh programming voltage. When the retention time tret exceeds tm3, the memory device may perform a test read operation for each of the first programming state P1 to the third programming state P3 to determine whether to perform a refresh programming operation. In an embodiment, tm1, tm2, and tm3 represent durations of the retention time tret, whereby the durations tm1, tm2, and tm3 are natural numbers greater than zero, tm1 is smaller than tm2, and tm2 is smaller than tm3.

[0194] Fig.16 is a diagram illustrating a method of determining a program state in which a refresh program operation is to be performed according to an embodiment of the present disclosure.

[0195] exist Fig.16 In the embodiment, it is assumed that the memory cells are programmed as TLC in which each memory cell stores three bits of data.

[0196] The memory device according to an embodiment of the present disclosure may increase the number of program states for which a refresh program operation is to be performed as the retention time tret increases. As the retention time tret increases, the memory device may include program states for which a refresh program operation is to be performed in an order from a program state corresponding to a relatively high threshold voltage to a program state corresponding to a relatively low threshold voltage.

[0197] When the retention time tret is equal to or less than tc1, the memory device may not perform a test read operation. When the retention time tret exceeds tc1 and is equal to or less than tc2, the memory device may perform a test read operation for the seventh programming state P7 to determine whether to perform a refresh programming operation. When the retention time tret exceeds tc2 and is less than tc3, the memory device may perform a test read operation for the sixth programming state P6 and the seventh programming state P7 to determine whether to perform a refresh programming operation.

[0198] In an embodiment, the memory device may generate refresh data for each of the sixth programming state P6 and the seventh programming state P7, and then simultaneously perform an operation of applying a refresh programming voltage. According to the above method, the memory device may be included in the sixth programming state P6 and the seventh programming state P7 according to the retention time tret. Fig.16 The first programming state P1 to the seventh programming state P7 are sequentially determined as the target of the refresh programming operation to be performed from the seventh programming state P7 to the first programming state P1. In an embodiment, tc1, tc2, tc3, tc4, tc5, tc6 and tc7 represent the duration of the retention time tret, whereby the durations tc1, tc2, tc3, tc4, tc5, tc6 and tc7 are natural numbers greater than zero, and tc1 is less than tc2, tc2 is less than tc3, tc3 is less than tc4, tc4 is less than tc5, tc5 is less than tc6, and tc6 is less than tc7.

[0199] Fig.17 is a diagram illustrating a method of determining a program state in which a refresh program operation is to be performed according to an embodiment of the present disclosure.

[0200] exist Fig.17 In the embodiment, it is assumed that the memory cells are programmed as QLC in which each memory cell stores four bits of data.

[0201] The memory device according to an embodiment of the present disclosure may increase the number of program states for which a refresh program operation is to be performed as the retention time tret increases. As the retention time tret increases, the memory device may include program states for which a refresh program operation is to be performed in an order from a program state corresponding to a relatively high threshold voltage to a program state corresponding to a relatively low threshold voltage.

[0202] When the retention time tret is equal to or less than tq1, the memory device may not perform a test read operation. When the retention time tret exceeds tq1 and is equal to or less than tq2, the memory device may perform a test read operation for the fifteenth programming state P15 to determine whether to perform a refresh programming operation. When the retention time tret exceeds tq2 and is less than tq3, the memory device may perform a test read operation for the fourteenth programming state P14 and the fifteenth programming state P15 to determine whether to perform a refresh programming operation.

[0203] In an embodiment, the memory device may generate refresh data for each of the fourteenth program state P14 and the fifteenth program state P15, and then simultaneously perform an operation of applying a refresh programming voltage. According to the above method, the memory device may be included in the fourteenth program state P14 and the fifteenth program state P15 according to the retention time tret. Fig.17The first programming state P1 to the fifteenth programming state P15 are sequentially determined as the target of the refresh program operation to be performed from the fifteenth programming state P15 to the first programming state P1. In an embodiment, tq1, tq2, tq3, tq4, tq5, tq6, tq7, tq8, tq9, tq10, tq11, tq12, tq13, tq14 and tq15 represent the duration of the retention time tret, whereby the durations tq1, tq2, tq3, tq4, tq5, tq6, tq7, tq8, tq9, tq10, tq11, tq12, tq13, tq14 and tq15 represent the duration of the retention time tret, whereby the durations tq1, tq2, tq3, tq4, tq5, tq6, tq7, tq8, tq9, tq10, tq11, tq12, tq13, tq1 4 and tq15 are natural numbers greater than zero, and tq1 is less than tq2, tq2 is less than tq3, tq3 is less than tq4, tq4 is less than tq5, tq5 is less than tq6, tq6 is less than tq7, tq7 is less than tq8, tq8 is less than tq9, tq9 is less than tq10, tq10 is less than tq11, tq11 is less than tq12, tq12 is less than tq13, tq13 is less than tq14, and tq14 is less than tq15.

[0204] Fig.18 It is shown Figure 1 FIG. 1 is a diagram of another embodiment of a storage controller.

[0205] Reference Fig.18 , the storage controller 1400 may include a processor 1410 , a RAM 1420 , an ECC circuit 1430 , a host interface 1440 , a ROM 1450 , and a flash memory interface 1460 .

[0206] The processor 1410 may control the overall operation of the memory controller 1400. The RAM 1420 may be used as a buffer memory, a cache memory, an operation memory, etc. of the memory controller 1400.

[0207] The ROM 1450 may store various information necessary for the storage controller 1400 to operate in the form of firmware.

[0208] The memory controller 1400 may communicate with an external device (eg, the host 400 , an application processor, etc.) through the host interface 1440 .

[0209] The memory controller 1400 may communicate with the memory device 100 through the flash interface 1460. The memory controller 1400 may send commands CMD, addresses ADDR, control signals CTRL, etc. to the memory device 100 and receive data DATA through the flash interface 1460. For example, the flash interface 1460 may include a NAND interface.

[0210] Fig.19 is a block diagram illustrating a memory card system to which a storage device according to an embodiment of the present disclosure is applied.

[0211] Reference Fig.19 , the memory card system 2000 includes a memory controller 2100 , a memory device 2200 , and a connector 2300 .

[0212] The storage controller 2100 is connected to the memory device 2200. The storage controller 2100 is configured to access the memory device 2200. For example, the storage controller 2100 may be configured to control a read operation, a program operation, an erase operation, and a background operation of the memory device 2200. The storage controller 2100 is configured to provide an interface between the memory device 2200 and a host. The storage controller 2100 is configured to drive firmware for controlling the memory device 2200. The storage controller 2100 may be connected to a memory device 2200. Figure 1 The described storage controller 200 is implemented identically.

[0213] For example, the memory controller 2100 may include components such as a random access memory (RAM), a processor, a host interface, a memory interface, and an error corrector.

[0214] The storage controller 2100 can communicate with an external device through the connector 2300. The storage controller 2100 can communicate with an external device (e.g., a host) according to a specific communication standard. For example, the storage controller 2100 is configured to communicate with an external device through at least one of various communication standards such as a universal serial bus (USB), a multimedia card (MMC), an embedded MMC (eMMC), a peripheral component interconnect (PCI), a high-speed PCI (PCI-E), an advanced technology attachment (ATA), a serial ATA, a parallel ATA, a small computer system interface (SCSI), an enhanced small disk interface (ESDI), an integrated drive electronics (IDE), FireWire, a universal flash memory (UFS), Wi-Fi, Bluetooth, and NVMe. For example, the connector 2300 may be defined by at least one of the various communication standards mentioned above.

[0215] For example, the memory device 2200 may be configured by various nonvolatile memory elements such as electrically erasable programmable ROM (EEPROM), NAND flash memory, NOR flash memory, phase change RAM (PRAM), resistive RAM (ReRAM), ferroelectric RAM (FRAM), and spin-transfer torque magnetic RAM (STT-MRAM).

[0216] The storage controller 2100 and the memory device 2200 may be integrated into one semiconductor device to configure a memory card. For example, the storage controller 2100 and the memory device 2200 may be integrated into one semiconductor device to configure a memory card such as a PC card (Personal Computer Memory Card International Association (PCMCIA)), a Compact Flash card (CF), a Smart Media Card (SM or SMC), a Memory Stick, a Multimedia Card (MMC, RS-MMC, MMCmicro or eMMC), an SD card (SD, miniSD, microSD or SDHC), and a Universal Flash Storage (UFS).

[0217] Fig. 20 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present disclosure is applied.

[0218] Reference Fig. 20 , the SSD system 3000 includes a host 3100 and an SSD 3200. The SSD 3200 exchanges signals with the host 3100 through a signal connector 3001, and receives power through a power connector 3002. The SSD 3200 includes an SSD controller 3210, a plurality of flash memories 3221 to 322n, an auxiliary power supply 3230, and a buffer memory 3240.

[0219] According to an embodiment of the present disclosure, the SSD controller 3210 may execute reference Figure 1 The functions of the storage controller 200 are described.

[0220] The SSD controller 3210 may control the plurality of flash memories 3221 to 322n in response to a signal received from the host 3100. For example, the signal may be a signal based on an interface between the host 3100 and the SSD 3200. For example, the signal may be a signal defined by at least one of interfaces such as a universal serial bus (USB), a multimedia card (MMC), an embedded MMC (eMMC), a peripheral component interconnect (PCI), PCI-Express (PCI-E), an advanced technology attachment (ATA), a serial ATA, a parallel ATA, a small computer system interface (SCSI), an enhanced small disk interface (ESDI), an integrated drive electronics (IDE), FireWire, a universal flash memory (UFS), Wi-Fi, Bluetooth, and NVMe.

[0221] The auxiliary power supply 3230 is connected to the host 3100 through the power connector 3002. The auxiliary power supply 3230 may receive power from the host 3100 and may be charged with the power. When the power supply from the host 3100 is not stable, the auxiliary power supply 3230 may provide power to the SSD 3200. For example, the auxiliary power supply 3230 may be provided in the SSD 3200 or may be provided outside the SSD 3200. For example, the auxiliary power supply 3230 may be provided on the mainboard and may provide auxiliary power to the SSD 3200.

[0222] The buffer memory 3240 operates as a buffer memory of the SSD 3200. For example, the buffer memory 3240 may temporarily store data received from the host 3100 or data received from the plurality of flash memories 3221 to 322n, or may temporarily store metadata (e.g., a mapping table) of the flash memories 3221 to 322n. The buffer memory 3240 may include a volatile memory such as DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, and GRAM, or a nonvolatile memory such as FRAM, ReRAM, STT-MRAM, and PRAM.

[0223] Fig.21 is a block diagram illustrating a user system to which a storage device according to an embodiment of the present disclosure is applied.

[0224] Reference Fig.21 , the user system 4000 includes an application processor 4100 , a memory module 4200 , a network module 4300 , a storage module 4400 , and a user interface 4500 .

[0225] The application processor 4100 may drive components included in the user system 4000, an operating system (OS), a user program, etc. For example, the application processor 4100 may include a controller, an interface, a graphic engine, etc. that controls components included in the user system 4000. The application processor 4100 may be provided as a system chip (SoC).

[0226] The memory module 4200 may operate as a main memory, an operating memory, a buffer memory, or a cache memory of the user system 4000. The memory module 4200 may include a volatile random access memory such as DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDRAM, LPDDR2 SDRAM, and LPDDR3 SDRAM, or a nonvolatile random access memory such as PRAM, ReRAM, MRAM, and FRAM. For example, the application processor 4100 and the memory module 4200 may be packaged based on a package on package (POP) and provided as one semiconductor package.

[0227] The network module 4300 may communicate with an external device. For example, the network module 4300 may support wireless communications such as code division multiple access (CDMA), global system for mobile communications (GSM), wideband CDMA (WCDMA), CDMA-2000, time division multiple access (TDMA), long term evolution, Wimax, WLAN, UWB, Bluetooth, and Wi-Fi. For example, the network module 4300 may be included in the application processor 4100.

[0228] The storage module 4400 may store data. For example, the storage module 4400 may store data received from the application processor 4100. Alternatively, the storage module 4400 may send data stored in the storage module 4400 to the application processor 4100. For example, the storage module 4400 may be implemented using a non-volatile semiconductor memory element such as a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a NAND flash memory, a NOR flash memory, and a three-dimensional NAND flash memory. For example, the storage module 4400 may be provided as a removable storage device (removable drive) such as a memory card and an external drive of the user system 4000.

[0229] For example, the storage module 4400 may include a plurality of nonvolatile memory devices, and the plurality of nonvolatile memory devices may be associated with the reference Figure 1 The memory module 4400 may be similar to the memory device 100 described in the prior art. Figure 1 The described storage device 50 operates identically.

[0230] The user interface 4500 may include an interface for inputting data or instructions to the application processor 4100 or for outputting data to an external device. For example, the user interface 4500 may include a user input interface such as a keyboard, a keypad, a button, a touch panel, a touch screen, a touch pad, a touch ball, a camera, a microphone, a gyro sensor, a vibration sensor, and a piezoelectric element. The user interface 4500 may include a user output interface such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display device, an active matrix OLED (AMOLED) display device, an LED, a speaker, and a monitor.

[0231] CROSS-REFERENCE TO RELATED APPLICATIONS

[0232] This application claims the priority of Korean Patent Application No. 10-2020-0132204 filed on October 13, 2020 in the Korean Intellectual Property Office, the entire disclosure of which is incorporated herein by reference.

Claims

1. A memory device, the memory device comprising: a plurality of memory cells programmed so that each of the memory cells has a threshold voltage corresponding to any one of a plurality of programmed states; A peripheral circuit that performs a read operation or a program operation on the memory cell; as well as A control logic is provided for controlling the peripheral circuit to perform a test read operation of reading the memory cells using a test read voltage that is any one of preset default read voltages, and to perform a refresh programming operation of applying a refresh programming voltage to some of the plurality of memory cells to program the some of the memory cells using the refresh programming voltage according to the number of memory cells having a threshold voltage greater than the test read voltage.

2. The memory device according to claim 1, wherein: The control logic includes: a refresh command input circuit that generates a test read operation start signal in response to a refresh command input from outside the memory device; a reference cell count information storage section storing information on a first reference number for determining whether to perform the refresh program operation and a second reference number for determining a target cell of the refresh program operation; and a test read operation controller that applies the test read voltage to the memory cell in response to the test read operation start signal, obtains test data that is data obtained by sensing the memory cell using the test read voltage, and generates a refresh operation start signal according to whether the number of reference logic values ​​included in the test data is less than the first reference number.

3. The memory device according to claim 1, wherein: The test read voltage is a read voltage for distinguishing a program state having a highest threshold voltage distribution among the plurality of program states.

4. The memory device according to claim 2, wherein: The test read operation controller generates the refresh operation start signal when the number of the reference logic values ​​included in the test data is smaller than the first reference number.

5. The memory device according to claim 2, wherein: The first reference number is a value smaller than a value obtained by dividing the number of the plurality of memory cells by the number of the plurality of program states.

6. The memory device according to claim 2, wherein: The control logic also includes: a refresh data determiner that performs a sampling read operation of reading the memory cells using a sampling read voltage in response to the refresh operation start signal, obtains sampling data that is data obtained by sensing the memory cells using the sampling read voltage, and determines refresh data indicating the some memory cells according to whether the number of the reference logic values ​​included in the sampling data exceeds the second reference number; and A refresh program operation controller performs the refresh program operation on the some memory cells.

7. The memory device according to claim 6, wherein: The sampled read voltage is a voltage that is smaller than the test read voltage by a sampled step voltage.

8. The memory device according to claim 6, wherein: When the number of the reference logic values ​​included in the sampling data is equal to or less than the second reference number, the refresh data determiner performs an additional sampling operation of reading the memory cell using an additional sampling read voltage obtained by reducing the sampling read voltage by a sampling step voltage.

9. The memory device according to claim 6, wherein: The refresh data determiner determines the refresh data by comparing the test data with the sampling data when the number of the reference logic values ​​included in the sampling data exceeds the second reference number.

10. The memory device according to claim 6, wherein: When the number of the reference logic values ​​included in the sampling data exceeds the second reference number, the refresh data determiner determines data obtained by performing an exclusive OR (XOR) operation on the test data and the sampling data as the refresh data.

11. The memory device according to claim 8, wherein: The refresh data determiner obtains additional sampling data as data obtained by sensing the memory cell using the additional sampling read voltage, and when the number of the reference logic values ​​included in the additional sampling data exceeds the second reference number, the refresh data determiner determines data obtained by performing an exclusive OR (XOR) operation on the test data, the sampling data, and the additional sampling data as the refresh data.

12. The memory device according to claim 6, wherein: The second reference number is a value smaller than the first reference number.

13. The memory device according to claim 2, wherein: The reference logic value is a logic value indicating a memory cell having a threshold voltage higher than the test read voltage among the plurality of memory cells.

14. The memory device according to claim 6, wherein: The refresh program voltage is a program voltage corresponding to a program state having a highest threshold voltage distribution among the plurality of program states.

15. The memory device according to claim 7, wherein: The refresh program voltage is a voltage higher than a program voltage corresponding to a program state having a highest threshold voltage distribution among the plurality of program states by the sampling step voltage.

16. A method of operating a memory device comprising a plurality of memory cells, the plurality of memory cells being programmed so that each of the memory cells has a threshold voltage corresponding to any one of a plurality of programmed states, the method comprising the steps of: obtaining test read data obtained by sensing the memory cell using a test read voltage that is any one of preset default read voltages; as well as A refresh program voltage is applied to some memory cells among the plurality of memory cells according to the number of reference logic values ​​included in the test read data to program the some memory cells with the refresh program voltage.

17. The method according to claim 16, wherein: The step of applying a refresh programming voltage includes the following steps: obtaining sampling data as data obtained by sensing the memory cell using a sampling voltage; determining the some of the memory cells according to whether the number of the reference logic values ​​included in the sampled data exceeds a reference number; and A refresh programming voltage is applied to the some of the memory cells.

18. The method according to claim 17, wherein: The step of determining the some memory cells comprises the following steps: in response to the number of the reference logic values ​​included in the sampling data being equal to or less than the reference number, obtaining additional sampling data obtained by sensing the memory cell using an additional sampling voltage obtained by reducing the sampling voltage by a sampling step voltage; and Memory cells corresponding to the reference logic value included in data obtained by sequentially performing an exclusive OR (XOR) operation on the test read data, the sample data, and the additional sample data are determined as the some memory cells.

19. The method according to claim 17, wherein: The step of determining the some memory cells includes the following steps: in response to the number of the reference logic values ​​included in the sampling data exceeding the reference number, determining memory cells corresponding to the reference logic values ​​included in data obtained by performing an exclusive OR (XOR) operation on the test read data and the sampling data as the some memory cells.

20. A memory device, the memory device comprising: a memory cell array including a plurality of memory cells programmed so that each of the memory cells has a threshold voltage corresponding to any one of a plurality of programmed states; a peripheral circuit that performs a read operation or a program operation on the plurality of memory cells; as well as A refresh operation controller controls the peripheral circuit to perform a refresh programming operation on a programming state in which the number of memory cells with reduced threshold voltages among the multiple memory cells among the multiple programming states exceeds a preset reference number, so as to program the memory cells having the programming state using a refresh programming voltage.