2025-10-14 3:48 PM - last edited on 2025-10-17 3:34 AM by mƎALLEm
Hi,
2025-10-17 3:32 AM
Hi @MFawzy
Your current resistor divider (33 kΩ and 82 kΩ) scales 5 V VBUS down to approximately 1.435 V on PA9, which is within safe input voltage limits. However, checking the STM32H753XI, PA9 is already 5V tolerant. So in this case, no need to add resistor divider;
However, the key risk in self-powered systems is the possibility of back-powering the MCU through the input protection diodes on PA9 when the MCU VDD is unpowered.
You can refer to MB1364 to check PA9 configuration.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-10-19 7:02 PM - edited 2025-10-19 7:06 PM
Actually, I added the potential divider not because PA9 isn’t 5V tolerant, but because AN4879 recommends it to protect the MCU in cases where PA9 is powered while the MCU itself is not. Please advise.
2025-10-21 3:41 AM - edited 2025-10-21 3:41 AM
Hello @MFawzy.
You must ensure the MCU is never unpowered while VBUS is connected if you want to avoid the voltage divider, which is difficult to guarantee.
So your approach is correct. Using the voltage divider approach is a efficient way to protect the MCU. However, the dedicated VBUS sensing hardware (OTG_GCCFG.VBDEN) in the STM32 USB peripheral should be disabled because the pin is no longer directly sensing VBUS but a scaled voltage.
You can refer to section 2.6.1 Simple resistor divider in AN4879.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-10-22 9:01 AM - edited 2025-10-22 9:06 AM
I found that it might be more effective to use a load switch instead of a resistor divider for the following reasons:
It allows the MCU to use the VBUS sensing feature
Provides a true and complete disconnect when the ENABLE pin is low
Offers True Reverse-Current Blocking (TRCB)
Includes Thermal Shutdown Protection
Provides Integrated ESD Protection
Could you please review the attached updated schematic and confirm if this approach is acceptable?
Thanks,
2025-10-24 2:31 AM
Hi @MFawzy
Using the AP22913W6-7 load switch, can indeed offer a more reliable solution for VBUS sensing. However, thorough testing and validation are essential to ensure proper operation.
As a moderation note: ST provides reference designs and evaluation boards that implement recommended VBUS sensing circuits. Due to the vast variety of use cases and external components, ST support does not review or validate every custom schematic or third-party component integration. It is the developer’s responsibility to design, review, and thoroughly test their implementation to ensure it meets USB specifications and MCU electrical limits.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.