External clock, Timer/counter oscillator, Atmega32(l) – Rainbow Electronics ATmega32L User Manual

Page 29

Advertising
background image

29

ATmega32(L)

2503C–AVR–10/02

External Clock

To drive the device from an external clock source, XTAL1 should be driven as shown in
Figure 14. To run the device on an external clock, the CKSEL fuses must be pro-
grammed to “0000”. By programming the CKOPT Fuse, the user can enable an internal
36 pF capacitor between XTAL1 and GND.

Figure 14. External Clock Drive Configuration

When this clock source is selected, start-up times are determined by the SUT fuses as
shown in Table 12.

When applying an external clock, it is required to avoid sudden changes in the applied
clock frequency to ensure stable operation of the MCU. A variation in frequency of more
than 2% from one clock cycle to the next can lead to unpredictable behaviour. It is
required to ensure that the MCU is kept in Reset during such changes in the clock
frequency.

Timer/Counter Oscillator

For AVR microcontrollers with Timer/Counter Oscillator pins (TOSC1 and TOSC2), the
crystal is connected directly between the pins. No external capacitors are needed. The
Oscillator is optimized for use with a 32.768 kHz watch crystal. Applying an external
clock source to TOSC1 is not recommended.

Table 12. Start-up Times for the External Clock Selection

SUT1..0

Start-up Time from

Power-down and

Power-save

Additional Delay

from Reset

(V

CC

= 5.0V)

Recommended Usage

00

6 CK

BOD enabled

01

6 CK

4.1 ms

Fast rising power

10

6 CK

65 ms

Slowly rising power

11

Reserved

EXTERNAL

CLOCK

SIGNAL

Advertising