I am using GPIO pins to control the switch. If OE of the 74LVC1G126 line driver is enabled, I like to switch the VBUS on by setting A to low and VBUS off by setting A to high.
The DMG2305UX is a P-Channel Enhancement MOSFET. Gate Threshold Voltage is -0.5 min and -0.9 max.
When Source Voltage (VCC) is 5.09V, Gate Voltage is 5.08V, I would expect there is no voltage on VBUS unless I enable the line driver and set A to low. But there is voltage around 4.43V on the VBUS when OE is disabled.
74LVC1G126 Function Table:
I come from a programming background and do not have much experience with electronics.
Am I designing the circuit correctly?