Abstract: A circuit for converting a duty cycle of a pulse width modulated signal to an analog value comprising a clock signal generator for generating a clock signal, a window generation circuit for generating a window signal synchronized with the pulse width modulated signal having a window having a window start and a window termination, a counter drive circuit receiving the clock signal, the pulse width modulated signal and the window signal and producing a counter input signal, a counter circuit for counting pulses of the counter input signal and providing a counter output, a reset circuit for resetting the counter at the termination of the window; and a digital to analog converter for converting the counter output at the termination of the window to the analog value.