Introduction - If you have any usage issues, please Google them yourself
Stm32 encoder mode and interrupt configuration, you can use stm32 to read the quadrature encoder. CNT register no 10000 on behalf of a circle, each lap to produce an interrupt, you can read in real time to read the CNT value, and the total number of turns