changed PWM mode to 32 bit (higher resolution)