Patent ID: 8412893
Filing Date: 2013-04-02
Classification: G06F

Abstract:
1. A method for handling data read out from a memory, wherein a controller corresponding to the memory comprises a ping-pong buffer, the ping-pong buffer comprises a first buffer and a second buffer, the memory comprises a plurality of pages, and each of the pages stores a plurality of data sectors, comprising: calculating a first sector read time period required by the memory to read and output a data sector to the ping-pong buffer; calculating a second sector read time period required by a host to read a data sector from the ping-pong buffer; obtaining a page switch time period required by the memory to switch a target read page from one page to another page of the memory; determining a total sector number according to the first sector read time period, the second sector read time period, and the page switch time period; and when the memory outputs data to the ping-pong buffer, switching the first buffer and the second buffer of the ping-pong buffer to receive the data output by the memory according to the total sector number.