> A circuit to emulate the Li-ion battery is very complicated and is costly. Did you see my suggestion? C1 1 x capacitor to ground. C2 Smaller capacitor via resistor R1 to ground. Charge C1 to say 2V (switch to 2V supply). Connect C1 + C2 to device under test. C1 V is < Vmin so is charged at 0.1C until it reaches Vmin when charge rate increases to C. C2 is charging via R1. C1 reaches Vmax and charger switches to CV mode. C1 draws no current as it is at Vmax. C2 charges via R1 and current decreases as V_C2 approaches Vmax. At some limit set by the charger the charging terminates. By choosing suitable values of C1, C2 and R1 the whole simulation is doable with a switch or two added. Using batteries works - but arguably less well, as they change state with time and the transition from CCC to CV is not easily handled - the charger IC may terminate charge as you attempt to swap them over AND CV termination is not easily tested. regards =A0 =A0 =A0 =A0 =A0 =A0 Russell McMahon -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist