Edson; This line: #DEVICE ADC=10 Tells the compiler that I want to use the A/D value of 10 bits. It can be forced to use only 8-bits. I tried your code and it still doesn't work. I am going to look further into the hardware aspect of the A/D converter. But thank you so much for your help!!!!!!!! I appreciate it!! Thanks again!! Steve Steven Kosmerchock Radio Frequency Systems Phoenix, Arizona USA (WORK) www.rfsamericas.com www.geocities.com/researchtriangle/lab/6584 "Great spirits have always encountered violent oppposition from mediocre minds."--A.Einstein -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu