ATXMEGA128B3-AU ATMEL [ATMEL Corporation], ATXMEGA128B3-AU Datasheet - Page 40

no-image

ATXMEGA128B3-AU

Manufacturer Part Number
ATXMEGA128B3-AU
Description
8/16-bit Atmel XMEGA B3 Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATXMEGA128B3-AU
Manufacturer:
Atmel
Quantity:
10 000
20. RTC – 16-bit Real-Time Counter
20.1
20.2
8074B–AVR–02/12
Features
Overview
The 16-bit real-time counter (RTC) is a counter that typically runs continuously, including in low-
power sleep modes, to keep track of time. It can wake up the device from sleep modes and/or
interrupt the device at regular intervals.
The reference clock is typically the 1.024kHz output from a high-accuracy crystal of 32.768kHz,
and this is the configuration most optimized for low power consumption. The faster 32.768kHz
output can be selected if the RTC needs a resolution higher than 1ms. The RTC can also be
clocked from an external clock signal, the 32.768kHz internal oscillator or the 32kHz internal
ULP oscillator.
The RTC includes a 10-bit programmable prescaler that can scale down the reference clock
before it reaches the counter. A wide range of resolutions and time-out periods can be config-
ured. With a 32.768kHz clock source, the maximum resolution is 30.5µs, and time-out periods
can range up to 2000 seconds. With a resolution of 1s, the maximum timeout period is more
than18 hours (65536 seconds). The RTC can give a compare interrupt and/or event when the
counter equals the compare register value, and an overflow interrupt and/or event when it
equals the period register value.
Figure 20-1. Real-time Counter overview
16-bit resolution
Selectable clock source
Programmable 10-bit clock prescaling
One compare register
One period register
Clear counter on period overflow
Optional interrupt/event on overflow and compare match
– 32.768kHz external crystal
– External clock
– 32.768kHz internal oscillator
– 32kHz internal ULP oscillator
TOSC1
TOSC2
32.768kHz Crystal Osc
32kHz int ULP (DIV32)
32.768kHz Int. Osc
External Clock
RTCSRC
prescaler
10-bit
clk
RTC
COMP
PER
CNT
=
=
XMEGA B3
Compare
Overflow
”match”/
TOP/
40

Related parts for ATXMEGA128B3-AU