Set up PWM