Limitation of duty cicle of PWM range

I think you forgot to post your code. You will always need a compare of some form.