FAT16 filesystem
Peter Verkaik
Posts: 3,956
I uploaded my FAT16 filesystem classes to
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/filesystem/
The test program uses a CF card connected via two PCF8574(A) chips on an I2C bus.
The CF classes and a schematic are here:
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/memory/compactflash/
I attached a picture of the board I used with the CF card.
regards peter
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/filesystem/
The test program uses a CF card connected via two PCF8574(A) chips on an I2C bus.
The CF classes and a schematic are here:
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/memory/compactflash/
I attached a picture of the board I used with the CF card.
regards peter
Comments
The files are now updated.
Here is the output of the Fat16FileSystem_test program
(I used a sandisk shoot & store card, 32MB with FAT16)
Fat16FileSystem test program
Memory free: 10620
CF card reset OK
Flashing the CFIO led
Reading device information...
Model number··············· : SanDisk SDCFB-32
Firmware revision·········· : HDX 2.15
Serial number·············· :···· 103407H0104D1032
Default cylinders·········· : 234
Default heads·············· : 4
Default sectors per track·· : 32
Current cylinders·········· : 234
Current heads·············· : 4
Current sectors per track·· : 32
Unformatted bytes per sector: 576
Current capacity LBA_lo···· : 62720
Current capacity LBA_hi···· : 0
Addressable sectors LBA_lo· : 62720
Addressable sectors LBA_hi· : 0
Reading disk parameters...
Start of boot record: 00000020h
Start of first FAT· : 00000021h
Start of root dir·· : 0000009Bh
Start of data area· : 000000BBh
Bytes per sector: 512
Sectors per cluster: 4
Sectors per fat: 61
Reserved sectors: 1
Copies of fat: 2
Max root entries: 512
program finished
regards peter