K6610007
Rev.5
02.14.’03
- 84 -
6.3.2.10.4 Set Max Address Command [F9h, Sub 00h]
The Set Max Address Command overwrites the maximum LBA/cylinder of the device in a range of actual
device capacity. Once the device receives this command, all accesses beyond that LBA/cylinder are rejected.
Identify device command returns the LBA/Cylinder, which is set via this command as default.
Output Parameters to the device:
Task
File
Registers
7 6 5 4 3 2 1
0
Cylinder High
Maximum Cylinder High
Maximum LBA Bit23 - 16
*1
Cylinder Low
Maximum Cylinder Low
Maximum LBA Bit15 - 8
*1
Device/Head -
L -
DRV XX
Max LBA Bit27 - 24 *1
Sector Number
XX
Maximum LBA Bit7 - 0 *1
Sector
Count
X X X X X X X
B
Features
00h
*1
: In LBA Mode, these registers contain LBA
DRV : Device selection bit 0:DRV0 1:DRV1
L : Sector address mode select 0:CHS mode 1:LBA Mode
B : Option bit for selection whether nonvolatile. When B = 1, Maximum LBA/Cylinder which is set by Set
Max Address command is preserved over power-on, hardware reset, software reset. When B = 0, Maximum
LBA/cylinder which is set by SET Max Address command will be lost by power-on or hardware reset.
B set to one is not valid when the device is in Address Offset Mode. ABRT is set if B set to one when the
device is in Address Offset mode.
Read Max Address command should be issued and completed immediately prior to issuing Set Max Address
command. If the device receives Set Max Address command without a prior Read Max Address command,
the device aborts the Set Max Address command. After successful completion of this command, all
accesses beyond that LBA/Cylinder will be rejected with setting ID not found error. If the device receives a
second nonvolatile Set Max Address command (B=1) after a power on or hardware reset, the device reports
an ID Not Found error.
If the maximum value to be set exceeds the capacity of the device, or the device is in the Set Max Locked or
Set Max Frozen state, then the device returns command aborted.