I'm working on reading two ADC ports (RA0 and RA1) for two seperate sensor inputs.
I can read the value of one input without any problems, but when checking the second input it seems to nearly duplicate the first - even when the sensor isn't attached!
Can anyone shed any light on this? I need the sensor check to not slow down the code if possible as it is also reading rpm pulses and needs to be able to make rpm outputs matching the input but time shifting in 20uS steps (ignition retard on an engine basing retard values on air flow on RA0 and air temp on RA1).
I've attached my current code for reference.
I am using a 16F877 @ 4Mhz.
Cheers
Leigh Windridge
Bookmarks