Solved

Reading/Writing to SD Card using a PIC

Posted on 2006-11-14
3
2,934 Views
Last Modified: 2013-12-09
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
Comment
Question by:SETP
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
d-glitch earned 500 total points
ID: 17938920
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
 
LVL 27

Assisted Solution

by:d-glitch
d-glitch earned 500 total points
ID: 17939008
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
 
LVL 12

Expert Comment

by:public
ID: 17953973
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So, if your PC is old or new and it does not boot or has no display then what do you do? Precautions : -During connecting or disconnecting devices, be sure to have the AC electrical power disconnected -Temporarily ground yourself, or use a wris…
Introduction: When experiencing some peculiar problem with the functioning of your PC, how many times has it happened that you look for a solution and even google can’t help? It could be that you are one of the only few people on earth who ma…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now