Skip to contentSkip to conversation

MMC: Card detection through pin CD/DAT3 issue

DISCUSSION Wappler Marcel 2 participants 3 messages Mar 19, 2008 – Mar 20, 2008 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 7 lines · Wappler Marcel

I have found this requirement in the SD host controller spec:
"The card detect is active regardless of the SD Bus Power."

I wonder how the card should be able to pull up the CD/DAT3 Pad to VCC if its only VCC pad is not connected to VCC due to the fact that the host controller has switched off the cards power - any idea how this could be managed?

If the VCC pin is connected to 0 V, the "pullup" will pull down to 0 V. If the controller reverses it's logic while VCC=0, it might work.

The controller might alternatively switch all pins (except the pullup) to VCC, which would look to the card like switching all pins to 0V, but detection by pullup would still work.

#4 lore raw

Thank you, Pierre,

this special host controller is more an SDHCI _inspired_ than a _compliant_ one. Not only powering off the card bus led to the not working card detection but also the RESET_ALL function. Both tasks are reqired by the SDHCI standard after removing the card. But Pierre has prepared the sdhci.c very well: there is a quirk called "SSM_QUIRK_NO_CARD_NO_RESET". In combination with disabling power off after a card removal now it works.

Quoted 11 lines · Bodo Eggert
Quoted 7 lines

I have found this requirement in the SD host controller spec:
"The card detect is active regardless of the SD Bus Power."

I wonder how the card should be able to pull up the CD/DAT3 Pad to VCC if its only VCC pad is not connected to VCC due to the fact that the host controller has switched off the cards power - any idea how this could be managed?

If the VCC pin is connected to 0 V, the "pullup" will pull down to 0V.
If the controller reverses it's logic while VCC=0, it might work.

I am concerned that in this case there would be neither a pull up nor a pull down at this signal. Due to floating gates that input could lead to millions of "card detection" events a second, if no card is inserted?

Regards,
Marcel

Marcel Wappler
Bridgeco AG
CH-8600 Dübendorf
Switzerland

#5 lore raw
Quoted 10 lines · Wappler Marcel
Quoted 7 lines · Bodo Eggert
Quoted 7 lines

I have found this requirement in the SD host controller spec:
"The card detect is active regardless of the SD Bus Power."

I wonder how the card should be able to pull up the CD/DAT3 Pad to VCC if its only VCC pad is not connected to VCC due to the fact that the host controller has switched off the cards power - any idea how this could be managed?

Quoted 7 lines
Quoted 3 lines

If the VCC pin is connected to 0 V, the "pullup" will pull down to 0V.
If the controller reverses it's logic while VCC=0, it might work.

I am concerned that in this case there would be neither a pull up nor a pull down at this signal. Due to floating gates that input could lead to millions of "card detection" events a second, if

As long as no card is inserted, the pin on the controller would be floating and generating the same amount of interrupts, unless there is a (weak) internal pulldown. You can do the same for the reversed logic, using an internal pullup and abusing the card's pullup as a pulldown.

Signature · 1 line
Never forget that your weapon is made by the lowest bidder.