SAMV71 Xplained Ultra Software Package 1.3

Watchdog with IRQ Interrupt Example

Purpose

This example demonstrates user to trigger a watchdog interrupt if the software becomes trapped in a deadlock.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

When launched, this program reloads the watchdog at regular intervals before the timer underflow occurs, a LED is blinked. User could press button1 to make the program run in a infinite loop without reloading the watchdog. So a watchdog interrupt will be triggered, and "Enter watchdog interrupt." will print to terminal.

Note:
  1. User can enable a watchdog reset instead of an interrupt by setting WDRSTEN bit in WDT_MR register.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf

On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:

Start the application.

  1. In the terminal window, the following text should appear:
         -- Watchdog with IRQ Interrupt Example xxx --
         -- xxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    

The user could press the button1 to trigger a watchdog interrupt.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines