Hi! I am working with comparator (In LTspice). I have to compare a sine wave and a triangular wave. The triangular wave should be at 2kHz frequency. So this should be the configuration for triangular wave:
However, the results show that it is not a 2kHz frequency:-
Last time I checked, 0.0005s was 2kHz. But not in LTspice. Why is it so?
eTech is right. You can use a pulse source with very slew rate limited edges to generate a triangular waveform. You have got it right. You just have the slew rate set to 2.5ms when it should be 0.25ms (250us). 0us ON and 500us off time and this gives you a triangular waveform... or use PWL