P89LPC980 NXP [NXP Semiconductors], P89LPC980 Datasheet - Page 34

no-image

P89LPC980

Manufacturer Part Number
P89LPC980
Description
8-bit microcontroller with accelerated two-clock 80C51 core, 4 kB/8 kB wide-voltage byte-erasable flash with 10-bit ADC
Manufacturer
NXP [NXP Semiconductors]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC980FDH
Manufacturer:
NXP
Quantity:
9 600
Part Number:
P89LPC980FDH
Manufacturer:
NXP/恩智浦
Quantity:
20 000
NXP Semiconductors
P89LPC980_982_983_985_2
Preliminary data sheet
7.5 Clock output
7.6 On-chip RC oscillator option
7.7 Watchdog oscillator option
7.8 External clock input option
7.9 Clock source switching on the fly
The P89LPC980/982/983/985 supports a user-selectable clock output function on the
XTAL2/CLKOUT pin when crystal oscillator is not being used. This condition occurs if
another clock source has been selected (on-chip RC oscillator, watchdog oscillator,
external clock input on XTAL1) and if the RTC and WDT are not using the crystal oscillator
as their clock source. This allows external devices to synchronize to the
P89LPC980/982/983/985. This output is enabled by the ENCLK bit in the TRIM register.
The frequency of this clock output is
in Idle mode, it may be turned off prior to entering Idle, saving additional power.
The P89LPC980/982/983/985 has a 6-bit TRIM register that can be used to tune the
frequency of the RC oscillator. During reset, the TRIM value is initialized to a factory
preprogrammed value to adjust the oscillator frequency to 7.373 MHz ± 1 % at room
temperature. End-user applications can write to the TRIM register to adjust the on-chip
RC oscillator to other frequencies. When the clock doubler option is enabled (UCFG2.7 =
1), the output frequency is 14.746 MHz. If CCLK is 8 MHz or slower, the CLKLP SFR bit
(AUXR1.7) can be set to logic 1 to reduce power consumption. On reset, CLKLP is logic 0
allowing highest performance access. This bit can then be set in software if CCLK is
running at 8 MHz or slower. When clock doubler option is enabled, BOE0 to BOE2 bits
(UCFG1[3:5]) are required to hold the device in reset at power-up until V
its specified level.
The watchdog has a separate oscillator which provide two option: 400 kHz and 25 kHz. It
is calibrated to ±10 % at 400 kHz. The oscillator can be used to save power when a high
clock frequency is not needed.
In this configuration, the processor clock is derived from an external source driving the
P3.1/XTAL1 pin. The rate may be from 0 Hz up to 18 MHz. The P3.0/XTAL2 pin may be
used as a standard port pin or a clock output. When using an oscillator frequency above
12 MHz, BOE0 to BOE2 bits (UCFG1[3:5]) are required to hold the device in reset at
power-up until V
P89LPC980/982/983/985 can implement clock switching on any sources of watchdog
oscillator, 7 MHz/14 MHz internal RC oscillator, crystal oscillator and external clock input
during code is running. CLKOK bit in CLKCON register is used to indicate the clock switch
status. CLKOK is cleared when starting clock source switch and set when completed.
Notice that when CLKOK is ‘0’, writing to CLKCON register is not allowed.
DD
has reached its specified level.
Rev. 02 — 8 February 2010
8-bit microcontroller with accelerated two-clock 80C51 core
1
2
P89LPC980/982/983/985
that of the CCLK. If the clock output is not needed
© NXP B.V. 2010. All rights reserved.
DD
has reached
34 of 85

Related parts for P89LPC980