Resolved! Timer 2 capture mode for period measurement - STM32F407
Posted on February 16, 2017 at 20:44// Configure timer 2 RCC_APB1ENR.TIM2EN = 1; TIM2_CR1.CEN = 0; TIM2_CR2.TI1S = 0; TIM2_PSC = ENCODER_TIM_PSC; TIM2_ARR = ENCODER_TIM_RELOAD; TIM2_CR1 |= 0x10;// Configure input capture TIM2_CC...