how to write a floppy driver without DMA?

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
iamxiaohan

how to write a floppy driver without DMA?

Post 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! :)
pkd

Re:how to write a floppy driver without DMA?

Post 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.]
KieranFoot

Re:how to write a floppy driver without DMA?

Post 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...
aladdin

Re:how to write a floppy driver without DMA?

Post 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 ;)
iamxiaohan

Re:how to write a floppy driver without DMA?

Post by iamxiaohan »

thank you very much!
i'll try it ;D
iamxiaohan

Re:how to write a floppy driver without DMA?

Post 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!
ASHLEY4

Re:how to write a floppy driver without DMA?

Post by ASHLEY4 »

Here is some C code, for a floppy driver .
http://www.saunalahti.fi/~ehc50/jtmos/fdc.c

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