-
1. Re: WDT callback does not get called if I use RTC?
BragadeeshV_41May 16, 2019 4:35 AM (in response to luca_3497456)
Hi luca_3497456,
Can you please attach your project file focusing on the issue so that it will be easier for us to debug.
Regards,
Bragadeesh
-
2. Re: WDT callback does not get called if I use RTC?
luca_3497456 May 16, 2019 9:55 AM (in response to BragadeeshV_41)I have attached the program I am running. You will see that the WDT is never invoked unless you comment out RTC_1_Start().
-
Workspace_Debug.zip 2.3 MB
-
-
3. Re: WDT callback does not get called if I use RTC?
BragadeeshV_41May 17, 2019 5:31 AM (in response to luca_3497456)
Hi luca_3497456,
WDT has only one callback function for each of the counters. When you are trying to do automatic update of RTC, the RTC_Update() is registered as the callback for WDT overwriting the previous one.
You can use the Implement RTC update manually check box in the RTC configurator and call the API in the WDT callback function. Thus you have only one WDT callback for both your custom callback code and RTC_Update().
Hope this helps!
Regards,
Bragadeesh
-
4. Re: WDT callback does not get called if I use RTC?
luca_3497456 May 17, 2019 11:34 AM (in response to BragadeeshV_41)Hi BragadeeshV_41,
What are the benefits of using one WDT verses another? Correct me if I'm wrong, would there be a benefit in power consumption using only one verses two? Also, is using a WDT for the real time clock sufficient to wake up the CPU from deep sleep? I think so, I will try it and comment.
-
5. Re: WDT callback does not get called if I use RTC?
luca_3497456 May 17, 2019 12:53 PM (in response to luca_3497456)Using the RTC and a single WDT set to RTC_Sel in the low frequency clocks automatically wakes up the system from deep sleep.
-
6. Re: WDT callback does not get called if I use RTC?
BragadeeshV_41May 21, 2019 9:21 AM (in response to luca_3497456)
Hi luca_3497456,
Yes, you are right. Using two timer blocks of WDT will consume more power when compared to one. The lesser the no of CPU resources, the lesser will be the power consumption.
I hope you have answered your second part of the question by yourself. Yes, this is possible.
Please let us know if all your issues are resolved. Happy to help
Regards,
Bragadeesh