Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
Posted: Fri Jun 08, 2007 7:42 pm
There are a couple of ways to deal with this. You could implement the FAT file system on the PIC. If you want to buy a FAT system driver then check out my web site.
An alternative solution is to format the SD card with FAT16 and create a single large empty file on the card in the root directory. Your PIC software needs enough intelligence to locate the directory and locate the file (first entry in the FAT16 directory) to determine the start sector of the file. Your PIC software can now write sequential sectors starting at the first sector of the file. This is far simpler than implementation a full FAT.
When you have finished logging data you can remote the card and read it on a PC. Before you can use the card with the PIC again you will have to reformat the card and create the dummy file again. _________________ Regards, Andrew
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