Hi!
Can you give some details about your project.Also some code will be really helpfull explaining the timings,updation of PWM and use of motion feedback procedures.