Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1438 of 1852
Nov 30, 2020
RX23W Group 40. SD Host Interface (SDHIa)
The SDSTS2 register indicates the status of the SD buffer and the status of the SD card. Flags to be cleared should be set
to 0; flags not being cleared should be set to 1.
CMDE Flag (Command Error Detection Flag)
The command sequence is stopped when a command error 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
section 40.3.6.8 or section 40.3.6.9 and complete the command
sequence.
This flag becomes 1 under any of the following conditions:
The command index field value for the command transmitted differs from the command index field value for the
response received.
The command index field value for the automatically issued CMD12 or CMD52 (which are the commands to stop
transfer) differs from the command index field value for the response received.
This flag becomes 0 under the following condition:
The flag is set to 0.
CRCE Flag (CRC Error Detection Flag)
The command sequence is stopped when a CRC error 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
section 40.3.6.8 or section 40.3.6.9 and complete the command
sequence.
This flag becomes 1 under any of the following conditions:
The received CRC status token is in error (the value of the CRC status is a value other than 010b).
The read data contains a CRC error.
The response contains a CRC error.
The response for the automatically issued CMD12 or CMD52 (which are the commands to stop transfer) contains a
CRC error.
This flag becomes 0 under the following condition:
The flag is set to 0.
ENDE Flag (End Bit Error Detection Flag)
The command sequence is stopped when an end bit error 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
section 40.3.6.8 or section 40.3.6.9 and complete the command
sequence.
This flag becomes 1 under any of the following conditions:
The response length is in error (the end bit could not be detected).
The read data length is in error (the end bit of the enabled bit could not be detected).
The CRC status token length is in error (the end bit could not be detected).
The response length for the automatically issued CMD12 or CMD52 (which are the commands to stop transfer)
contains an error (the end bit could not be detected).
This flag becomes 0 under the following condition:
The flag is set to 0.