Patent ID: 8397135

Claim:
A recording apparatus that calculates an error detecting code for detecting an error in a user data code string having a first sequence, where a unit of processing is a block including two or more sectors containing the user data code string, the block including a first sector and a second sector, the first sector and the second sector having a structure that the error detecting code is appeared in an end of the user data code string when reading data in the first sequence, and the first sector having a structure that the error detecting code is appeared in a middle of reading the user data code string when reading data in a second sequence different from the first sequence, the recording apparatus comprising: a first operation unit that reads first data in a first region at least including data to be read out after the error detecting code when reading data in the second sequence in the first sector from a data buffer that stores the block and calculates an error detecting code intermediate value from the first data; a data memory that stores at least part of the first data used for operation by the first operation unit; a second operation unit that reads data excluding the first data in the first region from the block as second data from the data buffer and calculates the error detecting code based on the second data and the error detecting code intermediate value; and an integration unit that integrates the first data, the second data and the error detecting code, wherein the integration unit receives the error detecting code and the second data from the second operation unit, receives the first data from the data memory, and integrates and outputs the received error detecting code and the first and second data.