Hi,

when we measure a voltage divider and have activated the timer for ELAPSED.PBP from Darrel Taylor, every 40th measurement or so is way off. When we never call start_timer from that file our readings are as stable as we expect.

If we call stop_timer before the ADCIN command and start_timer afterwards our measurements are still off. I also tried to disable the timer0 interrupts via PIE1.0 = 0.

Admittingly our version of ELAPSED.PBP is from 12/16/2003 but the examples from Darrels site show no big differences when using (assembler?) interrupts for measuring elapsed time periods.

Is there anything to have in mind when mixing ADC and interrupts?