NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
StarterWare Watchdog Timer
Introduction[edit]
The watchdog timer is an upward counter capable of generating a pulse on the reset pin and an interrupt to the device system modules following an overflow condition.
Programming[edit]
- Enable the module clocks before accessing the module. This can be done by calling the API WatchdogTimer1ModuleClkConfig().
- Watchdog timer software reset is done by calling the API WatchdogTimerReset().
- Prescaler clock of the watchdog timer can be enabled and configured using the WatchdogTimerPreScalerClkEnable() API.
- The count value for the Watchdog timer can be set by calling the WatchdogTimerCounterSet() API.
- The reload value for the counter register of watchdog timer can be set by calling the API WatchdogTimerReloadSet.
- To Start/Enable the watchdog timer WatchdogTimerEnable() API can be used.
- To reload value from the load register into the counter register the WatchdogTimerTriggerSet() API has to be called. This API takes a parameter by name ‘trigVal’. If this API has to be called many times in an application then everytime this API is called ‘trigVal’ has to be different.