Notices

Storage Card Forum Talk about CF, SD, and Microdrives. What's good, what's bad? - No Ads

Reply
 
LinkBack Thread Tools
Old 04-02-09, 08:47 PM   #1 (permalink)
Aximsite Prospect
 
Join Date: Apr 2009
Posts: 1
Thanked 1 Time in 1 Post
SD Mode Reads/Writes

I am not sure to what detail the members of this forum are aware of in regards to SD Cards, but I'm going to make this post regardless and see if anyone out there can answer it.

I am writing an SD Mode (not SPI Mode) core that reads and writes to an SD Card. I completed the initialization of the card, and I believe I can read from the card in 4-bit mode, but I am having a problem when writing to the card in 4-bit mode. When I write a 512 byte block of data (initiated by a CMD25 command), I tri-state the data bus, and see a command come back from the card. This command, from what I can tell from the Simplified Spec, is what is called a "CRC Status" byte. The Simplified Spec doesn't say what this is, except a start bit, several status bits, and an end bit. Simply put, my writes are not working, and I'd like to be able to interpret what this command is to find out why. If anyone out there could provide even the slightest assistance I would be greatful. Thank you.
mwgilson is offline   Reply With Quote
The Following User Says Thank You to mwgilson For This Useful Post:
leon_squall (05-20-09)
Sponsor Ads
Old 05-20-09, 02:07 AM   #2 (permalink)
Aximsite Prospect
 
Join Date: May 2009
Posts: 1
Thanked 0 Times in 0 Posts
Originally Posted by mwgilson View Post
I am not sure to what detail the members of this forum are aware of in regards to SD Cards, but I'm going to make this post regardless and see if anyone out there can answer it.

I am writing an SD Mode (not SPI Mode) core that reads and writes to an SD Card. I completed the initialization of the card, and I believe I can read from the card in 4-bit mode, but I am having a problem when writing to the card in 4-bit mode. When I write a 512 byte block of data (initiated by a CMD25 command), I tri-state the data bus, and see a command come back from the card. This command, from what I can tell from the Simplified Spec, is what is called a "CRC Status" byte. The Simplified Spec doesn't say what this is, except a start bit, several status bits, and an end bit. Simply put, my writes are not working, and I'd like to be able to interpret what this command is to find out why. If anyone out there could provide even the slightest assistance I would be greatful. Thank you.
Hi! I 'm Leon, a new-comer, I 've seen your post about SD cards read/write, so I decide to reply your post for accquiring some source code used for my project. Actually, I 've been researching about this and met some problems of implementing SD card based on SD Mode. If you agree on my suggestion, then send file to me through email-address: leon_squall_wknight@yahoo.com . Thanks a lot!
Leon Squall
leon_squall is offline   Reply With Quote
Old 05-27-09, 03:25 AM   #3 (permalink)
Aximsite Prospect
 
Join Date: May 2009
Posts: 1
Thanked 0 Times in 0 Posts
Regarding SD card in Sd mode

Hi I'm new to SD card,

Can you explain me how to send the commands in SD mode to the card.

It will be very usefull, if you mail the code snippet to my email ID dranjin@gmail.com


Thanks in advance,
Ranjin
ranjin is offline   Reply With Quote
Reply

Tags
mode, reads or writes

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:59 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC