8271/8271-6 NO START SCAN OPERATION ? SET: WRITE DMAC TC STOP AND MODE SET OMA ENABLE BITS REGISTER WRITE DMAC MODE SET REGISTER | SET: AUTO LOAD AND OMA ENABLE BITS L WRITE DMAC CONTROL REGISTER I WRITE DMAC STARTING MEMORY ADORESS REGISTER i ENO C D) Figure 24. User DMA Channel Initialization Flowchart Read ID Command A, Ay D, De D, 0, D; dD, dD, Dy T q qT y qT q cmp. | 0 o , SEL set oO 14 | } | of] a fo i | i i i i _ | PAR 8 1 + TRACK ADDRESS ft ge ee pe me ep ee 4 T . PAR 0 1 o | 0 qT Oo} 0 :; @ |} o | o i) a es OS \ i PAR oO 71 NUMBER OF ID FIELDS The Read ID command transfers the specified number of ID fields into memory (beginning with the first ID field after Index). The CRC character is checked but not transferred. These fields are entered into memory in the order in which they are physically located on the disk, with the first field being the one starting at the index pulse. Data Processing Commands All the routine Read/Write commands examine specific drive status lines before beginning execution, perform an implicit seek to the track address and load the drive's read/write head. Regardless of the type of command (i.e., read, write or verify), the 8271 first reads the ID field(s) to verify that the correct track has been located (see sector not found completion code) and also to locate the addressed sector. When a transfer is com. plete (or cannot be completed), the 8271 sets the inter- rupt request bit in the status register and provides an in- dication of the outcome of the operation in the result register. if a CRC error is detected during a multisector transfer. Processing is terminated with the sector in error. The address of the failing sector number can be determined by examining the Scan Sector Number register using the Read Special Register commana. Full power of the multisector read/write commands can be realized by doing DMA transfer using IntelĀ® 8257 DMA Controller. For example, in a 128 byte per sector multisector write command, the entire data block (containing 128 bytes times the number of sectors) can be located in a disk memory buffer. Upon completion of the command phase, the 8271 begins execution by accessing the desired track, verifying the ID field, and locating the data field of the first record to be written. The 8271 then OMA-accesses the first sector and starts counting and writing one byte at a time until all 128 bytes are written. It then locates the data field of the next sector and repeats the procedure until all the specified sectors have been written. Upon completion of the execution phase the 8271 enters into the result phase and interrupts the CPU for availability of status and completion results. Note that all read/write commands, single or multisector are executed without CPU intervention, Note, execution of multi-sector operations are faster if the sectors are not interleaved. 128 Byte Single Record Format A, ag Dy De Os Dg Oy Dy O Dy cmo.| 0 : 0 seu sft COMMAND OPCODE par | o 1 TRACK ADOR 0 255 SR es ee es pan fo i 1 SECTOR 0 255 Commands Opcode READ DATA 12 READ DATA AND DELETED DATA 16 WRITE DATA OA WRITE DELETED DATA OE VERIFY DATA AND DELETED DATA 1E AFN-002238