STM32 encoder mode history
no vote
Each timer of STM32 has a quadrature encoder input interface, Ti1, Ti2fp1 is generated by Ti2 input filtering and edge detection. Ti2fp2 is connected to the encoder module. By configuring the working mode of the encoder, the forward / reverse counting can be performed on the encoder. The encoder uses a and B two-phase signals, but I only need to count Ti1 signal (the first line). I just found this error. Originally, I counted both signals, causing the code disk to turn to one More than 100 pulses (100 line photoelectric encoder) are obtained. Through the STM32 encoder module, we can easily calculate the operation of the encoder by comparing the two level signals