In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JPH989 wrote: I will start with a better end application example.... The user will have a pigtailed line that can be placed on one of 4 different systems (but we see the need to have growth room for other control voltages that is why I have 13 different comparisons) when these systems send a voltage higher than the control or base voltage then we need a relay to trip and activate another system... I really hope this helps clear things up. NOTE: End user will not have a technical mind so it needs to be a simple "ok due when you plug it in to the red box set the switch to the red dot, when using the blue system set the switch to the blue dot...." ________________________________________________________________________________________________________________________________________ Ok what if I did this... Headphone jack -------------------------> ADC0831 8-bit A/D converter ------------> 13 or more position switch ------------> I/O pin 1-13 on SX28AC/DP-G I may still be thinking inside the box, but to be truthful I don't fully understand your suggestions so I am doing a little Google research today to better understand them... Code: I don't know the code yet, I will have to learn the SX assembly language or use a compiler but the logic would look like this.... Each pin would then have the question If (the 8-bit reading converted to a numeric value) is greater than (the control voltage) THEN send OUTPUT pin HIGH __________________________________________________________________________________________________________________________________________ I don't know what a window comparator is so I may change my thinking once I do my homework. Without a doubt I want the easiest and cleanest way to do this, so I am open to all ideas I don't have "a way I want to do this" you will never suggest something that I will argue with based on pride or and existing plan.... and lastly I can't thank you enough for taking the time to help me. James ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=348093#m348271 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)