Andre Abelian wrote: > I use 18F2520, 18F4520 . PIC has internally generated voltage reference > 1.2v and > has LVDIF. You can choose different voltage to cause interrupt I use > this to detect low battery. I hadn't noticed this module before. It does look useful for finding that the battery voltage is getting low. While it can give you some information on the Vdd voltage, it's not very accurate since you can only find out whether it's above or below 15 preset thresholds. That's not much use in correcting a 10 bit A/D reading to the current supply voltage, which is what the original question was about. ****************************************************************** 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