Ben L Wirz wrote: > How about a series of switches wired in parallel. Each switch would > add a different amount of resistance. Apply +5V to one side and read the > output voltage returned with a A/D convertor. A clever choice of resistor Yes, but this requires an A/D converter - seems a little like overkill. Plus, it would be failure prone, since if any resistor changed value you'd be stuffed. But then, maybe I'm just taking the suggestion too seriously :-) Where was your tongue, Ben? Clyde -- Clyde Smith-Stubbs | HI-TECH Software, | Voice: +61 7 3300 5011 clyde@hitech.com.au | P.O. Box 103, Alderley, | Fax: +61 7 3300 5246 http://www.hitech.com.au | QLD, 4051, AUSTRALIA. | BBS: +61 7 3300 5235 ---------------------------------------------------------------------------- For info on the World's best C cross compilers for embedded systems, point your WWW browser at http://www.hitech.com.au, or email info@hitech.com.au