When I need 2 ADC and have only one available, I use some "branching trick" for duplication (or even triplication) putting one relay and chaining the common gate to ADC pin, so when active (n/c) read one Analogic device, and when release (n/o), read the another analogic device, giving me two (or even three) reads to "play around".
This is specially useful when work with P08 (only one low res ADC pin). Of course this solution needs calibration and a debouncing wait.
Some pic worth more than hundred words...
Diagram HERE
For 3 adc simply chain in step-ladder another relay.
This is specially useful when work with P08 (only one low res ADC pin). Of course this solution needs calibration and a debouncing wait.
Code:
The code is simple:
inicio:
wait 1
readadc 1,b1
high 0
wait 1
readadc 1,b2
low 0
if b1............
Some pic worth more than hundred words...
Diagram HERE
For 3 adc simply chain in step-ladder another relay.