I need to design a circuit which generates a PWM signal from DC voltage with adjustable duty cycle. The thing is I can't use the 555timer according to rules. The frequency is not important but it must not change with changing the duty cycle.
(me speechless)One way is to generate a fixed-frequency triangle wave, which can be done with a square-wave circuit driving an opamp integrator to get the triangle signal.
This can be done with two opamps in a feedback loop, with the triangle wave output going to a comparator (with hysteresis) to generate the square-wave (which is fed back to the integrator input).
The triangle output also goes to one input of another comparator.
The temperature signal goes to the other comparator input.
The output of this comparator is thus a square-wave with duty-cycle proportional to the signal voltage.
I'll leave the details as a exercise for the reader.
And that somehow surprises you?(me speechless)
This, Right There, explains why uC are so darn popular.