parsing and accessing floppy FAT filesystem in arduino

43 Просмотры
having converted MFM pulses to sectors, you may be surprised to know its only a couple lines of code to have a microcontroller access the disk and underlying file structure. we use SdFat library, an SD card interface library that is really good, and subclass it to provide new functions for reading (and later, writing) sectors. then you can just treat the drive like a very small SD card. why does this work? turns out SD cards are pretty much the same as extremely large floppy drives: blocks of data are 512 bytes each, and both are formatted with the same kind of filesystem structure called FAT that was invented in 1977 for floppies but persists to this day. SdFat supports a particularly early and compact version called FAT12 and even does long filenames. now our arduino programs can access files on floppy drives with ease!

#arduino #floppy #adafruit

Visit the Adafruit shop online - http://www.adafruit.com

LIVE CHAT IS HERE! http://adafru.it/discord

Adafruit on Instagram: https://www.instagram.com/adafruit

Subscribe to Adafruit on YouTube: http://adafru.it/subscribe

New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
Комментариев нет.