| Author |
Message |
Sputnik
Joined: 19 Oct 2004 Posts: 150 Helped: 3 Location: South Africa
|
26 Oct 2004 20:58 Windows start/end of files (How do you know?) |
|
|
|
|
I would like to incorporate into a microcontroller (PIC16F84) the ability (when I find out how to interface an MMC card) to read/write the start/end of a file so that it would be recognized by Windows when I put the card in my card slot. Where would I find information on how the start (header) and end of a file works?
Thanks
Sputnik
|
|
| Back to top |
|
 |
sshahid47
Joined: 05 Nov 2004 Posts: 91 Helped: 13
|
07 Nov 2004 3:36 Windows start/end of files (How do you know?) |
|
|
|
|
hi,
when u use CreateFile on windows, it defines the start of the file, hence what u will do is call CreateFile on windows, write the data and then Write EOF to the file and close the file.
|
|
| Back to top |
|
 |
Sputnik
Joined: 19 Oct 2004 Posts: 150 Helped: 3 Location: South Africa
|
07 Nov 2004 11:25 Re: Windows start/end of files (How do you know?) |
|
|
|
|
But how do I do this? I'm quite stupid when it comes to Windows, especially XP!
Sputnik
Last edited by Sputnik on 07 Nov 2004 12:34; edited 2 times in total |
|
| Back to top |
|
 |
Google AdSense

|
07 Nov 2004 11:25 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
echo47
Joined: 07 Apr 2002 Posts: 4206 Helped: 566
|
07 Nov 2004 12:18 Windows start/end of files (How do you know?) |
|
|
|
|
Sounds like you want to read/write an MMC card's flash file system using using a PIC controller. I believe it uses a FAT12 or FAT16 file system. Maybe this SanDisk doc will get you started:
http://www.sandisk.com/pdf/oem/manual-rs-mmcv1.0.pdf
I think these guys produced the official spec, but it's probably expensive:
http://www.mmca.org/
|
|
| Back to top |
|
 |