new file for pwm generation