Since it has somekind of analogue switching input, I would rather make it a 4093 (Quad NAND with schmidt trigger). OTOH, I am sure the function of the logic circuit can be done in software in the PIC. Just limit your input voltage level. -- Quentin qsc@iptech.co.za www.iptech.co.za -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu