I would like to design a comparator circuit with hysteresis, which will provide a PWM signal in the output as shown in figure 2. The first input of the comparator circuit will be a sinusoidal signal as shown below in figure 1 and the other input of the comparator fed by a triangular waveform. Is there any circuit which is suitable for this comparator circuit and for this purpose?
The power supply voltage is VDD=1.2V.
Which should be the DC level and the amplitude of the triangular waveform to achieve this purpose?