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.

TMS320F280025C: SPI shift register empty or not??? My code wants to know...

Part Number: TMS320F280025C

Tool/software:

Using the SPI. h and spi.c files. I have several SPI devices on the bus so I have to enable them one at a time. I set a GPIO bit low for the corresponding chip then send 3 bytes of data in FOFO mode. After the last byte, I call the "SPIbusy" routine which says it will return true if tthere is any data in the FOF OR any data in the SPI shift register. However, it returns false after the last byt has been moved from the SPI buffer to the SPI shift register. This, naturally, causes the chip to be "deselected" and it never gets it's entire message.

What bit can I look at to ensure that the shift register is empty?

David