How can I do to count motor steps with Input Capture Direct Mode with DMA?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 4:10 PM
I want to count the steps that the motor takes with DMA and when it reaches a certain number of steps, turn off the PWM timer. How do I read the incoming pulses?
Solved! Go to Solution.
- Labels:
-
STM32 Motor Control
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 4:45 PM
I would set up the timer in external clock mode and use the signal as the clock source.
I don't think DMA is needed here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 4:45 PM
I would set up the timer in external clock mode and use the signal as the clock source.
I don't think DMA is needed here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 6:49 PM
Ok TDK, i will try this configuration. Thanks you!!!
