Even the program shows different pulse width.
what do you mean ,that makes little sense


Well, I don't know what to say. I get all the same frequency with different pulse width.
my code works perfectly on the simulator and the actual hardware
post your code and schematic .