3 Replies Latest reply on May 8, 2018 9:42 PM by anks

    USBUART (CDC) PSOC5LP detecting USB disconnections (SELF POWERED - NO VBUS)

    user_57926609

      Hi to all,

      after reading forum and examples and after a couple of problems regarding USB drivers, now I am able to use USBUART (CDC) interface with PSoC5LP!

       

      It remains only a problem: manage the connection/disconnection of the USB cable.

       

      I read KBA210620:

      http://origin-www.cypress.com/knowledge-base-article/troubleshooting-psoc-3-psoc-4-l-series-and-psoc-5lp-usb-designs-kba210620

      This document suggest to monitor the VBUS line to detect the disconnection event.

       

      But, in my current design, I cannot monitor the VBUS line (SELF POWERED - NO VBUS).

       

      I did a bit of experiments but I was not lucky.

      There is someone that knows a solution to detect USB disconnection (USBUART - CDC) without monitoring the VBUS line?

       

       

      Thank you in advance to all ;-)

       

      PS: UBUART component datasheet v.3.20 does not define USBUART_GetConfiguration() API