Removing MMC card

General discussion on mikroC for dsPIC30/33 and PIC24.
Post Reply
Author
Message
ddpt
Posts: 14
Joined: 02 Jul 2007 09:37
Location: South France

Removing MMC card

#1 Post by ddpt » 23 Oct 2008 10:22

Is somebody knows how to detect the presence of the mmc without reinit it.
I would like to know if the MMC card is removed while running.
Daniel

Sobrietytest
Posts: 619
Joined: 05 Jul 2008 06:05
Location: Thailand

#2 Post by Sobrietytest » 24 Oct 2008 02:48

Mmc_Read_Cid. It doesn't detect the physical presence of the card but it will return '0' if the card isn't installed.

ddpt
Posts: 14
Joined: 02 Jul 2007 09:37
Location: South France

#3 Post by ddpt » 28 Oct 2008 20:40

Thank you Sobrietytest,
It works fine.
I have to use MMC_FAT_Init to detect when the card is re-inserted.
Daniel

Post Reply

Return to “mikroC for dsPIC30/33 and PIC24 General”