I'm using a pc817 optocoupler to drive a tc4420 mosfet driver IC. When using this common configuration for the optocoupler, the signal is inverted at the collector. To fix this I used an npn transistor, resistor setup to invert the signal. Due to unknown reasons though, the output from the mosfet driver shows shows some noise at a low state, which could cause problems when switching a mosfet. You may say, just use an inverter IC, which works just fine but they only come in in packages with multiple inverters. It would be a waste to have a 16 pin dip, and then only use one inverter. I would like to use a transistor setup, which is small and can be easily made, but my calculations for the resistors seem to be slightly off.



