29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USB on-the-go full-speed (OTG_FS)<br />

RM0008<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, <strong>and</strong> 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, <strong>and</strong> 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<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 <strong>and</strong> 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 reset<br />

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

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

USB st<strong>and</strong>ard.<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 bit,<br />

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 by<br />

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

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

748/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!