XMC4500 Tip of the day: How to debug SDMMC Card detection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
First solution authored Welcome! 500 replies posted
When card insertion or removal in the slot is detected, the status will be sent to the CPU via interrupt methodology. The active low card signal SDCD_n is set to 0 during card detection. The SDMMC_PRESENT_STATE.CARD_INSERTED bit indicates whether a card has been inserted. A change from 0 to 1 generates a Card Insertion interrupt in the Normal Interrupt Status register SDMMC_INT_STATUS_NORM.CARD_INS = 1, and a change from 1 to 0 generates a Card Removal
Interrupt in the Normal Interrupt Status register SDMMC_INT_STATUS_NORM.CARD_REMOVAL = 1.
0 Replies