watchdog
2.0.0.0
|
Watchdog Click is a compact add-on board that contains a simple countdown timer for a wide variety of applications. This board features the TPS3430, a standalone watchdog timer with a programmable watchdog window and programmable reset delay from Texas Instruments.
We provide a library for the Watchdog Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Watchdog Click driver.
watchdog_cfg_setup
Config Object Initialization function. watchdog_init
Initialization function. watchdog_default_cfg
Click Default Configuration function. watchdog_set_set0
Set S0 ( RST ) pin state function. watchdog_get_wdo
Get WDO ( INT ) pin state function. watchdog_send_pulse
Send pulse function. This is an example that demonstrates the use of the Watchdog click board.
The demo application is composed of two sections :
Initialization driver enables - GPIO, configure the watchdog window, enable watchdog, also write log.
In the first part of the example, we send pulses in a valid time window (Correct Operation). The second part of the example sends pulses outside the valid time window and then the watchdog detects a fault condition, display "Fault", performs the reset and turn on the LED ( WDT FLT ) on the Watchdog click board. Results are being sent to the Usart Terminal where you can track their changes.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.