Patent ID: 7106667

Claim:
A controller for a data recording device wherein, if recording to a recording medium is temporarily interrupted, then the recording is restarted in continuation of the end of recorded data that have been recorded prior to the interruption of the recording, comprising: a data match-detecting means for detecting a match between at least part of pre-recording data that are used for the recording prior to the interruption of the recording and reproduced data that are reproduced subsequent to the interruption of the recording; and an end-of-data-detecting means for detecting the end of the recorded data according to the detection of the match carried out by the data match-detecting means within the range of a predetermined number of clock cycles counted from a predetermined reference location in the reproduced data, wherein the data match-detecting means compares data having a predetermined number of bits of the pre-recording data that are before the end of the pre-recording data with data having the same number of bits of the reproduced data, and the data match-detecting means determines that a match between the data has been detected if the number of matching bits is equal to or greater than a predetermined threshold value.