cancel
Showing results for 
Search instead for 
Did you mean: 

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

FMaro.1
Associate II

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

4 REPLIES 4
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".

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

TDK
Guru

Not sure, probably not.

If you feel a post has answered your question, please click "Accept as Solution".

Thanks you for your answer