What Is a Digital Watchdog?
The watch dog timer (WDT, Watch Dog Timer) is an integral part of the microcontroller, it is actually a counter, generally give the watchdog a number, the watchdog starts counting after the program starts running. If the program runs normally, after some time the CPU should issue an instruction to reset the watchdog to zero and restart counting. If the watchdog is increased to the set value, it is considered that the program is not working properly, forcing the entire system to reset.
Watchdog timer
- figure 1
- A simple circuit (Figure 1) provides a responsive input pulse flow loss latch fault indication. Based on the P-supervisor / watchdog integrated circuit (MAX * 9), this circuit is used to monitor the fan (calculated at the fan's rotational speed output), an oscillating circuit, or a suitable microprocessor software implementation.
- During power-up, the active-low reset remains low until the VCC stabilization and reset timeouts expire. Capacitor C passes R until the gate voltage of the FET reaches the threshold (voltage VTH), which turns on the field effect transistor and enables the latching capability. To prevent false triggering, you should set the RC delay time far beyond the reset timeout.
- The WDI input (pin 6) must be set to a minimum rate by the switching capacitor CSWT. If this does not happen, the active-low reset goes low, the LED indicator, the connection and pull-low reset, thus locking the low-level reset. The circuit remains active until you cycle VCC or push the switch in this condition. Either turn the FET off and allow the reset to go high.
- In order to monitor the fan open-drain speed measurement signal, a 10k pull-up resistor is connected to VCC (pin 8) from the world development indicator. Since the fan needs some time to spin up, the watchdog circuit needs to be disabled for a short delay interval. You can reset this delay capacitor (C2) from ground. Note that this delay must be less than the RC delay mentioned above, or the active-low reset latch may be too short prematurely.
- For a fan monitor, set the maximum speed pulse period for the CSWT value according to the formula 5.07 × 106 × CSWT, where CSWT is within a few seconds. If the speed is below this threshold, the active low resets the output low and latches.