PWM module initialization