rather than an optoisolated interface, you may get away with using a chip such as the Maxim MAX3535E isolated RS485 transceiver. 2500Vrms isolation claimed, all done inside the chip. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist