| CPC G06F 12/0877 (2013.01) | 19 Claims |

|
1. A storage device comprising:
a memory including a plurality of memory cells; and
a controller configured to:
write first data to the memory according to a cache program mode;
comparing a size of second data to be written in the memory and a reference value, the second data following the first data;
determine whether to switch the cache program mode to a normal program mode based on a comparison result; and
write the second data to the memory according to the determined program mode,
wherein a program period of the cache program mode is greater than a program period of the normal program mode, and
wherein when the first data is written to the memory according to the cache program mode, the second data is input to the memory during a first program period of writing the first data, and when the first data is written to the memory according to the normal program mode, the second data is input to the memory after the first program period is over.
|