UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 19 December 2013  220 of 841
NXP Semiconductors
UM10360
Chapter 11: LPC176x/5x USB device controller
 
11.9.3 Power management support
To help conserve power, the USB device controller automatically disables the AHB master 
clock and usbclk when not in use.
When the USB Device Controller goes into the suspend state (bus is idle for 3 ms), the 
usbclk input to the device controller is automatically disabled, helping to conserve power. 
However, if software wishes to access the device controller registers, usbclk must be 
active. To allow access to the device controller registers while in the suspend state, the 
USBClkCtrl and USBClkSt registers are provided.
When software wishes to access the device controller registers, it should first ensure 
usbclk is enabled by setting DEV_CLK_EN in the USBClkCtrl register, and then poll the 
corresponding DEV_CLK_ON bit in USBClkSt until set. Once set, usbclk will remain 
enabled until DEV_CLK_EN is cleared by software.
When a DMA transfer occurs, the device controller automatically turns on the AHB master 
clock. Once asserted, it remains active for a minimum of 2 ms (2 frames), to help ensure 
that DMA throughput is not affected by turning off the AHB master clock. 2 ms after the 
last DMA access, the AHB master clock is automatically disabled to help conserve power. 
If desired, software also has the capability of forcing this clock to remain enabled using the 
USBClkCtrl register.
Note that the AHB slave clock is always enabled as long as the PCUSB bit of PCONP is 
set. When the device controller is not in use, all of the device controller clocks may be 
disabled by clearing PCUSB.
The USB_NEED_CLK signal is used to facilitate going into and waking up from chip 
Power-down mode. USB_NEED_CLK is asserted if any of the bits of the USBClkSt 
register are asserted.
After entering the suspend state with DEV_CLK_EN and AHB_CLK_EN cleared, the 
DEV_CLK_ON and AHB_CLK_ON will be cleared when the corresponding clock turns off. 
When both bits are zero, USB_NEED_CLK will be low, indicating that the chip can be put 
into Power-down mode by writing to the PCON register. The status of USB_NEED_CLK 
can be read from the USBIntSt register.
Any bus activity in the suspend state will cause the USB_NEED_CLK signal to be 
asserted. When the chip is in Power-down mode and the USB interrupt is enabled, the 
assertion of USB_NEED_CLK causes the chip to wake up from Power-down mode.
Table 187. USB device controller clock sources
Clock source  Description
AHB master clock Clock for the AHB master bus interface and DMA
AHB slave clock Clock for the AHB slave interface
usbclk 48 MHz clock from the dedicated USB PLL (PLL1) or the Main PLL (PLL0), 
used to recover the 12 MHz clock from the USB bus