I'd thought I knew how to use an NPN but my circuit does not work...
A momentary switch S1 is connected to a 3.7V battery. Pressing SW pulls U3 Enable high turning it on. A microcontroller is powered which latches U3 Enable high through D2.
When VUSB is applied I want to force U3 Enable low to turn the Microcontroller off (maximize charging current to battery). But applying 5v to VUSB does not drive U3 Enable low.
I put a LED in series between R3 and Q1 and that does turn off when VSUB is applied but U3 stays on....?
Any help greatly appreciated....
A momentary switch S1 is connected to a 3.7V battery. Pressing SW pulls U3 Enable high turning it on. A microcontroller is powered which latches U3 Enable high through D2.
When VUSB is applied I want to force U3 Enable low to turn the Microcontroller off (maximize charging current to battery). But applying 5v to VUSB does not drive U3 Enable low.
I put a LED in series between R3 and Q1 and that does turn off when VSUB is applied but U3 stays on....?
Any help greatly appreciated....