AnsweredAssumed Answered

How to initialize a DMA channel for a circular buffer?

Question asked by Dieter Falk on Aug 6, 2014
Latest reply on Sep 4, 2014 by Dieter Falk

I want to initialize a DMA channel to transfer input capture values (e.g. FTM2_CH0) to a circular destination buffer using the modulo feature. This DMA should run continuously. The buffer will be checked periodically (reading the DADDR register value to determine the current write pointer.

I am not clear about the initialization of the DOFF register and minor-/major loop operation register if I want to use the continuous running DMA with the modulo feature. Can you help me with an example code? Thank you.