EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: Dajgoro on June 15, 2021, 11:05:43 am

Title: PIC18F57K42 SPI DMA
Post by: Dajgoro on June 15, 2021, 11:05:43 am

I'm trying to trigger a DMA transfer in a interrupt to transfer a memory block to the SPI port.
I don't need to read anything back just transmit periodically.
I spent quite some time fiddling with it both by hand and using MCC settings but nothing.
I think the issues might be related to the fact that the SPI has to be read in order to transmit.
So how do I setup DMA to do this?
I even found a tutorial that basically does the exact thing I'm trying, but after copying all the settings still no luck.
What could I be doing wrong/forgetting?