OK, i see you have disabled the analog comparator, but not the ADCs
ADCON1=7
And... seems to miss some TIMER setting, like clock source, prescaller, Prescaller assignment.
AND, maybe i'm wrong but TIMER0 on this one is a 8 bit counter....
and have a closer look to those
Code:
MyCount.HighByte = TMR0H 'Get high byte of counter
MyCount.LowByte = TMR0L 'Get low byte of counter
maybe it's a copy/paste mistake too
Last edited by mister_e; - 29th April 2007 at 15:16.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks