signalscomparatorintegrator

Producing a sawtooth signal out of square/triangular signal


I want to create a sawtooth signal generator. I know, how to build comparator to create a square wave. I allso know, how i can get triangular signal by integrating comparator output with o amp integrator.

What i don't know nor find is how do i get sawtooth signal out of square/triangular wave. Could someone explain this a bit.

Thank you.


Solution

  • How about this:

    Start with a square wave with period T. Differentiate it to produce spikes, alternating positive and negative. Use those to reset an integrator that integrates a DC signal. This will produce a sawtooth wave with period T/2.

    If you want a sawtooth wave with period T, knock out the negative spikes with a diode.