Other Parts Discussed in Thread: CC2540, CC2541
Hi :)
I have the CC2540 which is SPI master. But how do I read data from a SPI slave?
It seems like when I have to receive a byte I have to write a dummy-byte to MOSI. This powers SCLK and allows the SPI slave to write a byte to MISO in parallel.
Is this the only way to power SCLK and receive data from SPI slave?
And what if I intend to use DMA? Should I then on some trigger condition begin to write X dummy bytes using one DMA channel and then receive X bytes using another DMA channel? Or can DMA somehow power SCLK for reading X number of bytes?
(Yes, I am new to SPI ;)
Thanks :)