Hitachi C4K60 Specifications - Page 50

Command Protocol, 3.1. PIO Data In Command, 3.2. PIO Data Out Command

Page 50 highlights

7.3. Command Protocol 7.3.1. PIO Data In Command Execution includes the transfer of one or more 512 byte sectors of data from the device to the host. 1) The host writes any required parameters to the Features, Sector Count, LBA Low (Sector Number), LBA Mid (Cylinder Low), LBA High (Cylinder High), and Device/Head registers. 2) The host writes the command code to the Command Register. 3) The device sets BSY and prepares for data transfer. 4) When a sector(block) of data is available, the device sets DRQ and clears BSY prior to asserting INTRQ. 5) After detecting INTRQ, the host reads the Status Register, then reads one sector (block) of data via the Data Register. In response to the Status Register being read, the device negates INTRQ. 6) The device clears DRQ. If transfer of another sector (block) is required, the device also sets BSY and the above sequence is repeated from 4). 7.3.2. PIO Data Out Command Execution includes the transfer of one or more 512-byte sectors of data from the host to the device. 1) The host writes any required parameters to the Features, Sector Count, LBA Low (Sector Number), LBA Mid (Cylinder Low), LBA High (Cylinder High), and Device/Head Registers. 2) The host writes the command code to the Command Register. 3) The device sets the DRQ when it gets ready to accept the first sector(block) of data. 4) The host writes one sector block of data to the Data Register. 5) The device clears DRQ and sets BSY. 6) When the device has processed the sector(block), it clears BSY and set the INTRQ signal to "ON". The device sets DRQ again if another sector is required to transfer. 7) After detecting INTRQ, the host reads the Status Register. 8) The device clears the interrupt. 9) If another sector (block) is required to be transferred, the above steps 3) to 8) are repeated. K6610170 Rev.2 Dec 22, 2004 - 50 -

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145

K6610170
Rev.2
Dec 22, 2004
- 50 -
7.3. Command Protocol
7.3.1. PIO Data In Command
Execution includes the transfer of one or more 512 byte sectors of data from the device to the host.
1) The host writes any required parameters to the Features, Sector Count, LBA Low (Sector Number),
LBA Mid (Cylinder Low), LBA High (Cylinder High), and Device/Head registers.
2)
The host writes the command code to the Command Register.
3)
The device sets BSY and prepares for data transfer.
4)
When a sector(block) of data is available, the device sets DRQ and clears BSY prior to asserting
INTRQ.
5)
After detecting INTRQ, the host reads the Status Register, then reads one sector (block) of data via the
Data Register. In response to the Status Register being read, the device negates INTRQ.
6)
The device clears DRQ. If transfer of another sector (block) is required, the device also sets BSY and
the above sequence is repeated from 4).
7.3.2. PIO Data Out Command
Execution includes the transfer of one or more 512-byte sectors of data from the host to the device.
1)
The host writes any required parameters to the Features, Sector Count, LBA Low (Sector
Number), LBA Mid (Cylinder Low), LBA High (Cylinder High), and Device/Head Registers.
2)
The host writes the command code to the Command Register.
3)
The device sets the DRQ when it gets ready to accept the first sector(block) of data.
4)
The host writes one sector block of data to the Data Register.
5)
The device clears DRQ and sets BSY.
6)
When the device has processed the sector(block), it clears BSY and set the INTRQ signal to "ON".
The device sets DRQ again if another sector is required to transfer.
7)
After detecting INTRQ, the host reads the Status Register.
8)
The device clears the interrupt.
9) If another sector (block) is required to be transferred, the above steps 3) to 8) are repeated.