Cypress SL811HS manual Register Name Miscellaneous register addresses, Endpoint Registers

Page 12

SL811HS

SL811HS Slave Mode Registers

Table 19. SL811HS Slave/Peripheral Mode Register Summary

Register Name

 

 

Endpoint specific register addresses

 

 

EP 0 – A

EP 0 - B

EP 1 – A

EP 1 - B

EP 2 - A

EP 2 - B

EP 3 - A

EP 3 - B

 

EP Control Register

00h

08h

10h

 

18h

20h

28h

30h

0x38

EP Base Address Register

01h

09h

11h

 

19h

21h

29h

31h

0x39

EP Base Length Register

02h

0Ah

12h

 

1Ah

22h

2Ah

0x32

0x3A

EP Packet Status Register

03h

0Bh

13h

 

1Bh

23h

2Bh

0x33

0x3B

EP Transfer Count Register

04h

0Ch

14h

 

1Ch

24h

2Ch

0x34

0x3C

Register Name

 

Miscellaneous register addresses

 

 

 

Control Register 1

05h

Interrupt Status Register

 

0Dh

 

 

 

Interrupt Enable Register

06h

Current Data Set Register

 

0Eh

 

 

 

USB Address Register

07h

Control Register 2

 

0Fh

 

 

 

SOF Low Register (read only)

15h

Reserved

 

 

 

1Dh1Fh

 

 

 

SOF High Register (read only)

16h

Reserved

 

 

 

25h-27h

 

 

 

Reserved

17h

Reserved

 

 

 

2Dh-2Fh

 

 

 

DMA Total Count Low Register

35h

 

 

 

 

 

 

 

 

DMA Total Count High Register

36h

 

 

 

 

 

 

 

 

Reserved

37h

 

 

 

 

 

 

 

 

Memory Buffer

40h – FFh

 

 

 

 

 

 

 

 

When in slave mode, the registers in the SL811HS are divided into two major groups. The first group contains Endpoint reg- isters that manage USB control transactions and data flow. The second group contains the USB Registers that provide the control and status information for all other operations.

Endpoint Registers

Communication and data flow on USB is implemented using endpoints. These uniquely identifiable entities are the terminals of communication flow between a USB host and USB devices. Each USB device is composed of a collection of independently operating endpoints. Each endpoint has a unique identifier, which is the Endpoint Number. For more information, see USB Specification 1.1 section 5.3.1.

The SL811HS supports four endpoints numbered 0–3. Endpoint 0 is the default pipe and is used to initialize and generically manipulate the device to configure the logical device as the Default Control Pipe. It also provides access to the device's configuration information, allows USB status and control access, and supports control transfers.

Endpoints 1–3 support Bulk, Isochronous, and Interrupt transfers. Endpoint 3 is supported by DMA. Each endpoint has two sets of registers—the 'A' set and the 'B' set. This allows overlapped operation where one set of parameters is set up and the other is transferring. Upon completion of a transfer to an endpoint, the ‘next data set’ bit indicates whether set 'A' or set 'B' is used next. The ‘armed’ bit of the next data set indicates whether the SL811HS is ready for the next transfer without interruption.

Endpoints 0–3 Register Addresses

Each endpoint set has a group of five registers that are mapped within the SL811HS memory. The register sets have address assignments as shown in the following table.

Table 20. Endpoints 0–3 Register Addresses

Endpoint Register Set

Address (in Hex)

Endpoint 0 – a

00 - 04

 

 

Endpoint 0 – b

08 - 0C

 

 

Endpoint 1 – a

10 - 14

 

 

Endpoint 1 – b

18 - 1C

 

 

Endpoint 2 – a

20 - 24

 

 

Endpoint 2 – b

28 - 2C

 

 

Endpoint 3 – a

30 - 34

 

 

Endpoint 3 – b

38 - 3C

 

 

For each endpoint set (starting at address Index = 0), the registers are mapped as shown in the following table.

Table 21. Register Address Map

Endpoint Register Sets

(for Endpoint n starting at register position Index=0)

Index

Endpoint n Control

 

 

Index + 1

Endpoint n Base Address

 

 

Index + 2

Endpoint n Base Length

 

 

Index + 3

Endpoint n Packet Status

 

 

Index + 4

Endpoint n Transfer Count

 

 

Document 38-08008 Rev. *D

Page 12 of 32

Image 12
Contents Features IntroductionMaster/Slave Controller Cypress Semiconductor CorporationDMA Controller slave mode only Auto Address Increment ModeData Port, Microprocessor Interface Interrupt ControllerSL811HS Registers MHz CrystalsFrequency Tolerance USB TransceiverRegister Values on Power Up and Reset USB Control RegistersSL811HS Host Control Registers ISO Bit Position Bit Name FunctionHBADD5 HBADD4 HBADD3 HBADD2 HBADD1 HBADD0 HBL7 HBL6 HBL4 HBL3 HBL2 HBL1 HBL0PID Type D7-D4HTC7 HTC2DA6 DA5 DA4 DA3 DA2 DA1 DA0 DA7Low-power Modes Bit 6 Control Register, Address 05h USB Reset SequenceControl Register 1 Address 05h Bit Control Register 1 Address 05h Bits 3Interrupt Enable Register Address 06h USB-B USB-ADone USB-B DoneInterrupt Status Register Address 0Dh Bit Value of the Data+ pinUSB-B Revision Reserved Bit Position Bit Name FunctionSOF7 SOF6 SOF5 SOF4 SOF3 SOF2 SOF1 SOF0 Register Name Miscellaneous register addresses Endpoint RegistersEndpoints 0-3 Register Addresses Endpoints 0-3 Register AddressesEndpoint Control Registers SequenceNext Data Set EPxLEN1 EPxLEN0Reserved Overflow Transmission AcknowledgeCurrent Data Set Register Control Register 0Fh SOF Low Byte RegisterControl Register 1 Address 05h Stbyd SpselStbyd USB Address Register, Address 07h. This register USB Address Register Address 07hUSBADD5 USBADD4 USBADD3 USBADD2 USBADD1 USBADD0 Interrupt Status Register Address 0DhCurrent Data Set Register Address 0Eh Control Register 2 Address 0Fh BitReserved Master/Slave SL811HSPin Plcc Mechanical Dimensions Physical ConnectionsPin Plcc Physical Connections Pin Plcc Pin LayoutDiagram below illustrates a simple +3.3V voltage source Package Markings 28-pin PlccPin Tqfp Physical Connections Pin Tqfp AXC Pin Layout48/28-Pin USB Host Controller Pins Description Power for USB Transceivers . V DD1 may be connected to V DDMaster/Slave Mode Select. ’1’ selects Slave. ’0’ = Master Data 6. Microprocessor Data/Address BusData 7. Microprocessor Data/Address Bus Buffer or registerYyww Xxxx Package Markings 48-Pin TqfpElectrical Specifications DC Characteristics Parameter Description Min Typ Max Bus Interface Timing Requirements Write CycleParameter Description Min Typ Max NWR HighRead Cycle DMA Write Cycle DMA Write CycleReset Timing DMA Read CycleNRst Pulse width NRst High to nRD or nWR activePackage Diagrams Ordering InformationCLOCKClock TimingTIMING Parameter Description Min Typ Max Part Number Package TypeLead Thin Plastic Quad Flat Pack 7x7x1.4 mm A48 Issue Date Orig. Description of Change Document HistoryREV ECN no