The following AVR project includes the code to read and write from a floppy disk just by bit banging the IO pins and using the microcontroller timers.
MFM Reader AVR Project Folder
CPLD Design File
Later the MFM encoding and decoding was offloaded into a ATF1504 CPLD.
MFM Reader CPLD Design File