Page 1 of 1
Floppy driver is timing out!!
Posted: Thu Dec 20, 2007 2:21 pm
by stevenup7002
Hi guys, I'm having some problems with a floppy driver I'm implementing. The problem lies within the function: Read_Sectors_Floppy. Around line 196, it seems to be returning a timeout error there. I really don't know why, probably something very stupid I've done
.
Heres the driver:
http://www.motronsoftware.com/files/sendla/floppy.c
Thanks for reading,
-Steve
Posted: Fri Dec 21, 2007 2:42 am
by AJ
Hi,
Does it still timeout if you change the timer_wait value to something completely ridiculous (I'm aware you're already waiting 200ms * 4, but it may be worth a go)?
Does the problem occur on an emulator / real hardware / both?
Cheers,
Adam
Posted: Sat Dec 22, 2007 11:05 am
by stevenup7002
Hi, I've set all of the timer_waits to higher and lower numbers, and it still times out on emulators and real machines..
Posted: Sat Dec 22, 2007 11:44 am
by frank
In my floppy driver I don't actually read the status register after sending the last 0xFF to the floppy drive, I simply wait for an interrupt and then read in ST0 and so on.