Skip to main content
Visitor II
May 16, 2020
Question

VBUS sensing Dedicate ping, "USB FS upstream port in self-powered applications"

  • May 16, 2020
  • 2 replies
  • 1146 views

Hi have the use a USB aplication with STM32L151CBT6ATR, but this uC have not a dedicated pin for VBUS sensing, how is the way to resolve that situation ?

I readed AN4879 and usb_20.pdf specification and not are cleare for me.

Much apreciate any solution

    This topic has been closed for replies.

    2 replies

    Super User
    May 16, 2020

    You can use any GPIO pin and ensure the voltage is sufficient before enabling USB, and trigger an interrupt when the voltage drops below a given amount to disable USB.

    FMaro.1Author
    Visitor II
    May 16, 2020

    An this solution have a direct support for USB FS library code generated for STM32CubeMX ?

    Super User
    May 16, 2020

    Not sure, probably not.

    FMaro.1Author
    Visitor II
    May 16, 2020

    Thanks you for your answer