Hello,
I have some (seemingly) simple optocouplers (datasheet:
These are open-collector optocouplers. The emitter inputs consist of the anode and cathode of an LED. The detector outputs are your standard (Power, ground, collector) trio.
Right now I have the chip on a breadboard. The LED cathode is connected to a 330 ohm resistor, which is also connected to ground. The LED anode is connected to a frequency generator that outputs a square wave at 5v. The open-collector output is pulled high via a
4.7K resistor, to 5v. Power and ground are connected to 5v and ground, respectively. There is only one ground in the circuit (i.e., the 330ohm resistor and the detector ground are on the same node).The problem is the rise time to go from 0v to 5v; it's about 4 microseconds. The data sheet states that the rise time for these optocouplers should be in the tens of nanoseconds. The fall time from
5v to 0v meets this spec. I can't figure out why the rise time is so awful.I thought it might be stray capacitance, but if that's the case, why is the fall time so low?
Any help appreciated!