In some code I found on the internet there is the following:
//16MHz/ 1024/ 256
TCCR2B = 1<<CS22 | 1<<CS21;
Assuming that the external crystal is 16MHz, I see from the datasheet that TCCR2B sets the clock divider to 256.
However, I don't know where the 1024 in the comment is coming from.
I've looked at the rest of the code and don't see anything related to it, but I may have missed something.
Is there a register I can poll to see what this value is programmed to be?
In the end, I am trying to verify what the clock is set to. Can I pull it out of the chip to measure it?