TSchultz
Joined: 08 Sep 2003 Posts: 66 Location: Toronto, Canada
|
|
Posted: Tue Mar 29, 2005 2:02 pm |
|
|
I have seen instances where the MMC needs to be powered OFF then back ON to force a hardware reset of the device. Normally you can just use the software reset sequence but I have encountered instances where it was not enough.
I would suggest a P channel FET on the supply to the MMC, and the pull-ups on the data lines. You can then turn OFF the FET and set the I/O's to input to force the MMC in an OFF state, then turn the FET ON and re-configure the I/O's to turn on the MMC card. This then needs to be followed by a software command sequence to initialize the MMC in SPI mode.
Take care if you intend to operate the PIC from 5V, most of the MMC cards cannot be powered at 5V and their I/O's are not 5V tolerant. |
|