2021-11-03 04:43 AM
In the capture/compare ISR, I want to program the next CCR1 value and the associated action: to change the output to active or inactive when CNT matches CCR1. For this I need to set TIM1_CCMR1 OC1M to 0001 or 0010.
However, as soon as I program OC1M with 0001, the output becomes active (and inactive on 0010). It ignores the CNT/CCR1 matching condition?
2021-11-05 07:22 AM
The jitter is due to HSI16. The RC oscillator is too inaccurate. Will try a crystal instead. Thank you for your insight!