cancel
Showing results for 
Search instead for 
Did you mean: 

Using low power with USB interface

Scott Dev
Senior

Hi

I am using the stm32L433 and installed the USB VCP library from CubeMX . I used the HAL as looked like a lot of code for doing it from scratch with registers. Anyway, I have a low power project running on batteries and the USB interface wont be used that often. I dont want to have the 48MHz runing all the time , but thought only when the user plugs in the cable have it running. If I stick the 5v signal input from the USB connecter through a voltage divider, and then to my processor I can detect when the user plugs in the cable. At this point I was thinking of switching on the 48MHz clock, and initialising the USB , and when the cable is not plugged in, have it switched off. Does any one see any issues with this?

Best Regards

Scott

0 REPLIES 0