> > So if nothing in on position, then Rx + (Rx * 2) + (Rx * 4) + (Rx * 8) wo= uld > give the bottom resistance on a voltage divider, otherwise would leave ou= t > of the equation whatever tag is on, for example if 2nd and 4th are on the= n > : Rx + (Rx * 4) only... If SPDT dip switches that pull up and down are used, then a R-2R ladder could be implemented. You could just directly take the 4 MSB of the ADC output for the 4 switches. I.E. something like http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=3DCT206124= -ND --=20 Jonathan Hallameyer --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .