Page 1 of 1

how to write a floppy driver without DMA?

Posted: Thu Oct 21, 2004 7:15 am
by iamxiaohan
hi, i'm wrting a floppy driver, but i encounter some trouble.:(
i only want to use INT not DMA to read date from floppy at first time. But i can't get some document about how to do it.
now, i can initialize the 82077AA controler and send the read sector command, but i don't know how to handle it in ISR.
can you help me?
thank you very much! :)

Re:how to write a floppy driver without DMA?

Posted: Thu Oct 21, 2004 7:44 am
by pkd
Try This link
[url]http://debs.future.easyspace.com/Programming/Hardware/FDC/floppy.html[/url

It is a good doc on floppy controller

Note: if you are using Non-DMA mode you will need to issue a fix Drive data command to set the Non_DMA bit.

Also I have found that implied seeks dont seem to work so it is a good idea to issue a seek command to the track/head that you require

bye
pkd.]

Re:how to write a floppy driver without DMA?

Posted: Thu Oct 21, 2004 8:13 am
by KieranFoot
Is this wrong? but isn't the point of using DMA to speed up disk/memory access. So a non DMA floppy disk driver may be slower...

If tis is not a problem for then, no matters...

Re:how to write a floppy driver without DMA?

Posted: Thu Oct 21, 2004 11:50 am
by aladdin
this link will give you two docs, I used the first (intel documentation) to write my algorithmes

I'll also attach a basic version of my floppy driver if it can help you, it uses DMA, and do only read_sector command

good luck ;)

Re:how to write a floppy driver without DMA?

Posted: Thu Oct 21, 2004 5:44 pm
by iamxiaohan
thank you very much!
i'll try it ;D

Re:how to write a floppy driver without DMA?

Posted: Thu Oct 21, 2004 5:49 pm
by iamxiaohan
aladdin wrote: this link will give you two docs, I used the first (intel documentation) to write my algorithmes

I'll also attach a basic version of my floppy driver if it can help you, it uses DMA, and do only read_sector command

good luck ;)
hi, i got your floppy driver. That's very useful for me! thank you very much! :)
but i can't find the link you said which I can get the intel documentation from it. can you show me the link?
thank you!

Re:how to write a floppy driver without DMA?

Posted: Fri Oct 22, 2004 4:45 am
by aladdin

Re:how to write a floppy driver without DMA?

Posted: Fri Oct 22, 2004 8:28 am
by ASHLEY4
Here is some C code, for a floppy driver .
http://www.saunalahti.fi/~ehc50/jtmos/fdc.c

\\\\||////
(@@)
ASHLEY4.