PWM frequency library

Thank you very much for this library runnerup. I am making a project where I will need more than the normal 256 steps of PWM resolution, and this is exactly what I needed.

One question though, I'm a little confused by why the resolution has to decrease as frequency increases. Is this an actual limitation having to do with the clock speed of the chip and how quickly it runs through the timers?

You said earlier it had to do with the way the library is set up to allow variability of both the resolution and the frequency. Does this mean that if I manually set the registers in my program that I could achieve the full 16 bits of resolution that the 16 bit timers are capable of? I really don't care much about changing the frequency, just the resolution.

The more resolution the better for this project.