ATA Bus Interface and ATA Commands
6-34 Quantum Fireball Plus AS 10.2/20.5/30.0/40.0/60.0 GB AT
6.7.6
6.7.66.7.6
6.7.6 Execute Drive Diagnostics
Execute Drive DiagnosticsExecute Drive Diagnostics
Execute Drive Diagnostics
COMMAND CODE – 90h
DESCRIPTION – The EXECUTE DRIVE DIAGNOSTIC command performs the
internal diagnostics test implemented in the drive. Drive 0 sets BSY within 400 ns
of receiving the command.
If drive 1 is present:
• Both drives execute diagnostics.
• Drive 0 waits up to six seconds for drive 1 to assert PDIAG-.
• If drive 1 does not assert PDIAG- to indicate a failure, drive 0 appends
80h with its own diagnostics status.
• If the host detects a drive 1 diagnostic failure when reading drive 0
status, it sets the DRV bit, then reads the drive 1 status.
If drive 1 is not present:
• Drive 0 reports only its own diagnostic results.
• Drives 0 clears BSY and generates an interrupt.
The diagnostic code written to the error is a unique 8 bit code. Table 6-18 list the
diagnostics codes.
Table 6-18
Table 6-18 Table 6-18
Table 6-18
Diagnostics Codes
Diagnostic Code
Diagnostic CodeDiagnostic Code
Diagnostic Code Description
DescriptionDescription
Description
01h No error detected
02h Formatter Device Error
03h Sector Buffer error
04h ECC circuitry error
05h Controlling microprocessor error
81h Drive 1 failed, Drive 0 passed
80h,82h-FF Drive 0 failed, Drive 1 failed