AnsweredAssumed Answered

PWM input using InputCapture - Stm32Cube

Question asked by armoun.mohamad on Oct 29, 2016
Latest reply on Nov 1, 2016 by armoun.mohamad
Hi everybody
I need to get PWM input value using input capture .
I set Input Capture in Both Edge mode and I'm getting the HAL_TIM_IC_CaptureCallback very well . but for calculating the PWM duty cycle I need to know if Callback is for Rising Edge or Falling.
How can we do it in HAL library?

I have to mention I don't have enough time channels to use 2 channel (one for rising and one for falling) per each PWM input  , so I suppose the other options are using one IC per channel or using EXTI ,

any help would be appreciated
Thanks in advance 
MA.

Outcomes