We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2021-02-15
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Clock & Timing
Downloaded: 2025 times
Not followed.
License: MIT license
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.
Do you want to subscribe in order to receive notifications regarding "Watchdog click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Watchdog click" changes.
Do you want to report abuse regarding "Watchdog click".
Library Description
The library covers all the necessary functions to control the Watchdog click board.
Key functions:
void watchdog_send_pulse ( uuint16_t p_duration_ms )
- Send pulse function.void watchdog_setup_time ( uint8_t setup_time_mode )
- Set the watchdog time function.void watchdog_reset_time ( void )
- Reset time function.Examples description
The application is composed of three sections :
void application_task ( ) { watchdog_reset_time( ); watchdog_set_config( 50, 5 ); n_cnt = 100; while ( n_cnt > 0 ) { if ( watchdog_get_wdo( ) != 0 ) { mikrobus_logWrite( " Correct Operation ", _LOG_LINE ); Delay_ms( 1 ); n_cnt--; } } mikrobus_logWrite( "---------------------", _LOG_LINE ); watchdog_reset_time( ); watchdog_set_config( 120, 1 ); n_cnt = 50; while ( n_cnt > 0 ) { if ( watchdog_get_wdo( ) == 0 ) { mikrobus_logWrite( " Fault ", _LOG_LINE ); Delay_ms( 1 ); n_cnt--; } } mikrobus_logWrite( "---------------------", _LOG_LINE ); }
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.