Other Parts Discussed in Thread: MSP430FR6989
Hello!
I've explored example projects for MSP430FR6989. Actually, I'm looking for an example of using watchdog timer for main function - to reset an MCU when some software dead loop occurs.
But I didn't find the example in C-language of using watchdog timer this way.
MSPWare 2_21_00_39 contains 4 examples for WDT:
msp430fr69xx_wdt_01 - Toggle P1.0 using software timed by WDT ISR
msp430fr69xx_wdt_02 - Toggle P1.0 using software timed by WDT ISR
msp430fr69xx_wdt_04 - Allow WDT+ in watchdog mode to timeout
msp430fr69xx_wdt_05 - This program demonstrates how a reset is executed if the CPU tries to fetch instructions from within the module register memory address range (0x0100 --0x0FEF) or from within unused address ranges.
Probably, msp430fr69xx_wdt_04 is what do I need. Here WDT is used for resetting the MCU. But here I can't find any lines of code, which sets up a WDT, no even one line.
Could anyone suggest me some more explicit example of using WDT in MSP430FR6989, where I can observe how to set up WDT period, how to make an MCU reset, etc.?