English
Language : 

K60P100M100SF2RM Datasheet, PDF (1643/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Enable card detection irq
Chapter 52 Secured digital host controller (SDHC)
(1)
Wait SDHC interrupt
Check IRQSTAT[CINS]
Y es, card presents
Clear CINSIEN to
disable card detection irq
(2)
No card presents
Voltage validation
Figure 52-39. Flow diagram for card detection
Here is the card detection sequence:
• Set the CINSIEN bit to enable card detection interrupt
• When an interrupt from the SDHC is received, check the IRQSTAT[CINS] bit in the
Interrupt Status register to see if it was caused by card insertion
• Clear the CINSIEN bit to disable the card detection interrupt and ignore all card
insertion interrupts afterwards
To detect a CE-ATA device, after completing the normal MMC reset and initialization
procedures, the host driver shall issue CMD 60 to check for a CE-ATA signature. If the
device responds to the command with the CE-ATA signature, a CE-ATA device has been
found. Then the driver should query EXT_CSD register byte 504 (S_CMD_SET) in the
MMC register space. If the ATA bit (bit 4) is set, then the MMC device is an ATA
device. If the device indicates that it is an ATA device, the Driver should set the ATA bit
(bit 4) of the EXT_CSD register byte 191 (CMD_SET) to activate the ATA command set
for use. To choose the command set, the driver shall issue CMD6. It is possible that the
CE-ATA device does not support the ATA mode, so the driver shall not issue ATA
command to the device.
52.6.2.2 Reset
The host consists of three types of resets:
• Hardware reset (card and host) which is driven by POR (power on reset)
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1643