The archives and microchip lists intelligent battery chargers. I need = something simple and dont want to re envent the wheel, blah, blah... The truth is that I know to little about batteries to even try at this = stage.=20 Can someone help me with a schematic and code to charge a 12Volt buckup = battery? The buckup battery is for a system that must generate SMS mesages via a = GSM module even in the event of a power failure. The PIC must also generate a message when the battery needs replacement. I am using a 16F628 but can go to other PIC if A/D is essential.=20 I see that the smart chargers measures the charge current, battery = temperature etc., but I dont know if the comparrators might be enough. = Start the charge whenm the battery ia below a certain voltage(?) and to = stop the charge when the battery reaches a certain voltage(?) I also dont know if it is best to run the system from the battery = constantly or if I must switch to battery in the case of a power failure Thanks Francois Robbertze -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist