Datasheet

LPC3141_43 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 1 — 4 June 2012 25 of 69
NXP Semiconductors
LPC3141/3143
Low-cost, low-power ARM926EJ microcontrollers
6.15 Clock Generation Unit (CGU)
The clock generation unit generates all clock signals in the system and controls the reset
signals for all modules. The structure of the CGU is shown in Figure 6
. Each output clock
generated by the CGU belongs to one of the domains. Each clock domain is fed by a
single base clock that originates from one of the available clock sources. Within a clock
domain, fractional dividers are available to divide the base clock to a lower frequency.
Within most clock domains, the output clocks are again grouped into one or more
subdomains. All output clocks within one subdomain are either all generated by the same
fractional divider or they are connected directly to the base clock. Therefore all output
clocks within one subdomain have the same frequency and all output clocks within one
clock domain are synchronous because they originate from the same base clock.
The CGU reference clock is generated by the external crystal. Furthermore the CGU has
several Phase Locked Loop (PLL) circuits to generate clock signals that can be used for
system clocks and/or audio clocks. All clock sources, except the output of the PLLs, can
be used as reference input for the PLLs.
This module has the following features:
Advanced features to optimize the system for low power:
All output clocks can be disabled individually for flexible power optimization.
Some modules have automatic clock gating: they are only active when (bus)
access to the module is required.
Variable clock scaling for automatic power optimization of the AHB bus (high clock
frequency when the bus is active, low clock frequency when the bus is idle).
Clock wake-up feature: module clocks can be programmed to be activated
automatically on the basis of an event detected by the event router (see also
Section 6.19
). For example, all clocks (including the core/bus clocks) are off and
activated automatically when a button is pressed.
Supports five clock sources:
Reference clock generated by the oscillator with an external crystal.
Pins I2SRX_BCK0, I2SRX_WS0, I2SRX_BCK1 and I2SRX_WS1 are used to input
external clock signals (used for generating audio frequencies in I2SRX slave
mode, see also Section 6.4
).
Supports two PLLs:
System PLL generates programmable system clock frequency from its reference
input.
I
2
S/Audio PLL generates programmable audio clock frequency (typically 256 fs)
from its reference input.
Remark: Both the System PLL and the I
2
S/Audio PLL generate their frequencies
based on their (individual) reference clocks. The reference clocks can be
programmed to the oscillator clock or one of the external clock signals.
Highly flexible switchbox to distribute the signals from the clock sources to the module
clocks.
Each clock generated by the CGU is derived from one of the base clocks and
optionally divided by a fractional divider.