Part Number: CC2340R5
Other Parts Discussed in Thread: CC2541
Tool/software:
Having a minor issue with the SPI module on the CC2340R5.
Basically I gave up with the TI Drivers as they were running way too slow for our application, 82+ us between transactions.
However, in the SPI info within the Technical Reference manual, SWCU193, the SPI includes a status Register (STA), within this register there
is a TXDONE bit.
Ideally I need to poll on this bit to ensure the SHIFT out on the bus has completed, but I can never see this set, even through the IAR debugger. I can the 8 bits of data
have gone on out on the bus.
Anyone happen to know whether this bit is actually implemented fully and works okay? I can poll the BUSY bit okay, but that that doesn't ensure the SHIFT register has emptied.
Here the very simple code (after setup). Probably missing something really silly here. Have also made status a volatile.
HWREG( SPI0_BASE + SPI_O_TXDATA ) = txdata ;
do
{
status = HWREG( SPI0_BASE + SPI_O_STA ) ;
} while( ! (status & SPI_STA_TXDONE_TX_DONE) );

