ADC might be your solution. A few days ago a battery voltage monitor was discussed. http://www.picbasic.co.uk/forum/showthread.php?t=6744

Look it over and see if you what you think. If I am on the wrong track let me know.