Skip to main content
xpp07
Associate III
October 17, 2018
Question

Having issues with using simultaneous timers

  • October 17, 2018
  • 0 replies
  • 483 views

In my nucleo L432KC, I have set Timer 1 for PWM generation, Timer 15 as a timer based interrupt and Timer 2 as PWM input mode. Timer 1 and Timer 15 works well until a point. For example, I wanted a 50 kHz update event, so I set Timer 15 Precaler 0 and period 39. in that case While(1) loop never executes.

When I start timer 2 as:

HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_3);

HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_4);

My timer 1 misbehaves. What could be happening here?

    This topic has been closed for replies.