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/16F150x | PIC12/16F157x | PIC12/16F184x |
PIC12/16LF155x | PIC16F145x | PIC16F151x |
PIC16F152x | PIC16F152xx | PIC16F170x |
PIC16F171x | PIC16F176x | PIC16F177x |
PIC16F178x | PIC16F180xx | PIC16F183xx |
PIC16F194x | PIC16LF156x | PIC16LF190x |
PIC18F-K20 | PIC18F-K22 | PIC18F-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
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
|
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
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