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

SD card writing, no FAT16

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



Joined: 16 Oct 2008
Posts: 59

View user's profile Send private message

SD card writing, no FAT16
PostPosted: Tue Jan 13, 2009 8:37 am     Reply with quote

Hello,

I am currently using a PIC16F877A, connected with a SD card 1GB.
However i read on a document that i needed 512 byte of ram in order to read/write a SD card, using mmcsd.c drivers, i don't have this much ram with the 16F877A.

I would like to write data in raw into the SD card, like you write data in an SPI EEPROM. Is it really impossible to do so with this pic ?

I search everywhere with no answer and no help Embarassed.
Help would be greatly appreciated ;)
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

Re: SD card writing, no FAT16
PostPosted: Tue Jan 13, 2009 9:52 am     Reply with quote

magestik wrote:
Hello,

I am currently using a PIC16F877A, connected with a SD card 1GB.
However i read on a document that i needed 512 byte of ram in order to read/write a SD card, using mmcsd.c drivers, i don't have this much ram with the 16F877A.

I would like to write data in raw into the SD card, like you write data in an SPI EEPROM. Is it really impossible to do so with this pic ?

I search everywhere with no answer and no help Embarassed.
Help would be greatly appreciated ;)


As you are seen for yourself, a 16F series PIC is not a good candidate for using SD/MMC cards however it is possible. You MUST write 512 bytes at a time (a sector). Let's say you have 100bytes of data to write to the card. You would write out the 100 bytes of data and then write 412 bytes fill bytes.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
magestik



Joined: 16 Oct 2008
Posts: 59

View user's profile Send private message

PostPosted: Wed Jan 14, 2009 10:59 am     Reply with quote

That's it, thank you ;)
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