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 full-speed (OTG_FS) <strong>RM0090</strong><br />

Bits 16:13 PTCTL: Port test control<br />

The application writes a nonzero value to this field to put the port into a Test mode, and the<br />

corresponding pattern is signaled on the port.<br />

0000: Test mode disabled<br />

0001: Test_J mode<br />

0010: Test_K mode<br />

0011: Test_SE0_NAK mode<br />

0100: Test_Packet mode<br />

0101: Test_Force_Enable<br />

Others: Reserved<br />

Bit 12 PPWR: Port power<br />

The application uses this field to control power to this port, and the core clears this bit on an<br />

overcurrent condition.<br />

0: Power off<br />

1: Power on<br />

Bits 11:10 PLSTS: Port line status<br />

Indicates the current logic level USB data lines<br />

Bit 10: Logic level of OTG_FS_FS_DP<br />

Bit 11: Logic level of OTG_FS_FS_DM<br />

Bit 9 Reserved, must be kept at reset value.<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 />

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_FS_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_FS_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 />

1073/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!