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

31.8 USB_HS power modes<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 />

This bit switches on/off the PHY full-speed transceiver module. It must be preliminarily<br />

set to allow any USB operation.<br />

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

This bit switches on/off the VBUS comparators associated with A-device operations. It<br />

must be set when in A-device (USB host) mode and during HNP.<br />

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

This bit switches on/off the VBUS comparators associated with B-device operations. It<br />

must be set when in B-device (USB peripheral) mode and during HNP.<br />

Power reduction techniques are available 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_HS_PCGCCTL)<br />

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

clock domain internal to the OTG high-speed core is switched off by clock gating.<br />

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

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

– Most of the transceiver is also disabled, and 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_HS_PCGCCTL)<br />

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

clock domain internal to the OTG_HS core is switched off by clock gating. Only the<br />

register read and write interface is kept alive. The dynamic power consumption due to<br />

the USB clock switching activity is cut even if the system clock is kept running by the<br />

application for other purposes.<br />

● USB system stop<br />

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

drastically reduce the overall power consumption by shutting down all the clock<br />

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

clock bit and then configuring the system deep sleep mode in the powercontrol<br />

system module (PWR).<br />

– The OTG_HS core automatically reactivates both system and USB clocks by<br />

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

signaling on the USB.<br />

31.9 Dynamic update of the OTG_HS_HFIR register<br />

The USB core embeds a dynamic trimming capability of micro-SOF framing period in host<br />

mode allowing to synchronize an external device with the micro-SOF frames.<br />

When the OTG_HS_HFIR register is changed within a current micro-SOF frame, the SOF<br />

period correction is applied in the next frame as described in Figure 381.<br />

Doc ID 018909 Rev 3 1170/1416

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

Saved successfully!

Ooh no, something went wrong!