1
I’m using two AP2301B MOSFETs in a back-to-back config to switch between battery (BATT+) and USB 5V. The gate is controlled via a 100k pull-up and 100k to GND.
Attached: Oscilloscope capture

Schematic

Issue: When battery voltage is around 3.7V, I see a voltage dip (~2.2V drop) on VCC during switching. This resets my MCU. But when battery voltage is above 4V, the dip is gone or negligible.
Questions:
Why does the drop only happen at lower battery voltages?
Is it due to MOSFET body diode or slow gate transition?
How can I make switching smoother and prevent MCU reset?
I’m using two AP2301B MOSFETs in a back-to-back config to switch between battery (BATT+) and USB 5V. The gate is controlled via a 100k pull-up and 100k to GND.
Attached: Oscilloscope capture

Schematic

Issue: When battery voltage is around 3.7V, I see a voltage dip (~2.2V drop) on VCC during switching. This resets my MCU. But when battery voltage is above 4V, the dip is gone or negligible.
Questions:
Why does the drop only happen at lower battery voltages?
Is it due to MOSFET body diode or slow gate transition?
How can I make switching smoother and prevent MCU reset?