2019-06-12 09:21 AM
I am using STM32F103C8T6 MCU. I have Rotary Encoder having 5000 Pulse Per Revolution.
I want to count Encoder Pulses and uses only one output from encoder channel A.
I also want interrupt after particular number of pulses for example after 17000 pulses I want interrupt.
I am currently doing by using Rising Edge External interrupt method but not getting proper result.
Now, I want to do it using timer encoder mode but doesn't know how to do it.
So I need example or steps for it.
2019-06-13 06:27 AM
You should use a 2 channel timer in encoder mode. Sample the counter often enough. Generate some signal based on these samples.
2019-06-14 09:55 AM
Any example code??
2019-06-14 10:05 AM
AN4013?