General Derivation Of The Average Value Of Pwm