R01UH0823EJ0100 Rev.1.00 Page 1462 of 1823
Jul 31, 2019
RX23W Group 40. SD Host Interface (SDHIa)
40.3.6.7 IO_RW_DIRECT Command (CMD52)
Figure 40.14 shows an example of issuing the IO_RW_DIRECT command (CMD52).
Figure 40.14 Issuing the IO_RW_DIRECT Command
Clear the flag register
Set the SDCLKCR register.
SDIMSK1 = 0000 FFFEh
SDIMSK2 = 0000 7F80h
SDIOMD = 0000 0001h
SDIOIMSK = 0000 FFFEh
Did a response end
or error occur?
SDSTS1 = 0000 FFFEh Clear the flags.
SDARG = Argument field value
SDCMD = 0000 0034h
CMD52 (IO_RW_DIRECT
command) issued
Error (communication error or timeout)
Read the SDRSP10 register Check the response.
Error processing
(clear the interrupt flags)
No
Yes
Start
End