Tool/software: Code Composer Studio
Hello,
I'm using the following code to send an SPI message:
char Msg[5]={1,2,3,4,5};
char *p = Msg;
// // Configure the SSI. // ROM_SSIConfigSetExpClk(SSI2_BASE, SysCtlClockGet(), SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 1000000, 8); // // Enable the SSI module. // SSIEnable(SSI2_BASE); for (i=0;i<Size;i++) { SSIDataPut(SSI2_BASE, *p); while(SSIBusy(SSI2_BASE)){}; p++; }
I'm trying to send 5 bytes.
But according to a scope connected to the chip select(CS) line, the CS is going to '0' after each byte.
It should go down before the first byte and after last byte.
Can you please help ?
Thank you,
Zvika