Each TCC has a counter size of either 16- or 24-bits. The size of the counter determines the maximum value it can count to before an overflow occurs. Table 1 shows the maximum values for each of the possible counter sizes.
Counter size |
Max. (hexadecimal) |
Max. (decimal) |
|---|---|---|
16-bit |
0xFFFF |
65,535 |
24-bit |
0xFFFFFF |
16,777,215 |
The period/top value of the counter can be set, to define counting period. This will allow the counter to overflow when the counter value reaches the period/top value.