intel 8271/8271-6 Bits 2 and 1: Completion Code The completion code field provides more detailed information about the completion type (See Table). It is important to note the hierarchical structure of the result byte. In very simple systems where only a GO-NO GO result is required, the user may simply branch on a zero result (a zero result is a good completion). The next Completion Completion level of complexity is at the completion type interface. The Type Code Event completion type supplies enough information so that the 00 00 Good Completion/ software may distinguish between fatal and non-fatal Scan Not Met errors. If a completion type 01 occurs, ten retries should 00 01 Scan Met Equal be performed before the error is considered unre- 00 10 Scan Met Not Equal coverable. 00 11 -— 01 00 Clock Error 01 01 Late DMA The Completion Type/Completion Code interface sup- 01 10 ID CRC Error plies the greatest detail about each type of completion. a bo Drive Not Ready This interface is used when detailed information about the 10 01 Write Protect transaction completion is required. 10 10 Track 0 Not Found 10 1 Write Fault ; 11 00 Sector Not Found Bit 0: 1 01 —— Not uséd (zero returned). 11 10 -— 11 " —— Table 3. Completion Code interpretation Definition interpretation Successful Comptetion/ Scan Not Met Scan Met Equal Scan Met Not Equal Clock Error ’ Late DMA ID Field CRC Error Data Field CRC Error Drive Not Ready Write Protect Track 00 Not Found Write Fault Sector Not Found The diskette operation specified was completed without error. If scan operation was specified, the pattern scanned was not found on the track addressed. The data pattern specified with the scan command was found on the track addressed with the specified comparison, and the equality was met. The data pattern specified with the scan command was found with tne specified comparison on the track addressed, but the equality was not met. During a diskette read operation, aclock bit was missing (dropped). Note that this function is disabled when reading any of the ID address marks twhich contain missing clock pulses). If this error occurs. the operation ts terminated tmmedi- ately and an interrupt is generated During either a diskette read or write operation, the data channel did notrespond within the allotted time interval to prevent data from being overwritten or lost This error immediately terminates the operation and generates an interrupt The CRC word (two bytes: derived from the data read in an !D field did not match the CRC word written in the !D field when the track was formatted. If this error occurs, the associated diskette operation is prevented and no data is transferred. During a diskette read operation. the CRC word derived from the data field read did not match the data field CRC word previously written. If this error occurs, the data read from the sector should be considered invalid. The drive addressed was not ready. This indication is caused by any of the following conditions: 1. Drive not powered up 2. Diskette not loaded 3. Non-existent drive addressed 4. Drive went not ready during an operation Note that this completion code is cleared only through an FDC read drive status command. A diskette write operation was specified on a write protected diskette. The intended write operation is prevented and no data is written on the diskette. During a seek to track 00 operation, the drive failed to provide a track 00 indication after being stepped 255 times. This error is dependent on the drive supported and indicates that the fault input to the FOC has been activated by the drive. Either the sector addressed could not be found within one complete revolution of the diskette (two index marks encountered) or the track address specified did not match the track address contained in the ID field. Note that when the tratk address specified and the track address read do not match. the FOC automatically increments its track address register (stepping the drive to the next track! and again compares the track addresses. If the track addresses still do not match, the track address register is incremented a second time and another comparison is made before the sector not found completion code is set. AFN-002238