PWM question

I'm driving a DC motor and I need 20Khz PWM, but doing that it becam that my range is from 0 to 100, so you recomend me map it?