I have some questions regarding the SPI
I have an application where we run a SPI at 8Mhz, MCLK is 16Mhz. Compiler is CCS.
Now I want to send data and receive back to back to back, but it seems to be a problem. I have no interrupts running.
I have the following code:
while( pu8TxData != pu8End )
if( ( *pu16Stat & UCTXIFG ) > 0U )
*pu16TxData = *pu8TxData++;
if( ( *pu16Stat & UCRXIFG ) > 0U )
*pu8RxData++ = (uint8_t)*pu16RxData;
All pointers are setup in advance.
Different compiler uptimizations have a huge effect, and the best is not even the highest setting for speed?
Is it not possible to send and receive data at 8Mhz? Or are there some details I am unaware of?