5.10.1 WWDT

Windowed Watchdog Timer

5.10.1.1 Introduction

The Watchdog Timer (WDT) is a system function for monitoring the correct program operation. When enabled, the WDT is a constantly running timer with a configurable time-out period. If the WDT is not reset within this time-out period, it will issue a system Reset. This allows the system to recover from situations such as runaway or deadlocked code. The WDT is reset by executing the WDR (Watchdog Timer Reset) instruction from software.

In addition to the Normal mode described above, the WDT has a Window mode. The Window mode defines a time slot or “window” inside the time-out period during which the WDT must be reset. If the WDT is reset outside this window, a system Reset will be issued. Compared to the Normal mode, the Window mode can catch situations where a code error causes constant WDR execution.

5.10.1.2 Supported Device Families

AVR® Dx ATtiny ATmega16xx
ATmega48xx ATmega80x ATmega88xx

5.10.1.3 Required Header Files:

#include "mcc_generated_files/system/system.h"

5.10.1.4 Module Documentation

5.10.1.4.1 Windowed Watchdog Timer

This file contains the API prototypes for the System drivers.

Module description

This file contains the API prototypes for the System drivers.

Version: Driver Version 1.0.1

Function Documentation

WDT_Initialize()

int8_t WDT_Initialize ( )

Initializes the WDT module.

Parameters:
None.
Returns:

None.

5.10.1.5 File Documentation

5.10.1.5.1 source/system.c File Reference

This file contains the API implementation for the System drivers, including the Watchdog Driver.

#include "../system.h"

Detailed Description

This file contains the API implementation for the System drivers, including the Watchdog Driver.

System Driver Source File

Version: Driver Version 1.0.1

Function Documentation

WDT_Initialize()

int8_t WDT_Initialize ( )

Initializes the WDT module.

Parameters:
None.
Returns:

None.