Other Parts Discussed in Thread: C2000WARE
Hello all,
I have periodic interrupt in my code which needs to read the angle provided by the encoder through the SPI input pin. However, I want to do this via DMA access to the SPI registers. I want the data to be inputted from the SPI pin and continually be transferred through DMA regardless of my periodic interrupt. Then, each time I prefer inside the interrupt, the code gets access to the latest data (angle) that has been transferred through DMA.
Would someone please let me know what configuration I should use for DMA? e.g., Should I enable the DMA interrupt? Should I use the continuous mode?
Regards.