how to set 16bit PWM resolution. (pin10) - (Leonardo)

I am trying to get 16bit PWM resolution (or at least 12bit) on pin 10(PB6)
For some reason, I am stuck at 9bit. (511=100% duty cycle)

First, I set frequency to 31.25khz
TCCR1B = TCCR1B & 0b11111000 | 0x01;
Then configure the use of ICR1 and set the ICR rollover as 16bit:
TCCR1A = 0b10101010;
ICR1 = 0xFFFF;

  • Still, the counter rolls over at 512, - what did I miss ?

I am trying to get 16bit PWM resolution

For what purpose?

what did I miss ?

A whole lot of code.

is this where I thank you for a helpful post ?

AndreK: is this where I thank you for a helpful post ?

Is this where I thank you for answering the questions?

what other reasons are there for having higher PWM precision, that ... higher precision ? - I fail to see how a reason affects register setting for achiving the resolution. - A default 8 bit, =19mV step is huge for my use , so is the duty cycle change with 8bit.

If I had time, I would check some of your other 54K posts, to see if they are equally helpful :)

19mV step is huge for my use

It would have taken less time to describe that use, and post all of your code, than it took to post that rant.

All I can say is good luck.

By the way, after 54000 posts, I know what information is needed to get answers. After 57 posts, I'd think you'd accept the fact that haven't provided enough information, and would just do it. You're not winning friends...