beautypg.com

S low speed (also see, Sl811hs – Cypress SL811HS User Manual

Page 17

background image

SL811HS

Document 38-08008 Rev. *D

Page 17 of 32

Current Data Set Register, Address [0Eh]. This register indicates current selected data set for each endpoint.

Control Register 2, Address [0Fh]. Control Register 2 is used to control if the device is configured as a master or a slave. It
can change the polarity of the Data+ and Data- pins to accommodate both full- and low speed operation.

SOF Low Register, Address [15h]. Read only register
contains the 7 low order bits of Frame Number in positions: bit
7:1. Bit 0 is undefined. Register is updated when a SOF packet
is received. Do not write to this register.

SOF High Register, Address [16h]. Read only register
contains the 4 low order bits of Frame Number in positions: bit
7:4. Bits 3:0 are undefined and should be masked when read
by the user. This register is updated when a SOF packet is
received. The user should not write to this register.

DMA Total Count Low Register, Address [35h]. The DMA
Total Count Low register contains the low order 8 bits of DMA
count. DMA total count is the total number of bytes to be trans-

ferred between a peripheral to the SL811HS. The count may
sometimes require up to 16 bits, therefore the count is repre-
sented in two registers: Total Count Low and Total Count High.
EP3 is only supported with DMA operation.

DMA Total Count High Register, Address [36h]. The DMA
Total Count High register contains the high order 8 bits of DMA
count. When written, this register enables DMA if the DMA
Enable bit is set in Control Register 1. The user should always
write Low Count register first, followed by a write to High Count
register, even if high count is 00h.

Table 33. Current Data Set Register [Address 0Eh]

7

6

5

4

3

2

1

0

Reserved

Endpoint 3

Endpoint 2

Endpoint 1

Endpoint 0

Bit Position

Bit Name

Function

7-4

Reserved

Not applicable.

3

Endpoint 3 Done

Endpoint 3a = 0, Endpoint 3b = 1.

2

Endpoint 2 Done

Endpoint 2a = 0, Endpoint 2b = 1.

1

Endpoint 1 Done

Endpoint 1a = 0, Endpoint 1b = 1.

0

Endpoint 0 Done

Endpoint 0a = 0, Endpoint 0b = 1.

Table 34. Control Register 2 [Address 0Fh]

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

SL811HS

Master/Slave

selection

SL811HS

D+/D– Data

Polarity Swap

Reserved

Bit Position

Bit Name

Function

7

SL811HS
Master/Slave
selection

Master = ‘1’
Slave = ‘0’

6

SL811HS D+/D–
Data Polarity Swap

’1’ = change polarity (low speed)
’0’ = no change of polarity (full speed)

5-0

Reserved

NA