CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

power down & on mmc by micro

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








power down & on mmc by micro
PostPosted: Tue Mar 29, 2005 10:17 am     Reply with quote

when initialing the mmc card heve need to power down & on my micro or not?( i see some code that do that)
TSchultz



Joined: 08 Sep 2003
Posts: 66
Location: Toronto, Canada

View user's profile Send private message

PostPosted: Tue Mar 29, 2005 2:02 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group