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 CCS Technical Support

MMC/ SD, sleep and wake up- Minimizing Current?

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



Joined: 17 May 2005
Posts: 213

View user's profile Send private message

MMC/ SD, sleep and wake up- Minimizing Current?
PostPosted: Mon Aug 07, 2006 4:53 am     Reply with quote

Hi

Can someone please tell me how to put the MMC/ SD card into sleep (or is it idle?) mode, and then wake it up and resume writting blocks of data after where the last write occured?

I am trying to save on battery power during writting to the MMC/ SD cards.

Thank you in advance.
a.
Ttelmah
Guest







PostPosted: Mon Aug 07, 2006 5:05 am     Reply with quote

You need to read the data sheet for the card you are using. In SPI mode, most MMC cards, only support 'sleep' mode, not idle mode (Idle is a protocol state, not an electrical state). Sleep mode is usually entered automatically, if a command is not received for a short period (5mSec for the SanDisk cards), and wake-up, is also automatic.

Best Wishes
ploana



Joined: 24 Jul 2006
Posts: 6

View user's profile Send private message

Sleep ... Wake up
PostPosted: Mon Aug 07, 2006 5:24 am     Reply with quote

Ttelmah is right if a command is not received for a short period 5ms the sandisk card entered in sleep mode automatic.

for the use of a mmc/sd card you have to inititlize the card, and when you use the card in spi mode, you have to put the card in spi mode(but you have to write the checksumm by yourself, when you are not yet in spi mode).

best wishes
arrow



Joined: 17 May 2005
Posts: 213

View user's profile Send private message

PostPosted: Mon Aug 07, 2006 5:31 am     Reply with quote

Hi

Thank you for your responses.

I have read the SD specifications, and they suggest that:
Quote:
"However to achieve the lowest sleep current, the host needs to shut down its clock to the card."


I am using SPI, can you please tell me how to shut down the PIC's SPI clock?

Thank you
a.
Ttelmah
Guest







PostPosted: Mon Aug 07, 2006 6:46 am     Reply with quote

The clock is only generated, when you send something. The clock stops when you stop sending commands/data to the unit.

Best Wishes
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