Changed frequency to 25kHz for both software and hardware pwm.