Hi Wang
I found that you have asked here, I know that you already sold the problem, but I want to document it, so here is my answer
The ACK is handled by SIE of USB and it does not need the intervention of firmware.
Bit TOKDNEF in Interrupt Status Register(INTSTAT) will be set when the current transaction is completed.
And an interrupt is generated if TOKDNE is set. Then the firmware can read the STAT register to determine the endpoint and BD information.
Have a great day,
Vicente
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Wang
I found that you have asked here, I know that you already sold the problem, but I want to document it, so here is my answer
The ACK is handled by SIE of USB and it does not need the intervention of firmware.
Bit TOKDNEF in Interrupt Status Register(INTSTAT) will be set when the current transaction is completed.
And an interrupt is generated if TOKDNE is set. Then the firmware can read the STAT register to determine the endpoint and BD information.
Have a great day,
Vicente
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Vicente,
Thank you . According to the document, It's not a problem for me.
bye