SNAS884 December 2023 LMK5C33414AS1
PRODUCTION DATA
The Time Elapsed Counter (TEC) allows the user to make a precise time measurement between two (or more) events. The events may 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 chosen using the GPIO polarity invert register. After each TEC event, the counter values is captured and the application may 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.5 ns with a total measurement time over 59 minutes depending on exact configuration. It is necessary to read back at least the LSB of the TEC_CNTR to re-arm the TEC counter capture.
The TEC counter is clocked at a frequency based on PLL3 VCO frequency ÷8 or PLL2 VCO frequency ÷ 20. A time measurement is made by below steps.
The TEC_CNTR register is split across five registers.
PLL SOURCE | VCO FREQUENCY | TEC CLOCK FREQUENCY | TEC CLOCK PERIOD (t) | ROLL-OVER TIME |
---|---|---|---|---|
PLL3 | 2457.6 MHz | 307.2 MHz | Approximately 3.225 ns | Approximately 59.6 minutes |
PLL2 | 5950 MHz | 297.5 MHz | Approximately 3.361 ns | Approximately 61.6 minutes |
PLL2 | 5898.24 MHz | 294.912 MHz | Approximately 3.391 ns | Approximately 62.1 minutes |
PLL2 | 5625 MHz | 281.25 MHz | Approximately 3.556 ns | Approximately 65.1 minutes |
PLL2 | 5600 MHz | 280 MHz | Approximately 3.571 ns | Approximately 65.4 minutes |
Figure 7-32 illustrates the states of the Time Elapsed Counter function.