Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Drivers RTC Example for XMEGA-A1 Xplained Documentation

Introduction

This simple example shows how to use the Real Time Counter (RTC).

Main Files

Device Info

All AVR XMEGA devices with a RTC can be used. This example have been tested with the following setup:

  • Xplain
  • XMEGA A1 Xplained
  • ATxmega32D4 using STK600-RC044x

Description of the example

The example will initalize the RTC and use the xplain LEDS or the STK600 PORTA to show the last two digits from time in binary coded decimal (BCD).

Dependencies

This example depends on the following modules:

Compilation info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.