AnsweredAssumed Answered

Multiple channels input capture at the same time

Question asked by Natan Stec on May 25, 2018
Latest reply on Jun 11, 2018 by John Craven

Hello, I'd like to know if there is possibility to use all input capture channels at the same time?

 

For starting timer i use function wich enable only 1 channel:

HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_1, &restWave[0], 1);

 

I'd like to use something like this (but obviously it doesn't work)

HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_ALL, restWave, 4);

 

And it doesn't work as well:

HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_1, &restWave[0], 1);

HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_2, &restWave[1], 1);

HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_3, &restWave[2], 1);

HAL_TIM_IC_Start_DMA(&htim1, TIM_CHANNEL_4, &restWave[3], 1);

 

Outcomes