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.

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

RM0008<br />

26.8 Power options<br />

The power consumption of the OTG PHY is controlled by three bits in the general core<br />

configuration register:<br />

● PHY power down (GCCFG/PWRDWN)<br />

– switch on/off the full-speed transceiver module of the PHY. Must be preliminarily<br />

set to allow any USB operation.<br />

● A-V BUS sensing enable (GCCFG/VBUSASEN)<br />

– switch on/off the V BUS comparators associated with A-Device operations. Must be<br />

set when in A-Device (USB Host) mode <strong>and</strong> during HNP.<br />

● B-V BUS sensing enable (GCCFG/VBUSASEN)<br />

– switch on/off the V BUS comparators associated with B-Device operations. Must be<br />

set when in B-Device (USB peripheral) mode <strong>and</strong> during HNP.<br />

Power reduction techniques are available while in the USB suspended state, when the USB<br />

session is not yet valid or the device is disconnected.<br />

● Stop PHY clock (STPPCLK bit in OTG_FS_PCGCCTL)<br />

– when setting the stop PHY clock bit in the clock gating control register, most of the<br />

48 MHz clock domain internal to the OTG full-speed core is switched off by clock<br />

gating. The dynamic power consumption due to the USB clock switching activity is<br />

cut even if the 48 MHz clock input is kept running by the application<br />

– most of the transceiver is also disabled, <strong>and</strong> only the part in charge of detecting<br />

the asynchronous resume or remote wakeup event is kept alive.<br />

● Gate HCLK (GATEHCLK bit in OTG_FS_PCGCCTL)<br />

– when setting the Gate HCLK bit in the clock gating control register, most of the<br />

system clock domain internal to the OTG_FS Core is switched off by clock gating.<br />

Only the register read <strong>and</strong> write interface is kept alive. The dynamic power<br />

consumption due to the USB clock switching activity is cut even if the system clock<br />

is kept running by the application for other purposes.<br />

● USB system stop<br />

– When the OTG_FS is in the USB suspended state, the application may decide to<br />

drastically reduce the overall power consumption by a complete shut down of all<br />

the clock sources in the system. USB System Stop is activated by first setting the<br />

Stop PHY clock bit <strong>and</strong> then configuring the system deep sleep mode in the power<br />

control system module (PWR).<br />

– The OTG_FS Core automatically reactivates both system <strong>and</strong> USB clocks by<br />

asynchronous detection of remote wakeup (as an Host) or resume (as a Device)<br />

signaling on the USB.<br />

To save dynamic power, the USB data FIFO is clocked only when accessed by the OTG_FS<br />

Core.<br />

26.9 USB data FIFOs<br />

Figure 265 shows the OTG_FS controller blocks <strong>and</strong> their functions.<br />

710/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!