Skip to main content
SRivi.1
Associate II
Sep 1, 2020 11:10 PM UTC
Solved

How can I do to count motor steps with Input Capture Direct Mode with DMA?

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?

This topic has been closed for replies.
TDK
TDKBest answer
Sep 1, 2020 11:45 PM UTC

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."

2 replies

TDK
TDKBest answer
Sep 1, 2020 11:45 PM UTC

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SRivi.1
SRivi.1Author
Associate II
Sep 2, 2020 1:49 AM UTC

Ok TDK, i will try this configuration. Thanks you!!!