Re: WaveShaping
One way of performing thes conversion is to us an opamp, connect TTL signal to (+) input and a reference voltage of, say, 2V to (-) input. This opamp has to be supplied of +/-%V so its input will be +%V if the input volage has TTL level H and -5V if the (+) input has TTL level L.
To slow down the rising and falling edges you can use a resistor (for example 100Ω) in series with the opamp output and a small capaictor the other sideo of resistor and 0V (LPF).
As the output impedance of an ideal opamp is ≈0Ω (in practice this will be a couple of Ωs) so your output impedance will be this 100Ω resistor connected in parallel with that small capacitor ..