2.5 Type Disk Drives: MQ01ABD100 MQ01ABD075 MQ01ABD064 MQ01ABD050 MQ01ABD032 MQ01ABD025
2.5 Type Disk Drives: MQ01ABD100 MQ01ABD075 MQ01ABD064 MQ01ABD050 MQ01ABD032 MQ01ABD025
2.5 Type Disk Drives: MQ01ABD100 MQ01ABD075 MQ01ABD064 MQ01ABD050 MQ01ABD032 MQ01ABD025
株式会社 東芝
TOSHIBA CORPORATION
No.
360074232
TOTAL 163 CONT.ON 2 PAGE No. 1
TOSHIBA
TITLE: 2.5 type Disk Drives MQ01ABD100 /075 /064 /050 /032 /025 Product Specification
REV 日 付 記 事 部 門 担 当 承 認 保 管 日
No. DATE CONTENTS DEP. REVISED APP’D STGE.PER.
00 2011-7-07 Initial issue 1SETSU3 S.Arakawa K.Ishii 2011.07.21
SATA3.0 → SATA2.6
(P.14, P.67)
01 2011-8-10 SATA Speed 6Gbps → 3Gbps 1SETSU3 S.Arakawa K.Ishii
(P.14, P.15, P.63)
No.
360074232
TOSHIBA CORPORATION CONT.ON 3 PAGE No. 2
SAFETY
The hard disk drive and product specifications contain essential information for the protection of
users and others from possible injury and property damage and to ensure correct handling.
Please check that you fully understand the definition of the following messages (signs and
graphical symbols) before going on to read the text, and always follow the instructions.
Please describe requirements in the instruction manual of the product in which the drive is
mounted and ensure that users are made thoroughly aware of them.
IMPORTANT MESSAGES
Read this manual and follow its instructions. Signal words such as CAUTION and NOTE,
will be followed by important safety information that must be carefully reviewed.
Indicates a potentially hazardous situation which if not avoided,
may result in minor injury or property damage.
LIMITATION OF LIABILITY
・Toshiba Corporation shall not be liable for any damage due to the fault or negligence
of users, fire, earthquake, or other accident beyond the control of Toshiba
Corporation.
・Toshiba Corporation shall not be liable for any incidental or consequential damages
including but not limited to change or loss of stored data, loss of profit, or
interruption of business, which are caused by use or non-usability of the product.
・Toshiba Corporation shall not be liable for any damage result from failure to comply
with the contents in the product specification.
・Toshiba Corporation shall not be liable for any damage based on use of the product
in combination with connection devices, software, or other devices provided by
Toshiba Corporation with the product.
USAGE RESTRICTIONS
● Since the drive is not designed or manufactured to be used for a system including
equipment (*1) directly linked with human life, etc., Toshiba Corporation shall not
be liable for this type of use.
*1: Equipment directly linked with human life, etc. corresponds to the
following.
-Medical equipment such as life support systems, equipment used in
operations,etc.
● When the drive is to be used for a system including equipment (*2) linked with
human safety or having a serious influence on the safe maintenance of public
function, etc., special consideration (*3) must be given with regard to operation,
maintenance, and management of the system.
*2: A system including equipment linked with human safety or having a
serious influence on the safe maintenance of public function, etc.
corresponds to the following.
-A main equipment control system used in atomic power plants, a safety
protection based system used in atomic facilities, other important
safety lines and systems.
-An operation control system for mass transport, an air-traffic control
system.
*3: Special consideration means that a safety system (fool proof design, fail
safe design, redundancy design, etc.) is established as a result of
adequate consultation with Toshiba engineers.
SAFETY
■ Do not drop.
Dropping may cause injury.
SAFETY
Observe the following to prevent failure, malfunction or data loss.
NOTE
●Follow the specifications for 6. POWER SUPPLY (page16), 8. ENVIRONMENT (page 22),
etc. when using.
Failure to do so may cause damage to the drive.
● Observe cautions in 7.4 MOUNTING INSTRUCTION (page17) and 9.6 LOAD / UNLOAD
(page27 ) when handling, setting up, or using the drive.
●Take anti-static measures in order to avoid damage to the drive when handling it.
The drive uses parts susceptible to damage due to ESD (electrostatic discharge).
Wear ESD proof wrist strap in accordance with the usage specified when handling a drive that is not in an
anti-static protection bag.
●There is a certain probability of the drive causing failure including data error or data loss.
Take preventive steps such as backing up data etc. without exception in order to prevent loss etc. in cases where
data loss may result in loss or damage.
Please include this in the instruction manual etc. of the system in which this device is used and ensure that users
are made thoroughly aware of it.
●Inserting or pulling out the drive when the power is turned on may cause damage to the
drive.
Exchange the drive etc. after the power of HDD is turned off.
●Extreme shock to the drive may cause damage to it, data corruption, etc..
Do not subject the drive to extreme shock such as dropping, upsetting or crashing against other objects.
●Do not touch the top cover since application of force to it may cause damage to the drive.
●Do not stack the drive on another drive or on other parts etc. or stack them on top of it during
storage or transportation.
Shock or weight may cause parts distortion etc..
●Labels and the like attached to the drive are also used as a seal for maintenance of its
performance.
Do not remove them from the drive.
●Attachment of dielectric materials such as metal powder, liquid, etc. to live parts such as
printed circuit board patterns or pins etc. may cause damage to the drive.
Avoid attachment of these materials.
●Do not place objects which generate magnetic fields such as magnets, speakers, etc. near
the drive.
Magnetism may cause damage to the drive or data loss.
TABLE OF CONTENTS
1. SCOPE ............................................................................................................................................................ 12
3. KEY FEATURES............................................................................................................................................. 14
5. PERFORMANCE ............................................................................................................................................ 15
6. POWER REQUIREMENTS............................................................................................................................. 16
6.1 SUPPLY VOLTAGE .......................................................................................................................................... 16
6.2 POWER CONSUMPTION .................................................................................................................................. 16
6.3 ENERGY CONSUMPTION EFFICIENCY ............................................................................................................... 16
7. MECHANICAL SPECIFICATIONS................................................................................................................. 17
7.1 DIMENSION .................................................................................................................................................... 17
7.2 WEIGHT ......................................................................................................................................................... 17
7.3 DRIVE ORIENTATION ...................................................................................................................................... 17
7.4 MOUNTING INSTRUCTIONS .............................................................................................................................. 17
7.4.1 Screwing............................................................................................................................................... 18
7.4.2 Installation ............................................................................................................................................ 18
8. ENVIRONMENTAL LIMITS ............................................................................................................................ 22
8.1 TEMPERATURE AND HUMIDITY ........................................................................................................................ 22
8.1.1 Temperature ......................................................................................................................................... 22
8.1.2 Humidity................................................................................................................................................ 22
8.2 VIBRATION ..................................................................................................................................................... 22
8.3 SHOCK .......................................................................................................................................................... 23
8.4 ALTITUDE ...................................................................................................................................................... 23
8.5 ACOUSTICS(SOUND POWER) ..................................................................................................................... 23
8.6 SAFETY/EMI STANDARDS ...............................................................................................................................24
8.7 EMC ADAPTABILITY ....................................................................................................................................... 25
8.8 MAGNETIC FIELDS .......................................................................................................................................... 25
9. RELIABILITY .................................................................................................................................................. 26
9.1 ERROR RATE ................................................................................................................................................. 26
9.1.1 Non- Recoverable Error Rate............................................................................................................... 26
9.1.2 Seek Error Rate.................................................................................................................................... 26
9.2 MEAN TIME TO FAILURE (MTTF)..................................................................................................................... 26
9.3 PRODUCT LIFE ............................................................................................................................................... 26
9.4 REPAIR .......................................................................................................................................................... 27
9.5 PREVENTIVE MAINTENANCE (PM) ................................................................................................................... 27
9.6 LOAD/UNLOAD ............................................................................................................................................... 27
9.7 REQUIRED POWER-OFF SEQUENCE ................................................................................................................. 27
10. HOST INTERFACE ..................................................................................................................................... 28
10.1 CABLING ........................................................................................................................................................ 28
10.1.1 Interface Connector .............................................................................................................................. 28
10.1.2 Cable .................................................................................................................................................... 28
10.2 ELECTRICAL SPECIFICATION ............................................................................................................................ 29
10.2.1 OOB signaling ...................................................................................................................................... 29
10.3 INTERFACE CONNECTOR ................................................................................................................................. 31
10.3.1 Serial ATA interface connector............................................................................................................. 31
10.3.2 Pin Assignment..................................................................................................................................... 32
10.4 GROUNDING .................................................................................................................................................. 32
TABLE of FIGURES
FIGURE 1 MQ01ABD100 DIMENSIONS ................................................................................................................. 19
FIGURE 2 MOUNTING RECOMMENDATION ................................................................................................................. 21
FIGURE 3 SERIAL ATA INTERFACE CONNECTOR....................................................................................................... 31
FIGURE 4 PASSWORD SET SECURITY MODE POWER-ON FLOW .................................................................................142
FIGURE 5 USER PASSWORD LOST ..........................................................................................................................143
1. SCOPE
This document describes the specifications of the following model, MQ01ABD0100 /075 /064 /050 /032
/025 of 2.5-type Winchester disk drives.
2. GENERAL DESCRIPTION
The drive consists of an HDA (Head Disk Assembly) and a printed circuit board. The HDA has a sealed
module which contains a disk spindle assembly, a head actuator assembly and an air filtration system. This
HDA adopts Winchester technology which enhances high reliability. The actuator is a rotary voice coil motor
which enables high-speed access.
The disk is driven directly by a DC spindle motor. Air filtration is provided by a high performance air filtration
system using both breather and circulation filters.
The drive provides a carriage lock mechanism which is activated automatically upon power down in order to
prevent head/media from being damaged when it is not operating or under shipment.
The printed circuit board which is set externally to the HDA and equipped with all the electric circuitry
necessary to operate the drive except the head. The power supply and interface signal connectors are
mounted on the board. Only the head control IC’s are located within the HDA.
SAFETY
■Do not disassemble, remodel or repair.
Disassembly, remodeling or repair may cause injury,
failure, or data loss.
NOTE
●There is a certain probability of the drive causing failure including data error or data
loss.
Take preventive steps such as backing up data etc. without exception in order to
prevent loss etc. in cases where data loss may result in loss or damage.
●Do not touch the top cover since application of force to it may cause damage to the
drive.
●Do not stack the drive on another drive or on other parts etc. or stack them on top of
it during storage or transportation.
Shock or weight may cause parts distortion etc..
●Labels and the like attached to the drive are also used as hermetic sealing for
maintenance of its performance.
Do not remove them from the drive.
3. KEY FEATURES
High capacity in smallest size
Formatted # of Recording
Model Number Weight Height
Capacity <*1> Platters density
MQ01ABD100 1000.205 GB 1153.4 Mbpsi
MQ01ABD075 750.156 GB 2 858.1 Mbpsi 117g
MQ01ABD064 640.135 GB 746.7 Mbpsi
9.5mm
MQ01ABD050 500.107 GB 1153.4 Mbpsi
MQ01ABD032 320.072 GB 1 746.7 Mbpsi 107g
MA01ABD025 250.059 GB 746.7 Mbpsi
<*1> One gigabyte(GB) = one billion bytes; accessible capacity will be less and actual capacity
depends on the operating environment and formatting.
Intelligent Interface
ATA8/Serial ATA 2.6 interface supported.
Quick address conversion in translation mode.
Translation mode which enables any drive configuration.
Support 28 bit LBA (Logical Block Address) mode commands and 48bit LBA mode commands.
Multi word DMA, Ultra-DMA modes and Advanced PIO mode settings / commands supported.
Native Command Queue supported.
Staggered Spin / Activity supported.
Data integrity
Automatic retries and corrections for read errors.
High reliability
Highest reliability of 600,000 hours for MTTF 8Mean Time To Failure).
Powerful self- diagnostic capability.
Shock detection with shock sensor circuit for high immunity against operating shock up to 3,920
m/s2 ( 400 G ).
Automatic carriage lock secures heads on the ramp with high immunity against non operating
shock up to 8,820 m/s2 (900G).
4. BASIC SPECIFICATION
MODEL MQ01ABD100/050 MQ01ABD075 MQ01ABD064/032/025
640.135GB
Formatted 1000.205GB
750.156GB 320.072GB
Capacity( gigabytes ) 500.107GB
250.059GB
Servo design method Sector Servo
Recording method RS-ECC-less Iterative-Noise Predictive PR+NLV
Recording density
Track / mm (TPI ) 14160(360k) typical 12036(306k) typical 11682(296k) typical
Bit / mm max. ( BPI max.) 81.5k(2069.0k) typical 71.3k(1810.8k) typical 63.9k(1623.5k) typical
Bit / mm2 max. ( bpsi max.) 1153.4M(744.1G) typical 858.1M(553.6G) typical 746.7M(481.7G) typical
Number of disks 2/1 2 2/1/1
Number of data heads 4/2 4 4/2/2
Number of user data cylinders 231312 typical 196644 typical 190708 typical
Bytes per sector HOST:512,DISK:4096<*2>
<*1> One gigabyte(GB) = one billion bytes; accessible capacity will be less and actual capacity depends
on the operating environment and formatting.
<*2> Read–modify-write is supported.
5. PERFORMANCE
Access time ( msec ) <*1>
Track to track seek <*2> 2
Average seek <*3> 12
Max. seek <*4> 22
Rotation speed ( RPM ) 5,400 + 0.1%
Average Latency Time ( msec ) 5.55
Internal Transfer rate ( Mbits / sec ) 638.9~ 1288.6 typical
Host Transfer rate ( Gbit / sec ) 3
Sector Interleave 1:1
Track skew Yes
Buffer size ( Kbytes ) 8,192
Cache Read Ahead Cache
Write Cache
Start time <*5> 3.5 sec ( Typical )
( Up to Drive Ready) 9.5 sec ( Maximum )
Recovery time from Stand- by <*5> 3.5 sec ( Typical )
9.5 sec ( Maximum )
Command Overhead ( msec ) 1
<*1> Under the condition of normal voltage, 25oC normal temperature and bottom side down.
<*2> Average time to seek all possible adjacent track without head switching.
<*3> Weighted average time to travel between all possible combination of track calculated as below.
Weighted average access time = [ Sum of P(n)*t(n) ] / [ Sum of P(n) ], n = 1 to N.
Where, N ; Total number of tracks.
P(n); Total number of seek for stroke n [ = 2*(N - n) ].
t(n); Average seek time for stroke n.
Average seek time to seek to stroke n is the average time to 1,000 seeks for stroke n, with
random head switches.
<*4> Average time for 1,000 full stroke seeks with random head switches.
<*5> Typical values are for the condition of normal voltage, 25oC normal temperature and placing bottom
side down. Maximum values are for all conditions specified in this document.
Copyright © 2011 Toshiba Corporation. All rights reserved.
- 15 -
360074232
6. POWER REQUIREMENTS
6.1 Supply Voltage
Allowable voltage 5V + 5%
Allowable noise/ripple 100 mV p-p or less
Allowable supply rise time 2 –100 msec
(note 1) When DC power is turned off, +5V voltage must not be lower than 0V.
7. MECHANICAL SPECIFICATIONS
7.1 Dimension
Width 69.85mm ( 2.75” )
Height 9.5 mm ( 0.37”)
Depth 100.0 mm ( 3.94” )
7.2 Weight
MQ01ABD100/075/064 112 gram (typ.) / 117 gram(max.)
SAFETY
NOTE
●Take anti-static measures in order to avoid damage to the drive when handling it.
The drive uses parts susceptible to damage due to ESD (electrostatic discharge).
Wear ESD proof wrist strap in accordance with the usage specified when handling
a drive that is not in an anti-static protection bag.
●Extreme shock to the drive may cause damage to it, data corruption, etc..
Do not subject the drive to extreme shock such as dropping, upsetting or crashing
against other objects.
●Do not place objects which generate magnetic fields such as magnets, speakers,
etc. near the drive.
Magnetism may cause damage to the drive or data loss.
7.4.1 Screwing
Four screws should be tightened equally with 0.39 N.m ( 4 kgf.cm ) torque. The depth should be 3.0 mm
min. and 3.5 mm maximum.
7.4.2 Installation
① The drive should be mounted carefully on the surface of 0.1mm or less flatness to avoid excessive
distortion.
② In order to prevent short-circuit under any circumstances, the space of 0.5mm or more should be kept
under the PCB and the design have to be checked carefully (See fig. 2).
③ Enough space should be kept around the drive especially around the convex portion of HDA (See fig. 2)
to avoid any contact with other parts, which may be caused by receiving shock or vibration.
④ The temperature of the top cover and the base must always be kept under 63 oC to maintain the required
reliability. ( If the drive runs continuously or spins-up frequently, the temperature of the top cover may rise
to 15 oC maximum. If the drive is used in ambient temperature of 48 oC or more, it should be kept where
adequate ventilation is available to keep the temperature of top cover under 63 oC)
⑤ M3 mounting screw holes are tapped directly on the base for electrical grounding between the drive and
the base. In order to prevent the drive performance from being affected by the system noise,
appropriate evaluation should be conducted before deciding loading method.
⑥ Do not apply force exceeding 2[N] on the Top Cover.
⑦ The drive contains several parts which may be easily damaged by ESD(Electric Static Discharge). Avoid
touching the interface connector pins and the surface of PCB. Be sure to use ESD proof wrist strap when
handling the drive.
⑧ A rattle heard when the drive is moved is not a sign of failure.
A2 0.20 0.008
A3 0.20 0.008
A4 69.85 2.750
A5 0.25 0.010
8. ENVIRONMENTAL LIMITS
8.1 Temperature and Humidity
8.1.1 Temperature
Operating 5oC- 55oC
Gradient 20oC / Hour maximum
Measurement
point
8.1.2 Humidity
Operating 8%- 90% R.H. (No condensation)
Non- operating 8%- 90% R.H. (No condensation)
Max. wet bulb 29oC (Operating)
40oC (Non- operating)
8.2 Vibration
Operating 9.8 m/s2 ( 1.0G )
5- 500 Hz
Sine wave sweeping 1 oct./ minute
No unrecoverable error.
Non operating 10.0 mm p-p displacement.
5-15 Hz
No unrecoverable error.
2
49 m/s ( 5.0G )
15- 500 Hz
Sine wave sweeping 1 oct./ minute
No unrecoverable error.
8.3 Shock
Operating 1,960 m/s2 ( 200G ) 1 msec half sine wave
3,920 m/s2 ( 400G ) 2 msec half sine wave
Repeated twice maximum / second
No unrecoverable error.
Non operating 8,820 m/s2 ( 900G ) 1msec half sine wave
1,960 m/s2 ( 200G ) 11 msec half sine wave
Repeated twice maximum / second
No unrecoverable error.
Packed 70 cm free drop
No unrecoverable error.
Apply shocks in each direction of the drive’s three
mutually perpendicular axes, one axis at a time.
(Packed in Toshiba’s original shipping package)
8.4 Altitude
Operating - 300 m to 3,000 m
Non operating - 300 m to 12,000 m
nS = 0.4 / ( tT + tL )
CNS 13438
Bureau of Standards, Metrology and Inspection (BSMI)
(CISPR Pub. 22 Class B):D33003
電磁波障害防止基準 告示2004-23号
Ministry of Information and Communication (KCC)
(CISPR Pub. 22 Class B) (Note1)
MQ01ABD100
KCC-REM-TSD-MQ01ABD100
Made in Philippines TOSHIBA CORPORATION
2011-06
TOSHIBA CORPORATION
MQ01ABD100
KCC-REM-TSD-MQ01ABD100
Made in China TOSHIBA CORPORATION
2011-06
TOSHIBA CORPORATION
MQ01ABD100
KCC-REM-TSD-MQ01ABD100
Made in Thailand TOSHIBA CORPORATION
2011-06
TOSHIBA CORPORATION
MQ01ABD100
MQ01ABD075
MQ01ABD064
1.5mT (15 Gauss)
MQ01ABD050
MQ01ABD032
MQ01ABD025
9. RELIABILITY
A failure is defined as an inability of the drive to perform its specified function described in the requirements
of this document when being operated under the normal conditions or conditions specified in this document.
However, damages caused by operation mistake, mishandling, accidents, system errors and other damages
that can be induced by the customers are not defined as failure.
The defective sectors allocated to the spare locations in the factory are not counted in the error rate.
Applicable warranty and warranty period should be covered by the purchase agreement.
Applicable warranty and warranty period should be covered by the purchase agreement.
9.4 Repair
A defective drive should be replaced. Parts and subassemblies should not be repaired individually.
9.6 Load/Unload
Be sure to issue and complete the following commands for unloading before cutting off the power supply.
600,000 times of normal Load /Unload can be performed by a command and power management.
Unload is executed by the following commands:
・STANDBY
・STANDBY IMMEDIATE
・SLEEP
If power is removed from the drive while the heads are over the media an Emergency Unload will take
place. An Emergency Unload is performed by routing the back-EMF of the spindle motor to the actuator
voice coil. An Emergency Unload is mechanically much more stressful to this drive than a controlled
Unload. The minimum number of Emergency Unloads that can be successfully performed is 50,000.
Emergency Unload should only be performed when it is not possible to perform a controlled Unload.
2) STANDBY IMMEDIATE
( Wait until the command completion.)
10.1 Cabling
10.1.2 Cable
When connecting the drive and host system with Serial ATA cable, use of the Serial ATA 2.6/3.0
specification compliant cable is recommended.
Table 10.2-2 Drive connector pin 11 Host activity signal electrical parameters
If supported, the drive will sample the staggered spin-up disable condition after the DC power is applied and
before PhyRdy is asserted.
Notice: This drive uses 5V power only. 3.3V and 12V power are not used.
10.4 Grounding
HDA (Head Disk Assembly) and DC ground(ground pins on interface) are connected electrically each other.
Table 10.5-1 Register – Host to Device layout (48bit LBA mode, EXT commands, NCQ commands)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Features Command C R R Reserved (0) FIS Type (27h)
Features (exp) LBA High (exp) LBA Mid (exp) LBA Low (exp)
2
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Features Command C R R Reserved (0) FIS Type (27h)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Features Command C R R Reserved (0) FIS Type (27h)
C This bit is set to one when the register transfer is due to an update
of the Command Register. The bit is set to zero when the register
transfer is due to an update of the Device Control Register.
Command Contains the contents of the Command register of the Shadow
Command Block
Feature Contains the contents of the Features register of the Shadow
Command Block.
LBA Low Contains the contents of the LBA Low register (48bit LBA
addressing, EXP commands, NCQ commands), LBA 7:0 register
(28 bit LBA addressing) or Sector Number register (CHS
addressing)
LBA Mid Contains the contents of the LBA Mid register (48bit LBA
addressing, EXP commands, NCQ commands), LBA 15:8 register
(28 bit LBA addressing) or Cylinder Low register (CHS addressing).
LBA High Contains the contents of the LBA High register (48bit LBA
addressing, EXP commands, NCQ commands), LBA 23:16 register
(28 bit LBA addressing) or Cylinder High register (CHS addressing).
Device / LBA , Head Contains the contents of the Device register of the Shadow
Command Block. Not used bit 4:0 for 48bit LBA addressing
commands. Bit 4:0 used for LBA 27:24 for 28bit LBA addressing.
Also used head number for CHS addressing.
LBA Low (exp) Contains the contents of the expanded address field of the Shadow
command Block. (48 bit LBA addressing, EXP commands, NCQ
commands)
LBA Mid (exp) Contains the contents of the expanded address field of the Shadow
Command Block. (48 bit LBA addressing, EXP commands, NCQ
commands)
LBA High(exp) Contains the contents of the expanded address field of the Shadow
Command Block. (48bit LBA addressing, EXP commands, NCQ
commands)
Features (exp) Contains the contents of the expanded Feature field of the Shadow
Command Block.
Sector Count Contains the contents of the Sector Count field of the Shadow
Command Block. When the command is using 48bit LBA
addressing, this value is the lower 8bit value for the number of
sectors to be transferred. When the command is using 28bit LBA
addressing or CHS addressing, this value is the number of the
sectors to be transferred.
Sector Count (exp) Contains the contents of the expanded Sector Count field of the
Shadow Command Block.
Control Contains the contents of the Device Control register of the Shadow
Command Block.
R Reserved
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Error Status R I R Reserved (0) FIS Type (34h)
Features (exp) LBA High (exp) LBA Mid (exp) LBA Low (exp)
2
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Error Status R I R Reserved (0) FIS Type (34h)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Error Status R I R Reserved (0) FIS Type (34h)
10.5.3 Data
Table 10.5-7 Data FIS Layout
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0
N Dwords of data
…
(minimum of one Dword – maximum of 2048 Dwords)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Error Status R I R Reserved (0) FIS Type (34h)
Reserved (0) LBA High (exp) LBA Mid (exp) LBA Low (exp)
2
Table 10.5-8 PIO Setup Layout (CHS Mode: Commands include PIO data transfer)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Error Status R I R Reserved (0) FIS Type (34h)
Table 10.5-10 PIO Setup Layout (28bit LBA mode: Read/Write Sector(s),i.e.)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Error Status R I R Reserved (0) FIS Type (34h)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Reserved (0) Reserved (0) R R R Reserved (0) FIS Type (39h)
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 Reserved (0) Reserved (0) A I D Reserved (0) FIS Type (41h)
0 TAG
1
0
2
Reserved (0)
3
Reserved (0)
6
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
Error R Status R Status N I R Reserved (0) FIS Type (A1h)
0 Hi Low
SActive 31:0
1
The following descriptions are bit definitions for the operational mode including the error information from the
last command. This command is valid only when the ERROR BIT (bit 0) is set.
Bit 6 UNC (Uncorrectable Data Error) – This bit indicates that an uncorrectable error has been
encountered in the data field during a read command.
Bit 5 Reserved (No specification for fixed drive)
Bit 4 IDNF (ID Not Found) –The requested sector could not be found.
Bit 3 Reserved (No specification for fixed drive)
Bit 2 ABRT (Aborted Command) -- This bit Indicates that the requested command has been aborted
due to the reason reported in the drive status register (Write Fault, Not Seek Complete,
Drive Not Ready, or an invalid command). The status registers and the error registers may
be decoded to identify the cause.
Bit 1 Reserved (No specification for fixed drive)
Bit 0 AMNF (AM Not Found) -- This bit is set to indicate that the required Data AM pattern on read
operation has not been found.
The drive enters diagnostic mode immediately after the power -on or after an Execute Diagnostics command.
Error bit in Status Register shall not be set in these cases. The following table shows bit values for the
diagnostic mode.
01h No errors
02h Controller register error
03h Buffer RAM error
04h ECC device error
05h CPU ROM/RAM error
06h-0Fh Reserved
10h FFS IC POST error
(FFS model only)
11h-7Fh Reserved
8xh
Other
1
ATA-2 Notes: Prior to the development of ATA-2 standard, this bit was defined as BBK (Bad Block Detected) -- This bit was used to
indicate that the block mark was detected in the target’s ID field. The mark does not exist when shipping from the factory.The Mark will
be written by FORMAT command. Read or Write commands will not be executed in any data fields marked bad. The drive does not
support this bit.
Copyright © 2011 Toshiba Corporation. All rights reserved.
- 40 -
360074232
Features Exp register is optional register for 48bit LBA addressing mode. (Feature bit15-8)
Sector Count Exp register is optional register for 48bit LBA addressing mode. (Sector Count bit15-8)
The target logical sector number (starting from 1) for Read, Write, and Verify commands is set in this
register. After completion of a command, it shows the sector number of the last sector transferred to the
host.
The starting sector number is set in this register for multi-sector operations. But when error occurs during
multi-sector transfer, it shows the number of the sector in which the error has been detected. During
multi-sector transfer, the number of the next sector to be transferred will not necessarily be shown.
In LBA mode, this register contains Bits 0 - 7 logical block address. After completion of a command, the
register is updated to reflect the current LBA Bits.
The high order bits of the starting cylinder number (starting from 0) for Read, Write, Seek, and Verify
commands are set in this register. After completion of the command or sector transfer, the current cylinder
is shown in this register.
In LBA mode, Bits 8 - 15 of the target address in logical block address are contained in this register. After
completion of the command, it shows the Bits 0 - 7 of the last logical block address.
The high order bits of the starting cylinder number (starting from 0) for Read, Write, Seek, and Verify
commands are set in this register. After completion of the command or sector transfer, the current cylinder
is shown in this register.
In LBA mode, Bits 16 - 23 of the target address in logical block address are contained in this register. After
completion of the command, it shows the Bits 0 - 7 of the last logical block address.
LBA Low EXP register is optional register for 48bit LBA addressing mode.
LBA MId EXP register is optional register for 48bit LBA addressing mode.
LBA High EXP register is optional register for 48bit LBA addressing mode.
The value of this register is used to select the drive, Drive0 or Drive1, and head. On multiple sector
read/write operation that requires to cross track boundaries, the head select bit will be updated to reflect the
currently selected head number.
This register contains the command status. The contents of the register are updated at the completion of
each command and whenever the error occurs. The host system reads this register in order to acknowledge
the status and the result of each operation.
When the BSY bit (bit 7) is set, no other bits in the register are valid. And read/write operations of any other
register are negated in order to avoid the returning of the contents of this register instead of the other
resisters’ contents.
If the host reads this register when an interrupt is pending, interrupt request (INTRQ) is cleared in order to
work as Interrupt Acknowledge.
The bits of the status register are defined as below:
Bit 7 BSY (Busy) -- This bit is set when Host Reset (HRST) line is activated or Software Reset (SRST) bit in
Device Control register is set or when the COMMAND register is written and until a command is
completed but when Data Request is set to 1, this bit shall be reset. The host shouldn’t write or read
any registers when BSY = 1.
Bit 6 DRDY (Drive ready) -- DRDY=1 when seek complete bit (bit 4) = 1, indicates that the drive is ready to
respond read, write, or seek command. DRDY=0 indicates that read, write and seek are negated. A
command execution shall be interrupted if Not-Ready condition occurs during a command execution
and will be reset until the next command whether the drive condition is Ready or Not Ready. Error
bit is set on this occasion and will be reset just after power on and set again after the drive begins
revolving at normal speed and gets ready to receive a command.
Bit 5 DF (Device Fault) -- DF=1 indicates that the drive has detected a fault condition during the execution of a
Read Write commands; read, write, and seek commands are negated and Error bit is set. DF is set
to 1 until the next command, whether the drive is in fault condition or not.
Bit 4 DSC2 (Drive Seek Complete) – DSC= 1 indicates that a seek operation has been completed. DSC is set
to 0 when a command accompanied by a seek operation begins. If a seek is not complete, a
command is terminated and this bit is not changed until the Status Register is read by the host. This
bit remains reset immediately after power on until the drive starts revolving at a nominal speed and
gets ready to receive command.
Bit 3 DRQ (Data Request) -- DRQ=1 indicates that the sector buffer requires 1 sector of data during a Read or
Write command.
Bit 2 Reserved
Bit 1 Reserved
Bit 0 ERR (Error) -- ERR = 1 indicates that an error occurred during execution of the previous command. The
cause of the error is reported on the other bit or in the error register. The error bit can be reset by
the next command from the controller. When this bit is set, a multi-sector operation is negated.
2
ATA-2 Notes: Prior to ATA-2 standard, this bit indicated that the device was on track. This bit may be used for other purposes in
future standards. For compatibility the drive supports this bit as ATA-1 specifies. User is recommended not to use this bit.
Copyright © 2011 Toshiba Corporation. All rights reserved.
- 44 -
360074232
The command register accepts commands for the drive to perform fixed disk operations. Commands are
executed when the Shadow Block Registers are loaded and the command register is written and only when:
The status is not busy (BSY is inactive).
and
DRDY (drive ready) is active.
Command
PARAMETERS USED
Command Name Code
DRV HD CY SN SC FT
CHECK POWER MODE E5 / 98h X X X X O X
DEVICE CONFIGURATION OVERLAY B1h X X X X X O
DOWNLOAD MICROCODE 92h X X O O O O
EXECUTE DIAGNOSTICS 90h X X X X X X
FLUSH CACHE E7h X X X X X X
FLUSH CACHE EXT EAh X X X X X X
IDENTIFY DEVICE ECh X X X X X X
IDLE E3 / 97h X X X X O X
IDLE IMMEDIATE E1 / 95h X X O O O O
INITIALIZE DEVICE PARAMETERS 91h X O X X O X
NOP 00h X X X X X X
RECALIBRATE 1xh X X X X X X
READ BUFFER E4h X X X X X X
Read DMA C8h O O O O O X
Read DMA EXT 25h X X O O O X
Read FPDMA QUEUED 60h O X O O O O
Read LOG DMA EXT 47h X X O O O X
Read LOG EXT 2Fh X X O O O X
READ MULTIPLE C4h O O O O O X
READ MULTIPLE EXT 29h X X O O O X
READ NATIVE MAX ADDRESS F8h O O X X X X
READ NATIVE MAX ADDRESS EXT 27h X X X X X X
READ SECTOR(s) 20h O O O O O X
READ SECTOR(s) EXT 24h X X O O O X
READ VERIFY SECTOR(s) 40h O O O O O X
READ VERIFY SECTOR(s) EXT 42h X X O O O X
SECURITY DISABLE PASSWORD F6h X X X X X X
SECURITY ERASE PREPARE F3h X X X X X X
SECURITY ERASE UNIT F4h X X X X X X
SECURITY FREEZE LOCK F5h X X X X X X
SECURITY SET PASSWORD F1h X X X X X X
SECURITY UNLOCK F2h X X X X X X
SEEK 7xh O O O O X X
SET FEATURES EFh X X X X O O
SET MAX ADDRESS F9h O O O O O X
SET MAX ADDRESS EXT 37h X X O O O X
SET MULTIPLE MODE C6h O X X X O X
SLEEP E6 / 99h X X X X O X
SMART B0h X X O O O O
STANDBY E2 / 96h X X X X O X
STANDBY IMMEDIATE E0 / 94h X X X X O X
WRITE BUFFER E8h X X X X X X
WRITE DMA CAh O O O O O X
Write DMA EXT 35h X X O O O X
Write DMA FUA EXT 3Dh X X O O O X
Write FPDMA Queued 61h O X O O O O
Write LOG DMA EXT 57h X X O O O X
Write LOG EXT 3Fh X X O O O X
WRITE MULTIPLE C5h O O O O O X
WRITE MULTIPLE EXT 39h X X O O O X
WRITE MULTIPLE FUA EXT CEh X X O O O X
WRITE SECTOR(s) 30h O O O O O X
WRITE SECTOR(s) EXT 34h X X O O O X
WRITE UNCORRECTABLE EXT 45h X X O O O O
WRITE VERIFY 3Ch O O O O O X
The drive interprets the commands written in the command register by the host system and executes them.
This table shows the drive’s response to the valid commands written in command-register.
SC result value=00 indicates that the drive is in stand-by mode or going into stand-by mode or is shifting
from stand-by mode into idle mode.
SC result value = FFh indicates that the drive is in idle mode.
This command has a number of separate functions which can be selected via the Feature Register when the
command is issued. The subcommands and their respective codes are listed below.
The DEVICE CONFIGURATION RESTORE command disables any setting previously made by a DEVICE
CONFIGURATION SET command and returns the content of the IDENTIFY DEVICE command response to
the original settings as indicated by the data returned from the execution of a DEVICE CONFIGURATION
IDENTIFY command.
The DEVICE CONFIGURATION FREEZE LOCK command prevents accidental modification of the Device
Configuration Overlay settings. After successful execution of a DEVICE CONFIGURATION FREEZE LOCK
command, all DEVICE CONFIGURATION SET, DEVICE CONFIGURATION FREEZE LOCK, DEVICE
CONFIGURATION IDENTIFY, and DEVICE CONFIGURATION RESTORE commands are aborted by the
drive.
The DEVICE CONFIGURATION FREEZE LOCK condition shall be cleared by a power-down.
The DEVICE CONFIGURATION FREEZE LOCK condition shall not be cleared by hardware or software
reset.
The DEVICE CONFIGURATION IDENTIFY command returns a 512 byte data structure via PIO data-in
transfer. The content of this data structure indicates the selectable commands, modes, and feature sets that
the device is capable of supporting. If a DEVICE CONFIGURATION SET command has been issued
reducing the capabilities, the response to an IDENTIFY DEVICE command will reflect the reduced set of
capabilities, while the DEVICE CONFIGURATION IDENTIFY command will reflect the entire set of
selectable capabilities.
The format of the Device Configuration Overlay data structure is shown in Table 10.7-9.
Word Content
0 Data structure revision
1 Multiword DMA modes supported
15-3 Reserved
2 1 = Multiword DMA mode 2 and below are supported
1 1 = Multiword DMA mode 1 and below are supported
0 1 = Multiword DMA mode 0 is supported
2 Ultra DMA modes supported
15-6 Reserved
6 1 = Ultra DMA mode 6 and below are supported
5 1 = Ultra DMA mode 5 and below are supported
4 1 = Ultra DMA mode 4 and below are supported
3 1 = Ultra DMA mode 3 and below are supported
2 1 = Ultra DMA mode 2 and below are supported
1 1 = Ultra DMA mode 1 and below are supported
0 1 = Ultra DMA mode 0 is supported
3-6 Maximum LBA address
7 Command set/feature set supported
15-14 Reserved
13 1 = SMART Conveyance self-test supported
12 1 = SMART Selective self-test supported
11 1 = Forced Unit Access supported
10 Reserved
9 1 = Streaming feature set supported
8 1 = 48-bit Addressing feature set supported
7 1 = Host Protected Area feature set supported
6 1 = Automatic acoustic management supported
5 1 = READ/WRITE DMA QUEUED commands supported
4 1 = Power-up in Standby feature set supported
3 1 = Security feature set supported
2 1 = SMART error log supported
1 1 = SMART self-test supported
0 1 = SMART feature set supported
8 Serial ATA feature set supported
15-5 Reserved (0)
4 1 = Software Settings Preservation supported
3 1 = Asynchronous Notification supported
2 1 = Interface power management supported
1 1 = Non-zero buffer offsets in DMA Setup FIS supported
0 1 = Native command queuing supported
9-20 Reserved
21 Command set/feature set supported part 2
15-14 Reserved
13 1= WRITE UNCORRECTABLE EXT supported
12 Reserved
11 1 = Freefall Control feature set supported (Optional)
10-0 Reserved
22-254 Reserved
255 Integrity word
15-8 Checksum
7-0 Signature
Word 21 bits 11 if set to one indicates that the drive is capable of supporting Freefall Control feature set.
(Optional)
Word 21 bit 13 if set to one indicates that the drive is capable of supporting WRITE UNCORRECTABLE EXT.
Register 7 6 5 4 3 2 1 0
STATUS BSY DRDY DF na DRQ na na ERR
DEVICE 1 L 1 0 na
LBA High Word location
LBA Mid Bit location high
LBA Low Bit location low
SECTOR COUNT na
ERROR na na na na na ABRT na na
STATUS register --
BSY Shall be cleared to zero indicating command completion.
DRDY Shall be set to one.
DF Shall be set to one if a device fault has occurred.
DRQ Shall be cleared to zero.
ERR Sshall be set to one if an Error register bit is set to one.
LBA High --
If the command was aborted because an attempt was made to modify a bit that cannot be modified with
the drive in its current state, this register shall contain the offset of the first word encountered that cannot
be changed. If an illegal maximum LBA address is encountered, the offset of word 3 shall be entered. If a
checksum error occurred, the value FFh shall be entered. A value of 00h indicates that the Data
Structure Revision was invalid.
Copyright © 2011 Toshiba Corporation. All rights reserved.
- 54 -
360074232
LBA Mid –
If the command was aborted because an attempt was made to modify a mode or feature that cannot be
modified with the drive in its current state, this register shall contain bits (15:8) set in the bit positions that
correspond to the bits in the device configuration overlay data structure words 1, 2, or 7 for each mode or
feature that cannot be changed. If not, the value shall be 00h.
LBA Low –
If the command was aborted because an attempt was made to modify a mode or feature that cannot be
modified with the drive in its current state, this register shall contain bits (7:0) set in the bit positions that
correspond to the bits in the device configuration overlay data structure words 1, 2, or 7 for each mode or
feature that cannot be changed. If not, the value shall be 00h.
ERROR register --
ABRT shall be set to one if the drive does not support this command, if a DEVICE CONFIGURATION
SET command has already modified the original settings as reported by a DEVICE CONFIGURATION
IDENTIFY command, if DEVICE CONFIGURATION FREEZE LOCK is set, if any of the bit modification
restrictions described in this section are violated, or if a Host Protected Area has been established by the
execution of a SET MAX ADDRESS command.
10.7.2.4.2 Description
The DEVICE CONFIGURATION SET command allows a device manufacturer or a personal computer
system manufacturer to reduce the set of optional commands, modes, or feature sets supported by a
device as indicated by a DEVICE CONFIGURATION IDENTIFY command.
The DEVICE CONFIGURATION SET command transfers an overlay that modifies some of the bits set in
words 63, 82, 83, 84, and 88 of the IDENTIFY DEVICE command response.
When the bits in these words are cleared, the drive shall no longer support the indicated command,
mode, or feature set. If a bit is set in the overlay transmitted by the drive that is not set in the overlay
received from a DEVICE CONFIGURATION IDENTIFY command, no action is taken for that bit.
Modifying the maximum LBA address of the drive also modifies the address value returned by a READ
NATIVE MAX ADDRESS or READ NATIVE MAX ADDRESS EXT command.
The format of the overlay transmitted by the drive is described in Table 10.7-10. The restrictions on
changing these bits is described in the text following Table 10.7-10. If any of the bit modification
restrictions described are violated, the drive shall return command aborted.
Word Content
0 Data structure revision
1 Multiword DMA modes supported
15-3 Reserved
2 1 = Multiword DMA mode 2 and below are supported
1 1 = Multiword DMA mode 1 and below are supported
0 1 = Multiword DMA mode 0 is supported
2 Ultra DMA modes supported
15-6 Reserved
6 1 = Ultra DMA mode 6 and below are supported
5 1 = Ultra DMA mode 5 and below are supported
4 1 = Ultra DMA mode 4 and below are supported
3 1 = Ultra DMA mode 3 and below are supported
2 1 = Ultra DMA mode 2 and below are supported
1 1 = Ultra DMA mode 1 and below are supported
0 1 = Ultra DMA mode 0 is supported
3-6 Maximum LBA address
7 Command set/feature set supported
15-14 Reserved
13 1 = SMART Conveyance self-test supported
12 1 = SMART Selective self-test supported
11 1 = Forced Unit Access supported
10 Reserved
9 1 = Streaming feature set supported
8 1 = 48-bit Addressing feature set supported
7 1 = Host Protected Area feature set supported
6 1 = Automatic acoustic management supported
5 1 = READ/WRITE DMA QUEUED commands supported
4 1 = Power-up in Standby feature set supported
3 1 = Security feature set supported
2 1 = SMART error log supported
1 1 = SMART self-test supported
0 1 = SMART feature set supported
8 Serial ATA feature set supported
15-5 Reserved (0)
4 1 = Software Settings preservation supported
3 1 = Asynchronous Notification supported
2 1 = Interface power management supported
1 1 = Non-zero buffer offsets in DMA Setup FIS supported
0 1 = Native command queuing supported
9-20 Reserved
21 Command set/feature set supported part 2
15-14 Reserved
13 1= WRITE UNCORRECTABLE EXT supported
12 Reserved
11 1 = Freefall Control feature set supported (Optional)
10-0 Reserved
22-254 Reserved
255 Integrity word
15-8 Checksum
7-0 Signature
Word 1 bit 2 Cleared to disable support for Multiword DMA mode 2 and has the effect of clearing bit 2 in
word 63 of the IDENTIFY DEVICE response. This bit shall not be cleared if Multiword DMA
mode 2 is currently selected.
Word 1 bit 1 Cleared to disable support for Multiword DMA mode 1 and has the effect of clearing bit 1 in
word 63 of the IDENTIFY DEVICE response. This bit shall not be cleared if Multiword DMA
mode 2 is supported or Multiword DMA mode 1 or 2 is selected.
Word 2 bit 6 Cleared to disable support for Ultra DMA mode 6 and has the effect of clearing bit 6 in word
88 of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra DMA mode 6 is
currently selected.
Word 2 bit 5 Cleared to disable support for Ultra DMA mode 5 and has the effect of clearing bit 5 in word
88 of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra if Ultra DMA mode
5 is currently selected.
Word 2 bit 4 Cleared to disable support for Ultra DMA mode 4 and has the effect of clearing bit 4 in word
88 of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra DMA mode 5 is
supported or if Ultra DMA mode 5 or 4 is selected.
Word 2 bit 3 Cleared to disable support for Ultra DMA mode 3 and has the effect of clearing bit 3 in word
88 of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra DMA mode 5 or 4
is supported or if Ultra DMA mode 5, 4, or 3 is selected.
Word 2 bit 2 Ceared to disable support for Ultra DMA mode 2 and has the effect of clearing bit 2 in word 88
of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra DMA mode 5, 4, or 3
is supported or if Ultra DMA mode 5, 4, 3, or 2 is selected.
Word 2 bit 1 Cleared to disable support for Ultra DMA mode 1 and has the effect of clearing bit 1 in word
88 of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra DMA mode 5, 4, 3,
or 2 is supported or if Ultra DMA mode 5, 4, 3, 2, or 1 is selected.
Word 2 bit 0 Cleared to disable support for Ultra DMA mode 0 and has the effect of clearing bit 0 in word
88 of the IDENTIFY DEVICE response. This bit shall not be cleared if Ultra DMA mode 5, 4, 3,
2, or 1 is supported or if Ultra DMA mode 5, 4, 3, 2, 1, or 0 is selected.
Words 3 through 6 define the maximum LBA address. This shall be the highest address accepted by the
drive after execution of the command. When this value is changed, the content of IDENTIFY DEVICE
words 60, 61 100, 101, 102, and103 shall be changed as described in the SET MAX ADDRESS and SET
MAX ADDRESS EXT command descriptions to reflect the maximum address set with this command. This
value shall not be changed and command aborted shall be returned if a Host Protected Area has been
established by the execution of a SET MAX ADDRESS or SET MAX ADDRESS EXT command with an
address value less than that returned by a READ NATIVE MAX ADDRESS or READ NATIVE MAX
ADDRESS EXT command.. Any data contained in the Host Protected Area is not affected.
Word 7 bit 8 Cleared to disable support for the 48-bit Addressing feature set and has the effect of clearing
bit 10 in words 83 and 86 and clearing the value in words 103:100 of the IDENTIFY DEVICE
response.
Word 7 bit 7 Cleared to disable support for the Host Protected Area feature set and has the effect of
clearing bit 10 in words 82 and 85 and clearing bit 8 in words 83 and 86 of the IDENTIFY
DEVICE response. If a Host Protected Area has been established by use of the SET MAX
ADDRESS command, these bits shall not be cleared and the drive shall return command
aborted.
Word 7 bit 6 Cleared to disable for the Automatic Acoustic Management feature set and has the effect of
clearing bit 9 in word 83 and word 94 of the IDENTIFY DEVICE response.
Word 7 bit 5 Cleared to disable support for the READ DMA QUEUED and WRITE DMA QUEUED
commands and has the effect of clearing bit 1 in words 83 and 86 of the IDENTIFY DEVICE
response.
Word 7 bit 4 Cleared to disable support for the Power-up in Standby feature set and has the effect of
clearing bits 5 and 6 in words 83 and 86 and clearing the value in word 94 of the IDENTIFY
DEVICE response. If Power-up in Standby has been enabled by a jumper, these bits shall not
be cleared.
Word 7 bit 3 Cleared to disable support for the Security feature set and has the effect of clearing bit 1 in
words 82 and 85 of the IDENTIFY DEVICE response. These bits shall not be cleared if the
Security feature set has been enabled.
Word 7 bit 2 Cleared to disable support for the SMART error logging and has the effect of clearing bit 0 in
words 84 and 87 of the IDENTIFY DEVICE response.
Word 7 bit 1 Cleared to disable support for the SMART self-test and has the effect of clearing bit 1 in words
84 and 87 of the IDENTIFY DEVICE response.
Word 7 bit 0 Cleared to disable support for the SMART feature set and has the effect of clearing bit 0 in
words 82 and 85 of the IDENTIFY DEVICE response. If bits 1 and 2 of word 7 are not cleared
to zero or if the SMART feature set has been enabled by use of the SMART ENABLE
OPERATIONS command, these bits shall not be cleared and the drive shall return command
aborted.
Word 8 bit 1 Cleared to disable support for the non-zero offsets in the DMA Setup FIS. But now, non-zero
offsets in DMA Setup FIS feature not supported so, no effect happen when change this bit.
Word 8 bit 2 Cleard to disable support for the interface power management requests and Word 76 bit 9,
Word 78 bit 3, and Word 79 bit 3 of IDENTIFY DEVICE will all be cleared to zero.
Word 8 bit 3 Cleared to disable support for the Asynchronous Notification. But now, Asynchronous
Notification not supported by the drive, this bit does not affect the operation of the drive.
Word 8 bit 4 Cleared to disable support for the Software Settings Preservation and Word 78 bit 6 and Word
79 bit 6 of IDENTIFY DEVICE will be cleared to zero.
Word 21 bit 11 Cleard to disable support for Freefall Control feature set and word 119 bit 5, word 120 bit 5,
word 53 bit 15:8 of the IDENTIFY DEVICE will all be cleared to zero. (Optional)
Word 21 bit 13 Cleard to disable support for WRITE UNCORRECTABLE EXT and word 119 bit 2, word
120 bit 2 of the IDENTIFY DEVICE will all be cleared to zero.
Bits 7:0 of this word shall contain the value A5h. Bits 15:8 of this word shall contain the data structure
checksum. The data structure checksum shall be the two’s complement of the sum of all byte in words 0
through 254 and the byte consisting of bits 7:0 of word 255. Each byte shall be added with unsigned
arithmetic, and overflow shall be ignored. The sum of all bytes is zero when the checksum is correct.
This command enables the host to alter the drive’s microcode. The data transferred using the
DOWNLOAD MICROCODE command is vendor specific.
All transfers shall be an integer multiple of the sector size. The size of the data transfer is determined by the
contents of the Sector Number register and the Sector Count register. The Sector Number register shall be
used to extend the Sector Count register to create a 16-bit sector count value. The Sector Number register
shall be the most significant eight bits and the Sector Count register shall be the least significant eight bits. A
value of zero in both the Sector Number register and the Sector Count register shall specify no data is to be
transferred. This allows transfer sizes from 0 bytes to 33,553,920 bytes, in 512 byte increments.
The Features register shall be used to determine the effect of the DOWNLOAD MICROCODE command.
The values for the Features register are suppored:
-03h - Download with offsets and save microcode for immediate and future use.
-07h - Download and save microcode for immediate and future use.
The Download with offsets and save microcode for immediate and future use allows the application
client to transfer microcode in two or more DOWNLOAD MICROCODE commands.
The download block count value in the Count and Sector Number register shall specify how many 512-byte
blocks of data are being transferred in one command.
The Buffer Offset value is defined by the value in Cylinder Register. The buffer offset value is the starting
location in the data relative to the last successful DOWNLOAD MICROCODE command received by the
device with a Buffer Offset of zero. The buffer offset value is the byte count divided by 512.
If the current buffer offset is not equal to the sum of the previous DOWNLOAD MICROCODE command
buffer offset and the previous sector count, then the device reports command aborted for the DOWNLOAD
MICROCODE command and discards all previously downloaded microcode. The first DOWNLOAD
MICROCODE command shall have a buffer offset of zero.
If the device receives a command other than DOWNLOAD MICROCODE prior to the receipt of the last
segment, then the device processes the new command and discards previously downloaded microcode.
During the processing of a power-on reset, a hardware reset, or a software reset prior to applying the new
microcode, the device discards any received microcode segments.
The identify device command requests the drive to transfer parameter information to the host. When the
command is issued, the drive sets BSY, stores the required parameter information in the sector buffer, sets
the DRQ bit, and issues an interrupt. The host may read the parameter information of the sector buffer.
The parameter words in the buffer are arranged as shown in Table 10.7-4.
Word descriptions:
WORD 1: Logical cylinder number that user can access (in default mode) [*1]
WORD 3: Logical head number that user can access (in default mode) [*2]
WORD 6: The number of logical sector per track (in default mode) [*3]
Default Values : [*1],[*2],[*3]
The value returned in Bits 15-8 should fall into one of the mode 0 through mode.
Note: For backwards compatibility with BIOS written before Word 64 was defined for advanced modes, a
drive reports in Word 51 the highest original PIO mode (i.e. PIO mode 0, 1, or 2) it can support.
The value for this WORD is 0200h.
WORD 54: Number of current cylinders defined by INITIALIZE DEVICE PARAMETERS command
WORD 55: Number of current heads defined by INITIALIZE DEVICE PARAMETERS command
WORD 56: Number of current sectors/track defined by INITIALIZE DEVICE PARAMETERS command
WORD 60-61: Maximum number of sectors that user can access in LBA mode
bit 27-24 by word 61 bit 3- 0
bit 23-16 by word 61 bit 15- 8
bit 15- 8 by word 60 bit 7- 0
bit 7- 0 by word 60 bit 15- 8
The maximum value that shall be placed in this field is 0FFFFFFFh.
WORD 65: Minimum multiword DMA transfer mode cycle time per word (ns)
If this bit is supported, word 53 bit 1 shall be set. The value for this WORD is 0078h (120ns).
WORD 67: Minimum PIO transfer cycle time without flow control (ns)
The Drive can guarantee correct data transfer without flow control in this cycle time or longer. If this bit is
supported, word 53 bit 1 is to be set. The drives which support PIO mode 3 or higher shall support this field
too. This figure shall not be less than 120. The value for this WORD is 0078h (120ns).
WORD 68: Minimum PIO transfer cycle time with IORDY flow control (ns)
If this bit is supported, word 53 bit 1 is to be set. The drive that support PIO mode 3 or higher shall support
this field too. This figure shall not be less than 120. The value for this WORD is 0078h (120ns).
WORD 89: The time period for Security Erase Unit command completion shall be set.
This function is not supported. The value for this WORD is 0000h.
WORD 100-103: Maximum User LBA for 48-bit Address feature set
The default values for each models are.
Value Description
0h Nominal form factor not reported
1h 5.25 type nominal form factor
2h 3.5 type nominal form factor
3h 2.5 type nominal form factor
4h 1.8 type nominal form factor
5h Less than 1.8 type nominal form factor
6h-Fh Reserved
The value for this WORD is 0003h.
Value Description
0000h Rate not reported
0001h Non-rotating media (e.g., solid state device)
0002h-0400h Reserved
0401h-FFFEh Nominal media rotation rate in rotations per minute (rpm) (5400rpm = 1518h)
(e.g.7200rpm = 1C20h)
FFFFh Reserved
WORD 234: Minimum number of 512-byte data blocks per DOWNLOAD MICROCODE command mode 03h
Word 234 contains the minimum number of 512-byte data blocks per DOWNLOAD MICROCODE command
that the ATA device accepts when using the offset transfer method.
This word is valid if bit 0 of word 83, bit 0 of word 86, and bit 4 of word 120 are set to one, indicating that the
DOWNLOAD MICROCODE command using the offset transfer method is supported.
The values 0000h and FFFFh indicate no minimum is specified (i.e., that there is no minimum number of
blocks).
The value for this WORD is 0001h.
WORD 235: Maximum number of 512-byte data blocks per DOWNLOAD MICROCODE command mode 03h
Word 234 contains the maximum number of 512-byte data blocks per DOWNLOAD MICROCODE command
that the ATA device shall accept when using the offset transfer method.
This word is valid if bit 0 of word 83, bit 0 of word 86, and bit 4 of word 120 are set to one, indicating that the
DOWNLOAD MICROCODE command using the offset transfer method is supported.
The values 0000h and FFFFh indicate no maximum is specified (i.e., that there is no maximum number of
blocks)
The value for this WORD is 0080h.
This commands which controls power mode in the drive. The drive has three types of power mode:
Idle, Stand-by and Sleep mode
This command causes the drive to enter idle mode.At the completion of disk access, the drive automatically
enters the idle mode.
During idle, READY bit is set and the drive is ready to receive a command.
The drive is in the idle mode when it is in default condition after power-on.
If SC is non-zero then Idle timer shall be enabled. The value in SC shall be used to determine the time
programmed into the Idel timer. If SC is zero then the Idle timer is disabled.
When the specified time period has expired, the drive enters the Idle mode. If disk access command is
received during the Idle mode, executes read/write operation. After completing the command, The drive
resets Idle timer and the timer starts counting down.
The UNLOAD FEATURE of the IDLE IMMEDIATE command provides a method for the host to cause a
device that is a hard disk drive to move its read/write heads to a safe position as soon as possible.
Upon receiving an IDLE IMMEDIATE command with the UNLOAD FEATURE, a device shall:
A device shall report command completion after the heads have been unloaded.
*1:Normal comletion
LBA Low shall be set to C4h if the unload has completed successfully.
Shall be set to 4Ch if the unload was not accepted or has failed.
This command specifies the number of sectors per track and the number of heads per cylinder to set head
switching point and cylinder increment point. Specified values affect Number of the current logical heads,
Number of logical sectors per track, which can be read by Identify Device Command.
On issuing this command, the content of LBA register shall not be checked. This command will be
terminated with ABORT error when it is issued on an invalid HD or SC register setting ( the combination of
HD and SC register exceeds the drive parameter.
Any drive access command should accompany correct HD, SN register with heads and sectors within the
number specified for this command. Otherwise, it results in “ID not found” error. If the number of heads
and drives is within the specified number, command gives parameter to convert an address to access into
Logical Block Address (LBA). “ ID Not Found”error also occur when this LBA exceeds the total number of
user addressable sectors. The command does not affect LBA address mode.
This command transfers a specified sector of data ( 512 bytes) from the buffer in the drive to the host.
When this command is issued, the drive sets BSY, sets up the buffer for read operation, sets DRQ, resets
BSY, and generates an interrupt. The host reads up to 512 bytes of data from the buffer.
This command is basically identical to Read DMA command except for the register settings.
This command is available in LBA addressing mode only.
This command returns the specified log to the host. The device shall interrupt for each DRQ block
transferred.
LBA Mid - Specifies the first sector of the log to be read.
LBA Low - Specifies the log to be returned as described in the following Table.
Sector Count - Specifies the number of sectors to be read from the specified log. The log transferred by
the drive shall start at the sector in the specified log at the specified offset, regardless of
the sector count requested.
NOTE - Log addresses 01h,02,,06h and 09h are used by the SMART READ LOG
command commands. If these log addresses are used with the READ LOG EXT
command, the drive shall return command aborted.
The following table defines the 512 bytes that make up the General Purpose Log Directory.
Byte Descriptions
0-1 General Purpose Logging Version
2 Number of sectors in the log at log address 01h (7:0)
3 Number of sectors in the log at log address 01h (15:8)
4 Number of sectors in the log at log address 02h (7:0)
5 Number of sectors in the log at log address 02h (15:8)
…
32 1 if Native Command Queuing is supported.
0 if Native Command Queuing is not supported.
33 0
34 1 if Phy Event Counters are supported.
0 if Phy Event Counters are not supported.
35 0
…. ….
256 10h sectors in the log at log address 80h
257 00h sectors in the log at log address 80h
… ….
510-511 Number of sectors in the log at log address FFh
The fpllowing table defines the format of each of the sectors that comprise the Extended Comprehensive
SMART error log. The size of the Extended Comprehensive SMART error log is 64 sectors. Error log
data structures shall include UNC errors, IDNF errors for which the address requested was valid, servo
errors, write fault errors, etc. Error log data structures shall not include errors attributed to the receipt of
faulty commands such as command codes not implemented by the drive or requests with invalid
parameters or invalid addresses.
All 28-bit entries contained in the Comprehensive SMART log, defined under section 10.7.35.6.6, shall
also be included in the Extended Comprehensive SMART error log with the 48-bit entries.
The error log index indicates the most recent error log data structure. Unused error log data structures
shall be filled with zeros.
The content of the error log data structure entries is defined in the following table.
If the command data structure represents a command or software reset, the content of the command data
structure shall be as shown in the following table. If the command data structure represents a hardware
reset, the content of byte n shall be FFh, the content of bytes n+1 through n+13 are vendor specific, and
the content of bytes n+14 through n+17 shall contain the timestamp.
Value State
x0h Unknown
x1h Sleep
x2h Standby
x3h Active/Idle with BSY cleared to zero
x4h Executing SMART off-line or self-test
x5h-xFh Reserved
The value of x is vendor specific and may be different for each state.
Sleep indicates the reset for which the error is being reported was received when the drive was in the Sleep
mode.
Standby indicates the command or reset for which the error is being reported was received when the drive
was in the Standby mode.
Active/Idle with BSY cleared to zero indicates the command or reset for which the error is being reported
was received when the drive was in the Active or Idle mode and BSY was cleared to zero.
Executing SMART off-line or self-test indicates the command or reset for which the error is being reported
was received when the drive was in the process of executing a SMART off-line or self-test.
Life timestamp shall contain the power-on lifetime of the drive in hours when command completion occurred.
The following table defines the format of each of the sectors that comprise the Device Statistics log.
The size of the Device Statistics log is 1 sectors.
This log is viewed as a circular buffer. The first entry will begin at byte 4, the second entry will begin at byte
30 and so on until the nineteen entry, that will replace the first entry. Then, the twenty entry will replace
the second entry, and so on. If fewer than 18 self-tests have been performed by the drive, the unused
descriptor entries will be filled with zeroes.
Content of the LBA Low register shall be the content of the LBA Low register when the nth self-test
subcommand was issued.
Content of the self-test execution status byte shall be the content of the self-test execution status byte
when the nth self-test was completed.
Life timestamp shall contain the power-on lifetime of the drive in hours when the nth self-test subcommand
was completed.
Content of the self-test failure checkpoint byte may contain additional information about the self-test that
failed.
The failing LBA shall be the LBA of the sector that caused the test to fail. If the drive encountered more
than one failed sector during the test, this field shall indicate the LBA of the first failed sector encountered.
If the test passed or the test failed for some reason other than a failed sector, the value of this field is
undefined.
The data structure checksum is the two's complement of the sum of the first 511 bytes in the data
structure. Each byte shall be added with unsigned arithmetic, and overflow shall be ignored. The sum of all
512 bytes is zero when the checksum is correct. The checksum is placed in byte 511.
Byte 7 6 5 4 3 2 1 0
0 NQ UNL R TAG
1 Reserved
2 Status
3 Error
4 Sector Number
5 Cylinder Low
6 Cylinder High
7 Dev/Head
8 Sector Number Exp
9 Cylinder Low Exp
10 Cylinder High Exp
11 Reserved
12 Sector Count
13 Sector Count Exp
14 Reserved
15 Reserved
16 Reserved
17 Reserved
18 Reserved
19 Reserved
20-255 Reserved
256-510 Vender Specific
511 Data Structure Checksum
TAG If the NQ bit is cleared, the TAG field contains the TAG corresponding to the
Queued command that failed.
UNL If set to one indicates that the error condition was a result of receiving an IDLE
IMMEDIATE command with the Unload Feature specified. If cleared to zero, the
reason for the error was not due to reception of an IDLE IMMEDIATE command
with the Unload Feature specified. If the last command received was an Unload
Immediate, the device shall not load the heads to the media when executingthe
READ LOG EXT command for log page 10h.
If set to one, the NQ bit shall also be set to one to indicate the failure was due to
reception of a non-queued command. When set to one, the value of the Status,
Error, and LBA Low fields (bytes 3-5) in the log page shall be set as follows:
Status: BSY bit shall be cleared to zero and ERR bit shall be set to one
Error: ABRT bit shall be set to one
LBA Low: Shall be set to C4h if the unload has completed successfully.
Shall be set to 4Ch if the unload was not accepted or has failed.
NQ If set indicates that the error condition was a result of a non-queued command
Having been issued and that the TAG field is therefore not valid. If cleared
indicates that the TAG field is valid and that the error condition applies to a
queued command.
BYTE 1-19 An image of a device to host Register FIS is embedded in the data structure. The
fields correspond to the Shadow Register Block Registers and are encoded with
error information as defined in the ATA/ATAPI-6 standard.
ERROR The value corresponding to the ATA ERROR register value for the command that
failed. The command-specific error condition of invalid tag value shall be handled
as an invalid command parameter and shall be reported as such (i.e. ABRT bit
set in the error register and all other bits cleared).
Note that the value returned in the ERROR field of the data structure is separate from
the value returned in the Error shadow register when the initial error condition is signed.
The Error shadow register value is used for the purpose of signaling a queued command
error, while the value in the ERROR field of the data structure provides specific
information about the error condition that the specific queued command encountered.
Byte 7 6 5 4 3 2 1 0
0-3 Reserved
4 Identifier 001h: Command failed and ICRC error bit set to one in Error resister,
5 Counter size 32bit : 2001h
6-9 Counter Identifier 001h, counter value
10 Identifier 002h: Data FIS R_ERR response for Data FIS.
11 (transmitted and received) , Counter size 32bit : 2002h
12-15 Counter Identifier 002h, counter value
16 Identifier 003h : R_ERR response for Device-to-Host Data FIS,
17 counter size 32bit : 2003h
18-21 Counter Identifier 003h, counter value
22 Identifier 004h : R_ERR response for Host-to-Device Data FIS,
23 Counter size 32bit : 2004h
24-27 Counter identifier 004h, counter value
28 Identifier 005h : R_ERR response for Non-data FIS,
29 Counter size 32bit : 2005h
30-33 Counter identifier 005h, counter value
34 Identifier 006h : R_ERR response for Device-to-Host Non-data FIS,
35 Counter size 32bit : 2006h
36-39 Counter identifier 006h, counter value
40 Identifier 007h : R_ERR response for Host-to-Device Non-data FIS
41 Counter size 32bit : 2007h
42-45 Counter identifier 007h, counter value
46 Identifier 008h : Device-to-host non-data FIS retries,
47 Counter size 32bit : 2008h
48-51 Counter identifier 008h, counter value
52 Identifier 009h : Transitions from drive PhyRdy to drive PhyNRdy
53 Counter size 32bit : 2009h
54-57 Counter identifier 009h, counter value
58 Identifier 00Ah : Device-to-Host Register FISes sent to a COMRESET
59 Counter size 32bit : 200Ah
60-63 Counter identifier 00Ah, counter value
64 Identifier 00Bh : CRC errors within the a Host-to-Device FIS,
65 Counter size 32bit : 200Bh
66-69 Counter identifier 00Bh, counter value
70 Identifier 00Fh : R_ERR response for Host-to-Device Data FIS,
71 (received) , Counter size 32bit : 200Fh
72-75 Counter identifier 00Fh, counter value
76 Identifier 010h : R_ERR response for Host-to-Device Data FIS due to non-CRC errors
77 (received) , Counter size 32bit : 2010h
78-81 Counter identifier 010h, counter value
82 Identifier 012h : R_ERR response for Host-to-Device Data FIS due to CRC errors,
83 (received ) ,Counter size 32bit : 2012h
84-87 Counter identifier 012h, counter value
88 Identifier 013h : R_ERR response for Host-to-Device non-data FIS due to non-CRC
89 errors,(received) , Counter size 32bit : 2013h
90-93 Counter identifier 013h, counter value
94 Identifier 000h : No Counter value, marks end of counters in the page
95 Counter size 32bit : 0200h
96-99 Counter identifier 0000h, 0000h(end mark)
100-510 Reserved
511 Data Structure Checksum
Counter n Identifier
Phy event counter identifier that corresponds to Counter n Value. Specifies the particular event counter
that is being reported. The identifier is 16 bits in length.
Counter n Value
Value of Phy event counter that corresponds to Counter n Identifier. The numebr of significant bits is
determined by Counter n Identifier bits 14:12. All counters are specified 32 bits in length. The counter will
stop (and not wrap to zero) after reaching its maximum value.
Counter n Length
Size of Phy event counter as defined by bits 14:12 of Counter n identifier. The size of the Phy event
counter is a multiple of 16bits. Also, all counters specified 32bits in length.
Reserved
All reserved fields are zeros.
Identifier 000h
There is no counter associated with identifier 000h. A counter identifier of 000h indicates that there are
no additional counters in the log page.
Identifier 001h
The counter with identifier 001h returns the number of commands that returned an ending status with the
ERR bit set to one in the Status register and the ICRC bit set to one in the Error register.
Identifier 002h
The counter with identifier 002h returns the sum of (the number of transmitted Device-to-Host Data FISes
to which the host responded with R_ERR) and (the number of received Host-to-Device Data FISes to
which the device responded with R_ERR). The count returned for identifier 002h is not required to be
equal to the sum of the counters with identifiers 003h and 004h.
Identifier 003h
The counter with identifier 003h returns the number of transmitted Device-to-Host Data FISes to which
the host responded with R_ERR.
Identifier 004h
The counter with identifier 004h returns the number of received Host-to-Device Data FISes to which the
device responded with R_ERR. The count returned for identifier 004h is not required to be equal to the
sum of the counters with identifiers 00Fh and 010h.
Identifier 005h
The counter with identifier 005h returns the sum of (the number of transmitted Device-to-Host non-Data
FISes to which the host responded with R_ERR) and (the number of received Host-to-Device non-Data
FISes to which the device responded with R_ERR). Retries of non-Data FISes are included in this count.
Identifier 006h
The counter with identifier 006h returns the number of transmitted Device-to-Host non-Data FISes to
which the host responded with R_ERR. Retries of non-Data FISes are included in this count.
Identifier 007h
The counter with identifier 007h returns the number of received Host-to-Device non-Data FISes to which
the device responded with R_ERR. Retries of non-Data FISes are included in this count.
Identifier 008h
The counter with identifier 008h returns the number of transmitted Device-to-Host non-Data FISes which
were retried after which the host responded with R_ERR.
Identifier 009h
The counter with identifier 009h returns the number of times the device transitioned into the PhyNRdy
state from the PhyRdy state, including but not limited to asynchronous signal events, power management
events, and COMRESET events. If interface power management is enabled, then this counter may be
incremented due to interface power management transitions.
Identifier 00Ah
The counter with identifier 00Ah returns the number of transmitted Device-to-Host Register FISes with the
device reset signature in response to a COMRESET, which were successfully followed by an R_OK from
the host.
Identifier 00Bh
The counter with identifier 00Bh returns the number of received Host-to-Device FISes of all types (Data
and non-Data) to which the device responded with R_ERR due to CRC error. The count returned for
identifier 00Bh is not required to be equal to the sum of the counters with identifiers 00Fh and 012h.
Identifier 00Dh
The counter with identifier 00Dh returns the number of received Host-to-Device FISes of all types (Data
and non-Data) to which the devices responded with R_ERR for reasons other than CRC error. The count
returned for identifier 00Dh is not required to be equal to the sum of the counters with identifiers 010h and
013h.
Identifier 00Fh
The counter with identifier 00Fh returns the number of received Host-to-Device Data FISes to which the
device responded with R_ERR due to CRC error.
Identifier 010h
The counter with identifier 010h returns the number of received Host-to-Device Data FISes to which the
device responded with R_ERR for reasons other than CRC error.
Identifier 012h
The counter with identifier 012h returns the number of received Host-to-Device non-Data FISes to which
the device responded with R_ERR due to CRC error.
Identifier 013h
The counter with identifier 013h returns the number of received Host-to-Device non-Data FISes to which
the device responded with R_ERR for reasons other than CRC error.
The counter values are not retained across power cycles. The counter values are preserved across
COMRESET and software resets. There are two mechanisms by which the host can explicitly cause the Phy
counters to be reset. The first mechanism is to issue a BIST Activate FIS to the drive. Upon reception of a
BISA Activate FIS the drive will reset all Phy event counters to their reset value. The second mechanism
uses the Read LOG EXT command. When the drive receives a READ LOG EXT command for log page 11h
and bit 0 in the Features register is set to one, the drive will return the current counter values for the
command and then reset all Phy event counter value.
The read multiple command performs similarly to the Read Sectors command except for the following
features. Interrupts are not issued on each sector, but on the transfer of each block which contains the
number of sectors defined by a Set Multiple Mode command or the default, if no intervening Set Multiple
command has been issued.
Command execution is identical to the Read Sectors operation except that the number of sectors defined by
a Set Multiple Mode command are transferred without interrupts. DRQ qualification of the transfer is required
only at the start of a data block transfer, not required for the transfer of each sector.
The block count of sectors to be transferred without intervening interrupts is programmed by the Set Multiple
Mode command, which shall be executed prior to the Read Multiple command.
When the Read Multiple command is issued, the Sector Count Register contains the number of required
sectors ( not the number of blocks or the block count ). If the number of required sectors is not evenly
divisible by the block count, The redundant sectors are transferred during the final partial block transfer.
The partial block transfer shall be for N sectors, where
N = The redundant sector count ( block count )
If the Read Multiple command is attempted when Read Multiple command are disabled, the Read Multiple
operation shall be rejected with an Aborted Command error.
Disk errors occurred during Read Multiple command are posted at the beginning of the block or partial block
transfer, but DRQ is still set and the data, including corrupted data, shall be transferred as they normally
would .
The contents of the Command Block Registers following the transfer of a data block which has a sector in
error are undefined. The host should retry the transfer as individual requests to obtain valid error information.
Subsequent blocks or defective blocks are transferred only when the error is a correctable data error. All
other errors after the transfer of the block containing the error terminates the command . Interrupts are
generated when DRQ is set at the beginning of each block or partial block.
This command is basically identical to Read Multiple command except register setting.
This command is available in LBA addressing only.
Setting BSY bit, the drive will seek to the target cylinder if the head is not on target track ( implied seek ),
select the head and begin to read the number of sector defined in SC register ( 1-256 ) starting from the
target sector. After finding ID of target sector and having 1 sector of data read into the buffer RAM, the drive
sets DRQ in status register and generates interrupt to report to the host that the drive is ready to transfer the
next data.
In case of multi-sector transfer, DRQ bit is reset and BSY is set after 1 sector transfer to prepare for the
next sector transfer.
An uncorrectable data can also be transferred but the subsequent operation will terminate at the LBA (or
cylinder, head, and sector) position in the Shadow Block register. When a sector is ready to be read by the
host, an interrupt is issued. After the last sector is read by the host, no interrupt is issued at the end of a
command.
Setting BSY bit, the drive will seek to the target cylinder if the head is not on target track ( implied seek ),
select the head and begin to read the number of sector defined in SC register ( 1-65536 ) starting from the
target sector. After finding ID of target sector and having 1 sector of data read into the buffer RAM, the drive
sets DRQ in status register and generates interrupt to report to the host that the drive is ready to transfer the
next data.
In case of multi-sector transfer, DRQ bit is reset and BSY is set after 1 sector transfer to prepare for the next
sector transfer.
An uncorrectable data can also be transferred but the subsequent operation will terminate at the LBA
position in the Shadow Register Block registers. When a sector is ready to be read by the host, an interrupt
is issued. After the last sector is read by the host, no interrupt is issued at the end of a command.
This command is available in LBA addressing only.
This command is identical to a Read EXT command except that the drive has read the data from the media,
and the DRQ bit is not set and no data is sent to the host. This allows the system to verify the integrity of
the drive. A single interrupt is generated upon completion of a command or when an error occurs.
This command is available in LBA addressing only.
This command will set BSY bit and move the R/W heads on the disk to cylinder 0. At the completion of a
seek , it revises the status, resets BSY and generates an interrupt
3
ATA/ATAPI-4 defines this command as Vendor specific. The drive supports this command to maintain ATA-3, and the previous
models compatibility. User is recommended not to use this command.
This command requests a transfer of a sector of data from the host including the information specified in the
table below. The function of this command is decided by the transferred data.
The revision code field is returned in the IDENTIFY DEVICE word 92. The valid revision codes are 0001h
through FFFEh. A value of 0000h or FFFFh indicated that the Master Password Revision Code is not
supported.
Table 10.7-18 Security Set Password information
Word Content
0 Control word
Bits 15-9 Reserved
Bits 8 Security level 0=High
1=Maximum
Bits 7-1 Reserved
Bit 0 Identifier 0=set user password
1=set master password
1-16 Password ( 32 bytes )
17 Master Password Revision Code (valid if word 0 bit 0 = 1)
18-255 Reserved
The settings of the identifier and security level bits interact as shown in the table below.
This command requests the host to transfer a sector of data including ones described in the table below .
If the Identifier bit is set to master and the drive is in high security level, then the supplied password will be
compared with the stored master password. If the drive is in maximum security level, then the SECURITY
UNLOCK command will be rejected.
If the Identifier bit is set to user, the drive compares the supplied password with the stored user password.
If the drive fails in comparing passwords, then the drive returns an abort error to the host and decrements the
unlock counter. This counter is initially set to five and will be decremented for each mismatched passwords
when SECURITY UNLOCK is issued and the drive is locked. When this counter is zero, SECURITY
UNLOCK and SECURITY ERASE UNIT commands are aborted until the next power-on reset or hard reset.
SECURITY UNLOCK commands issued when the drive is unlocked have no effect on the unlock counter.
The SECURITY ERASE PREPARE command must be issued immediately before the SECURITY ERASE
UNIT command to enable the drive erase and unlock. This command can prevent accidental erasure of the
drive.
Following commands are rejected when the drive is in SECURITY FREEZE LOCK mode.
SECURITY SET PASSWORD
SECURITY UNLOCK
SECURITY ERASE PREPARE
SECURITY ERASE UNIT
SECURITY DISABLE PASSWORD
Copyright © 2011 Toshiba Corporation. All rights reserved.
- 99 -
360074232
This command can be executed only when the drive is in unlocked mode. When the drive is in locked mode,
the drive rejects the command with an Aborted command error.
The SECURITY DISABLE PASSWORD command requests a transfer of a single sector of data from the
host including the information specified in the following table. Then the drive checks the transferred
password. If the user password or the Master password match the given password, the drive disables the
lock function. This command does not change the Master password which may be reactivated later by
setting a user password.
This command moves the R/W heads to the cylinder specified in the Shadow Register Block registers. The
rive sets BSY and starts seek operation. After the completion of a seek operation, the drive asserts DSC4,
negates BSY, and return the interrupt.
If CY, HD and SN registers show invalid address, “ID Not Found” error is reported and no seek operation
shall be executed. All commands related to data access possess Implied Seek function and don't need this
command.
4
ATA-2 Notes: Prior to ATA-2 standard, this bit indicated that the device was on track. This bit may be used for other purposes in
future standards. For compatibility the drive supports this bit as ATA-1 specifies. User is recommended not to use this bit.
Copyright © 2011 Toshiba Corporation. All rights reserved.
- 100 -
360074232
*2 : Mode Selection
PIO default mode is mode 4 flow control. DMA default mode is Multiword DMA mode 2.
The level of Advanced Power Management function is set in Sector count register.
Table 10.7-25 APM mode seting
Transition time of power save is changed dynamically in Mode1 and Mode2 due to Adaptive power
control function. The function level is set to Mode1 when Advanced Power Management function is
disabled.
If FT register has any other value, the drive rejects the command with Abort Command error.
Command/Setting Description
Initialize Device Parameters Drive settings established with the Initialize
Device Parameter commands
Power Management Feature Set The Standby timer used in the Power
Standby Timer Management feature set.
Security mode state The security mode state established by Security
Mode feature set commands. The drive will not
transition to a different security mode state
based on a COMRESET.
Security Freeze Lock The Frozen mode setting established by the
Security Freeze Lock command
Security Unlock The unlock counter that is decremented as part
of a failed Security Unlock command attempt.
Set Address Max (EXT) The maximum LBA specified in Set Address
Max od Set Address Max Ext.
Set Features (Write Cache The write cache enable/disable setting
Enable/Disable) established by the Set Features command with
subcommand code of 02h and 82h.
Set Features (Set Transfer Mode) PIO, Multiword and UDMA transfer mode setting
established by the Set Features command with
subcommand code of 03h.
Ser Features (Advanced Power The advanced power management
Management Enable/Disable) enable/disable setting established by the Set
Feature command with subcommand code of
05h or 85h. The advanced power management
level established in the Sector Count register
when advanced power management is enabled
will also be preserved.
Set Features (Read Look-Ahead) The read look-ahead enable/disable setting
established by the Set Features command with
subcommand code of 55h or AAh
Set Features(Reverting to Defaults) The reverting to power-on defaults
enable/disable setting established by the SET
FEATURES command with a subcommand
code of CCh or 66h
Set Multiple Mode The block size established with the Set Multiple
Mode command.
The enable and disable of this feature and the sensitivity level is non-volatile.
They are not affected by device power cycle.
Individual SET MAX commands are identified by the value placed in the Features register. Table 10.7-29
shows these Features register values. But regardless of Feature register value, the case this command is
immediately proceded by a Read Native Max ADRESS comamnd, it is interpreted as a Set Max ADDRESS
command.
Word Content
0 Reserved
1-16 Password (32 bytes)
17-255 Reserved
This command is not immediately preceded by a READ NATIVE MAX ADDRESS command. If this command
is immediately preceded by a READ NATIVE MAX ADDRESS command, it shall be interpreted as a SET
MAX ADDRESS command.
The SET MAX LOCK command sets the drive into Set Max Locked state. After this command is completed
any other SET MAX commands except SET MAX UNLOCK and SET MAX FREEZE LOCK are rejected. The
drive remains in this state until a power cycle or the acceptance of a SET MAX UNLOCK or SET MAX
FREEZE LOCK command.
A SET MAX SET PASSWORD command shall previously have been successfully completed. This command
is not immediately preceded by a READ NATIVE MAX ADDRESS command. If this command is immediately
preceded by a READ NATIVE MAX ADDRESS command, it is interpreted as a SET MAX ADDRESS
command.
The SET MAX FREEZE LOCK command sets the drive to Set Max Frozen state. After command completion
any subsequent SET MAX commands are rejected.
This command specifies the the maximum address in a range of actual drive capacity. If the address
exceeding the set value is accessed , “ ABORT ERROR “ error will be reported. This set value affects the
values of WORD 60, 61, 100-103 of IDENTIFY DEVICE command.
This command shall be immediately preceded by Read Native Max Address EXT command. Otherwise, it
will be terminated with “ ABORT ERROR ” .
If this command is issued twice with a volatile bit set to 1 after power-up or hardware reset, “ID Not Found
error” will be reported.
If a host protected area has been established by a SET MAX ADDRESS command, this command will be
terminated with “ ABORT ERROR ” .
Volatile bit ( SC register bit 0 ) :
If this command is issued with a volatile bit set to 1, the set value of this command is valid after power-up or
hardware reset.
If this command is issued with a volatile bit cleared to 0, the set value of this command shall be cleared
after hard reset or power-on and the maximam value shall be the last value with a volatile bit set to 1.
Power Control is a group of commands which controls low power mode in the drive. The drive has three
types of power mode:
IDLE, STANDBY and SLEEP mode
When SC = x, the drive enters sleep mode immediately. After entering the sleep mode, the drive issues an
interrupt to report the host that the command has been completed. The drive recovers from sleep mode and
enters stand-by mode by receiving a reset.
This command has a number of separate functions which can be selected via the Feature Register when the
command is issued. The subcommands and their respective codes are listed below.
Subcommand Code
This command transfers SMART data as 512 byte data. Upon receipt of this command, the drive sets BSY,
sets the SMART data on the buffer. Then, it sets DRQ, resets BSY, issue an interrupt to report that the drive
is ready to transfer data.
Byte Description
0-1 Data structure revision number
2-361 1st-30th Individual attribute data
362 Off-line data collection status
363 Self-test execution status
364-365 Total time in seconds to complete off-line data collection activity
366 Reserved
367 Off-line data collection capability
368-369 SMART capability
370 Error logging capability
bit7-1 Reserved
bit 0 1= Device error logging supported
371 Self-test Failure Checkpoint
372 Short self-test routine recommended polling time (in minutes)
373 Extended self-test routine recommended polling time (in minutes)
If FFh, show bytes 375-376 for polling time
374 Reserved
375-376 Extended self-test routine recommended polling time (in minutes)
377-510 Reserved
511 Data structure Checksum
ID Attribute Name
0 Indicates that entry in the data structure is not used
1 Read Error Rate
2 Throughput Performance
3 Spin Up Time
4 Start/Stop Count
5 Reallocated Sector Count
7 Seek Error Rate
8 Seek Time performance
9 Power-On hours Count
10 Spin Retry Count
12 Drive Power Cycle Count
191 Shock Sense Count
192 Power-off Retract Count
193 Load Cycle Count
194 Temperature
196 Re-allocated Sector Event
197 Current Pending sector Count
198 Off-Line Scan Uncorrectable Sector Count
199 CRC Error Count
220 Disk Shift
222 Loaded Hours
223 Load Retry Count
224 Load Friction
226 Load in Time
240 Write Head
254 Free Fall Sensor Event Count (Optional)
Value Definition
00h or 80h Off-line data collection activity was never started.
01h Reserved
02h or 82h Off-line data collection activity was completed without error.
03h or 83h Off-line activity in progress.
04h or 84h Off-line data collection activity was suspended by an interrupting command from host.
05h or 85h Off-line data collection activity was aborted by an interrupting command from host.
06h or 86h Off-line data collection activity was aborted by the drive with a fatal error.
07h-FFh Reserved
bits 5 (reserved).
This bit is set to 0.
bits 7 (reserved).
This bit is set to 0.
This command transfers attribute thresholds of the drive as 512 byte data.
Upon receipt of the command, the drive sets BSY, sets SMART data on the buffer, then, sets DRQ, resets
BSY and issues an interrupt to report to the host that data transfer is ready.
Byte Descriptions
0-1 Data structure revision number
2-361 1st-30th Individual attribute threshold data
362-510 Reserved
511 Data structure checksum
This command enables and disables the attribute autosave function within the drive. This command allow the
drive to automatically save its updated attribute values to the attribute data sector at mode transition or cause
the autosave feature to be disabled. The state of the attribute autosave feature (either enabled or disabled)
will be preserved by the drive across power cycles.
A value of zero written by the host into the drive’s Sector Count register before issuing this command may
disable this function. Disabling this feature does not preclude the drive from saving attribute values to the
attribute data sector during other normal save operations.
A value of F1h written by the host into the drive’s Sector Count register before issuing this command will
cause this function to be enabled. Any other non-zero value written by the host into this register before issuing
this command will not change the state of the attribute autosave feature.
Upon receipt of the command from the host, the drive sets BSY, enables or disables the autosave function ,
clears BSY and asserts INTRQ.
This command immediately saves changed attribute values. Upon receipt of the command, the drive sets
BSY, saves the attribute values, clears BSY and issues an interrupt.
a) The drive executes command completion before executing the subcommand routine.
b) After clearing BSY to zero and setting DRDY to one after receiving the command, the drive will not set
BSY nor clear DRDY during execution of the subcommand routine.
c) If the drive is in the process of performing the subcommand routine and is interrupted by any new
command from the host except a SLEEP, SMART DISABLE OPERATIONS, SMART EXECUTE
OFF-LINE IMMEDIATE, STANDBY IMMEDIATE or IDLE IMMEDIATE command, the drive suspends or
aborts the subcommand routine and service the host within two seconds after receipt of the new
command. After servicing the interrupting command from the host the drive may re-initiate or resume the
subcommand routine without any additional commands from the host.
d) If the drive is in the process of performing a subcommand routine and is interrupted by a SLEEP
command from the host, the drive will suspend or abort the subcommand routine and execute the SLEEP
command. If the drive is in the process of performing any self-test routine and is interrupted by a SLEEP
command from the host, the drive will abort the subcommand routine and execute the SLEEP command.
e) If the drive is in the process of performing the subcommand routine and is interrupted by a SMART
DISABLE OPERATIONS command from the host, the drive will abort the subcommand routine and service
the host within two seconds after receipt of the command.
f) If the drive is in the process of performing the subcommand routine and is interrupted by a SMART
EXECUTE OFF-LINE IMMEDIATE command from the host, the drive will abort the subcommand routine
and service the host within two seconds after receipt of the command. The drive will then service the new
SMART EXECUTE OFF-LINE IMMEDIATE subcommand.
g) If the drive is in the process of performing the subcommand routine and is interrupted by a STANDBY
IMMEDIATE or IDLE IMMEDIATE command from the host, the drive will suspend or abort the
subcommand routine, and service the host within two seconds after receipt of the command. After
receiving a new command that causes the drive to exit a power saving mode, the drive will initiate or
resume the subcommand routine without any additional commands from the host unless these activities
were aborted by the host.
h) While the drive is performing the subcommand routine it will not automatically change power states (e.g.,
as a result of its Standby timer expiring).
If an error occurs while a drive is performing a self-test routine the drive may discontinue the testing and place
the test results in the Self-test execution status byte.
This command returns the indicated log sector contents to the host.
Sector count -specifies the number of sectors to be read from the specified log. The log transferred by the
drive shall start at the first sector in the specified log, regardless of the sector count requested.
Sector number indicates the log sector to be returned as described in the following Table.
Byte Descriptions
0-1 SMART Logging Version
2 Number of sectors in the log at log address 1
3 Reserved
4 Number of sectors in the log at log address 2
5 Reserved
… …
510 Number of sectors in the log at log address 255
511 Reserved
The value of the SMART Logging Version word is set to 01h. Then the drive supports multi-sector SMART
logs. In addition, if the drive supports multi-sector logs, then the logs at log addresses 80-9Fh shall each be
defined as 16 sectors long.
Byte Descriptions
0 SMART error log version
1 Error log index
2-91 First error log data structure
92-181 Second error log data structure
182-271 Third error log data structure
272-361 Fourth error log data structure
362-451 Fifth error log data structure
452-453 Device error count
454-510 Reserved
511 Data structure checksum
If the command data structure represents a command or software reset, the content of the command data
structure will be as shown in the following Table.
Timestamp shall be the time since power-on in milliseconds when command acceptance occurred. This
timestamp may wrap around.
State will contain a value indicating the state of the drive when command was written to the Command
register or the reset occurred as described in the following Table.
Sleep indicates the reset for which the error is being reported was received when the drive was in the
Sleep mode.
Standby indicates the command or reset for which the error is being reported was received when the drive
was in the Standby mode.
Active/Idle with BSY cleared to zero indicates the command or reset for which the error is being reported
was received when the drive was in the Active or Idle mode and BSY was cleared to zero.
Executing SMART off-line or self-test indicates the command or reset for which the error is being reported
was received when the device was in the process of executing a SMART off-line or self-test.
Life timestamp will contain the power-on lifetime of the drive in hours when command completion occurred.
The error log index indicates the most recent error log data structure. Unused error log data structures
shall be filled with zeros.
The content of the error log data structure entries is defined in 10.7.35.6.2.2.
The following Table defines the 512 bytes that make up the SMART self-test log sector.
Byte Descriptions
0-1 Self-test log data structure revision number
2-25 First descriptor entry
26-49 Second descriptor entry
..... .....
482-505 Twenty-first descriptor entry
506-507 Vendor specific
508 Self-test index
509-510 Reserved
511 Data structure checksum
The content of the self-test descriptor entry is shown in the following Table.
Content of the Sector Number register will be the content of the Sector Number register when the nth
self-test subcommand was issued.
Content of the self-test execution status byte will be the content of the self-test execution status byte
when the nth self-test was completed.
Life timestamp will contain the power-on lifetime of the drive in hours when the nth self-test subcommand
was completed.
Content of the self-test failure checkpoint byte will be the content of the self-test failure checkpoint byte
when the nth self-test was completed.
The failing LBA will be the LBA of the uncorrectable sector that caused the test to fail. If the drive
encountered more than one uncorrectable sector during the test, this field will indicate the LBA of the first
uncorrectable sector encountered. If the test passed or the test failed for some reason other than an
uncorrectable sector, the value of this field is undefined.
Bit (1) shall be written by the host and returned unmodified by the drive. Bits (4:3) shall be written as zeros
by the host and the drive shall modify them as the test progresses.
This command writes an indicated number of 512 byte data sectors to the indicated log.
This command enables access to all SMART capabilities of the drive. Prior to receipt of this command,
Parameters for drive failure prediction are neither monitored nor saved by the drive. The state of SMART
(either enabled or disabled) will be preserved by the drive across power cycles. Once enabled, the receipt of
subsequent SMART ENABLE OPERATIONS commands don’t affect any of the parameters for drive failure
prediction.
Upon receipt of this command from the host, the drive sets BSY, enables SMART capabilities and functions,
clears BSY and asserts INTRQ.
If an impending failure is not predicted, the drive sets the Cylinder Low register to 4Fh and the Cylinder High
register to C2h. If an impending failure is predicted, the drive sets the Cylinder Low register to F4h and the
Cylinder High register to 2Ch.
This command is used to communicate the reliability status of the drive to the host’s request. Upon receipt of
this command the drive sets BSY, saves any parameters monitored by the drive to non-volatile memory and
checks the drive condition.
This subcommand enables and disables the optional feature that causes the drive to perform the set of
off-line data collection activities that automatically collect attribute data in an off-line mode and then save this
data to the drive’s non-volatile memory. This subcommand may either cause the drive automatically initiate
or resume performance of its off-line data collection activities; or this command may cause the automatic
off-line data collection feature to be disabled.
A value of zero written by the host into the drive’s Sector Count register before issuing this subcommand will
cause the feature to be disabled. Disabling this feature does not preclude the drive from saving attribute
values to non-volatile memory during some other normal operation such as during a power-on or power-off
sequence or during an error recovery sequence.
A value of F8h written by the host into the drive’s Sector Count register before issuing this command will
cause this feature to be enabled. Any other non-zero value written by the host into this register before
issuing this subcommand is vendor specific.
This commands which controls power mode in the drive. The drive has three types of power mode:
There are two ways to shift to the stand-by mode ( to stop rotation of spindle motor ).
By a command from the host
By internal timer
The internal timer is set by STANDBY command. If the drive receives disk access command from the host
when it is in standby mode, the spindle starts rotating and the drive executes read/write operation.
After power on, the spindle starts rotating and enters the idle mode. During idle or stand-by, READY bit is
set and the drive is ready to receive a command.
The drive is in the idle mode when it is in default condition after power-on.
This command causes the drive to enter stndby mode.
If SC is non-zero then stand-by timer shall be enabled. The value in SC shall be used to determine the time
programmed into the stand-by timer.
If SC is zero then the stand-by timer is disabled.
When the specified time period has passed, the drive enters stand-by mode. If a disk access command is
received during stand-by mode, the spindle starts rotating and the drive executes read/write operation. After
completing the command, the drive reset stand-by timer and the timer starts counting down.
This command transfers a sector of data from the host to the specified 512 bytes of the drive . When this
command is issued, the drive will set up the buffer for write operation, and set DRQ. The host may then write
up to 512 bytes of data to the buffer.
This command is basically identical to Sector command except for the following differences.
Host initialize the DMA channel before issuing command.
- Data transfer is initiated by DMARQ and handled by the DMA channel in the host.
- Drive issue only one interrupt at the completion of each command to show the status is valid after
data transfer.
During DMA transfer phase, either BSY or DRQ is set to 1.
When a command is completed, CY, HD, SN register (LBA register) shows the sector transferred the
latest.
If the drive detects unrecoverable error, the drive terminates the command and CY, HD, SN register (LBA
register) shows the sector where error has occurred.
This command is basically identical to Write DMA command for the register settings
This command is available in LBA addressing mode only.
This command provides the same function as the WRITE DMA EXT command except
that regardless of whether write caching in the device is enabled or not, the user data shall be written to
the media before ending status for the command is reported.
This command writes a specified number of 512 byte data sectors to the specified log. The device shall
interrupt for each DRQ block transferred.
If the Write Multiple command is attempted when Write Multiple command are disabled, the Write Multiple
operation shall be rejected with an Aborted Command error.
Disk errors occurred during Write Multiple command are posted after the attempted disk write of the block or
partial block which are transferred. The Write Multiple command is terminated at the sector in error , even if it
was in the middle of a block. Subsequent blocks are not transferred after an error. Interrupts are generated
for each block or each sector, when DRQ is set .
After the transfer of a data block which contains a sector with error, the contents of the Command Block
Registers are undefined. The host should retry the transfer as individual requests to obtain valid error
information.
This command is basically identical to Write Multiple command except register setting.
This command is available in LBA addressing only.
This command provides the same function as the Write Multiple EXT command except the regardless of
whether write caching in the device is enabled or not, the user data shall be written to the media before
ending status for the command is reported.
This command is available in LBA addressing only.
The drive seeks to the target cylinder and selects the head and begins to write to the number of sectors
defined in SC register (1-256) starting from the target sector. DRQ in status register is set as soon as the
command register is written and the buffer RAM receives the data transferred from the host. After 1 sector
is transferred to the buffer RAM, the drive resets DRQ, sets BSY and begins write operation. In case of
multi-sector transfer, it sets DRQ bit, resets BSY and generates Interrupt to inform host that it is ready to
transfer the next 1 sector of data. The drive will seek to the target cylinder if the head is not on the target
track (implied seek). After transferring the last data in the buffer, it resets BSY and issues an interrupt.
If an error occurs during multi-sector transfer, it will terminate the transfer by setting error information in
status register and error register, without shifting into data transfer mode from the host. LBA (or cylinder,
head, and sector) registers show the address where error has occurred.
The drive seeks to the target cylinder and selects the head and begins to write to the number of sectors
defined in SC register (1-65536) starting from the target sector. DRQ in status register is set as soon as
the command register is written and the buffer RAM receives the data transferred from the host. After 1
sector is transferred to the buffer RAM, the drive resets DRQ, sets BSY and begins write operation. In
case of multi-sector transfer, it sets DRQ bit, resets BSY and generates Interrupt to inform host that it is
ready to transfer the next 1 sector of data. The drive will seek to the target cylinder if the head is not on
the target track (implied seek). After transferring the last data in the buffer, it resets BSY and issues an
interrupt.
If an error occurs during multi-sector transfer, it will terminate the transfer by setting error information in
status register and error register, without shifting into data transfer mode from the host. LBA registers
show the address where error has occurred.
This command is available in LBA addressing only.
This command is basically identical to Write Multiple command except register setting.
This command is available in LBA addressing only.
This command provides the same function as the Write Multiple EXT command except the regardless of
whether write caching in the device is enabled or not, the user data shall be written to the media before
ending status for the command is reported.
This command is available in LBA addressing only.
In this command, it is a purpose to make the uncorrectable error for specified LBA intentionally. It reports
on the uncorrectable error in the LBA against corresponding LBA after this command ends the lead
operation etc.
If a usual light operates afterwards even when the uncorrectable error is made by this command, it is
recoverable. The command is specified by Logical Form (LBA), and the data transfer is unnecessary.
SC was demanded and when "0000h" was specified, the processing of 65536 sectors was demanded.
Error re after the recovering transaction is done, disk write error that occurs while executing this command
is reported.
The write operation ends in the sector (Even if it is during the block) where the error occurs. In this case,
the number of sectors of remainder since the sector.
where the logical block address and the error where the error occurs occur is set in the shadow block
register.
5
ATA/ATAPI-4 defines this command as Vendor specific. The drive supports this command to maintain ATA-3 compatibility. User is
recommended not to use this command.
The Security mode features allow the host to implement a security password system to prevent
unauthorized access to the disk drive.
SECURITY UNLOCK
Parameter word for the Security mode feature set is described in IDENTIFY DEVICE response Word 128.
The drive is shipped with the master password set to 20h value (ASCII blanks) and the lock function disabled.
The system manufacturer/dealer may set a new master password by using the SECURITY SET PASSWORD
command, without enabling the lock function.
If the Master Password Revision Code feature is supported, the Master Password Revision Code is initially set
to FFFEh.
When a user password is set, the drive automatically enters lock mode by the next powered-on.
In locked mode, the drive rejects media access commands until a SECURITY UNLOCK command is
successfully completed.
Power-on
Locked mode
No
Password ERASE Reject
match? UNIT Command Execute
Command
Yes
Unit erased
Unlock
mode
Lock function disabled
FREEZE LOCK
Normal operation,
Frozen mode commands
are available
If the user password is lost and High level security is set, the drive does not allow the user to access any data.
However, the drive can be unlocked using the master password.
If the user password is lost and Maximum security level is set, it is impossible to access data. However, the
drive can be unlocked using the SECURITY ERASE UNIT command with the master password. The drive will
erase all user data and unlock the drive.
High
Level? UNLOCK with master password
Maximum
ERASE UNIT
with master password
Normal operation
but data lost
If both the user password and the master password are lost, the drive cannot be in normal operation mode.
This command table shows the drive’s response to commands when the Security Function is enabled.
Unlocked
Command Locked mode Frozen mode
mode
CHECK POWER MODE O O O
DEVICE CONFIGRATION X O O
DOWNLOAD MICROCODE O O O
EXECUTE DEVICE DIAGNOSTICS O O O
FLUSH CACHE (EXT) X O O
IDENTIFY DEVICE O O O
IDLE O O O
IDLE IMMEDIATE O O O
INITIALIZE DEVICE PARAMETERS O O O
READ BUFFER O O O
READ DMA (EXT) X O O
READ FPDMA QUEUED X O O
READ LOG DMA EXT O O O
READ LOG EXT O O O
READ MULTIPLE (EXT) X O O
READ NATIVE MAX ADDRESS (EXT) O O O
READ SECTORS (EXT) X O O
READ VERIFY SECTORS (EXT) X O O
RECALIBRATE O O O
SECURITY DISABLE PASSWORD X O X
SECURITY ERASE PREPARE O O O
SECURITY ERASE UNIT O O X
SECURITY FREEZE LOCK X O O
SECURITY SET PASSWORD X O X
SECURITY UNLOCK O O X
SEEK O O O
SET FEATURES O O O
SET MAX ADDRESS (EXT) X O O
SET MULTIPLE MODE O O O
SLEEP O O O
SMART O O O
STANDBY O O O
STANDBY IMMEDIATE O O O
WRITE BUFFER O O O
WRITE DMA (EXT) X O O
WRITE DMA FUA (EXT) X O O
WRITE FPDMA QUEUED X O O
WRITE LOG DMA EXT X O O
WRITE LOG EXT X O O
WRITE MULTIPLE (EXT) X O O
WRITE MULTIPLE FUA (EXT) X O O
WRITE SECTORS (EXT) X O O
WRITE UNCORRECTABLE EXT X O O
WRITE VERIFY X O O
Self-monitoring, analysis and reporting technology (SMART) is the function to protect user data and to
minimize the likelihood of unscheduled system downtime that may be caused by predictable degradation
and/or fault of the drive. By monitoring and storing the critical performance and calibration parameters,
SMART drives attempt to predict the likelihood of near-term degradation or fault condition. The host system
warns the user of the impending risk of data loss and advises the user of appropriate action by informing the
host system of the negative reliability.
SMART commands use a single command code and are differentiated by the value placed in the Features
register.
10.9.1 Attributes
Attributes are the specific performance or calibration parameters that are used in analyzing the status of the
drive. Attributes are selected by the drive manufacturer based on that attribute’s ability to predict degrading or
faulty conditions for that particular drive. The specific set of attribute being used and the identity of these
attributes is vendor specific and proprietary.
Attribute values are used to measure the relative reliability of individual performance or calibration attributes.
The drives are shipped from the drive manufacturer’s factory with the SMART feature disabled. SMART
feature will be enabled by the system manufacturer or the application.
The SMART COMMAND TRANSPORT(SCT) feature set is supported. SCT commands are executed by using
SMART Read Log and SMART Write Log Command, or Read Log EXT and Write Log EXT command.
Log Address E0h is used to issue commands and return status. Log Address E1h is used to transport data.
*Please refer to ATA8-ACS “SCT Command Transport” section for more detail.
Adaptive Power Mode Control is a function to reduce power consumption without performance degradation.
The drive supports the following Idle modes of 3 levels. The drive enters into idle mode adaptively in
accordance with the command pattern.
Interface power management Control is a function to reduce power consumption of the interface.. Host can
initiate Partial request and Slumber request to reduce power consumption. The interface management can
also be initiated by the drive. To enable the device initiating interface power management, host shall enable
this feature by SET FEATURE command.
Interface power management modes are categolized as Active, Partial and Slumber. Details are as follows
10.12.1.1 Active
10.12.1.2 Partial
Interface is in-active and wake up time to Active mode is less than 10 microseconds.
The drive will get enter Partial mode under following situations.
1) The drive detect PMREQ_P primitive and the drive accepts the primitive. To indicate the drive
acceptance, PMACK primitive will be used.
2) The drive will not accept PMREQ_P when the drive is waiting for command or transmitting/receiving FIS.
3) The drive will wakeup from Partial mode when the drive detects COMWAKE, COMRESET. Also, the
drive will wakeup from Partial mode when the drive needs to start transmitting some FIS to the host. In
this case, the drive will send COMWAKE to the host.
1) The drive will initiate Partial when the drive interface power management feature is enabled.
2) The drive will initiate Partial when predetermined time past after the last command completion. Or, such
as long seek is needed during the command execution.
3) While the S-ATA bus condition is in Partial mode, both of the host and the drive can initiate wake up
sequence via COMWAKE.
10.12.1.3 Slumber
Interface is in-active and wake up time to Active mode is less than 10 miliseconds.
The drive will get in Slumber mode when following situation happened.
1) The drive detect PMREQ_S primitive and the drive accept its the primitive. To indicate drive acceptance,
PMACK primitive will be used.
2) The drive will not accept PMREQ_S when the drive waiting for command or transmitting/receiving FIS.
3) The Drive will wakeup from Slumber mode when the drive detect COMWAKE or COMRESET. Also, the
drive will wakeup from Slumber mode when the drive needs to start transmitting some FIS to the host. In
this case, the drive will send COMWAKE to the host.
1) The drive will initiate Slumber mode when the drive interface power management feature is enabled.
2) The drive will initiate Slumber mode after STANDBY IMMEDIATE or SLEEP command completion.
3) While the S-ATA bus condition is in Slumber mode, both of host and the drive can initiate wake up
sequence via COMWAKE.
10.13 Reset
A RESET condition will change the drive condition to busy, allowing the drive to perform the specified
initialization required for normal operation.
A RESET condition can be generated by both COMRESET and software. There are two hardware resets,
one is by the COMRESET and the other is by the drive power sense circuitry. These resets will chenge the
drive condition to busy when the system and the drive respectively acknowledge specified supply voltage
(See 6.1).
The other reset is software generated. The Host can write to the Device Control register and set the reset
bit with RegHD FIS. The host software condition will continue until the reset bit is set to zero.
Once the reset is negated and the drive is re-enabled, the drive will perform necessary hardware
initialization, clear any previously programmed drive parameters and revert to the defaults, load the Shadow
Register Block registers with their initial values, and then send RegDH FIS indicating clear BSY bit.
No interrupt is generated when initialization is complete. The initial values (hex) for the Shadow Register
Block registers and other settings when the Software Settings Preservation is disabled and enabled are as
follows.
Table 10.13-1 Initialization of Shadow Register Block registers & Feature setting
(Power ON and Software Settings Preservation disabled)
REGISTER/Setting POWER ON COMRESET SOFTWARE RESET
Error Register 01h 01h 01h
Sector Count Register 01h 01h 01h
LBA Low Register 01h 01h 01h
LBA Mid Register 00h 00h 00h
LBA High Register 00h 00h 00h
Device/Head Rgister 00h 00h 00h
Status Register /
50h 50h 50h
Alternate Status Register
Data Buffer Undefined Undefined no change
APM mode Default Default no change
Auto Idle , Stand-by setting Disable Disable no change
Read Cache Enable Enable no change
Write Cache Enable Enable no change
Multiple mode 16 sectors 16 sectors no change
DMA transfer mode Ultra DMA mode 5 Ultra DMA mode 5 no change
PIO transfer mode PIO mode 4 PIO mode 4 no change
Non-zero buffer offset Disable Disable no change
DMA Setup FIS Auto-Activate
Disable Disable no change
optimization
Device Initiated interface
Disable Disable no change
power state transitions
Guaranteed In-Order Data
Disable Disable no change
delivery
Software Setting Preservation Enable Enable no change
Freefall setting no change no change no change
Security mode state Depends on setting Depends on setting no change
SECURITY FREEZE LOCK Depends on setting Depends on setting no change
Depends on Depends on
SET MAX ADDRESS(EXT) no change
volatile setting volatile setting
・The POST will be performed each time the spindle motor starts and power-up drive.
・In the event of a failed POST, the drive will disable the feature.
・In the event of a failed POST at power-up drive, the drive will clear IDENTIFY Word 120 Bit 5.
・In the event of a failed POST at power-up drive, the drive will report of error status by a EXECUTE
DEVICE DIAGNOSTIC command. (Error register = 0x10)
Interrupts are cleared when host do predetermined action such as reading Status register in the Shadow
Register Block registers, issues a reset, or writes to the Command register in the Shadow Register Block
registers.
A command shall only be interrupted with a COMRESET 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. Therefore,
a command should only be interrupted by a reset at times when the host judges that there is a problem, such
as receiving no response from the drive. Host programmers should set command time-out periods enough
long in order to avoid having effect on the drive's ability to perform level retry and data recovery activities.
Basically for the Serial ATA FIS transaction, FIS is used. For example, non-data command, host will issue
only one RegHD FIS. And when the command is complete, drive will send RegDH FIS. During command
execution, no activity such as re-reading Block register will occur on the Serial ATA bus.
e) When the RegHD at a) is not executable, the drive will send RegDH with BSY=0, I=1, ERR=1 and the
Error register with error code.
f) When unrecoverable error happened during data transfer, the PIO Setup FIS contains BSY=0,
DRQ=1 and ERR=1. And then start transfer one sector data with Data FIS. When the data transfer
finishes, command is completed.
When the command is READ MULTIPLE or READ MULTIPLE EXT, the size the data contains in the Data
FIS will become the multiple count * 512 byte set by SET MULTIPLE command.
Also the SET FEATURE command have some option to change the PIO transfer speed. But it will have no
effect for S-ATA data transfer.
Command data error protocol for PIO Data Out command(during the data transfer)
Host Tx -----[RegHD]----------------[Data]-----------------[Data]--------------------
Drive Tx --------------------[PIOSU]----------…..[PIOSU]----------[RegDH]-------
(ERR=1,BSY=0,DRQ=1, Error Reg=Error Code)
Command error protocol for DIO Data Out command (error report at the end of the command)
Host Tx -----[RegHD]-----------------[DATA]-------------[DATA]……------------[DATA]------------------------
Drive Tx ---------------------[PIOSU]-------------[PIOSU]----------……[PIOSU]--------------[RegDH]---------
(BSY=0,DRQ=0,I=1,ERR=1)
(Error Reg = Error Code)
Note: During command execution of in Parallel ATA, sometimes host will poll the status. For Serial ATA,
there are no transaction of FIS during command execution. This means, during command execution, host will
see BSY=1 in the Shadow Register Block registers, but the status bits will not update until next RegDH
receive.
Host Tx -----[RegHD]----------------------------------------------------------
Drive Tx --------------------[DATA]-[DATA]…[DATA]-[RegDH]----------
WRITE DMA
WRITE DMA EXT
WRITE DMA FUA EXT
WRITE LOG DMA EXT
The protocol to issue these commands are similar to the Non Data command protocol. But the data transfer
following to the command is unque for the NCQ commands.
a) The host sends the RegHD to the drive including required command parameters.
b) When the drive accepts the command , the drive will send RegDH to the host with BSY=0, I=1 and
ERR=0
Also, the command will be registerered in the queue table inside the drive.
c) When the RegHD at a) is not executable, the drive will send RegDH with BSY=0, I=1, ERR=1 and the
Error register with error code.
a) When the drive is prepared to send data to the host, the drive will send the DMA Setup FIS with the
Tag number as the response to READ FPDMA QUEUED command, D=0, I=0 and A=0.
b) The drive sends data with Data FIS. The data offset and the number of the data to be transfer is
described in the previous DMA Setup FIS.
c) Upon successful completion of an outstanding command, the drive will send a Set Drive Bits FIS with
bits set in the SActive field corresponding to the bit position for each command TAG that has
completed since the last status notification was transmitted.
Host Tx ----------------------------------------------------------------------
Drive Tx -----[DMASU]-[DATA]-[DATA]…[DATA]--[SDB]--------
(No Error : ERR=0, I=1, Error Reg=00h)
a) When the drive is prepaeed to accept data from the host, the drive will send the DMA Setup FIS with
the Tag number as the response to WRITE FPDMA QUEUED command, the offset of the data and
the number of the data to be transfered, D=0, I=0 and A=0 and the DMA Activate FIS (when the DMA
Auto-activate optimization is disabled)
b) The host send data with Data FIS. The data offset and the number of the data that the host should be
transferred is described in the previous DMA Setup FIS.
c) Upon successful completion an outstanding command, the drive will send a Set Drive Bits FIS with
bits set in the SActive field corresponding to the bit position for each command TAG that has
completed since the last status notification was transmitted.
Host Tx -----------------------------------[DATA]-[DATA]….[DATA]-----------------
Drive Tx -----[DMASU]-([DMACT])-------------------------------------[SDB]--------
(No Error : ERR=0, I=1, Error Reg=00h)