Patent ID: 7149165

Claim:
A controller for controlling interruption and restarting of data writing to a recording medium, wherein the data written to the recording medium is read from a buffer memory, the controller comprising: an encoder connected to the buffer memory, the encoder being configured to receive the data read from the buffer memory and to encode the read data to generate encoded data; an address memory connected to the buffer memory, the address memory being configured to store a write-data-address of the data written to the recording medium and a read-data-address of the data read from the buffer memory when the writing of data to the recording medium is interrupted, the write-data-address and the read-data-address each indicating a location of the data at which the interruption occurs; a synchronizing circuit for synchronizing the written data read from the recording medium with the encoded data; a first retry determination circuit for determining whether an address of the written data, which is read from the recording medium, and the write-data-address, which is stored in the address memory, are the same, and for determining whether an address of the read data, which is provided to the encoder from the buffer memory, and the read-data-address, which is stored in the address memory, are the same; a second retry determination circuit for determining whether a first timing signal for reading the written data from the recording medium and a second timing signal for encoding the read data are the same, the first timing signal being derived from the recording medium; and a restart circuit for restarting the writing of data to the recording medium based on the determinations of the first and second retry determination circuits.