4.10.1 WDT

Watchdog Timer

4.10.1.1 Introduction

The 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. The Watchdog Timer is typically used to recover the system from unexpected events.

4.10.1.2 Supported Device Families

PIC12/16F150xPIC12/16F157xPIC12/16F184x
PIC12/16LF155xPIC16F145xPIC16F151x
PIC16F152xPIC16F152xxPIC16F170x
PIC16F171xPIC16F176xPIC16F177x
PIC16F178xPIC16F180xxPIC16F183xx
PIC16F194xPIC16LF156xPIC16LF190x
PIC18F-K20PIC18F-K22PIC18F-K50
PIC18F-K80 PIC18F-K90

4.10.1.3 Required header files

#include "mcc_generated_files/system/watchdog.h"

4.10.1.4 Module Documentation

4.10.1.4.1 WDT

Driver Version

WDT Driver Version 2.0.0
Functions
  • void WDT_Initialize (void)

    Initializes the WDT to the default states configured in the MCC GUI.

Function Documentation

WDT_Initialize()

void WDT_Initialize (void )

Initializes the WDT to the default states configured in the MCC GUI.

Section: Included Files

Parameters:
none
Returns:

none

4.10.1.5 File Documentation

4.10.1.5.1 source/watchdog.c File Reference

This is the generated driver implementation file for the WDT driver.

#include "../watchdog.h"

Functions

  • void WDT_Initialize (void)

    Initializes the WDT to the default states configured in the MCC GUI.

Detailed Description

This is the generated driver implementation file for the WDT driver.

WDT Generated Driver File

Version: WDT Driver Version 2.0.0

4.10.1.5.2 source/watchdog.h File Reference

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

Functions

  • void WDT_Initialize (void)

    Initializes the WDT to the default states configured in the MCC GUI.

Detailed Description

WDT Generated Driver API Header File