IBM DTCA-24090 Hard Drive Specifications - Page 97

Command Protocol

Page 97 highlights

11.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 B S Y = 1 , and should proceed no further unless and until BSY= 0. For all commands, the host must also wait for R D Y = 1 before proceeding. A device must maintain either B S Y = 1 or D R Q = 1 at all times until the command is completed. The I N T R Q 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 B S Y = 1 or D R Q = 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. Figure 108 on page 171 shows the device timeout values. 11.1 Data In Commands These commands are: Identify Device Read Buffer Read Long Read Multiple Read Sectors SMART Read Attribute Values SMART Read Attribute Thresholds Execution includes the transfer of one or more 512 byte ( > 5 1 2 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 B S Y = 1 and prepares for data transfer. b. When a sector (or block) of data is available for transfer to the host, the device sets B S Y = 0 , sets D R Q = 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. © Copyright IBM Corp. 1997 89

  • 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

11.0 Command Protocol
The commands are grouped into different classes according to the protocols followed for command exe-
cution.
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 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.
Figure 108 on page 171 shows the device timeout values.
11.1 Data In Commands
These commands are:
Identify Device
Read Buffer
Read Long
Read Multiple
Read Sectors
SMART Read Attribute Values
SMART Read Attribute Thresholds
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.
Copyright IBM Corp. 1997
89