Rotary Encoder using STM32F103C8T6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-12 9: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.
- Labels:
-
STM32F1 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-13 6:27 AM
You should use a 2 channel timer in encoder mode. Sample the counter often enough. Generate some signal based on these samples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-14 9:55 AM
Any example code??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-14 10:05 AM
AN4013?
