UM10310_1 © NXP B.V. 2008. All rights reserved.
User manual Rev. 01 — 1 December 2008 25 of 139
NXP Semiconductors UM10310
P89LPC9321 User manual
2.9 Oscillator Clock (OSCCLK) wake-up delay
The P89LPC9321 has an internal wake-up timer that delays the clock until it stabilizes
depending on the clock source used. If the clock source is any of the three crystal
selections (low, medium and high frequencies) the delay is 1024OSCCLK cycles plus
60 μsto100μs. If the clock source is the internal RC oscillator, the delay is
200 μsto300μs. If the clock source is watchdog oscillator or external clock, the delay is
32 OSCCLK cycles.
2.10 CPU Clock (CCLK) modification: DIVM register
The OSCCLK frequency can be divided down, by an integer, up to 510 times by
configuring a dividing register, DIVM, to provide CCLK. This produces the CCLK
frequency using the following formula:
CCLK frequency = fosc / (2N)
Where: fosc is the frequency of OSCCLK, N is the value of DIVM.
Since N ranges from 0 to 255, the CCLK frequency can be in the range of fosc to fosc/510.
(for N = 0, CCLK = fosc).
This feature makes it possible to temporarily run the CPU at a lower rate, reducing power
consumption. By dividing the clock, the CPU can retain the ability to respond to events
other than those that can cause interrupts (i.e. events that allow exiting the Idle mode) by
executing its normal program at a lower rate. This can often result in lower power
consumption than in Idle mode. This can allow bypassing the oscillator start-up time in
cases where Power-down mode would otherwise be used. The value of DIVM may be
changed by the program at any time without interrupting code execution.
2.11 Low power select
The P89LPC9321 is designed to run at 18MHz (CCLK) maximum. However, if CCLK is
8 MHz or slower, the CLKLP SFR bit (AUXR1.7) can be set to a logic1 to lower the power
consumption further. On any reset, CLKLP is logic0 allowing highest performance. This
bit can then be set in software if CCLK is running at 8 MHz or slower.
3. InterruptsThe P89LPC9321 uses a four priority level interrupt structure. This allows great flexibility
in controlling the handling of the P89LPC9321’s 15 interrupt sources.
Table 9. Oscillator type selection for clock switch
FOSC[2:0] Oscillator configuration
111 External clock input on XTAL1.
100 Watchdog Oscillator, 400kHz ± 5 %.
011 Internal RC oscillator, 7.373MHz ± 1 %.
010 Low frequency crystal, 20kHz to 100 kHz.
001 Medium frequency crystal or resonator, 100kHz to 4 MHz.
000 High frequency crystal or resonator, 4MHz to 18 MHz.