I need my analog brain trust. As P/O a project I need to determine the duty cycle of a PWM signal. This signal will have frequency of 10hz to 100hz and duty cycle of 2% to 40%, both parameters constantly changing. And I need an output that has no ripple and no latency; i.e., it will reflect the duty cycle of the PWM as of the last pulse. I have come up with this insanely complicated circuit:

The PWM signal has it's 1 and 0 times converted to voltages (see pulse width to V).
These are added by op amp to get the period. Then a voltage divider (AD539 or similar) divides the input pulse by the period to yield the duty cycle.
1) Can you find problem(s) with this circuit?
2) Is there an easier way, given the strict output rqmnts? I really want to stay away from microprocessors and software. The last program I wrote was in Fortran..
"Almost" Good Answers: