Posted on February 06, 2015 at 17:29Can someone explain why the following code causes CCR1, CCR2 and CCR3 to have the same value: TIM1->CCR1=value1; TIM1->CCR2=value2; TIM1->CCR3=value3; While the following code doesn't cause this problem (CCR1 and ...
Posted on December 05, 2014 at 19:08Hello, I'm trying to change the duty cycle of TIM1 in PWM Mode, but somehow my code is not working. void TIM1_CC_IRQHandler(void) { HAL_NVIC_ClearPendingIRQ(TIM1_CC_IRQn); HAL_TIM_IRQHandler(&htim1); cx++...
Posted on February 06, 2015 at 18:12 If I comment lineTIM1->CCR3=val2;, the channels 1 and 2 work properly.If not commented, the three output waves will have the same duty cycle(varying sinusoidaly of course). void
TIM1_CC_IRQHandler(
void
)
{
i...