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.

TMS570LS1224: Hercules™ safety microcontrollers forum

Part Number: TMS570LS1224

I have data 0x08.

i want to transmit one byte of data through spi transmit function.

spiTransmitData(spiBASE_t *spi, spiDAT1_t *dataconfig_t, uint32 blocksize, uint16 * srcbuff);

i have changed uint16 to uint8.

spiTransmitData(spiBASE_t *spi, spiDAT1_t *dataconfig_t, uint32 blocksize, uint8 * srcbuff);

is it correct way to transmit if it is wrong please suggest me how to send ?

  • Hello Gautam,

    Yes, it is correct. 

    CHARLEN[4:0] specifies the number of bits (2 to 16) in the data word. The CHARLEN[4:0] value directs the state control logic to count the number of bits received or transmitted to determine when a complete word is transferred.


    Data word length must be programmed to the same length for both the master and the slave.