Introduction - If you have any usage issues, please Google them yourself
STM32 Read Encoder (EC11), external interrupt mode to recognizes positive and negative rotation, response speed is excellent, no step loss, no delay use. The programme runs properly in strong interference environment. Notice that the code is used for common type of encoder in instrument panel and the encoder is not the type used for motor's speed measurement.