Page 1 of 1

FDC

Posted: Wed Jul 03, 2002 12:04 am
by K.J.
Is there a good doc/tutorial on using the FDC with DMA(not the Intel doc)?

Thanks in advance,
K.J.

Re:FDC

Posted: Wed Jul 03, 2002 8:12 am
by f2
What is FDC?

Re:FDC

Posted: Wed Jul 03, 2002 10:25 am
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.

Re:FDC

Posted: Wed Jul 03, 2002 11:36 am
by f2
Does this have anything to do with loading files off of a disk? ???

Re:FDC

Posted: Wed Jul 03, 2002 12:29 pm
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.