Cypress CY7C67300 OTG Control Registers, Device n SOF/EOP Count Register, Vbus Pull-up Enable Bit

Models: CY7C67300

1 99
Download 99 pages 31.04 Kb
Page 48
Image 48

CY7C67300

Device n SOF/EOP Count Register [W]

Device 1 SOF/EOP Count Register 0xC094

Device 2 SOF/EOP Count Register 0xC0B4

Table 73. Device n SOF/EOP Count Register

Bit #

15

 

14

13

12

11

 

10

9

8

Field

Reserved

 

 

 

 

Count...

 

 

Read/Write

-

 

-

R

R

R

 

R

R

R

Default

0

 

0

1

0

1

 

1

1

0

 

 

 

 

 

 

 

 

 

 

 

Bit #

7

6

5

4

 

3

2

1

0

Field

 

 

 

 

...Count

 

 

 

Read/Write

R

R

R

R

 

R

R

R

R

Default

1

1

1

0

 

0

0

0

0

 

 

 

 

 

 

 

 

 

 

Register Description

The Device n SOF/EOP Count register is written with the time expected between receiving a SOF/EOP. If the SOF/EOP counter expires before an SOF/EOP is received, an SOF/EOP Timeout Interrupt can be generated. The SOF/EOP Timeout Interrupt Enable and SOF/EOP Timeout Interrupt Flag are located in the Device n Interrupt Enable and Status registers respectively.

Set the SOF/EOP count slightly greater than the expected SOF/EOP interval. The SOF/EOP counter decrements at a 12 MHz rate. Therefore, in the case of an expected 1 ms SOF/EOP interval, the SOF/EOP count is set slightly greater than 0x2EE0.

Count (Bits [13:0])

The Count field contains the current value of the SOF/EOP down counter. At power up and reset, this value is set to 0x2EE0 and for expected 1 ms SOF/EOP intervals, this SOF/EOP count is increased slightly.

OTG Control Register [0xC098] [R/W]

Table 75. OTG Control Register

Reserved

Write all reserved bits with ’0’.

OTG Control Registers

There is one register dedicated for On-The-Go operation. This register is covered in this section and summarized in Table 74.

Table 74. OTG Register

Register Name

Address

R/W

OTG Control Register

C098H

R/W

 

 

 

Bit #

15

 

14

13

12

11

10

9

8

Field

Reserved

 

VBUS

Receive

Charge Pump

VBUS

D+

D–

 

 

 

Pull-up Enable

Disable

Enable

Discharge Enable

Pull-up Enable

Pull-up Enable

Read/Write

-

 

-

R/W

R/W

R/W

R/W

R/W

R/W

Default

0

 

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

Bit #

7

6

5

4

3

2

1

0

Field

D+

D–

 

Reserved

 

OTG Data

ID

VBUS Valid

Pull-down Enable

Pull-down Enable

 

 

 

Status

Status

Flag

Read/Write

R/W

R/W

-

-

-

R

R

R

Default

0

0

0

0

0

X

X

X

 

 

 

 

 

 

 

 

 

Register Description

The OTG Control register allows control and monitoring over the OTG port on Port1A. Note that the D± pull up and pull down bits override the setting in the USB 0 Control register for this port.

VBUS Pull-up Enable (Bit 13)

The VBUS Pull-up Enable bit enables or disables a 500 ohm pull up resistor onto OTG VBus.

1:500 ohm pull up resistor enabled

0:500 ohm pull up resistor disabled

Document #: 38-08015 Rev. *J

Page 48 of 99

[+] Feedback

Page 48
Image 48
Cypress CY7C67300 manual OTG Control Registers, Device n SOF/EOP Count Register, OTG Control Register Reserved