2021-08-19 12:26 AM
I set up tim5 in compare mode to get an interrupt at a specific tick, but I am also interested in the overflows. I get an update interrupt very early after starting the timer, so it is definitely not an overflow. Is there some register I should read after an update-event interrupt where I can disambiguate the type of update?
2021-08-19 01:45 AM
> interrupt very early after starting the timer
Using Cube? This is consequence of Cube forcing update by setting TIMx_EGR.UG, to enforce reload of PSC.
JW
2021-08-19 02:19 AM
Thanks JW, That may be the reason. But what I want to know is if I can tell the difference between one kind of update event and the overflow?
2021-08-19 04:20 AM
No, there's no such differentiating feature.
JW