Seeeduino Xiao PWM

Does it offer a wax to modify the PWM frequency? I need to vary it in small steps between 20kHz and 50kHz. This is easily possible with an ESP32 with a standard library without modification. How do I realize this with the XIAO?