This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/SW-EK-TM4C1294XL: SPI without CS results in bitshift

Part Number: SW-EK-TM4C1294XL


Tool/software: TI-RTOS

Hi,

I continued playing around with your launchpad and your SPI loopback example. I modified it a bit by disconecting the CS line. The reason for this is a sensor that does acts a master and does not provide a CS line. Furthermore I pulled the PIN up and removed the handling out of the SPI configuration:

    GPIOTiva_PQ_1 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_NONE

    SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI3);

    GPIOPinConfigure(GPIO_PQ0_SSI3CLK);
//    GPIOPinConfigure(GPIO_PQ1_SSI3FSS);
    GPIOPinConfigure(GPIO_PQ2_SSI3XDAT0);
    GPIOPinConfigure(GPIO_PQ3_SSI3XDAT1);

    GPIOPinTypeSSI(GPIO_PORTQ_BASE,
                   GPIO_PIN_0
//                   | GPIO_PIN_1
                   | GPIO_PIN_2
                   | GPIO_PIN_3);

As a result it works - at first glance. Sending the bytes 0xFF 0x00 results in receiving "bitshifted" messages over time. First I got a 0x7F 0x80 and finally a 0x00 0xFF. It seems that the application cannot detect the start of the frame properly. Is this an issue of setting up the SPI without CS?