Cypress SL811HS manual Endpoint Control Registers, Sequence, Next Data Set, EPxLEN1 EPxLEN0

Page 13

SL811HS

Endpoint Control Registers

Endpoint n Control Register [Address a = (EP# * 10h), b = (EP# * 10h)+8]. Each endpoint set has a Control register defined as follows:

Table 22. Endpoint Control Register [Address EP0a/b:00h/08h, EP1a/b:10h/18h, EP2a/b:20h/28h, EP3a/b:30h/38h]

7

6

5

4

3

2

1

 

0

Reserved

Sequence

Send STALL

ISO

Next Data Set

Direction

Enable

 

Arm

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit Position

Bit Name

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

Reserved

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

Sequence

 

Sequence bit. '0' if DATA0, '1' if DATA1.

 

 

 

 

 

 

 

 

 

5

Send STALL

 

When set to ‘1’, sends Stall in response to next request on this endpoint.

 

 

 

 

 

 

 

 

4

ISO

 

When set to '1', allows Isochronous mode for this endpoint.

 

 

 

 

 

 

 

 

 

 

3

Next Data Set

 

'0' if next data set is ‘A’, '1' if next data set is 'B'.

 

 

 

 

 

 

 

2

Direction

 

When Direction = '1', transmit to Host (IN). When Direction = '0', receive from Host (OUT).

 

 

 

 

1

Enable

 

When Enable = '1', allows transfers for this endpoint. When set to ‘0’, USB transactions are

 

 

 

ignored. If Enable = '1' and Arm = '0', the endpoint returns NAKs to USB transmissions.

0

Arm

 

Allows enabled transfers when set =’1’. Clears to '0' when transfer is complete.

 

 

 

 

 

 

 

 

 

 

 

Endpoint Base Address [Address a = (EP# * 10h)+1, b = (EP# * 10h)+9]]. Pointer to memory buffer location for USB reads and writes.

Table 23. Endpoint Base Address Reg [Address; EP0a/b:01h/09h, EP1a/b:11h/19h, EP2a/b:21h/29h, EP3a/b:31h/39h]

7

6

5

4

3

2

1

0

EPxADD7

EPxADD6

EPxADD5

EPxADD4

EPxADD3

EPxADD2

EPxADD1

EPxADD0

 

 

 

 

 

 

 

 

Endpoint Base Length [Address a = (EP# * 10h)+2, b = (EP# * 10h)+A]. The Endpoint Base Length is the maximum packet size for IN/OUT transfers with the host. Essentially, this designates the largest packet size that is received by the SL811HS with an OUT transfer, or it designates the size of the data packet sent to the host for IN transfers.

Table 24. Endpoint Base Length Reg [Address EP0a/b:02h/0Ah, EP1a/b:12h/1Ah, EP2a/b:22h/2Ah, EP3a/b:32h/3Ah]

7

6

5

4

3

2

1

0

EPxLEN7

EPxLEN6

EPxLEN5

EPxLEN4

EPxLEN3

EPxLEN2

EPxLEN1

EPxLEN0

 

 

 

 

 

 

 

 

Document 38-08008 Rev. *D

Page 13 of 32

Image 13
Contents Introduction FeaturesMaster/Slave Controller Cypress Semiconductor CorporationAuto Address Increment Mode DMA Controller slave mode onlyData Port, Microprocessor Interface Interrupt ControllerMHz Crystals SL811HS RegistersFrequency Tolerance USB TransceiverUSB Control Registers Register Values on Power Up and ResetSL811HS Host Control Registers Bit Position Bit Name Function ISOHBADD5 HBADD4 HBADD3 HBADD2 HBADD1 HBADD0 HBL4 HBL3 HBL2 HBL1 HBL0 HBL7 HBL6PID Type D7-D4HTC2 HTC7DA6 DA5 DA4 DA3 DA2 DA1 DA0 DA7USB Reset Sequence Low-power Modes Bit 6 Control Register, Address 05hControl Register 1 Address 05h Bit Control Register 1 Address 05h Bits 3USB-B USB-A Interrupt Enable Register Address 06hDone USB-B DoneValue of the Data+ pin Interrupt Status Register Address 0Dh BitUSB-B Revision Reserved Bit Position Bit Name FunctionSOF7 SOF6 SOF5 SOF4 SOF3 SOF2 SOF1 SOF0 Endpoint Registers Register Name Miscellaneous register addressesEndpoints 0-3 Register Addresses Endpoints 0-3 Register AddressesSequence Endpoint Control RegistersNext Data Set EPxLEN1 EPxLEN0Transmission Acknowledge Reserved OverflowCurrent Data Set Register Control Register 0Fh SOF Low Byte RegisterStbyd Spsel Control Register 1 Address 05hStbyd USB Address Register Address 07h USB Address Register, Address 07h. This registerUSBADD5 USBADD4 USBADD3 USBADD2 USBADD1 USBADD0 Interrupt Status Register Address 0DhControl Register 2 Address 0Fh Bit Current Data Set Register Address 0EhReserved Master/Slave SL811HSPhysical Connections Pin Plcc Mechanical DimensionsPin Plcc Physical Connections Pin Plcc Pin LayoutPackage Markings 28-pin Plcc Diagram below illustrates a simple +3.3V voltage sourcePin Tqfp AXC Pin Layout Pin Tqfp Physical ConnectionsPower for USB Transceivers . V DD1 may be connected to V DD 48/28-Pin USB Host Controller Pins DescriptionData 6. Microprocessor Data/Address Bus Master/Slave Mode Select. ’1’ selects Slave. ’0’ = MasterData 7. Microprocessor Data/Address Bus Buffer or registerPackage Markings 48-Pin Tqfp Yyww XxxxElectrical Specifications DC Characteristics Parameter Description Min Typ Max Write Cycle Bus Interface Timing RequirementsParameter Description Min Typ Max NWR HighRead Cycle DMA Write Cycle DMA Write CycleDMA Read Cycle Reset TimingNRst Pulse width NRst High to nRD or nWR activeOrdering Information Package DiagramsCLOCKClock TimingTIMING Parameter Description Min Typ Max Part Number Package TypeLead Thin Plastic Quad Flat Pack 7x7x1.4 mm A48 Document History Issue Date Orig. Description of ChangeREV ECN no