Function Set (B0H); Figure 103 S.m.a.r.t. Function Set Command (B0H) - Hitachi HTS541616J9AT00 - Travelstar 160 GB Hard Drive Specifications

2.5 inch ata/ide hard disk drive
Hide thumbs Also See for HTS541616J9AT00 - Travelstar 160 GB Hard Drive:
Table of Contents

Advertisement

14.39 S.M.A.R.T Function Set (B0h)
Command Block Output Registers
Register
Data
Feature
Sector Count
LBA Low
LBA Mid
LBA High
Device
Command
Error Register
7
6
5
4
CRC UNC
0
IDN
0
0
0
0

Figure 103 S.M.A.R.T. Function Set Command (B0h)

The S.M.A.R.T. Function Set command provides access to Attribute Values, Attribute Thresholds and other low
level subcommands that can be used for logging and reporting purposes and to accommodate special user needs. The
S.M.A.R.T. Function Set command has several separate subcommands which are selectable via the device's Features
Register when the S.M.A.R.T. Function Set command is issued by the host.
In order to select a subcommand the host must write the subcommand code to the device's Features Register before
issuing the S.M.A.R.T. Function Set command. The subcommands and their respective codes are listed below.
Subcommand
Code
S.M.A.R.T. Read Attribute Values
D0h
D1h
S.M.A.R.T. Read Attribute Thresholds
D2h
S.M.A.R.T. Enable/disable Attribute Autosave
D3h
S.M.A.R.T. Save Attribute Values
D4h
S.M.A.R.T. Execute Off-line Immediate
D5h
S.M.A.R.T. Read Log Sector
D6h
S.M.A.R.T. Write Log Sector
D8h
S.M.A.R.T. Enable Operations
D9h
S.M.A.R.T. Disable Operations
DAh
S.M.A.R.T. Return Status
DBh
S.M.A.R.T. Enable/Disable Automatic Off-Line
14.39.1.1 S.M.A.R.T. Read Attribute Values (Subcommand D0h)
This subcommand returns the device's Attribute Values to the host. Upon receipt of the S.M.A.R.T. Read Attribute
Values subcommand from the host, the device asserts BSY, saves any updated Attribute Values to the Attribute
Data sectors, asserts DRQ, clears BSY, asserts INTRQ, and then waits for the host to transfer the 512 bytes of
Attribute Value information from the device via the Data Register.
14.39.1.2 S.M.A.R.T. Read Attribute Thresholds (Subcommand D1h)
This subcommand returns the device's Attribute Thresholds to the host. Upon receipt of the S.M.A.R.T. Read
Attribute Thresholds subcommand from the host, the device asserts BSY, reads the Attribute Thresholds from the
Attribute Threshold sectors, asserts DRQ, clears BSY, asserts INTRQ, and then waits for the host to transfer the 512
bytes of Attribute Thresholds information from the device via the Data Register.
14.39.1.3 S.M.A.R.T. Enable/Disable Attribute Autosave (Subcommand D2h)
This subcommand enables and disables the attribute autosave feature of the device. The S.M.A.R.T. Enable/Disable
Attribute Autosave subcommand allows the device to automatically save its updated Attribute Values to the
Attribute Data Sector at the timing of the first transition to Active idle mode after 30 minutes since the last saving of
Attribute Values; this subcommand causes the autosave feature to be disabled. The state of the Attribute Autosave
Travelstar 5K160 (PATA) Hard Disk Drive Specification
7 6 5 4 3 2 1 0
- - - - - - - -
V V V V V V V V
V V V V V V V V
- - - - - - - -
0 1 0 0 1 1 1 1
1 1 0 0 0 0 1 0
- - - D - - - -
1 0 1 1 0 0 0 0
3
2
1
0
0
ABT T0N
AM
N
0
V
0
0
152 / 188
Command Block Input Registers
Register
Data
Error
Sector Count
LBA Low
LBA Mid
LBA High
Device
Status
Status Register
7
6
5
4
BSY RDY
DF
DSC DRQ COR IDX ERR
0
V
0
V
7 6 5 4 3 2 1 0
- - - - - - - -
...See Below...
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
...See Below...
3
2
1
0
-
0
-
V

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents