Hello everyone,
I would like to write an embedded code to implement the FAT system. My aim is to Read/Write SD Cards and other similar storage media. I have been working with PIC Microcontrollers for some time now, and intends to use this chip.
I have done a lot of reading and downloaded a lot of info on the FAT system, but I just can't seem to put it all together. Basically all the examples that I come across, are written in C Code. And I only use Paralax Mnemonic to write my codes.
If I could know what to send (data,command), when to send, what response to expect and how to interpret the response, I would be ok.
So I would be very very grateful if someone could give me step-by-step instruction on how to Implement the File Allocation Table system to read/write the mentioned devices. I am ok with the USB communication.
Thanks very much.
have a look at Keil's examples for a mass storage device. they all contain a byte array called "DiskImg" that adheres to FAT12 format. some of them also contain the SCSI command interpretation to manipulate the file system. above all: read about the structure of FAT12.