I am trying to use below circuit for convert 24VDC high speed pulse to 5VDC pulse that can interface to a stepper driver IC.
I have used 6N136 opto-coupler and according to its datasheet it can handle 1Mbit/s.
PLC_Y000 terminal connected to a 24V square wave out (open collector out of a PLC) and the frequency can change.
STEP_OUT for get 5V square wave out.
I was unable to get proper square wave out at high frequency input. I have observed waveform using a oscilloscope and results as below. (for 60kHz and 10kHz input/green is input at
PLC_Y000 yellow is output at
While increasing the input frequency the rise time also increased. Couldn't reach 1MHz as datasheet.
What are the reason for this? How can I get proper square wave out without distortion?