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
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!