4.10.2 WWDT

Windowed Watchdog Timer

4.10.2.1 Introduction

A Watchdog Timer (WDT) is a system timer that generates a Reset if the firmware does not issue a CLRWDT instruction within the time-out period. A Watchdog Timer is typically used to recover the system from unexpected events. The Windowed Watchdog Timer (WWDT) differs from non-windowed operation in that CLRWDT instructions are only accepted when they are performed within a specific window during the time-out period.

4.10.2.2 Supported Device Families

PIC12/16F161xPIC12/16F184xPIC16F153xx
PIC16F171xxPIC16F181xxPIC16F184xx
PIC16F188xxPIC16F191xxPIC18F-K40
PIC18F-K42PIC18F-K83PIC18F-Q10
PIC18F-Q20PIC18F-Q24PIC18F-Q40
PIC18F-Q41PIC18F-Q43PIC18F-Q71
PIC18F-Q83PIC18F-Q84

4.10.2.3 Required header files

#include "mcc_generated_files/system/watchdog.h"

4.10.2.4 Module Documentation

4.10.2.4.1 WWDT

This file contains the API prototypes for the WWDT driver.

Module description

This file contains the API prototypes for the WWDT driver.

Version: WWDT Driver Version 2.0.0
Functions
  • void WWDT_Initialize (void)

    Initializes the Windowed Watchdog Timer (WWDT) driver.

Function Documentation

WWDT_Initialize()

void WWDT_Initialize (void )

Initializes the Windowed Watchdog Timer (WWDT) driver.

Parameters:
None.
Returns:

None.

4.10.2.5 File Documentation

4.10.2.5.1 source/watchdog.c File Reference

#include "../watchdog.h"

Functions

  • void WWDT_Initialize (void)

    Initializes the Windowed Watchdog Timer (WWDT) driver.

4.10.2.5.2 source/watchdog.h File Reference

#include <xc.h>
#include <stdbool.h>
#include <stdint.h>

Functions

  • void WWDT_Initialize (void)

    Initializes the Windowed Watchdog Timer (WWDT) driver.