Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WDT Example for evk1101 Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the WDT software driver.
It also comes bundled with an example.

This example will start a watchdog scheduler and scroll led until a reset occurs.
At first, the watchdog is enabled with the min value WDT_MIN_VALUE(i.e. 1s), then :

  • If a Watchdog reset occurs, the watchdog is re-enabled with the current value
  • If a External reset occurs, the watchdog is enabled with the current value incremented of 1s. When the WDT timeout period reaches 4s, it is reset back to 1s. So, possible wdt delays(in this example) are 1s, 2s and 3s.
  • If a Power On reset occurs, the watchdog is reset and enabled with the default value, WDT_MIN_VALUE(i.e. 1s).

Main Files

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 a WDT module can be used.

Configuration Information

This example has been tested with the following configuration:

  • EVK1100, EVK1101, EVK1104 or EVK1105 evaluation kit;
  • CPU clock: 12000000 MHz;

Contact Information

For further information, visit Atmel AVR32.