🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #29

Re: Floppy Disk Controller Questions

#29
From: David J W Emrich
Date: Wed, 29 Jul 1992 15:55
49 lines
2384 bytes
mimperat@cs.dal.ca (Marco Imperatore) writes:

>Hi all.

>I'm trying to program the FDC directly through the I/O ports (0x3f2-0x3f5).
>I think I have some things figured out but there are still a lot of things
>which are unclear.  For instance:
>  1.  Which FDC commands provide an interrupt (IRQ6) when complete?

...lots of fun questions deleted......(brevity)

>As you can see I'm still rather uninformed.  I ordered the Intel Peripherals
>book and it should be here in a few days but I'm not sure if it will contain
>any information on the FDC.

The Intel book is quite good to have anyhow, but you will probably find
that it doesn't do justice to the formatting modes.  What you probably
need is an IBM publication that covers the abstract information about
floppies, since they (or DEC) came up with the idea of a floppy in the
first place.  A good application note from IBM or DEC will explain how
data is written on diskettes, right from the low level (i.e. magnetic
fields) to high level (Dos or equiv. level).

I don't know many answers for you questions, since I haven't had the
need to go so deep into things, but a few things I can answer.  
Numbers of heads, etc. etc. are following (MS-DOS formats assumed)
Form-
atted		Num of	Num of	Sctrs	Bytes
Size		Heads	Tracks	/ Trk	/ Sctr	Normal	Unusual	Obs
160Kb	5.25"	1	40	8	512		X	X
180Kb	5.25"	1	40	9	512	X		X
320Kb	5.25"	2	40	8	512		X	X
360Kb	5.25"	2	40	9	512	X		X
720Kb	3.5"	2	80	9	512	X
1.2M	5.25"	2	80	15	512	X
1.4M	3.5"	2	80	18	512	X

In general, approx. formatted capacity is Heads * Tracks * Sectors *
Bytes-per-sector.

There's one (of the easier) questions answered.  Also, a look at
Norton's Utilities may yield more answers that may be helpful.
Especially Nortons Disk Doctor, Disk statistics option.

Best of luck with the rest of your quest(ions!).

[dav]   aka.
David Emrich
gude@uniwa.uwa.edu.au
Technical Details
Message-ID: <1992Jul29.155554.14834@uniwa.uwa.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!gude
References: <Bs44qA.Dqq@cs.dal.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc,comp.sys.ibm.pc.hardware,comp.sys.ibm.pc.misc,comp.sys.ibm.pc.programmer,comp.ibm.pc.hardware
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!gude
From: gude@uniwa.uwa.edu.au (David J W Emrich)
Subject: Re: Floppy Disk Controller Questions
Message-ID: <1992Jul29.155554.14834@uniwa.uwa.edu.au>
Keywords: FDC
Organization: University of Western Australia
References: <Bs44qA.Dqq@cs.dal.ca>
Date: Wed, 29 Jul 1992 15:55:54 GMT
Lines: 49