IBM IC35L020 Hard Drive Specifications - Page 109

Command Protocol, PIO Data In commands

Page 109 highlights

14.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 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 one to zero 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. 14.1 PIO Data In commands These commands are: O Identify Device O Read Buffer O Read Long O Read Multiple O Read Sectors O S.M.A.R.T. Read Attribute Values O S.M.A.R.T. Read Attribute Thresholds O 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, Sector Number, Cylinder, and Device/Head 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. f. The device sets DRQ=0 after the sector-or block-has been transferred to the host. Deskstar 60 GXP Hard disk drive specification 95

  • 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

14.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 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 one to
zero 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.
14.1
PIO Data In commands
These commands are:
Identify Device
Read Buffer
Read Long
Read Multiple
Read Sectors
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, Sector Number, Cylinder,
and Device/Head 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.
f.
The device sets DRQ=0 after the sector—or block—has been transferred to the host.
Deskstar
60 GXP Hard disk drive specification
95