AnsweredAssumed Answered

SPI chip select offset

Question asked by Rahul Udasi on Oct 7, 2014
Latest reply on Oct 15, 2014 by Radek Sestak

I have spi cs 3 enabled using the following code,


spifd = fopen ("spi0:8", NULL);

   if (NULL == spifd) {

      printf ("Error SPI_0:8\n");

   return FALSE;



I then write 0xAA followed by 0x0F,


07-10-2014 6-23-24 PM.png


As can be seen in the image above the data is being read properly by my logic analyzer on the rising edge of the clock but the chip select goes low after the data has been read. If I write more data it just shifts the chip select further to the right. Not sure why this is happening, I have also tried cs 2 with the same result.