I need to disconnect the rest of the circuit when battery is charging for safety reasons. I use a LiPo battery which it's charged with an IC that is powered by 5V DC thought a micro USB connector.
This is the original circuit.
SW1 is a slider switch to power on/off the device.
My goal is disable U3 when USB voltage is present (VUSB).
After reading and searching I've chosen the load switch TPS22910A for my purpose. TPS22910A is active low.
I've thought these two options.
Being SW1 in 3 position, if VUSB is 5V, then TPS22910A VOUT will be 0 V (active low), so VIN of U3 will be 0 V and my device will be powered off.
Being SW1 in 3 position, if VUSB is floating (cable disconnected), R1 will forced TPS22910A ON pin to be GND and then, VOUT will be VBAT and U3 will be powered on.
This option is basically the same as Option A by instead of controlling VIN, EN is controlled.
I think Option B is better. What do you think? If you think there are better options than using TPTPS22910A, please say them to me; I'm a bit lost in these matters.
Thank you so much!