R01UH0823EJ0100 Rev.1.00 Page 1452 of 1823
Jul 31, 2019
RX23W Group 40. SD Host Interface (SDHIa)
40.3.6 Examples of Issuing a Command
40.3.6.1 Command Absent of Response Reception and Data Transfer
Figure 40.8 shows an example of no response being received and no data being transferred after the SDHI issues a
command.
1. Set the flags in registers SDSTS1 and SDSTS2 to 0.
2. Set the SDHI clock in the SDCLKCR register, and set the interrupt requests to be masked in registers SDIMSK1
and SDIMSK2. Refer to
section 40.5.5 for details on setting the SDCLKCR register.
3. After setting the argument field value to the SDARG register, write the command information to be sent to the
SDCMD register. The SDHI issues a command when a value is written to the SDCMD register.
4. After a command is issued, the SDSTS1.RSPEND flag becomes 1, and a response end interrupt request is
generated.
5. Set the SDSTS1.RSPEND flag to 0.
Figure 40.8 Command Issued That Is Absent of Response Reception and Data Transfer
Clear the flag register
Set the SDCLKCR register.
SDIMSK1 = 0000 FFFEh
SDIMSK2 = 0000 7F80h
Command is issued that is absent of a response
being received and data being transferred
Response end?
SDSTS1 = 0000 FFFEh Clear the flags.
No
Yes
Start
SDARG = Argument field value
SDCMD = Command to be issued
End