2020-09-30 01:26 PM
2020-09-30 03:12 PM
It depends which timer interrupt you're referring to and how your pulse is configured. They happen at different times and an inverted pulse will give opposite results.
As a quick check, you could simple read the value of the pin in the interrupt.
Oh, in toggle mode you just need to read the value of the pin. GPIO->ODR register.
2020-09-30 05:00 PM
> GPIO->ODR register
Why not IDR?
Also, why toggle mode, how is it better than PWM?
JW
2020-09-30 06:07 PM
2020-10-08 12:51 PM
Thanks for the feedback, as this is a new environment for me. I will look into the IDR mode, though I don't remember seeing it. Yes, I see where I can read the pin status, and simply exit the interrupt on one phase and process a new ARR value on the other. I just double the speed of the timer. It seems the low overhead for interrupt service in the ARM is really beneficial in that regard.