Hitachi HTS541040G9AT00 Specifications - Page 105

Command protocol

Page 105 highlights

12.0 Command protocol The commands are grouped into different classes according to the protocols followed for command execution. The command classes with their associated protocols are defined below. For all commands, the host must first check to see if BSY = 1, and should proceed no further unless and until BSY = 0. For all commands, the host must also wait for RDY = 1 before proceeding. A device must maintain either BSY = 1 or DRQ = 1 at all times until the command is completed. The INTRQ signal is used by the device to signal most, but not all, times when the BSY bit is changed from 1 to 0 during command execution. A command shall only be interrupted with a hardware or software reset. The result of writing to the Command register while BSY = 1 or DRQ = 1 is unpredictable and may result in data corruption. A command should only be interrupted by a reset at times when the host thinks there may be a problem, such as a device that is no longer responding. Interrupts are cleared when the host reads the Status Register, issues a reset, or writes to the Command Register. See Section 14.0, "Time-out values" on page 191 for the device time-out values. 12.1 Data In commands The following are Data In commands: • Device Configuration Identify • Identify Device • Read Buffer • Read Long • Read Multiple • Read Multiple EXT • Read Sector(s) • Read Sector(s) EXT • S.M.A.R.T. Read Attribute Values • S.M.A.R.T. Read Attribute Thresholds • S.M.A.R.T. Read log sector Execution includes the transfer of one or more 512-byte (> 512 bytes on Read Long) sectors of data from the device to the host. 1. The host writes any required parameters to the Features, Sector Count, LBA, Cylinder, and Device Registers. 2. The host writes the command code to the Command Register. 3. For each sector (or block) of data to be transferred: a. The device sets BSY = 1 and prepares for data transfer. b. When a sector (or block) of data is available for transfer to the host, the device sets BSY = 0, sets DRQ = 1, and interrupts the host. c. In response to the interrupt, the host reads the Status Register. d. The device clears the interrupt in response to the Status Register being read. e. The host reads one sector (or block) of data via the Data Register. Travelstar 5K100 Hard Disk Drive Specification 91

  • 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
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227

Travelstar 5K100 Hard Disk Drive Specification
91
12.0
Command protocol
The commands are grouped into different classes according to the protocols followed for command execution. The
command classes with their associated protocols are defined below.
For all commands, the host must first check to see if BSY = 1, and should proceed no further unless and until
BSY
= 0. For all commands, the host must also wait for RDY = 1 before proceeding.
A device must maintain either BSY = 1 or DRQ = 1 at all times until the command is completed. The INTRQ sig-
nal is used by the device to signal most, but not all, times when the BSY bit is changed from 1 to 0 during com-
mand execution.
A command shall only be interrupted with a hardware or software reset. The result of writing to the Command reg-
ister while BSY = 1 or DRQ = 1 is unpredictable and may result in data corruption. A command should only be
interrupted by a reset at times when the host thinks there may be a problem, such as a device that is no longer
responding.
Interrupts are cleared when the host reads the Status Register, issues a reset, or writes to the Command Register.
See Section 14.0, “Time-out values” on page 191 for the device time-out values.
12.1
Data In commands
The following are Data In commands:
Device Configuration Identify
Identify Device
Read Buffer
Read Long
Read Multiple
Read Multiple EXT
Read Sector(s)
Read Sector(s) EXT
S.M.A.R.T. Read Attribute Values
S.M.A.R.T. Read Attribute Thresholds
S.M.A.R.T. Read log sector
Execution includes the transfer of one or more 512-byte (> 512 bytes on Read Long) sectors of data from the
device to the host.
1.
The host writes any required parameters to the Features, Sector Count, LBA, Cylinder, and Device Regis-
ters.
2.
The host writes the command code to the Command Register.
3.
For each sector (or block) of data to be transferred:
a.
The device sets BSY = 1 and prepares for data transfer.
b.
When a sector (or block) of data is available for transfer to the host, the device sets BSY = 0, sets
DRQ
= 1, and interrupts the host.
c.
In response to the interrupt, the host reads the Status Register.
d.
The device clears the interrupt in response to the Status Register being read.
e.
The host reads one sector (or block) of data via the Data Register.