The number of sectors which are NV_PCK in an ECC block is detected by a number-of-sectors detection circuit 12, and a control circuit 14 considers, when the detected number of sectors is larger than a predetermined value, that NV_PCK reference processing is not terminated within a time period during which the subsequent ECC block is buffered, to suspend the buffering of the subsequent ECC block.