Andre Abelian wrote: > using ADC is one way of doing it but PIC has LVD hardware "low voltage > device" you can use that it is made for this purpose. I haven't heard of that. What PICs have this? What does it do? You're not thinking of the low voltage brownout detect are you? Or the "reference voltage" module that comes with some comparators? The latter won't help at all since the reference is in fractions of Vdd, not an absolute value. Some PICs do have a bandgap reference which could be useable, although its voltage is low and therefore the correction will have low resolution. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist