Atmel AVR1506 XMEGA Clock System Training Manual

This document introduces the Atmel XMEGA clock system, including internal and external oscillators, crystal oscillator failure monitor, high frequency phase locked loop and clock prescalers.


Atmel AVR1506 XMEGA Clock System Training Manual - cover page
Brand
Atmel
Category
Other Electronics
Document type
User Manual
Language
English
Pages
12
File format
PDF
File size
245 KB
Published
27 March, 2012
Updated
30 September, 2023
MD5 checksum
604C76A9BA2046F6E433B84325A6D906

About this manual

The manual provides an overview of the Atmel XMEGA clock system, describing the various internal and external clock sources, the internal PLL multiplier, and the digital frequency‑locked loop (DFLL) used for automatic runtime calibration. It also details the real‑time counter (RTC) and the external clock‑source failure monitor.

Four hands‑on tasks guide the reader through changing the system clock, using the internal PLL, enabling runtime calibration, and configuring the RTC, with step‑by‑step instructions for building and debugging example projects in Atmel AVR Studio.

What's inside

  • Prerequisites
  • Introduction
  • Clock sources
  • System clock prescaler
  • Runtime calibration
  • Real‑time counter
  • External clock source failure monitor
  • Task 1: Clock switching
  • Task 2: Using the internal PLL
  • Resources

Specifications

Internal 2 MHz oscillator (factory‑calibrated)2 MHz
Internal 32 MHz oscillator (factory‑calibrated)32 MHz
Ultra‑low‑power 32 kHz RC oscillator32 kHz
PLL multiplication factor1× to 31×

Frequently asked questions

What is the default clock source after a reset?

The XMEGA starts up running from an internal 2 MHz factory‑calibrated source.

How many internal clock sources does the XMEGA provide?

There are five internal clock sources, including the internal PLL.

Which clock sources can be used as the main system clock?

All internal sources except the ultra‑low‑power 32 kHz RC oscillator can be used as the main system clock.

How does the DFLL perform runtime calibration?

When enabled, the DFLL compares the oscillator frequency with a reference clock and adjusts the calibration register by one step to correct the frequency.

Download PDF (245 KB)

More Atmel Manuals


View all Atmel manuals →