2 pio data out commands – Toshiba MK6017MAP User Manual

Page 120

Advertising
background image

360014937

Copyright ©2000 Toshiba corporation. All rights reserved.

- 620 -

11.2 PIO data out commands

Commands for this class are:

(FORMAT TRACK)

WRITE BUFFER

WRITE LONG (with and without retry)

WRITE MULTIPLE

WRITE SECTOR(S) (with and without retry)

WRITE VERIFY

SECURITY DISABLE PASSWORD

SECURITY ERASE UNIT

SECURITY SET PASSWORD

SECURITY UNLOCK

PIO data out protocol:

a) The host writes any required command parameters to the Features, Sector Count, Sector Number, Cylinder

High, Cylinder Low and Device/Head registers.

b) The host writes the command code to the Command register.

c) The drive sets the BSY bit .

d) For each sector (or block) of data to be transferred:

1) When the drive is ready to receive a sector (or block) of data from the host, it sets the DRQ bit and clears

the BSY bit.

2) The host writes a sector (or block) of data via the Data Register.

3) After receiving the sector (or block) , the drive clears the DRQ bit and sets the BSY bit.

4) When the drive has finished processing the sector (or block) , it sets the DRQ bit and clears the BSY bit

and asserts INTRQ.

5) After detecting INTRQ, the host reads the Status register.

6) The drive negates INTRQ in response to the Status register being read.

e) For Write Long command, the execution will be as follows.

1) When the drive is ready to receive a sector of data from the host, the drive sets the DRQ bit and clears the

BSY bit.

2) The host writes a sector (or block) of data via the Data Register.

3) After receiving the sector (or block), the drive clears the DRQ bit and sets the BSY bit.

4) After the drive has finished processing the sector (or block) data , it sets the DRQ bit and clears the BSY

bit.

5) In response to the DRQ being set, the host transfers ECC data (8 bit) via the Data register.

6) When drive is ready to receive the data from the host, it sets the BSY bit.

7) When the drive has finished processing ECC data , the drive clears the BSY bit and asserts INTRQ.

8) After detecting INTRQ, the host reads the Status register.

The drive negates INTRQ in response to the Status register being read.

Advertising