09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

OTG_HS USB configuration register (OTG_HS_GUSBCFG)<br />

Address offset: 0x00C<br />

Reset value: 0x0000 0A00<br />

This register can be used to configure the core after power-on or a changing to host mode or<br />

peripheral mode. It contains USB and USB-PHY related configuration parameters. The<br />

application must program this register before starting any transactions on either the AHB or<br />

the USB. Do not make changes to this register after the initial programming.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

CTXPKT<br />

FDMOD<br />

FHMOD<br />

Reserved<br />

ULPIIPD<br />

PTCI<br />

PCCI<br />

TSDPS<br />

ULPIEVBUSI<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

ULPIEVBUSD<br />

ULPICSM<br />

ULPIAR<br />

ULPIFSLS<br />

Reserved<br />

PHYLPCS<br />

Reserved<br />

TRDT<br />

HNPCAP<br />

r/rw<br />

Doc ID 018909 Rev 3 1184/1416<br />

SRPCAP<br />

r/rw<br />

Reserved<br />

PHSEL<br />

Reserved<br />

TOCAL<br />

wo rw<br />

Bit 31 CTXPKT: Corrupt Tx packet<br />

This bit is for debug purposes only. Never set this bit to 1.<br />

Note: Accessible in both peripheral and host modes.<br />

Bit 30 FDMOD: Forced peripheral mode<br />

Writing a 1 to this bit forces the core to peripheral mode irrespective of the OTG_HS_ID input<br />

pin.<br />

0: Normal mode<br />

1: Forced peripheral mode<br />

After setting the force bit, the application must wait at least 25 ms before the change takes<br />

effect.<br />

Note: Accessible in both peripheral and host modes.<br />

Bit 29 FHMOD: Forced host mode<br />

Writing a 1 to this bit forces the core to host mode irrespective of the OTG_HS_ID input pin.<br />

0: Normal mode<br />

1: Forced host mode<br />

After setting the force bit, the application must wait at least 25 ms before the change takes<br />

effect.<br />

Note: Accessible in both peripheral and host modes.<br />

Bits 28:26 Reserved, must be kept at reset value.<br />

Bit 25 ULPIIPD: ULPI interface protect disable<br />

This bit controls the circuitry built in the PHY to protect the ULPI interface when the link tristates<br />

stp and data. Any pull-up or pull-down resistors employed by this feature can be<br />

disabled. Please refer to the ULPI specification for more details.<br />

0: Enables the interface protection circuit<br />

1: Disables the interface protection circuit<br />

Bit 24 PTCI: Indicator pass through<br />

This bit controls whether the complement output is qualified with the internal V BUS valid<br />

comparator before being used in the V BUS state in the RX CMD. Please refer to the ULPI<br />

specification for more details.<br />

0: Complement Output signal is qualified with the Internal V BUS valid comparator<br />

1: Complement Output signal is not qualified with the Internal V BUS valid comparator

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

Saved successfully!

Ooh no, something went wrong!