How is dc restorer circuit used for PWM demodulation/detection?
By using a negative clamp and a LPF of any order to give desired BW yet attenuate PWM ripple, the result is a DC +AC signal proportional toward the PWM duty cycle.