Toshiba 4006GAH Computer Drive User Manual


 
Toshiba Corporation Digital Media Network Company
Page 63 of 157
© 2005, Copyright TOSHIBA Corporation All Rights Reserved
10.8.7 Write Sector (30h/31h)
COMMAND CODE
0 0 1 1 0 0 0 X
REGISTER
REGISTER SETTING NORMAL COMPLETION
DR drive no. no change
CY starting cylinder last possible
HD starting head last possible
SN starting sector start sector
SC no. of sector to write 00H
FT no change
LBA starting address last possible
The drive seeks to the target cylinder and selects the head and begins to write to the number of sectors
defined in SC register (1-256) starting from the target sector. DRQ in status register is set as soon as the
command register is written and the buffer RAM receives the data transferred from the host . After 1 sector
is transferred to the buffer RAM, the drive resets DRQ, sets BSY and begins write operation. In case of
multi-sector transfer, it sets DRQ bit, resets BSY and generates Interrupt to inform host that it is ready to
transfer the next 1 sector of data. The drive will seek to the target cylinder if the head is not on the target
track (implied seek). After transferring the last data in the buffer, it resets BSY and issues an interrupt.
If an error occurs during multi-sector transfer, it will terminate the transfer by setting error information in
status register and error register, without shifting into data transfer mode from the host. CY, HD, SN ( LBA)
registers show the address where error has occurred.
10.8.8 Write Sector EXT (34h)
COMMAND CODE
0 0 1 1 0 1 0 0
REGISTER
REGISTER SETTING NORMAL COMPLETION
DR drive no. no change
LBA
Low
Current
Previous
LBA(7:0)
LBA(31:24)
HOB=0
HOB=1
last address
last address
LBA
Mid
Current
Previous
LBA(15:8)
LBA(39:32)
HOB=0
HOB=1
last address
last address
LBA
High
Current
Previous
LBA(23:16)
LBA(47:40)
HOB=0
HOB=1
last address
last address
SC Current
Previous
sector count(7:0)
sector count(15:8)
HOB=0
HOB=1
00H
00H
FT Current
Previous
reserved
reserved
HOB=0
HOB=1
no change
no change
The drive seeks to the target cylinder and selects the head and begins to write to the number of sectors
defined in SC register (1-65536) starting from the target sector. DRQ in status register is set as soon as
the command register is written and the buffer RAM receives the data transferred from the host . After 1
sector is transferred to the buffer RAM, the drive resets DRQ, sets BSY and begins write operation. In
case of multi-sector transfer, it sets DRQ bit, resets BSY and generates Interrupt to inform host that it is
ready to transfer the next 1 sector of data. The drive will seek to the target cylinder if the head is not on the
target track (implied seek). After transferring the last data in the buffer, it resets BSY and issues an
interrupt.
If an error occurs during multi-sector transfer, it will terminate the transfer by setting error information in
status register and error register, without shifting into data transfer mode from the host. LBA registers show
the address where error has occurred.
This command is available in LBA addressing only.