Specifications
• If the slave has not asserted PDIAG–, indicating a failure, the master
will append 80
H
to its own diagnostic status.
• Both drives will execute diagnostics.
• If slave diagnostic failure is detected when master drive status is read,
slave status is obtained by setting the DRV bit, and reading status.
If the slave fails diagnostics, the master compares (
ORs
) 80
H
with the
current status of the master and loads the appropriate code into the Error
register. If the slave passes diagnostics or there is no slave connected,
the master drive
ORs
00
H
with its own status and loads the appropriate
code into the Error register. The Diagnostic Code written to the Error
register is a unique 8-bit code as shown below.
Code Significance
01
H
No error detected
02
H
Formatter device error
03
H
Sector buffer error
04
H
ECC circuitry error
05
H
Controlling microprocessor error
8
x
H
Slave drive test failed
5.4.2 Format Track command
The implementation of the Format Track command (command code 50
H
)
is drive specific. The actions may be a physical reformatting of a track or
simply writing some value in the data fields.
The track address is specified in the Cylinder High and Cylinder Low
registers, and the number of sectors is specified in the Sector Count
register. When the command is accepted, the drive sets the DRQ bit and
waits for the host to transfer one 512-byte block of data. After the data
block is transferred, the drive clears DRQ, sets BSY and performs the
track formatting. The contents of the sector buffer are not written to the
media.
ATA Interface Reference Manual, Rev. C 39