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.

TMS570LC4357: What is the difference between SPI Chip Select and SPI Pin Select?

Part Number: TMS570LC4357

What is the difference between SPI chip select and SPI Pin select?

Also, we were trying to send three 8-bit data from the TMS570LC43x board to a daughter Board. The requirements are that the CS should be low throughout this operation. We are writing a value to a specific register and after that reading the same value from that register. There is transmit operation which takes uses 3 spiTransmit() API. Also in another function, there are 2 spiTransmit() API followed by a spiReceive() API. The code for the same is given below.

Transmit operation:
dataconfig1_t.CS_HOLD = TRUE;
dataconfig1_t.WDEL = FALSE;
dataconfig1_t.DFSEL = SPI_FMT_0;
dataconfig1_t.CSNR = SPI_CS_0;

dataconfig1_f.CS_HOLD = FALSE;
dataconfig1_f.WDEL = FALSE;
dataconfig1_f.DFSEL = SPI_FMT_0;
dataconfig1_f.CSNR = SPI_CS_0;

ack= spiTransmitData((spiBASE_t *)spiREG1,(spiDAT1_t *)&dataconfig1_t,1,(uint16 *)&op1);
ack1=spiTransmitData((spiBASE_t *)spiREG1,(spiDAT1_t *)&dataconfig1_t,1,(uint16 *)&op2);
spiTransmitData((spiBASE_t *)spiREG1,(spiDAT1_t *)&dataconfig1_f,1,(uint16 *)&value);


Receive Operation:
dataconfig1_t.CS_HOLD = TRUE;
dataconfig1_t.WDEL = FALSE;
dataconfig1_t.DFSEL = SPI_FMT_0;
dataconfig1_t.CSNR = SPI_CS_0;

dataconfig1_f.CS_HOLD = FALSE;
dataconfig1_f.WDEL = FALSE;
dataconfig1_f.DFSEL = SPI_FMT_0;
dataconfig1_f.CSNR = SPI_CS_0; 

flag1=spiTransmitData((spiBASE_t *)spiREG1,(spiDAT1_t *)&dataconfig1_t,1,(uint16 *)&opcode1);
flag2=spiTransmitData((spiBASE_t *)spiREG1,(spiDAT1_t *)&dataconfig1_t,1,(uint16 *)&opcode2);
flag3=spiReceiveData((spiBASE_t *)spiREG1,(spiDAT1_t *)&dataconfig1_f,1,(uint16 *)&received_data);

The value which we are sending is 0x31 but what we are getting is 00. Can anyone help explain this?
Thanks in advance!