This simple example shows how to use the Real Time Counter (RTC).
All AVR XMEGA devices with a RTC can be used. This example have been tested with the following setup:
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).
This example depends on the following modules:
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.