Thank you, everyone who helped!
Added Darrel's code into my program and still had no luck. I then put adval straight on to the LCD to see what kind of value I was getting, Ended up being a 5 digit number. I recently learned that 1024 should be the highest possible value to be displayed. So back to the registers for A/D, sure enough I had it left justified, and adcon0 bit 7 set at Fosc/8 instead of FRC(bit6 & 7 = 11). Also when I posted my code,I had TRISA = %00000001, I needed %00001001. So many problems including my formula. Fixed all that, and put the A/D back through Darrel's code ..My LCD now displays 71degree's fahrenheit, and increases when I add heat. (Am very excited!)
Just wanted to thank everyone who replied. Came through great!
Almost ready to launch my weather balloon!
Have a good weekend,
James
Bookmarks