User Activity

I want to use TIM1_CH1 to measure pulse width. TIM1 works under slave reset mode. The input trigger is TI1FP1. Ideally, TIM1 resets upon rising input, then TIM1_CH1 captures the falling edge. The CCR1 value would be the pulse width. The problem is th...
I use timer gated mode for a HC-SR04 ultrasonic sensor which needs microsecond delay. Is it possible to use the same timer as time base to get microseconds? if (HAL_TIM_Base_Start(&htim3) != HAL_OK) // time base for usDelay() Error_Handler(); if ...