> Well,I am planning to get all the output from one pin Hi Yigit. Don't quite understand that. You originally said you have "from 3 to 10 15 and 16 from 18 to 30 numbered pins empty" So all these pins are available for resistors ? Or do you really want to have an analogue voltage generated by one pin ? I mean, could be extravagant and use a frequency to voltage convertor. What sort of settling time for this voltage are you looking at ? > if{(input<=400mv) {output=5v; } > > is this code embedable somehow ? I mean can't I sense the > input "values" ? Sure - http://www.piclist.com/techref/microchip/codeflow.htm -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist