Page 1 of 1

Using hardware timer encoder mode?

Posted: Wed Feb 22, 2023 5:30 pm
by k4kfh
I'm trying to use a Nucleo L432KC board with a quadrature encoder, and I want to use the dedicated hardware timers to decode the encoder pulses.

I've got some experience with Arduino and Teensy, but this will be my first STM32 project, and I'm a little confused as to how all the stm32duino/stm32cube/other HAL stuff fits together. Can somebody point me in the right direction as to the simplest way to utilize the encoder mode on hardware timer TIM2?

Thanks!