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.

TUSB3210: Using TUSB3210 with double buffering, Must I set the toggle bit?

Part Number: TUSB3210

Dear Mr./Mrs.,

I want to use TUSB3210 with double buffering of USB.

At "TUSB3210 usb firmware programming flow 8052",the toggle bit of the OEP seems to be automatically set (toggled) by UBM after ISR is returned. is that correct?

And then the UBM for OEP seems to receive next packet on new toggle bit indexed buffer only if the NAK bit of that buffer is cleared.

If the NAK bit of the next buffer (indexed by toggle bit) is still set, do the UBM search the other buffer with NAK bit cleared or wait for the NAK bit cleared?

By the way, in the IEP, the toggle bit seems to be set by software in interrupt service routine (ISR) after the CTX is cleared NAK. is that right?

Thanks

Cheolhyeon Cho

  • Hello,

    We are taking a look on this and we'll provide our comments shortly.

    Regards,
    Roberto
  • Hi Cheol-Hyeon Cho,

    I do not have clear your question, so I can explain to you how it works according to the data sheet and firmware programming flow 8052 documents :

    www.ti.com/.../tusb3210.pdf

    www.ti.com/.../sllu020a.pdf

    As it mentions on programming flow document, on usb transfers section (2-2), OEPCNFG_0 register contains two bits USBIE and UBME, the first is related to the 

    interruption or transaction completion (please check in datasheet document page 17) which indicates the transaction completion and UBME indicates if UBM can use 

    or not that endpoint.

    Please check that documentation and see if the information you need is there, otherwise, please let me know more details, like the registers/bits you are checking,

    so I can help you the better way.