Cypress CY7C68300C/CY7C68301C, CY7C68320C/CY7C68321C, ATACB Field Descriptions, Byte

Page 16
Table 6. ATACB Field Descriptions

 

 

 

 

 

CY7C68300C/CY7C68301C

 

 

 

 

 

CY7C68320C/CY7C68321C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 6. ATACB Field Descriptions

 

 

 

 

 

 

 

 

 

Byte

Field Name

 

Field Description

 

 

 

 

 

0

bVSCBSignature

This field indicates to the CY7C68300C/CY7C68301C that the ATACB

 

 

 

 

contains a vendor-specific command block. This value of this field must match

 

 

 

 

the value in EEPROM address 0x04 for the command to be recognized as a

 

 

 

 

vendor-specific ATACB command.

 

1

bVSCBSubCommand

This field must be set to 0x24 for ATACB commands.

 

 

 

 

 

2

bmATACBActionSelect

This field controls the execution of the ATACB according to the bitfield values:

 

 

 

 

Bit 7 IdentifyPacketDevice – This bit indicates that the data phase of the

 

 

 

 

command contains ATAPI (0xA1) or ATA (0xEC) IDENTIFY device data.

 

 

 

 

Setting IdentifyPacketDevice when the data phase does not contain IDENTIFY

 

 

 

 

device data results in unspecified device behavior.

 

 

 

 

0

= Data phase does not contain IDENTIFY device data

 

 

 

 

1

= Data phase contains ATAPI or ATA IDENTIFY device data

 

 

 

 

Bit 6 UDMACommand – This bit enables supported UDMA device transfers.

 

 

 

 

Setting this bit when a non-UDMA capable device is attached results in

 

 

 

 

undetermined behavior.

 

 

 

 

0

= Do not use UDMA device transfers (only use PIO mode)

 

 

 

 

1

= Use UDMA device transfers

 

 

 

 

Bit 5 DEVOverride – This bit determines whether the DEV bit value is taken

 

 

 

 

from the value assigned to the LUN during startup or from the ATACB.

 

 

 

 

0

= The DEV bit is taken from the value assigned to the LUN during startup

 

 

 

 

1

= The DEV bit is taken from the ATACB field 0x0B, bit 4

 

 

 

 

Bit 4 DErrorOverride – This bit controls the device error override feature. This

 

 

 

 

bit must not be set during a bmATACBActionSelect TaskFileRead.

 

 

 

 

0

= Data accesses are halted if a device error is detected

 

 

 

 

1

= Data accesses are not halted if a device error is detected

 

 

 

 

Bit 3 PErrorOverride – This bit controls the phase error override feature. This

 

 

 

 

bit must not be set during a bmATACBActionSelect TaskFileRead.

 

 

 

 

0

= Data accesses are halted if a phase error is detected

 

 

 

 

1

= Data accesses are not halted if a phase error is detected

 

 

 

 

Bit 2 PollAltStatOverride – This bit determines whether or not the Alternate

 

 

 

 

Status register is polled and the BSY bit is used to qualify the ATACB operation.

 

 

 

 

0 = The AltStat register is polled until BSY=0 before proceeding with the ATACB

 

 

 

 

operation

 

 

 

 

1

= The ATACB operation is executed without polling the AltStat register.

 

 

 

 

Bit 1 DeviceSelectionOverride – This bit determines when the device selection

 

 

 

 

is performed in relation to the command register write accesses.

 

 

 

 

0

= Device selection is performed before command register write accesses

 

 

 

 

1

= Device selection is performed following command register write accesses

 

 

 

 

Bit 0 TaskFileRead – This bit determines whether or not the taskfile register

 

 

 

 

data selected in bmATACBRegisterSelect is returned. If this bit is set, the

 

 

 

 

dCBWDataTransferLength field must be set to 8.

 

 

 

 

0

= Execute ATACB command and data transfer (if any)

 

 

 

 

1 = Only read taskfile registers selected in bmATACBRegisterSelect and return

 

 

 

 

0x00h for all others. The format of the 8 bytes of returned data is as follows:

 

 

 

 

 

• Address offset 0x00 (0x3F6) – Alternate Status

 

 

 

 

 

• Address offset 0x01 (0x1F1) – Features/Error

 

 

 

 

 

• Address offset 0x02 (0x1F2) – Sector Count

 

 

 

 

 

• Address offset 0x03 (0x1F3) – Sector Number

 

 

 

 

 

• Address offset 0x04 (0x1F4) – Cylinder Low

 

 

 

 

 

• Address offset 0x05 (0x1F5) – Cylinder High

 

 

 

 

 

• Address offset 0x06 (0x1F6) – Device/Head

 

 

 

 

 

• Address offset 0x07 (0x1F7) – Command/Status

 

 

 

 

 

 

 

Document 001-05809 Rev. *A

Page 16 of 42

[+] Feedback

Image 16
Contents Features Block DiagramCY7C68300C/CY7C68301C CY7C68320C/CY7C68321C EZ-USB AT2LP USB 2.0 to ATA/ATAPI BridgeApplications CY7C68300A CompatibilityIntroduction CY4615C EZ-USB AT2LP Reference Design Kit USB Specification versionEZ-USB AT2LP CY7C68300CCY7C68301C 56-pin SSOPEZ-USB AT2LP CY7C68300C CY7C68301C 56-pin QFN ENABLERESET# DD13EZ-USB AT2LP CY7C68320CCY7C68321C 56-pin SSOPEZ-USB AT2LP CY7C68320C CY7C68321C 56-pin QFN ARESET#GPIO2 DD15CY7C68320A 100-pin TQFPCY7C68321A USB D+ signal See “DPLUS, DMINUS” on page USB D-signal See “DPLUS, DMINUS” on pagepage PU 10KCY7C68300C/CY7C68301C CY7C68320C/CY7C68321CChip reset See “RESET#” on page VBUS detection See “VBUSATAENABLE” on“ATAPUEN” on page DPLUS, DMINUSSCL, SDA XTALIN, XTALOUTSYSIRQ USB High-SpeedGPIO Pins ATA Interface PinsDRVPWRVLD LOWPWR#VBUSATAENABLE RESET#ATAPUEN PWR500#Functional Overview HID Functions for Button ControlsATA Command Block ATACB Table 6. ATACB Field Descriptions ByteField Name Field Description5-12 Operational Mode Selection Flow Operating ModesFigure 10. Operational Mode Selection Flow Bulk-Only Transport Specification . There is a vendor-specific Table 7. Command Block WrapperFused Memory Data Normal Mass Storage ModeMfgCB EEPROM Organization Figure 11. Snapshot of ‘AT2LP Blaster’ UtilityEnable a delay of up to 120 ms at each read of the DRQ bit where the device data length does not match the host data“Functional Overview” on page 15 for more detail on how length. This allows the CY7C68300C/CY7C68301C to workDetermines if the AT2LP is to do an SRST reset during drive returned on bits 2, 1, and 0 of EP1IN. This bit must be set to CY7C68300C/CY7C68301C CY7C68320C/CY7C68321C Configuration does not exist. The USB Mass Storage Class Bulk-OnlyUSB Bulk Out Endpoint Interface DescriptorUSB Bulk In Endpoint Terminator Number of the channel, must be a zero based value that is Page 29 ofDescriptor-Index 0 LANGID CY7C68300C/CY7C68301C CY7C68320C/CY7C68321C Descriptor-Serial Number unique serialLOADCONFIGDATA Table 12.EEPROM-related Vendor-specific Commands READCONFIGDATALabel bmRequestTypeAbsolute Maximum Ratings DC CharacteristicsOperating Conditions AC Electrical Characteristics Ordering InformationATA Timing Characteristics USB Transceiver CharacteristicsPackage Diagrams Figure 12. 100-Pin Thin Plastic Quad Flatpack 14 x 20 x 1.4 mm A101Package Diagrams continued Figure 13. 56-lead Shrunk Small Outline PackageFigure 14. 56-Lead QFN 8 x 8 mm LF56A General PCB Layout Recommendations For USB Mass Storage DesignsPage 39 of Other Design Considerations Quad Flat Package No Leads QFN Package Design NotesPCB Material IDE Removable Media Devices Disclaimers, Trademarks, and CopyrightsDevices With Small Buffers Document History Paged Issue DateDocument Number ECN NO