TIM_PWM_FREQ changed from 500 to 20MHz