Embedded Digital Filters for PWM generators