25.2.2.1 Timer/Counter Size

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 25-1 shows the maximum values for each of the possible counter sizes.

Table 25-1. Timer Counter Sizes and Their Maximum Count Values

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.