Peripheral to peripheral DMA.
Hi all,
I'm triybg to send data to a TFT from an external flash memory.
I read than it is possible to comunicate 2 SPI peripherals trough DMA.
I dont understand all the thing yet. Please can someone answer this:
Lets say Flash is in SPI1 and TFT in SPI2
1.-Set a DMA_CMAR with the SPI1_DR.
2.-Set a DMA_CPAR with the SPI2_DR.
3.-Set DMA_CCR PINC & MINC to 0 (disable increment)
4.-Set DMA_CCR MEM2MEM to enable??
5.-Set DMA_CCR EN
Then you send 1 dummy byte to SPI1, and the receiving byte, from SPI1_RX starts the DMA and "resend" to the SPI2_TX. I'm right?