C8051F410/1/2/3
168
Rev. 1.1
19.2. External Oscillator Drive Circuit
The external oscillator circuit may drive an external crystal, ceramic resonator, capacitor, or RC network. A
CMOS clock may also provide a clock input. For a crystal or ceramic resonator configuration, the crys-
tal/resonator must be wired across the XTAL1 and XTAL2 pins as shown in Option 1 of
Figure 19.1. A
10 M
resistor also must be wired across the XTAL1 and XTAL2 pins for the crystal/resonator configura-
tion. In RC, capacitor, or CMOS clock configuration, the clock source should be wired to the XTAL2 pin as
shown in Option 2, 3, or 4 of
Figure 19.1. The type of external oscillator must be selected in the OSCXCN
register,
and
the
frequency
control
bits
(XFCN)
must
be
selected
appropriately
(see
Important Note on External Oscillator Usage: Port pins must be configured when using the external
oscillator circuit. When the external oscillator drive circuit is enabled in crystal/resonator mode, Port pins
P1.0 and P1.1 are used as XTAL1 and XTAL2 respectively. When the external oscillator drive circuit is
enabled in capacitor, RC, or CMOS clock mode, Port pin P1.1 is used as XTAL2. The Port I/O Crossbar
cuit in crystal/resonator, capacitor, or RC mode, the associated Port pins should be configured as
analog
inputs (with ‘1's in the corresponding Port Latch). In CMOS clock mode, the associated pin should be con-
figured as a
input mode selection.
The frequency of the external oscillator can be measured with respect to the smaRTClock Oscillator using
can be accomplished.
19.2.1. Clocking Timers Directly Through the External Oscillator
The external oscillator source divided by eight is a clock option for the timers
((PCA0)” on page 249). When the external oscillator is used to clock these peripherals, but is not used as
the system clock, the external oscillator frequency must be less than or equal to the system clock fre-
quency. In this configuration, the clock supplied to the peripheral (external oscillator / 8) is synchronized
with the system clock; the jitter associated with this synchronization is limited to ±0.5 system clock cycles.
19.2.2. External Crystal Example
If a crystal or ceramic resonator is used as an external oscillator source for the MCU, the circuit should be
configured as shown in
Figure 19.1, Option 1. The External Oscillator Frequency Control value (XFCN)
should be chosen from the Crystal column of the table in
SFR Definition 19.3. For example, a 12 MHz crys-
tal requires an XFCN setting of 111b.