Hi, I wanted to use three channel on a single timer. The setup seems to work fine for the first two (ch1 and ch2) but not for ch3. it seems that even with HAL I have to manually set the bit TIM_CCER_CC3E on for ch3. Did I miss something?
I use these fonction to enable all three channels:
HAL_TIM_OnePulse_Start(&htim3, TIM_CHANNEL_1);
HAL_TIM_OnePulse_Start(&htim3, TIM_CHANNEL_2);
HAL_TIM_OnePulse_Start(&htim3, TIM_CHANNEL_3);
it have to insert this to enable ch3 but just for the channel 3.
htim3.Instance->CCMR2 = TIM_CCMR2_OC3PE| (7<<TIM_CCMR2_OC3M_Pos);
htim3.Instance->CCER |= TIM_CCER_CC3E
I'm asking this question because I'm not sure if there is an issue with HAL or it's just me.
Best regards,