View previous topic :: View next topic |
Author |
Message |
arrow
Joined: 17 May 2005 Posts: 213
|
MMC/ SD, sleep and wake up- Minimizing Current? |
Posted: Mon Aug 07, 2006 4:53 am |
|
|
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
|
|
Posted: Mon Aug 07, 2006 5:05 am |
|
|
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
|
Sleep ... Wake up |
Posted: Mon Aug 07, 2006 5:24 am |
|
|
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
|
|
Posted: Mon Aug 07, 2006 5:31 am |
|
|
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
|
|
Posted: Mon Aug 07, 2006 6:46 am |
|
|
The clock is only generated, when you send something. The clock stops when you stop sending commands/data to the unit.
Best Wishes |
|
|
|