Quote Originally Posted by Acetronics View Post
Hi, Skimask
Back to our friend's program ... there's something " not told " ... cause it might give outputs ... even one of 3 or 4 !!!
I'll give a try to that code on my breadboard ... or just use a 16F84 instead of my failsafe processor !!! Test board already made for 4 channels ...
results tomorrow morning ...
Alain
If I'm reading this right, the original poster, wants to sample 5 channels, and based on the value of the 5th channel (be it high or low or whatever), send the 1st 4 channels either out these 4 channels or those 4 channels...just like he said, a channel switcher.
If that's the case, why bother sampling the other 4 channels? Just sample the 5th channel and use an output based on that decision as an input to a 2 input AND gate, along with the other input coming from channel X.
2 74L08's (8 2-input AND gates), one PIC12Fxxx (or even 10Fxxx) should handle the 5th channel switching chores.

Of course that's only if I'm reading the project correctly.