AnsweredAssumed Answered

How to send SPI data on register level

Question asked by Remco Hardeveld on Jan 31, 2017
Latest reply on Feb 17, 2017 by clement platon

Hi all,


I'm trying to get data transferred over SPI in linux and I want to try if I can acces it faster with the aid of mmap. I have set all the required register for the SPI to operate. With the following code I try to send data:

   spi_pointer[0][0x01] = 0xAA; //set data
   spi_pointer[0][0x02] |= 0x4; //set xch bit to start burst transfer
   while(((spi_pointer[0][0x02]>>2) & 1) == 1); //wait until burst is finished


Only when I try to measure the CLK with an oscilloscope, I don't get any signal at all. Also when looking in the status register it seems that there is no data in the TXFIFO register. Is there something that i'm missing?


Kind regards,