R01UH0823EJ0100 Rev.1.00
Page 1431 of 1823
Jul 31, 2019
RX23W Group
40. SD Host Interface (SDHIa)
DTO Flag (Data Timeout Detection Flag)
This flag indicates that the data expected to be received during the period specified (set in the SDOPT.TOP[3:0] bits)
was not received. However, response timeouts are excluded. The command sequence stops when a data timeout occurs.
—
This flag becomes 1 under any of the following conditions:
After the R1b response is received, the SDHI is busy for the period specified or longer.
After the CRC status token is received, the SDHI is busy for the period specified or longer.
After data is written, the CRC status token is not received even after the period specified elapsed.
After a read command is issued, the read data is not received even after the period specified elapsed.
After CMD12 is issued during a command sequence, the SDHI is busy for the period specified or longer.
After the read data is received, the next read data is not received even after the period specified elapsed.
After the SDHI exits the read wait state, the next read data is not received even after the period specified elapsed.
—
This flag becomes 0 under the following condition:
The flag is set to 0.
ILW Flag (SDBUFR Illegal Write Access Detection Flag)
—
This flag becomes 1 under any of the following conditions:
A value is written to the SDBUFR register while the SDHI is not in the data read or data write command state.
A value is written to the SDBUFR register while the SD buffer is full.
A value is written to the SDBUFR register while the CRC status token or CRC status token length is in error.
After the CRC status token is received, a value is written to the SDBUFR register if the SDHI is busy for the period
set in bits SDOPT.TOP[3:0] or longer.
—
This flag becomes 0 under the following condition:
The flag is set to 0.
ILR Flag (SDBUFR Illegal Read Access Detection Flag)
—
This flag becomes 1 under any of the following conditions:
The SDBUFR register is read while the SD buffer is empty.
The value read from the SDBUFR register includes a CRC error or end bit error.
—
This flag becomes 0 under the following condition:
The flag is set to 0.
RSPTO Flag (Response Timeout Detection Flag)
The command sequence is stopped when a response timeout occurs. When the SDIOMD.C52PUB bit is set to 1 and
CMD52 is automatically issued, if a communication error or response timeout occurs, the command sequence will not be
completed. Perform the error processing shown in
and complete the command
sequence.
—
This flag becomes 1 under the following condition:
A response is not received even after 640 SDHI clock cycles or more have elapsed (including the response for the
automatically issued CMD12 or CMD52 (which are the commands to stop transfer)).
—
This flag becomes 0 under the following condition:
The flag is set to 0.
SDD0MON Flag (SDHI_D0 Pin Status Flag)
This flag indicates the status of the SDHI_D0 pin. After an erase command is issued, if the DTO flag is 1 and the RSPTO
flag is 0, polling can be used to monitor the SDD0MON flag change from 0 to 1, and check that the erase command
sequence is complete. If a communication error or timeout occurs during the write sequence, the SDHI_D0 pin may
remain low. When the SDHI clock is stopped, the value before the SDHI clock was stopped is retained.