- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @tony ,
It is not clear which function of WDT do you want to have.
If the WDT is enabled then you need to serve it before timer overflow. In case when you don’t serve it, WDT goes in the prewarning state, after additional 256 cycles the MC goes to WDT reset.
When MC becomes WDT reset at twice, MC goes to ‘permanent reset’.
on the other hand, you can disable WDT via set ‘DISWDT’ in *.asm to deactivate WDT, for example.
additionally, you need to check the Errata Manual (WDT_X.002) to avoid the permanent reset’. In short: you should clear the internal flag via set WDTCS.CLRIRF=1 in the interrupt service routine of 'WDT prewarning' otherwise a further WDT overflow will lead to a permanent reset of the device.
please be aware that for testing you should not use debug tool because in debug mode the WDT is disabled.
Best regards,
Sampath Selvaraj