updated pwm freq to 1000