Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2998
  • Last Modified:

Reading/Writing to SD Card using a PIC

We're trying to read and write to an SD card using a PIC18F452. CMD0 and CMD1 work (to initialize the SD card into SPI mode), but any other command after that including CMD0 and CMD1 don't respond.

Any help wil be greatly appreciated.
0
SETP
Asked:
SETP
  • 2
2 Solutions
 
d-glitchCommented:
Is an SD card the same thing as a CompactFlash card??

Maybe this recent article from EDN will be helpful:   http://www.edn.com/contents/images/6363906.pdf

Afraid I can't be much help otherwise.  You are probably several month ahead of me.
0
 
d-glitchCommented:
I see that the SD is a special type of Flash.

And I see these links:

     http://www.compsys1.com/workbench/On_top_of_the_Bench/MMC_Project/mmc_project.html

     http://www.k9spud.com/sdcard/
0
 
publicCommented:
Compact flash card uses a parallel interface, SD card uses a serial interface.
Try monitoring the clock and data lines with a scope to see any activity when the card does not respond.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now