Thanks Daniel!
I referred and implemented the same in my code.
But value of duty cycle is not consistent and it is getting changed so it is affecting the motor rotation.
I am not getting the exact issue in code why duty cycle gets changed?
How the value of MAX_OVERFLOW=500 is decided?
I used same sample code,I have given lowest priority for Timer Channel 0 interrupt.
Please provide me solution for the same?