Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
RTC Example for evk1100 Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the real time counter driver. It also comes bundled with an application-example of usage.

This example demonstrates how to use the RTC driver with the 32 KHz oscillator crystal. Operating mode: It uses the USART driver to display a real time counter incremented every second. The display is triggered by the interrupt controller module.

Main Files

  • rtc.c: real time counter driver;
  • rtc.h: real time counter driver header file;
  • rtc_example.c: real time counter example application.

Compilation Information

This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR32. Other compilers may or may not work.

Device Information

All AVR32 devices with an RTC, an INTC and a USART module can be used.

Configuration Information

This example has been tested with the following configuration:

  • EVK1100, EVK1101, EVK1104 evaluation kits;
  • CPU clock: 12 MHz;
  • USART1 (on EVK1100 or EVK1101) connected to a PC serial port via a standard RS232 DB9 cable, or USART0 (on EVK1105) or USART1 (on EVK1104) abstracted with a USB CDC connection to a PC;
  • PC terminal settings:
    • 57600 bps,
    • 8 data bits,
    • no parity bit,
    • 1 stop bit,
    • no flow control.

Contact Information

For further information, visit Atmel AVR32.