I am trying to create a pulse voltage source in ltspice. The pulse should look like a half cycle of a sine wave however the rise and fall times should be different. I can create such pulse with the PULSE function of ltspice and can create a half cycle sine wave but I don't know how to create a nonsymmetric sine pulse. The rise time should be 10 microseconds and fall time should be 15 microseconds. I added a picture that I drew for you to visualize.
Electronic – LtSpice antisymmetric sine pulse
ltspicepulsevoltage-source
Related Topic
- Electrical – LTSPICE Bridge Rectifier – Odd Output
- Electronic – Inserting an unused voltage source in LTspice messes up transient results
- Electrical – LTSpice is frustrating me. Why isn’t this Class C amplifier working? I can’t get a sinusoudal output
- Electronic – Approximating the dirac delta function on LTspice to find the impulse response of a high pass filter
Best Answer
This is not a very beautiful approach, but it works (for this signal).
First I created two voltage sources, which provide the two halves of the signal.
So V1 is
SINE(0 8 25k 0 0 0 0.25)
, a 25 kHz sine but only for a quarter cycle, so that it stops at the maximum value.V2 is
SINE(0 8 16k6667 10u 0 90 0.25)
, 16.67 kHz sine but shifted by 90° so it starts at the maximum, again for a quarter cycle, so that it will stop at zero.The real output is then a BV-source with
V=min(V(Vout1),V(Vout2))
so it outputs always the smaller of the two voltages, which works in this case because one starts at the maximum value and the other one stops at the maximum value.The frequencies are easy to calculate: it's just \$f = \frac{1}{4 \times t}\$ where t is either the rise or the fall time.