
IT8673F
7
11.4.11.2
The READ DELETED DATA command is the same as the READ DATA command, except that a Deleted
Data Address Mark (as opposed to a Data Address Mark) is read at the beginning of the Data Field. This
command is typically used to mark a bad sector on a diskette.
READ DELETED DATA
11.4.11.3
After receiving a pulse from the INDEX# pin, the READ A TRACK command reads the entire data field from
each sector of the track as a continuous block. If any ID or Data Field CRC error is found, the FDC
continues to read data from the track and indicates the error at the end. Because the Multi-Track [and Skip]
operation[s] is[are] not allowed under this command, the MT and SK bits should be low (0) during the
command execution.
This command terminates normally when the number of sectors specified by EOT has not been read. If,
however, no ID Address Mark has been found by the second occurrence of the INDEX pulse, the FDC will
set the IC code in the ST0 to 01, indicating an abnormal termination, and then finish the command.
READ A TRACK
11.4.11.4
The WRITE DATA command contains nine command bytes that place the FDC into the Write Data mode.
Each WRITE operation is initialized by a WRITE DATA command. The FDC locates the sector to be written
by reading ID fields and matching the sector address from the command with the information on the
diskette. Then the FDC reads the data from the host via the FIFO and writes the data into the sector’s data
field. Finally, the FDC computes the CRC value, storing it in the CRC field, and increments the sector
number (stored in the R parameter) by “1”. The next data field is written into the next sector in the same
manner. Such a continuous write function is called a "Multi-Sector Write Operation".
If a TC or an implied TC (FIFO overrun/underrun) is received, the FDC stops writing data and fills the
remaining data field with 0s. If a check of the CRC value indicates an error in the sector ID Field, the FDC
will set the IC code in the ST0 to 01 and the DE bit in the ST1 to 1, indicating an abnormal termination, and
then terminate the WRITE DATA command. The maximum data transfer capacity and the DTL, N, and MT
parameters are the same as in the READ DATA command.
WRITE DATA
11.4.11.5
The WRITE DELETED DATA command is the same as the WRITE DATA command, except that a Deleted
Data Address Mark (instead of a Data Address Mark) is written at the beginning of the Data Field. This
command is typically used to mark a bad sector on a diskette.
WRITE DELETED DATA
11.4.11.6
The FORMAT A TRACK command is used to format an entire track. Initialized by an INDEX pulse, it writes
data to the Gaps, Address Marks, ID fields and Data fields according to the density mode selected (FM or
MFM). The Gap and Data field values are controlled by the host-specified values programmed into N, SC,
GPL, and D during the Command phase. The Data field is filled with the data byte specified by D. The four
data bytes per sector (C, H, R, and N) needed to fill the ID field are supplied by the host. The C, R, H, and
N values must be renewed for each new sector of a track. Only the R parameter value must be changed
when a sector is formatted, allowing the disk to be formatted with non-sequential sector addresses. These
steps are repeated until a new INDEX pulse is received, at which point the FORMAT A TRACK command is
terminated.
FORMAT A TRACK