29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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.

RM0008<br />

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

Bit 6 PRES: Port resume<br />

The application sets this bit to drive resume signaling on the port. The core continues to drive<br />

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

<strong>and</strong> clears this bit when it detects a disconnect condition. The read value of this bit indicates<br />

whether the core is currently driving resume signaling.<br />

0: No resume driven<br />

1: Resume driven<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, <strong>and</strong> is disabled by an overcurrent<br />

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

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

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 13902 Rev 9 749/995

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

Saved successfully!

Ooh no, something went wrong!