Is it possible to connect the GPIO's pins to a floppy drive? Not about the shape of the IDE cable, but about a voltage problem, may I ruin something?

  • Sorry, pretty sure this isn't possible. – Jivings Oct 4 '12 at 20:40
  • Sorry, I meant IDE cable – spocchio Oct 4 '12 at 20:41
  • I didn't even notice you put PATA. – Jivings Oct 4 '12 at 20:45
  • OK :(, but you think it because GPIO uses different voltage than the Floppy controller? – spocchio Oct 4 '12 at 20:47
  • 1
    I don't know the details of the protocol, but Linux is not a real time operating system and could interrupt any communication process at any time. Therefore, you won't be able to generate the appropriate signals. Any reason you don't want to use USB? – Alex Chamberlain Oct 4 '12 at 21:03

Floppy and IDE interfaces are extremely different. I'll address the IDE as it is much more practical: GPIO-based communication with an IDE drive is most likely possible provided you operate at a low data rate and use passive level translation.

IDE is actually a very simple interface; it (and it's close cousin compact flash) have been interfaced to lots of legacy microprocessors, you just don't hear as much about that since the price on SD cards dropped causing most of those projects to be done with spi (or bit-bang spi) to SD cards instead.

Additionally, if not enough I/O lines are available to talk to the 16-bit IDE interface, it's actually possible to use only 8 data lines, since the commands are all 8-bit. Not having the other 8 bits means you waste half the storage capacity, but disk is cheap, so that's not necessarily a problem unless you need to read a disk created by something else. (You can however copy a normal filesystem image to or from such an 8-of-16 disk connected to a normal linux box, by manipulating the devices as a file)

  • +1 for storing data in every other byte :-) You effectively get 1/2 size sectors, for (ahem) finer granularity of storage allocation. – greggo Apr 18 '13 at 14:44

Possible to connect some pins? With suitable wiring (maybe buffered), yes.

Will it do anything useful? Probably not. Maybe you could step the head or something, but transfering data would require a pretty complex controller. It would indeed be better to go with a USB fdd if you need to read/write floppies.

Pretty much all floppy drives are also (mostly) Shugart cabled, not PATA (IDE).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.