Maxtor 5120 manual Host Software Interface, Task File Registers, Data Register, Error Register

Page 43

HOST SOFTWARE INTERFACE

SECTION 6

Host Software Interface

The host communicates with the drive through a set of controller registers accessed via the host’s I/O ports. These registers divide into two groups: the Task File, used for passing commands and command parameters and the Control/Diagnostic registers.

Task File Registers

The Task File consists of eight registers used to control fixed disk operations. The host accesses each register by the I/O port address shown in this Task File register map:

I/O PORT

READ

WRITE

1F0h

Data Register

Data Register

1F1h

Error Register

Features Register

1F2h

Sector Count

Sector Count

1F3h

Sector Number

Sector Number

1F4h

Cylinder Low

Cylinder Low

1F5h

Cylinder High

Cylinder High

1F6h

Drive/Head (SDH)

Drive/Head (SDH)

1F7h

Status Register

Command Register

Data Register

Provides access to the drive’s sector buffer for read and write operations. With the exception of ECC byte transfers (which, during Read long and Write long commands, are 8 bits wide), data transfers through the Data register are all 16 bits wide.

Error Register

A read-only register containing specific information regarding the previous command. Data interpretation differs depending on whether the controller is in operational or diagnostic mode. A power up, reset, software reset, or receipt of a diagnostic command sets the controller into diagnostic mode. This mode invalidates contents of the Status register. The contents of the Error register reflect a completion code.

Issuing any command (apart from a Diagnostic command) places the controller into operational mode.

In operational mode, the Error register is valid only when the Error bit in the Status register is set. The bit definitions for operational mode follow:

7

6

5

4

3

2

1

0

0

ECC

0

IDNF

0

ABRT

TK0

AMNF

 

 

 

 

 

 

 

 

Interface

Data

Not

ID

Not

Aborted

Track 0

Address

CRC

ECC Error

Used

Not Found

Used

Command

Error

Mark Not

 

 

 

 

 

 

 

Found

 

 

 

 

 

 

 

 

Interface CRC – An interface CRC error occurred during an Ultra DMA transfer.

Data ECC Error – An non-correctable ECC error occurred during a Read Sector command.

Firmware Problem – Indicates a firmware problem was detected, (e.g., invalid interrupt, divide overflow). ID Not Found – Either a matching ID field not found, or a CRC error occurred.

Aborted Command – Invalid commands, write fault, no seek complete, or drive not ready.

Track 0 Error – Track 0 was not found during execution of a Restore command.

Address Mark Not Found – The Address Mark could not be found after an ID match.

Features Register

Enables or disables features through the Set Features command.

6 – 1

Image 43
Contents HA RD Drive Produc T MA Nual 92048U8, 91792U7, 91536U6, 91280U5, 91024U4 and 90750U3 DiamondMax PlusRevisions Manual No U T I O N Before You BeginContents Handling and Installation Product SpecificationsHost Software Interface AT Interface DescriptionService and Support Interface CommandsGlossary Figures Abbreviations IntroductionMaxtor Corporation Manual OrganizationNumbering Signal ConventionsConventions Key WordsProduct Description DiamondMax Plus 5120 Key FeaturesFunctional / Interface Product FeaturesSoftware ECC Correction On-the-Fly Hardware Error Correction Code ECCLogical Block Addressing Defect Management Zone DMZAutomatic Write Reallocation AWR Read-Ahead ModeCache Management Buffer SegmentationMajor HDA Components Dual Drive Support Subsystem ConfigurationJumper Location/Configuration Cylinder LimitationModels and Capacities Product SpecificationsDrive Configuration Performance SpecificationsParameter Standard Metric Physical DimensionsEnvironmental Limits Power Requirements AveragePower Mode Definitions EPA Energy Star ComplianceShock and Vibration Reliability SpecificationsRadiated Electromagnetic Field Emissions EMC Compliance Safety Regulatory ComplianceCanadian Emissions Statement Important Notice Handling and InstallationHard Drive Handling Precautions Pre-formatted DriveMulti-pack Shipping Container Unpacking and InspectionRecommended Mounting Configuration Physical InstallationRepacking Drive Identification Information Handling PrecautionsTools for Installation System RequirementsHard Drive Identification General RequirementsMounting Drive in System Systems Using Cable SelectInstalling 5.25-inch Mounting Brackets and Rails Installing in a Device BayAttaching System Cables Attaching Interface and Power CablesSetting the Bios Cmos System SetupBios Cmos Parameters Hard Drive Preparation System Hangs During Boot AT Interface Description Interface ConnectorPin Description Summary Pin Description Table PIN Name Signal Name Signal DescriptionPIO Timing Timing Parameters ModeDMA Timing Ultra DMA Timing Mode MIN MAXSustained Ultra DMA Data In Burst Device Terminating an Ultra DMA Data In Burst Initiating an Ultra DMA Data Out Burst Device Pausing an Ultra DMA Data Out Burst Device Terminating an Ultra DMA Data Out Burst Task File Registers Error RegisterFeatures Register Host Software InterfaceDevice/Head Register Sector Count RegisterSector Number Register Cylinder Number RegistersCommand Register Summary Command Name Command Code Parameters Used SDHDigital Input Register Control Diagnostic RegistersAlternate Status Register Device Control RegisterReset Handling Reset and Interrupt HandlingInterrupt Handling Set Feature Commands Interface CommandsRead Sectors Read CommandsRead Verify Sectors Read Multiple Read DMAWrite Verify Sectors Write CommandsSet Multiple Mode Write SectorsWrite DMA Write MultipleSet Features Mode Set Feature CommandsPower Mode Commands Sleep Mode Identify Drive Initialization Commands15-8 = PIO data transfer mode = Write Cache enabled Initialize Drive Parameters Execute Drive Diagnostic Seek, Format and Diagnostic CommandsFormat Track Execute S.M.A.R.T A.R.T. Command SetSupport Service and SupportService Policy No Quibble ServiceCustomer Service MaxFax ServiceInternet Glossary Access TimeCylinder Zero Gigabyte GB Logical Block Addressing Read Gate Signal THIN-FILM Media