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.

Why USB2.0 TxCSR.bit0 can't clear?

chip6748. take a look code below:

"while(TxCSR.bit0) { TxCsr |= 1<<3;}  //bit3 is flush FIFO bit."

why I can't clear bit0 of TxCsr?

 

If TxCSR is not cleared, 

when next In-token is coming, the peripheral will return a ZERO-Frame to host, which is a wrong response.

can you help me?