Encoder Mode Counter value is missing in every revolution?
Hi, I am using STM32F407 for my PMSM vector control project. And i need to determine the current position of motor for vector control. So I use TIM3 Encoder MODE (x4) and ı have 360 PPR (pulse per revolution) encoder. I set the ARR value 1439 (4*360-1). Encoder Mode : TI1 and TI2. Input filter 15 for both input. I didnt change anything but these. Finally i read the Tim3 CNT register value every 100us. (Encoder_val = htim3.instance->CNT).
For example I determine a position on encoder and watch the Encoder_val variable in debug mode. Suppose the value is 50. Then I turn the encoder one revolution and in the same position new Encoder_val value is 47. It is missing every single turn for both direction (2 or 3 count).
Has anyone encountered this problem before? What am I doing wrong? will be happy if you help. Thank you.
