Hi,
Maybe a pulse tranformer could to the job.
Alternatively, you can use a comparator, supplied with 2.5V and with 5V tolerant inputs, put the threshold at (5-2.5)/2, it should work.
Or, you may use a serial capacitor to get rid of the 2.5 DC voltage, and use a comparator with 2.5V supply.
For that technique to work you will likely need to add a Schottky diode clamp (diode across resistor, anode to ground) to avoid level shifting as determined by the duty-cycle of the pulse. This will cause the bottom of the pulse to be about 0.5V below ground, which can't be readily avoided.
For that technique to work you will likely need to add a Schottky diode clamp (diode across resistor, anode to ground) to avoid level shifting as determined by the duty-cycle of the pulse. This will cause the bottom of the pulse to be about 0.5V below ground, which can't be readily avoided.
Dunno. My simulation (below) works fine. It would appear your diode model is not working, since obviously you can't have that much forward voltage across a normal diode without many amps of current.
You're right again, crutschow: The BAS40 Schottky diode is too "weak", i.e. has too much series resistance. The stronger 1N5817 actually clamps correctly (even if my 1N5817 model seems inferior to yours) ;-) :