The circuit is charging the battery with Vcharge and VCharge also power up the circuit operation. Battery will serve to power the circuit when main power supply VCharge cut off.
A switch is added to connect battery to the circuit with led indicator.
simulate this circuit – Schematic created using CircuitLab
The led is act as indicator to show the battery is connected to the circuit. It is operated as expected when the switch is turned on without Vcharge. However, when VCharge is applied , then the led will also light on regardless of the switch turn on or not where it is needed to charge the battery.
Is there any method to make the led light on only when the switch is turn on even when VCharge is applied?