2016-10-06 01:20 PM
2016-10-06 02:49 PM
Ok I just figured it out. I need to check for completion using HAL_TIM_IC_GetState().. function:
/* USER CODE BEGIN 2 */
HAL_TIM_IC_Start_DMA(&htim3, TIM_CHANNEL_3, risingEdges, 5);
while
(HAL_TIM_IC_GetState(&htim3) == HAL_TIM_STATE_BUSY);
HAL_TIM_IC_Start_DMA(&htim3, TIM_CHANNEL_4, fallingEdges, 5);
while
(HAL_TIM_IC_GetState(&htim3) == HAL_TIM_STATE_BUSY);
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1);
/* USER CODE END 2 */
Now terminal output shows:
40,77,112,149,184,221,256,293,328,365,0,0,0,0,0,0,0,0,0,0,
which is alternating positive and negative edge captures as I intended :)
2016-10-10 03:55 AM
Hi stewart.mikael,
I see that you find out the missed routine. Thank you for sharing you knowledge for the good of other users.-Hannibal-