2025-09-23 1:33 AM - last edited on 2025-09-23 2:04 AM by FBL
Hello Team,
Good Day !
Considering USB Specification , D+ line Pull-Up Should be high Once USB Connectors Plugs in , I Tried to Implement Following SCH to accomplish it.
3.3V Enabled through Transistor Q4 (MMBT2222ALT1G).
VBUS Signal Comes from Voltage Divider Network when USB Plugs in , See Below :
J14 is USB 2.0 Type B Connector.
Issue is When I plugged USB , Voltage Down to 2.5VDC from 2.8V @ L2 pin 4 ( i.e. D+ line). Ideally , It should be (3.3V- Vce ).
As per USB specs. It should be Minimum 2.8V on D+ pull up.
Device is : STM32F303
Regards,
Bhupendra
2025-09-23 2:23 AM
Hi @bsuthar
Use a PNP transistor as a high-side switch for the D+ pull-up resistor
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-09-23 10:33 PM
Thanks for Suggestion , FBL
I believe U5V = 5VDC from USB and VDD = 3.3V Correct ?
Is Circuit snap From Nucleo-F303RE board ?
Is It good Idea to use MOSFET ( P-Channel ) instead of Transistor ?
2025-09-24 2:24 AM
Hi @bsuthar
In such case, the existing NPN transistor solution is acceptable and simpler to implement.
It's snap from STM32303E-EVAL | Product
Here is the schematics
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-09-25 12:40 AM
Hello FBL,
Sorry , I could not get your comment " In such case, the existing NPN transistor solution is acceptable and simpler to implement."
Can you pls elaborate ?
2025-09-25 3:44 AM
Hi @bsuthar
NPN BJT is simpler drive (base resistor), since the current is low, the existing NPN as provided are sufficient. If heat dissipation are critical, you can provide proper gate drive voltage, a P-Channel MOSFET is often a better choice for high-side switching compared to BJTs.
According to your implementation, you didn't precisely mention R45 value.
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-09-25 11:04 PM - edited 2025-09-26 2:50 AM
Hello FBL,
R45 = 1.5K as per USB FS Specification on D+ line.
With Given Schematic in First Post , I tried Both , with NPN Transistor and N-Channel Mosfet.
I received Lower Voltage in case of MOSFET at Output of R45 ( i.e 2.4V ) as compared to Transistor.
In Both the case , Volatge on D+ line was Less than Required.
Moreoevr, your suggested eval board F303 schematic uses NPN as High side switch.
Regards,
Bhupendra
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.