So I think it was that pesky ADC register. Gets me every time. I needed to have ADCON0 = 0 in there.
Now another problem. This pic seems to reset when it wakes from as opposed to carrying on where it left off. Does this mean I lose all my RAM variable values? Is it possible to save and restore the counter to continue a program after sleep? Surely someone has worked with these...
Bookmarks