PicDude wrote: > Hadn't factored in the internal protection diodes, thanks. > I need to do this with 8 outputs, and only one OC output. I started > with a 2 transistor circuit (1 NPN + 1 PNP), but thought I could > simplify it this way. If your voltages are all well controlled, then you can set up a resistor divider so that the base of the PNP transistor is on when the PIC output is 0V and off when 5V. I haven't done the math to see what base current drive level you end up with even if you max out the PIC pin current to 25mA when low. I don't really like this idea and would be very unlikely to put it into production. You only need one extra transistor to do it robustly. This is a jellybean NPN that costs about $.02 in volume. The total robust solution is only 2 transistors and 2 resistors. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist