Is there a general formula or equation for PWM (pulse-width-modulation) ? Can anyone explain how to generalize or formulate PWM equation ? Thanks.