Author Topic: PIC18F57K42 SPI DMA  (Read 235 times)

0 Members and 1 Guest are viewing this topic.

Offline Dajgoro

  • Frequent Contributor
  • **
  • Posts: 310
  • Country: hr
    • hackaday.io
PIC18F57K42 SPI DMA
« on: June 15, 2021, 11:05:43 am »
Hello

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?

https://catcatcat.d-lan.dp.ua/mcc-k42-nastrojka-modulya-dma/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf