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:
- UC3C_EK evaluation kit;
- STK600+RCUC3D routing card;
- CPU clock:
- 16000000 MHz: UC3C_EK;
- 12000000 MHz: STK600+RCUC3D;
- STK600+RCUC3D Board Configuration :
- connect STK600.PA4 to STK600.LEDS.LED0
- connect STK600.PA5 to STK600.LEDS.LED1
- connect STK600.PA6 to STK600.LEDS.LED2
- connect STK600.PA7 to STK600.LEDS.LED3
Contact Information
For further information, visit Atmel AVR32.