NorthGuy
Well-Known Member
8bit counter will fit in 8 bit variable. 8 bit counter is enough if you are clever.
If you want to generate 200 Hz, 255-bit counter will require timer interrupt frequencies of 50kHz or less. At 50kHz, at the other end of the spectrum - 440Hz, 114 counts will give you 438.5Hz and 113 counts will give you 442.5Hz. This is 4Hz difference. Looking at the list of frequencies, it looks too much of a difference to me. So, I would go with 16-bit counters, which bears almost no overhead with the approach that I suggested.