DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
160 of 571
NXP Semiconductors
UM10316
Chapter 13: LPC29xx USB device
9.1 Clock control registers
9.1.1 USB Clock Control register (USBClkCtrl - 0xE010 CFF4)
This register controls the clocking of the USB Device Controller. Whenever software
wants to access the device controller registers, both DEV_CLK_EN and AHB_CLK_EN
must be set. The PORTSEL_CLK_EN bit need only be set when accessing the
USBPortSel register.
The software does not have to repeat this exercise for every register access, provided that
the corresponding USBClkCtrl bits are already set. Note that this register is functional only
when the PCUSB bit of PCONP is set; when PCUSB is cleared, all clocks to the device
controller are disabled irrespective of the contents of this register. USBClkCtrl is a
read/write register.
9.1.2 USB Clock Status register (USBClkSt - 0xE010 CFF8)
This register holds the clock availability status. The bits of this register are ORed together
to form the USB_NEED_CLK signal. When enabling a clock via USBClkCtrl, software
should poll the corresponding bit in USBClkSt. If it is set, then software can go ahead with
the register access. Software does not have to repeat this exercise for every access,
provided that the USBClkCtrl bits are not disturbed. USBClkSt is a read only register.
Table 118. USBClkCtrl register (USBClkCtrl - address 0xE010 CFF4) bit description
Bit
Symbol
Description
Reset
value
0
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is
not defined.
NA
1
DEV_CLK_EN
Device clock enable. Enables the usbclk input to the
device controller
0
2
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is
not defined.
NA
3
PORTSEL_CLK_EN
Port select register clock enable.
NA
4
AHB_CLK_EN
AHB clock enable
0
31:5
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is
not defined.
NA
Table 119. USB Clock Status register (USBClkSt - 0xE010 CFF8) bit description
Bit
Symbol
Description
Reset
value
0
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is
not defined.
NA
1
DEV_CLK_ON
Device clock on. The usbclk input to the device
controller is active.
0
2
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is
not defined.
NA