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

Bit 2 PENA: Port enable<br />

A port is enabled only by the core after a reset sequence, and is disabled by an overcurrent<br />

condition, a disconnect condition, or by the application clearing this bit. The application<br />

cannot set this bit by a register write. It can only clear it to disable the port. This bit does not<br />

trigger any interrupt to the application.<br />

0: Port disabled<br />

1: Port enabled<br />

Bit 1 PCDET: Port connect detected<br />

The core sets this bit when a device connection is detected to trigger an interrupt to the<br />

application using the host port interrupt bit in the Core interrupt register (HPRTINT bit in<br />

OTG_FS_GINTSTS). The application must write a 1 to this bit to clear the interrupt.<br />

Bit 0 PCSTS: Port connect status<br />

0: No device is attached to the port<br />

1: A device is attached to the port<br />

Doc ID 018909 Rev 3 1074/1416

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

Saved successfully!

Ooh no, something went wrong!