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.

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

OTG_HS host port control and status register (OTG_HS_HPRT)<br />

Address offset: 0x440<br />

Reset value: 0x0000 0000<br />

This register is available only in host mode. Currently, the OTG host supports only one port.<br />

A single register holds USB port-related information such as USB reset, enable, suspend,<br />

resume, connect status, and test mode for each port. It is shown in Figure 382. The rc_w1<br />

bits in this register can trigger an interrupt to the application through the host port interrupt<br />

bit of the core interrupt register (HPRTINT bit in OTG_HS_GINTSTS). On a Port Interrupt,<br />

the application must read this register and clear the bit that caused the interrupt. For the<br />

rc_w1 bits, the application must write a 1 to the bit to clear the interrupt.<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 />

Reserved<br />

PSPD PTCTL<br />

Bits 31:19 Reserved, must be kept at reset value.<br />

PPWR<br />

r r rw rw rw rw rw r r rw rs rw rc_<br />

w1<br />

Bits 18:17 PSPD: Port speed<br />

Indicates the speed of the device attached to this port.<br />

00: High speed<br />

01: Full speed<br />

10: Low speed<br />

11: Reserved<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_HS_FS_DP<br />

Bit [11]: Logic level of OTG_HS_FS_DM<br />

Bit 9 Reserved, must be kept at reset value.<br />

PLSTS<br />

Reserved<br />

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

PRST<br />

PSUSP<br />

PRES<br />

POCCHNG<br />

POCA<br />

r<br />

PENCHNG<br />

rc_<br />

w1<br />

PENA<br />

rc_<br />

w0<br />

PCDET<br />

rc_<br />

w1<br />

PCSTS<br />

r

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

Saved successfully!

Ooh no, something went wrong!