intel 8271/8271-6 Non-DMA Transfers in DMA Mode If the user desires, he may retain the use of interrupts generated upon command completions. This mode is accomplished by selecting the DMA capability, but using the DMA REQ/ACK pins as effective INT and CS signals, respectively. Drive Control Input Port Reading this port will give the CPU exactly the data that the FDC sees at the corresponding pins. Reading this port will update the drive not ready status, but will not clear the status. (See Read Drive Status Command for Bit locations.) Drive Control Output Port Format 0, Dg Os 0, Dz Dz Dy O% CTTitT i i ty WRITE ENABLE SEEK/STEP DIRECTION LOAD HEAD LOW HEAD CURRENT WRITE FAULT RESET/ OPTIONAL OUTPUT SELECT 0 SELECT 1 Each of these signals correspond to the chip pin of the same name. On standard-sized drives with write fault detection logic, bit 5 is set to generate the write fault reset signal. This signal is used to clear a write fault indication within the drive. On mini-sized drives, this bit can be used to turn on or off the drive motor prior to initi- ating a drive operation. A time delay after turn on may be necessary for the drive to come up to speed. The regis- ter must be read prior to writing the register in order to save the states of the remaining bits. When the register is subsequently written to modify bit 5, the remaining bits must be restored to their previous states. IBM DISKETTE GENERAL FORMAT INFORMATION The IBM Flexible Diskette used for data storage and retrieval is organized into concentric circular paths or TRACKS. There are 77 tracks on either one or both sides (surfaces) of the diskette. On double-sided diskettes, the corresponding top and bottom tracks are referred to as a CYLINDER. Each track is further divided into fixed length sections or SECTORS. The number of sectors per track — 26, 15 or 8 — is determined when a track is formatted and is dependent on the sector length — 128, 256 or 512 bytes respectively — specified. All tracks on the diskette are referenced to a physical index mark (a small hole in the diskette). Each time the hole passes a photodetector cell (one revotution of the diskette), an Index pulse is generated to indicate the logical beginning of a track. This index pulse is used to initiate a track formatting operation. Track Format Each Diskette Surface is divided into 77 tracks with each track divided into fixed length sectors. A sector canholda whole record or a part of a record. If the record is shorter than the sector length, the unused bytes are filled with binary zeros. If a record is longer than the sector length, the record is written over as many sectors as its length requires. The sector size that provides the most efficient use of diskette space can be chosen depending upon the record length required. Tracks are numbered from 00 (outer-most) to 76 (inner- most) and are used as follows: TRACK 00 reserved as System Label © rack TRACKS 01 through 74 used for data TRACKS 75 and 76 used as alternates. Each sector consists of an ID field (which holds a unique address for the sector) and a data field. The ID field is seven bytes long and is written for each sector when the track is formatted. Each !D field consists of an ID field Address Mark, a Cylinder Number byte which identifies the track number, a Head Number byte which specifies the head used (top or bottom) to access the sector, a Record Number byte identifying the sector number (t through 26 for 128 byte sectors), an N-byte specifying the byte length of the sector and two CRC (Cyclic Redundancy Check) bytes. The Gaps separating the index mark and the ID and data fields are written on a track when it is formatted. These gaps provide both an interval for switching the drive elec- tronics from reading or writing and compensation for rota- tional speed and other diskette-to-diskette and drive-to- drive manufacturing tolerances to ensure that data written on a diskette by one system can be read by another (diskette interchangeability). IBM Format Implementation Summary Track Format The disk has 77 tracks, numbered physically from 00 to 76, with track 00 being the outermost track. There are logicatly 75 data tracks and two alternate tracks. Any two tracks may be initialized as bad tracks. The data tracks are numbered logically in sequence from 00 to 74, skipping over bad tracks (alternate tracks replace bad tracks). Note: In IBM format track 00 cannot be a bad track. Sector Format Each track is divided into 26, 15, or 8 sectors of 128, 256, or 512 bytes length respectively. The first sector is numbered 01, and is physically the first sector after the physical index mark. The jogical sequence of the remaining sectors may be nonsequential physically. The location of these is determined at initialization by CPU software. Each sector consists of an ID field and a data field. All fields are separated by gaps. The beginning of each field is indicated by 6 bytes of (00)H followed by a one byte address mark. Address Marks Address Marks are unique bit patterns one byte in length which are used to identify the beginning of ID and Data fields. Address Mark bytes are unique from all other data AFN-00223B