09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

USB on-the-go high-speed (OTG_HS) <strong>RM0090</strong><br />

Bit 8 PRST: Port reset<br />

When the application sets this bit, a reset sequence is started on this port. The application<br />

must time the reset period and clear this bit after the reset sequence is complete.<br />

0: Port not in reset<br />

1: Port in reset<br />

The application must leave this bit set for a minimum duration of at least 10 ms to start a<br />

reset on the port. The application can leave it set for another 10 ms in addition to the<br />

required minimum duration, before clearing the bit, even though there is no maximum limit<br />

set by the USB standard.<br />

High speed: 50 ms<br />

Full speed/Low speed: 10 ms<br />

Bit 7 PSUSP: Port suspend<br />

The application sets this bit to put this port in Suspend mode. The core only stops sending<br />

SOFs when this is set. To stop the PHY clock, the application must set the Port clock stop<br />

bit, which asserts the suspend input pin of the PHY.<br />

The read value of this bit reflects the current suspend status of the port. This bit is cleared<br />

by the core after a remote wakeup signal is detected or the application sets the Port reset bit<br />

or Port resume bit in this register or the Resume/remote wakeup detected interrupt bit or<br />

Disconnect detected interrupt bit in the Core interrupt register (WKUINT or DISCINT in<br />

OTG_HS_GINTSTS, respectively).<br />

0: Port not in Suspend mode<br />

1: Port in Suspend mode<br />

Bit 6 PRES: Port resume<br />

The application sets this bit to drive resume signaling on the port. The core continues to<br />

drive the resume signal until the application clears this bit.<br />

If the core detects a USB remote wakeup sequence, as indicated by the Port resume/remote<br />

wakeup detected interrupt bit of the Core interrupt register (WKUINT bit in<br />

OTG_HS_GINTSTS), the core starts driving resume signaling without application<br />

intervention and clears this bit when it detects a disconnect condition. The read value of this<br />

bit indicates whether the core is currently driving resume signaling.<br />

0: No resume driven<br />

1: Resume driven<br />

Bit 5 POCCHNG: Port overcurrent change<br />

The core sets this bit when the status of the Port overcurrent active bit (bit 4) in this register<br />

changes.<br />

Bit 4 POCA: Port overcurrent active<br />

Indicates the overcurrent condition of the port.<br />

0: No overcurrent condition<br />

1: Overcurrent condition<br />

Bit 3 PENCHNG: Port enable/disable change<br />

The core sets this bit when the status of the Port enable bit [2] in this register changes.<br />

1209/1416 Doc ID 018909 Rev 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!