SNAS834 November 2024 LMK5C22212A
ADVANCE INFORMATION
The Time Elapsed Counter (TEC) allows the user to make a precise time measurement between two (or more) events. The events can be either a rising or falling edge of a GPIO pin or a falling edge of the SPI SCS pin. Any GPIO pin can be programmed for TEC input. Rising or falling polarity can be selected using the GPIO polarity invert register. After each TEC event, the counter values is captured and the application can read back a 40-bit value. The elapsed time is calculated based on the difference in the read back values. The accuracy of the measurement is better than 7.5ns with a total measurement time over 59 minutes depending on exact configuration. Reading back at least the LSB of the TEC_CNTR is necessary to re-arm the TEC counter capture.
The TEC counter is clocked at a frequency based on APLL1 VCO frequency ÷8 or PLL2 VCO frequency ÷ 20. A time measurement is performed using the following steps.
The TEC_CNTR register is split across five registers.
| PLL SOURCE | VCO FREQUENCY | TEC CLOCK FREQUENCY | TEC CLOCK PERIOD (t) | ROLL-OVER TIME |
|---|---|---|---|---|
| PLL1 | 2457.6MHz | 307.2MHz | ≅3.225ns | ≅59.6 minutes |
| PLL2 | 5950MHz | 297.5MHz | ≅3.361ns | ≅61.6 minutes |
| PLL2 | 5898.24MHz | 294.912MHz | ≅3.391ns | ≅62.1 minutes |
| PLL2 | 5625MHz | 281.25MHz | ≅3.556ns | ≅65.1 minutes |
| PLL2 | 5600MHz | 280MHz | ≅3.571ns | ≅65.4 minutes |
Figure 7-34 illustrates the states of the Time Elapsed Counter function.