Part Number: MSP430G2553
Hi Team,
I would like the MCU to reset if the Watchdog is not periodically reset. How can this be done please?
I have all the example about the watchdog, but none of them show how to do this.
Thank you.
Regards,
May
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: MSP430G2553
Hi Team,
I would like the MCU to reset if the Watchdog is not periodically reset. How can this be done please?
I have all the example about the watchdog, but none of them show how to do this.
Thank you.
Regards,
May
Hi May,
Can you elaborate a bit more? Are you asking how the MCU reset looks in software? In software this is done by configuring the WDTCTL register. If the watchdog timer is enabled a reset automatically occurs (reset with PUC) after a time out.
I am assuming you have seen the first watchdog example, if you haven't check this out: WDT_01 example
regards,
Henok
Hi Henok,
Customer want to reset the watchdog in the main loop (main(){}) so that if that code does not execute the MCU will reset.
Thank you.
Regards,
May
Example msp430g2xx3_wdt_07.c is perhaps more illustrative. It shows the CPU-reset (PUC) part, but not the feeding part:
https://dev.ti.com/tirex/explore/node?node=AEBlR0c40D8-.JOaN5u6sQ__IOGqZri__LATEST
1) Generally the watchdog is fed using the same value that was used to start it (including WDTCNTCL in both cases). In this Example it would be
> WDTCTL = WDT_MRST_32; // ~32ms interval (default)
2) This Example also illustrates the collection of pre-packaged WDTCTL values provided by CCS. Once you see the naming convention, they can save you some time digging through the bits [Ref User Guide (SLAU144J) Sec 10.3.1].
Hi May,
The example Bruce provided is a good one as well.
If you are on CCS, you can "ctrl + clk" the register names to get you to the definitions within the header file.

regards,
Henok
May,
I should have made this more clear but you want to make sure you are in watchdog mode if you want the time out reset functionality.
This is the bit 4 of WDTCTL register, WDTTMSEL which is in the example Bruce provided.
regards,
Henok
**Attention** This is a public forum