I would really like to see how you did this. Wanna share ?? > Why simply not use interrupts on edges of the PWM signal and read timer > value at these moments? It takes only about 20 instructions to > convert timer > samples to the pulse width. With constant PWM frequency you can > use look-up > table to convert pulse width to analog value.