Re:Using floppy disc
Posted: Tue Aug 03, 2004 6:13 am
Hi,
Cheers,
Brendan
CHS = Cylinder, Head, Sector (where cylinder is 0 to ?, head is 0 to ? and sector is 1 to ?). To find a sector on a disk the hardware normally uses CHS, while most OSs use logical block addressing (LBA). This means that software that uses the floppy driver may request LBA sectors 0 to 33, which the device driver will need to convert into CHS format. My OS actually goes one step further and gets rid of blocks/sectors, so that software may ask the device driver for 3 bytes starting at any 64 bit logical offset between 0 and 1474556 (assuming a 1440 Kb floppy).Brandon wrote: Brendan:
Whats the CSH? And if I chose not to use DMA, how do I read the "next byte". I send a read command, wait for an IRC, but how do I recieve the next byte?
As the disk spins every sector on both sides of the disk that is within the selected cylinder passes the heads. Half of the sectors pass by the top head, and the other half of them pass by the bottom head. It would be physically impossible to get the heads closer, unless you clamp the disk in between them (like the front brakes on a bicycle), which would scratch/destroy the data.Brandon wrote: Can I only park the head at a cylinder and not "closer" to where I want?
Cheers,
Brendan