Information
SDIO interrupt status latched in the SDHC and to stop driving the interrupt signal to the
system interrupt controller. The host driver must issue a CMD52 to clear the card
interrupt. After completion of the card interrupt service, the SDIO Interrupt Enable bit is
set to 1, and the SDHC starts sampling the interrupt signal again.
The following diagram illustrates the SDIO card interrupt scheme and for the sequences
of software and hardware events that take place during a card interrupt handling
procedure.
End
Enable card IRQ in Host
Clear Card IRQ in Card
Response Error?
Interrogate and service Card IRQ
Disable Card IRQ in Host
Read IRQ Status Register
Detect and steer card IRQ
Command/
Response
Handling
SDIO IRQ Enable
SDIO IRQ Status
IRQ to CPU
IP Bus
eSDHC Registers
IRQ Detecting & Steering
SD Host
SDIO Card
SDIO Card
IRQ Routing
IRQ0
IRQ1
Function 0 Function 1
Clear IRQ0
Clear IRQ1
Enable card IRQ in Host
Start
No
Yes
Figure 49-36. Card interrupt scheme and card interrupt detection and handling
procedure
49.5.7 Card insertion and removal detection
The SDHC uses either the DAT[3] pin or the CD pin to detect card insertion or removal.
When there is no card on the MMC/SD bus, the DAT[3] will be pulled to a low voltage
level by default. When any card is inserted to or removed from the socket, the SDHC
detects the logic value changes on the DAT[3] pin and generates an interrupt. When the
DAT[3] pin is not used for card detection (for example, it is implemented in GPIO), the
CD pin must be connected for card detection. Whether DAT[3] is configured for card
Chapter 49 Secured digital host controller (SDHC)
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 1447
