I'm having difficulties with my 28X on the ADC inputs. I'm currently using pins 0,1,2,3 as 8 bit ADC inputs, and to start off I just had a basic programme to read the ADC, then display their values on the debugger.
All well so far the ADCs are connected to a rotary pot as part of a feedback loop. Unfortunately the ADCs are reacting in an unexpected manner!
If you set all the pots to halfway, then, say, rotate potA on pin0, then the value on pin0 goes up, but so too does pin1, but by a percentage (possibly) of the initial value. So if you start pin1 at 150, it will go up to 175 for pin0 going from 0-255.
Bizarrely however, altering the pin1 pot does not have any effect on the pin0 value. I've metered the voltages going into the ADCs and they only change when their respective pots are moved, even though their reported values change without the voltages changing.
Has anyone else come across this ? Do I have a confused 28X, or might it be a bug in the software ? I'm running at 8Mhx, on COM5 through a USB adaptor.
Thoughts to solutions gratefully recieved!
All well so far the ADCs are connected to a rotary pot as part of a feedback loop. Unfortunately the ADCs are reacting in an unexpected manner!
If you set all the pots to halfway, then, say, rotate potA on pin0, then the value on pin0 goes up, but so too does pin1, but by a percentage (possibly) of the initial value. So if you start pin1 at 150, it will go up to 175 for pin0 going from 0-255.
Bizarrely however, altering the pin1 pot does not have any effect on the pin0 value. I've metered the voltages going into the ADCs and they only change when their respective pots are moved, even though their reported values change without the voltages changing.
Has anyone else come across this ? Do I have a confused 28X, or might it be a bug in the software ? I'm running at 8Mhx, on COM5 through a USB adaptor.
Thoughts to solutions gratefully recieved!