30
5. IDE COMMAND DESCRIPTIONS
This chapter describes various commands that can be performed via the IDE command
block. These commands are performed by writing to register
1F7h
. The core commands
common to all drives are presented here. Contact Ziatech for drive-specific support.
CORE COMMANDS
All commands are decoded from the command register. The host computer programs
the host interface to perform commands. The interface returns status to the host at
command completion. When two drives are daisy chained on the interface, commands
are written in parallel to both drives. Only the selected drive executes the command,
except for the diagnostic command. In that case, both drives execute the command and
the slave drive reports its status to the master via the PDIG signal.
Drives are selected by the DRV bit in the drive/head register and designated as either a
master or a slave by a jumper on the drive. When the DRV bit is reset, the master drive
is selected. When the DRV bit is set, the slave drive is selected. When drives are daisy
chained, one must be jumpered as the master and one as the slave. When a single
drive is attached to the interface, it must be jumpered as the master.
To issue a command, load the pertinent registers in the command block, activate the
interrupt enable bit (IEN in the digital output register), and then write the command code
to the command register. Execution begins as soon as the command register is written.
Recalibrate (1xh)
This command moves the read/write heads from anywhere on the disk to cylinder 0.
Upon receipt of the command, the drive sets BSY and executes a seek to cylinder 0.
The drive then waits for the seek to complete before updating status, resetting BSY, and
generating an interrupt. If the drive cannot reach cylinder 0, the error bit is set in the
status register and the track 0 bit is set in the error register. An aborted command
response is given if the drive is not spinning or is not on track. Upon successful
completion of the command, the command block registers are as follows:
Error Register
00
Sector Count
Unchanged
Sector Number
Unchanged
Cylinder Low
00
Cylinder High
00
SDH
Unchanged
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com