RS_SDIO controller
RM0082
684/844
Doc ID 018672 Rev 1
32.5.1 Sequence
This section defines some basic sequence flows of initialization and data transfer with the
card.
Figure 70.
SD card detection
To enable interrupt for card detection, write 1 to the following bits:
●
Card Insertion Status Enable in the Normal Interrupt Status Enable register
●
Card Insertion Signal Enable in the Normal Interrupt Signal Enable register
●
Card Removal Status Enable in the Normal Interrupt Status Enable register
●
Card Removal Signal Enable in the Normal Interrupt Signal Enable register
1.
When the Host Driver detects the card insertion or removal, clear its interrupt statuses.
If Card Insertion interrupt is generated, write logic ‘1’ to Card Insertion in the Normal
Interrupt Status register. If Card Removal interrupt is generated, write logic ‘1’ to Card
Removal in the Normal Interrupt Status register.
2.
Check Card Inserted in the Present State register. In the case where Card Inserted is
logic ‘1’, the Host Driver can supply the power and the clock to the SD card. In the case
where Card Inserted is logic ‘0’, the other executing processes of the Host Driver shall
be immediately closed.
Enable Int of Card Detect
Start
Clr Card Detect Int Status
Check
Card Inserted
End
(1)
(2)
(3)
Card Detect Int occur
Card Inserted is 1b,
then recognize as insertion
Card Inserted is 0b,
then recognize as removal