13.29 Set Max ADDRESS (F9h)
Command Block Output Registers
Register
Data
Feature
Sector Count
Sector Number
Cylinder Low
Cylinder High
Device/Head
Command
Error Register
7
6
5
CRC
UNC
0
0
0
0
Figure 118. Set Max ADDRESS (F9h)
The Set Max ADDRESS command overwrites the max LBA/CYL of the drive in a range of actual device
capacities. Once the device receives this command, all accesses beyond that LBA/CYL are rejected by
setting the ABORT bit in the status register. Identify the device command and Identify the device DMA
command returns the LBA/CYL which is set via this command as a default value.
This command implement SET MAX security extension commands as subcommands. But regardless of
Feature register value, the case this command is immediately preceded by a Read Native Max ADDRESS
command, it is interpreted as a Set Max ADDRESS command.
The Read Native Max ADDRESS command should be issued and completed immediately prior to issuing
the Set Max ADDRESS command. If it is not, this command is interpreted as a Set Max security extension
command which is designated by feature register.
If Set Max security mode is in the Locked or Frozen, the Set Max ADDRESS command is aborted. For
more information, see section 11.10.2, "Set Max security extension commands" on page 93.
In CHS mode, Cylinder High, Cylinder Low specify the maximum cylinder number. The Head number of
DEVICE/HEAD and Sector Number are ignored. The default value (see default CHS in Identify device
information) is used for that.
In LBA mode, the Head number of DEVICE/HEAD , the Cylinder High, the Cylinder Low, and the Sector
Number specify the max LBA. This command will set this LBA as the max LBA of the device.
7 6 5 4 3 2 1 0
- - - - - - - -
V V V V V V V V
- - - - - - - B
V V V V V V V V
V V V V V V V V
V V V V V V V V
1 L 1 D H H H H
1 1 1 1 1 0 0 1
4
3
2
1
IDN
0
ABT
T0N
AMN
0
0
V
0
Hitachi Travelstar 60GH & 40GN hard disk drive specifications
Command Block Input Registers
Register
Data
Error
Sector Count
Sector Number
Cylinder Low
Cylinder High
Device/Head
Status
Status Register
0
7
6
5
BSY
RDY
DF
0
0
V
0
161
7 6 5 4 3 2 1 0
- - - - - - - -
see below
- - - - - - - -
V V V V V V V V
V V V V V V V V
V V V V V V V V
- - - - H H H H
see below
4
3
2
1
0
DSC
DRQ
COR
IDX
ERR
-
-
0
-
V