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.

How to clear SPI TX shift register?

Hi.

I'm using C6747 DSP and I have a question about SPI.

Can anyone tell me a way to clear only TX shift register explicitly?

I guess that the shift register is cleared by setting SPIGCR1.ENABLE bit to 0.

Is there any other way to clear only TX Shift register?

Regards.

Shintaro

  • Shintaro,

    You are right .SPI Transmit Shift register is cleared by setting SPIGCR1.ENABLE bit to 0. I don`t think there is any other option to simply clear the shift register.

    Can you provide details on why you wish to clear the shift register. The previous data is automatically replaced by the new data when you write to TXBUF.or SPIDAT register so there is no need to clear the shift register in middle of a SPI communication.

    Regards,

    Rahul