update the pin configuration, the pwm mode messed because MODE pin was not selected, and according to spec, MODEL is High in PWM mode, MODE is Low or unknown for IN/IN mode