Erratic timer operation
Posted: Mon Jan 15, 2018 11:32 am
Hello all
I am having a problem with the timers on a PIC16F18854 in that there is an irregular behavior in the servicing of the associated ISR. This manifests as the ISR running sometimes as normal, sometimes as irregular and sometimes as not running at all. When it does run, the ISR is at the correct point in time, if this makes sense.
This is demonstrated in the ISR as output B2 and in the main loop as output B0.
I have associated this variable behavior as being a function of some minor things being placed in the main loop, as shown in my example. I have tested both TMR0 and TMR1 to have this condition and am guessing that the other timers might be affected in a similar way.
Many thanks
Howard
FC7.3.0.5 (the problem existed before this update)
I am having a problem with the timers on a PIC16F18854 in that there is an irregular behavior in the servicing of the associated ISR. This manifests as the ISR running sometimes as normal, sometimes as irregular and sometimes as not running at all. When it does run, the ISR is at the correct point in time, if this makes sense.
This is demonstrated in the ISR as output B2 and in the main loop as output B0.
I have associated this variable behavior as being a function of some minor things being placed in the main loop, as shown in my example. I have tested both TMR0 and TMR1 to have this condition and am guessing that the other timers might be affected in a similar way.
Many thanks
Howard
FC7.3.0.5 (the problem existed before this update)