intel 8271/8271-6 Data Format Data is written (general case) in the following manner: MISSING CLOCK CLOCK CLOCK CLOCK DATA “0” DATA “14” DATA “1" SI SJLILILTS1 ae Te = FULL BIT TIME = NOMINALLY 4,8° Ty = HALF BIT TIME = NOMINALLY 2,0° DATA “1” PL “Fos Stanger Denne References “The IBM Diskette for Standard Data Interchange,” IBM Document GA21-9182-0. “System 32," Chapter 8, IBM Document GA21-9176-0. Bad Track Format The Bad Track Format is the same as the good track format except that the bad track ID field is initialized as follows: C=H=R=N=(FP)H When formatting, bad track registers should be set to FF,, for the drive during the formatting, thus specifying no bad tracks. Thus, all tracks are left available for for- matting. The track following the bad track(s) should be one higher in number than track before the bad track(s). Upon completion of the format the bad tracks should be set up using the write special register command. The 8271 will then generate an extra step pulse to cross the bad track, locating a new track that now happens to be an extra track out. Format Track Format Command Ay Ao D> D6 Os Da 03 D2) Dy Do cmp: | o o fst Psy ys fio fo fo | 1 fs PAR 0 1 TRACK ADDRESS PAR: | o 1 GAP 3 SIZE MINUS 6 PAR Cy) 1' | RECORD LENGTH | NO. OF SECTORS:TRACK PAR 0 } GAP 5 SIZE MINUS 6 PAR 0 1 GAP 1 SIZE MINUS 6 The format command can be used to initialize a disk track compatible with the {8M 3740 format. A Shugart “IBM Type” mini-floppy format may also be generated. The Format command can be used to initialize a disk- ette, one track at a time. When format command is used, the program must supply ID fields for each sector on the track. During command execution, the supplied ID fields (track head sector addresses and the sector length) are written sequentially on the diskette. The ID address marks originate from the 8271 and are written auto- matically as the first byte of each ID field. The CRC char- acter is written in the last two bytes of the ID field and is derived from the data written in the first five bytes. Dur- ing the formatting operation, the data field of each sec- tor is filled with data pattern (E5)4. The CRC, derived from the data pattern is also appended to the last byte. 1. The parameter 2 (D7— Ds) of the Format command specity record length, the bits are coded the same way as in the Read Data commands. 2. The programmable gap sizes (gap 3, gap 5, and gap 1) must be programmed such that the 6 bytes of zero (sync) are sub- tracted from the intended gap size i.e., if gap 1 is intended to be 16 bytes long, programmed length must be 16-6 = 10 bvtes (of FF,,’s). Mini-Floppy Disk Format The mini-floppy disk format differs from the standard disk format in the following ways: 1. Gap 5 and the Index Address mark have been elimi- nated. 2. There are fewer sectors/tracks. GAPS The following is the gap size and description summary: Gap 1 Programmable Gap 2 17 Bytes Gap 3. Programmable Gap 4 Variable Gap 5 Programmable The last six bytes of gaps 1,2,3 and 5 are (00)H, all other bytes in the gaps are (FFiH. The Gap 1,3 and § count specified by the user are the number of bytes of (FF)H. Gap 4 is written until tne leading edge of the index pulse. If a Gap 5 size of zero is specified, the Index Mark is not written. Gap 1: This gap separates the index ad- N bytes FF’s dress mark of the index pulse from 6 bytes 0’s forsync the first ID mark. It is used to pro- tect the first ID field from a write on the last physical sector of the cur- rent track. Gap 2: This gap separates the ID field from 11 bytes FF’s the data mark and field such that 6 bytes 0’s forsync during a write only the data field will be changed even if the write gate turns on early, due to drive speed changes. Gap 3: This gap separates a data area from N bytes FF’s the next ID field. It is used so that 6 bytes 0’s forsync during drive speed changes the next ID mark will not be overwritten, thus causing loss of data. Gap 4: This gap fills out the rest of the disk FF’s only and is used for slack during format- ting. During drive speed variations this gap will shrink or grow if the disk is re-formatted. Gap 5: This gap separates the last sector N bytes FF’s from the Index Address mark and 6 bytes 0’s for sync is used to assure that the index ad- dress mark is not destroyed by writing on the last physical data sector on the track. The number of FF bytes is programmabie for gaps 1, 3 and 5. AFN-00223B