WWDG early wake interrupt to prevent reset
Hi,
I have a question regarding the possibilities and best practises of the early wake interrupt generated by the window watchdog.
Is it possible to use the EWI to refresh the watchdog? And if so, is it actually a good idea and reliable?
To describe the reason why I am asking briefly:
I receive data over UART in fixed intervals, which refreshes the watchdog under normal conditions. If no data is received after a certain time I assume the connection is faulty, set a failsafe/timeout flag and refresh the watchdog. This would be triggered by the EWI and should not happen under normal operating conditions, it is purely a failsafe measure.
Technically no reset is necessary or even wanted in this case. I know that this should be realised with a normal timer interrupt, but I am using all of the timers for something else. I could probably make this work with the RTC or a capture compare interrupt from timer 1, but ideally I do not want to use the same timer for two different functionalities as the prescaler and counter period are dictated by the other function and might change. So I basically am trying to get one more "independent" timer interrupt out of limited hardware.
It strikes me as something that is probably not best practise and THIS post has me concerned about reliability, which is why I am asking. Thanks for your answers in advance!
Cheers,
Stefan
