FDC

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
K.J.

FDC

Post by K.J. »

Is there a good doc/tutorial on using the FDC with DMA(not the Intel doc)?

Thanks in advance,
K.J.
f2

Re:FDC

Post by f2 »

What is FDC?
crazybuddha

Re:FDC

Post by crazybuddha »

http://www.cs.sun.ac.za/courses/pregrad ... loppy.html

http://debs.future.easyspace.com/Progra ... loppy.html

If you have trouble, let me know, and I'll see if I can help. The DMA is a little confusing and the FDC is a little confusing, so together, it's very confusing. But once you've done it, no big deal.
f2

Re:FDC

Post by f2 »

Does this have anything to do with loading files off of a disk? ???
crazybuddha

Re:FDC

Post by crazybuddha »

Yes. The Floppy Controller is just what it sounds like. You use it to locate/read/write data on/from/to the floppy drive. The DMA is for memory transfers without going through the CPU. You set it up to work with a device (e.g. fdc, sound chip), tell the device to transfer a certain amount, then the device will issue an interrupt when its done sending the data.

There is some code under the Sound thread for using the DMA with a SB-compatible card (it may also still be on my website). Its use with the FDC is practically identical.

Be aware that there is also a PCI DMA, which is programmed differently.
Post Reply