Other Parts Discussed in Thread: C2000WARE
Hi,
Normally with SPI when we want to receive data we simply send "empty bytes" and for each sent "dummy byte" we receive a byte.
My question is : Using DMA, can we program DMA to "send dummy bytes" in order to receive "meaningful bytes" without the CPU being involved?
More precisely : I want to "talk" to a chip (that obviously support SPI). This chip is the slave and has the usual SPI interface (miso,mosi, cs, sck).
However, the slave chip (the C2000 being the master) has an extra PIN which is the INT pin, which can be used to signal to master (C2000 device) that the slave is ready to send bytes.
So my question is : can we configure DMA to send "dummy bytes" when a PIN/GPIO (here, this GPIO/PIN would be connected to the INT PIN of the slave chip) goes from HIGH to LOW, so that DMA can receive the bytes the slave wants to send. And all this, without generating interrupts nor having the need to have CPU code.
P.S. I'm using driverlib.
Thanks!!