I am working on a hardware design that is meant to run off of an internal 5V battery or via USB power, and also to have the battery be rechargeable via USB. I have been looking at battery recharge circuits like those found here: http://www.ti.com/lit/an/snva557/snva557.pdf
I was wondering how the design of the recharge circuit is affected by the battery being part of the device, and how I might go about powering the device and charging the battery simultaneously.
Right now I have the battery taken out of the circuit via a relay when external power is connected to prevent the device from receiving power from both sources, but this obviously needs to be modified for the battery to recharge.