Skip to main content
SRivi.1
Associate II
September 1, 2020
Solved

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

  • September 1, 2020
  • 2 replies
  • 819 views

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.
Best answer by TDK

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.

2 replies

TDK
TDKBest answer
September 1, 2020

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
September 2, 2020

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