STM32F407 VBUS sensing 5-20V (fast charge)
Hello
I'm developing a self-powered device with "fast charge" feature, which assumes that USB VBUS pin can supply up to 20V. In this case, a simple voltage divider will not be able to provide an acceptable logic level within the range of 5–20 V. Additional voltage comparators, suppressors are not an option as I want to keep things simple.
What if calculate a simple resistor divider for 20V, pass the lowered voltage to ADC, measure it and set the state of a VBUS sensing pin programmatically?
