|
|
View previous topic :: View next topic |
Author |
Message |
magestik
Joined: 16 Oct 2008 Posts: 59
|
SD card writing, no FAT16 |
Posted: Tue Jan 13, 2009 8:37 am |
|
|
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 .
Help would be greatly appreciated ;) |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
Re: SD card writing, no FAT16 |
Posted: Tue Jan 13, 2009 9:52 am |
|
|
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 .
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
|
|
Posted: Wed Jan 14, 2009 10:59 am |
|
|
That's it, thank you ;) |
|
|
|
|
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
|