Hi, Nick

If I Understand it well ...

you'd like to measure a PWM signal mean value ( Which period ??? good question ) to another PWM signal with a ~ 50 Hz period ...

may be @ first try you should place a lo pass filter before entering the ADC ???



BUT just note the PWM signal you swear to create ... already exists into your receiver ( see related forums where all those mods have already been explained ... hundreds times !!! )

Alain