(a) Execute a command (data extraction / writing) with data transfer. (B) Wait for data transfer preparation (CDC_DataReady). (Wait for DRDY to become 1) (C) Input / output data through the data transfer register. Execute the CDC_GetDataPtr function to obtain the register pointer. (D) When necessary data is transferred, end data transfer (CDC_DataEnd).
Table 3.8 Data transfer error
Data transfer error | Description |
|---|---|
Data transfer time-out | The CD block is not ready for data transfer within the specified time. |
Reserving write sector | Sector data writing cannot secure a free sector |
| When a command that involves data transfer is executed, the data is returned before the DRDY flag becomes 1. Do not perform a transfer termination. Even if data is not actually transferred, be sure to wait for the DRDY flag to become 1 before exiting. (Exit after waiting for data transfer preparation) |