re-inventing the wheel ...
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
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks