Generating PWM from PID to control DC motor

i want to change the time period of pwm

Why would you want to do that?