I'm about building an Li-Ion charge circuit for my camera since the orignal one is lost.
The charger IC is the BQ24200 (TI) with a tri-state status output pin.
When the battery is being charged that pin has high state (VDD-1.5V), when charging terminates it goes low (0.5V) and on any fault condition it goes to high-z state.
I intend to indicate all three states using LEDs.
Attached is a schematic (high, low and high-z) with all three LEDs lit according to the status output of the chip.
Is there any more elegant way than using a window comparator for this?
A resistor + LED to gnd will indicate charging, same to Vdd will indicate charged. A PNP + NPN biased at 1/2 Vdd with an LED between collectors will indicate floating. See attached.
nothing to be worried about. I did exactly what you suggested: Have the output pulled on 1/2VDD and use a window comparator. It works fine in the simulation, but a few chips too much.
A resistor + LED to gnd will indicate charging, same to Vdd will indicate charged. A PNP + NPN biased at 1/2 Vdd with an LED between collectors will indicate floating. See attached.