I have 50 seperate logic lines that switch in sequence from # 1 to # 50 = then reverse from # 50 to # 1 at any one time only one line is in a low state and all others are high = state. what I need is an analog output voltage generated from the pic in response to which switched line is = enabled. example: max reference voltage output is 1 volt at line 50 switched on.=20 half of the reference voltage is 500 mv at line 25 switched on. each switched line represents a 20 mv change in output voltage. =20 these parameters are not set in stone and the analog reference voltage = could change if it made code and chip selection easier. any thoughts on which pic chip to use as i have not bought any chips = yet. is there a simple mixed signal or d/a chip that will do this instead = of using a pic chip? it seems that this type of digital line switching (single line enabled = only )=20 to generate an analog voltage is really not what the D/A chips do that = are presently out there on the market. well as easy as this application = seems to be i want to ask before i begin re-inventing sliced bread.... thanks alot for reading this and all comments and suggestions welcome = tims 800 =20 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu