There's something obvious that just jump to my face. You're using the default LCD assignment, and this use a.0, a.1... which is also your adc channels.
so unless you forgot something in your copy/paste, or i totally misunderstood something
EDIT: one more... Assuming you're using the internal OSC, you want to configure it properly... unless the whole beast will run @32KHz
OSCCON = %01100000 ' 4MHz
Don't forget to check your maths range... sure it will overflow the max 100 soon.
Last edited by mister_e; - 25th March 2008 at 17:15.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks