Skip to content

USB-13 VBUS straight into a sense pin above its rating

Severity Status Implementation
error planned mid, depends on NET-7, CFG-2, RPT-6

Looks at. VBUS range (PD or not), divider ratio, pin rating.

What it catches. VBUS reaching an MCU or controller pin with no divider, or with a divider sized for 5 V on a port that can negotiate 9, 15 or 20 V.

Why it matters. Even a "5 V-tolerant" STM32 pin is only tolerant up to about VDD + 4 V while powered; with the MCU off, 5 V on it exceeds the absolute maximum. A PD sink's VBUS goes to 20 V (21.5 V in transitions) once a contract is made, and an overvoltage-protected switch upstream may only cut at 24 V. A divider that gives 3.6 V at 5 V gives 14 V at 20 V.

Example. AN4879's recommended divider for 5 V VBUS sensing (33 kΩ to VBUS, 82 kΩ to GND, ratio 0.71) copied onto a PD sink: 20 V gives 14.3 V on PA9. B153A's AN1 measures the receptacle VBUS through 10 kΩ / 1.62 kΩ (÷7.17): 2.8 V at 20 V, and still 3.35 V at the 24 V OVP threshold of its VBUS switch, right at the analog limit (ANA-20).

How to check. Nets from VBUS to IC pins through resistors: compute the ratio (RPT-6), take the highest VBUS from the project or from a PD controller on the port, compare with the pin's rating with the part unpowered.

Fix. A divider sized for the highest VBUS plus margin, with a series resistor large enough to limit the clamp current with the MCU off; or a comparator or protector with a VBUS-rated input.

References. AN4879 §2.6 (PA9 at most VDD + 4 V, divider mandatory), §2.6.1 (33 kΩ/82 kΩ for VDD 3.0-3.6 V); TPD6S300A §8.3.1 (20 V PD VBUS up to 21.5 V in transitions); AN5225 §3.1 (VBUS power options, 5-20 V).