Back to DRIVERS page

AVR UC3 Series Software Framework: RTC Driver

Copyright © 2007 Atmel Corporation

Introduction

The Real Time Counter (RTC) enables periodic interrupts at long intervals, or accurate measurement of real-time sequences. The RTC is fed from a 16-bit prescaler, which is clocked from the 32 kHz oscillator. Any tapping of the prescaler can be selected as clock source for the RTC, enabling both high resolution and long timeouts. The prescaler cannot be written directly, but can be cleared by the user.

The RTC can generate an interrupt when the counter wraps around the top value of 0xFFFFFFFF. Optionally, the RTC can wrap at a lower value, producing accurate periodic interrupts.

 

RTC Driver

The driver is composed of rtc.c and rtc.h.

 

An example is available: Use the RTC driver with the 32 KHz oscillator crystal.

 


AVR is a registered trademark of Atmel Corporation.

>