18
ATtiny20 [DATASHEET]
8235E–AVR–03/2013
6.1.4
ADC Clock – clk
ADC
The ADC is provided with a dedicated clock domain. This allows halting the CPU and I/O clocks in order to reduce noise
generated by digital circuitry. This gives more accurate ADC conversion results.
6.2
Clock Sources
All synchronous clock signals are derived from the main clock. The device has three alternative sources for the main
clock, as follows:
6.2.1
Calibrated Internal 8 MHz Oscillator
The calibrated internal oscillator provides an approximately 8 MHz clock signal. Though voltage and temperature
This clock may be selected as the main clock by setting the Clock Main Select bits CLKMS[1:0] in CLKMSR to 0b00.
Once enabled, the oscillator will operate with no external components. During reset, hardware loads the calibration byte
into the OSCCAL register and thereby automatically calibrates the oscillator. The accuracy of this calibration is shown as
When this oscillator is used as the main clock, the watchdog oscillator will still be used for the watchdog timer and reset
6.2.2
External Clock
To use the device with an external clock source, CLKI should be driven as shown in
Figure 6-2. The external clock is
selected as the main clock by setting CLKMS[1:0] bits in CLKMSR to 0b10.
Figure 6-2.
External Clock Drive Configuration
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 behavior. It is required to ensure that the MCU is kept in reset during such changes in the clock frequency.
6.2.3
Internal 128 kHz Oscillator
The internal 128 kHz oscillator is a low power oscillator providing a clock of 128 kHz. The frequency depends on supply
voltage, temperature and batch variations. This clock may be select as the main clock by setting the CLKMS[1:0] bits in
CLKMSR to 0b01.
EXTERNAL
CLOCK
SIGNAL
CLKI
GND