SNAS835A September 2022 – February 2025 LMK5B33414
PRODUCTION DATA
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 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 | 2500MHz | 312.5MHz | Approximately 3.17ns | Approximately 58.6 minutes |
PLL2 | 5950MHz | 297.5MHz | Approximately 3.361ns | Approximately 61.6 minutes |
PLL2 | 5898.24MHz | 294.912MHz | Approximately 3.391ns | Approximately 62.1 minutes |
PLL2 | 5625MHz | 281.25MHz | Approximately 3.556ns | Approximately 65.1 minutes |
PLL2 | 5600MHz | 280MHz | Approximately 3.571ns | Approximately 65.4 minutes |
Figure 8-34 illustrates the states of the Time Elapsed Counter function.