I have no clue why the elapsed timer worked once before I went to bed. I get up today, and I can't get it to repeat the same results.


Quote Originally Posted by richard View Post
... a 16f18877 like all enhanced core pic16's has Auto context save the entire int_start / int_return macros are inappropriate...
I didn't comprehend the depth of this statement, until now. I thought I was just forced to accept using Timer1 in the routines, and adapt my main code to use other timers.


Quote Originally Posted by amgen View Post
I would start off with interrupt and in routine just add to a counter. ..
As they say, this is the way. I already have Timer1 running in 50ms intervals, I can easily repeat the same process with Timer3 and maintain a counter (I'm only after 100-200ms intervals anyways, this is just to avoid checking ADC every MainLoop).


I really thought Elapsed Timer could work with the 16F18877. I didn't understand that the assembler code just doesn't work with the newer PICs.


(Hopefully I haven't misunderstood anything this time )