I hope this isn't embarrasingly simple. I need to have a PIC port drive a signal, referenced to ground, at 5V or -5V, either sourcing or sinking up to 20 ma (per bit, 8 bits). Furthermore, it would be prudent, but not necessarily required, to have galvanic isolation between the input and output, as the output may be subject to static electricity. This would be easy to build with discrete parts, using two FETs arranged similarly to a CMOS output, but with the lower one connected to -5V instead of ground. Depending on which FET is conducting, the driver output gets "hooked" to +5V or -5V. (And opto FETs could be used for isolation if needed.) To save parts count (16 FETs!) and $$$, I'd rather go for an integrated approach. There are many quad 1:2 analog multiplexers out there, which is what the discrete circuit above really is. A couple of these could switch eight outputs between +5V and -5V inputs very easily. Unfortunately, none seem to be able to handle the -5V swing on an analog input port. The TI SN74CBT3257, for example, has absolute max ratings of -0.5V to 7V analog input swing: http://www-s.ti.com/sc/psheets/scds017l/scds017l.pdf I've also thought of using a comparator, with +-5V supplies and an input reference set between the PIC high and low output voltage. The LM339 can only sink 16 ma maximum, typical is 6 ma, and in general, 20 ma seems to be on the high end of the current sinking capability of common comparators. Any suggestions? Am I completely missing some other, simpler approach? Does someone make an "Octal +-5V input swing analog multiplexer using CMOS level inputs" part that I can order from Digikey? Thanks, Johnathan -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body