19.3.2.2 Use Model 2
The following steps are used to generate a watchdog timer interrupt on timeout.
- Enable the watchdog timer in MSS configurator of your Libero project.
- Select timeout behavior as interrupt in the watchdog timer configuration window.
- Initialize the watchdog timer in SoftConsole application using MSS_WD_init() function.
- Enable the watchdog timer timeout interrupt using MSS_WD_enable_timeout_irq() function.
- Use MSS_WD_reload() function to reload its down counter timer with the load value configured through the call to WD_init().
- Use MSS_WD_clear_timeout_irq() function in interrupt handler to clear the watchdog timeout interrupt.
Important:
- The watchdog timer cannot be disabled through software. Only the interrupts can be disabled.
- The MSS Watchdog timer does not support full behavioral simulation models. See SmartFusion2 MSS BFM Simulation User Guide for more information.