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.

Compiler/TMS320F28377S: TMS320F28377S

Part Number: TMS320F28377S

Tool/software: TI C/C++ Compiler

Hi,

I cannot figure out why when I change  SpiaRegs.SPICCR.bit.SPICHAR from 0xF to 0x7 there is no data at SIMO pin when SpiaRegs.SPITXBUF =  0x3. I can see clock changes from 16 cycles to 8 but all 0’s on data line. I looked at the postings and found this one

https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/399601?tisearch=e2e-sitesearch&keymatch=spi%20char%20length%20f28

In the data manual for TMS320f28377s SPI settings do not mention anything like in the above post

Configure the SPI as desired:

• Select either master or slave mode (MASTER_SLAVE).

• Choose SPICLK polarity and phase (CLKPOLARITY and CLK_PHASE).

• Set the desired baud rate (SPIBRR).

• Enable high speed mode if desired (HS_MODE).

• Set the SPI character length (SPICHAR).

• Clear the SPI Flags (OVERRUN_FLAG, INT_FLAG).

• Enable SPISTE inversion (STEINV).

• Enable 3-wire mode (TRIWIRE).

• If using FIFO enhancements:

– Enable the FIFO enhancements (SPIFFENA).

– Clear the FIFO Flags (TXFFINTCLR, RXFFOVFCLR, and RXFFINTCLR).

– Release transmit and receive FIFO resets (TXFIFO and RXFIFORESET).

– Release SPI FIFO channels from reset (SPIRST).

Thanks a lot!