2018-08-28 06:46 AM
2018-08-28 07:38 AM
Yes, use whichever channel is available to set the phase of the count you're interested in.
TIM1->CCR4 = X, and enable the CC4 interrupt
2018-08-28 11:46 PM
Hi Clive,
Ok, I think I was too short in my description..
I still want my pwms to work. What I look for is an overflow interrupt so that every pwm-channel maintains its dutycycle that I've set in the TIM1->CCR1 register. There is no free CCR-channel to use.
Very thankful for your effort!
BR
Tomas
2018-08-29 01:42 AM
Hi again,
Just want to post how the issue was solved.
I used the TIM1_UP_IRQHandler interrupt and configured it to generate an interrupt at each over- and underflow.
Thanks,
/Tomas
2018-08-29 06:07 AM
Hi @TBerg ,
Thanks a lot for sharing the solution. For sure, this will be helpful for other users facing the same issue.
Khouloud.