SPRUJC6A December 2024 – July 2025 AM2752-Q1 , AM2754-Q1
The counter is a 64-bit binary up counter that increments on every GTC_CLK rising edge. The source for GTC_CLK is selected through a mux which is controlled via the GTC_CLKSEL[2-0] register bit field.
The counter is disabled by default (at power-on-reset) and increments only when enabled by setting the GTC_CFG1_CNTCR[0] EN bit to '1'. The current counter value is readable via the combined COUNTVALUE bit field of both GTC_CFG1_CNTCV_HI (upper 32 bits) and GTC_CFG1_CNTCV_LO (lower 32 bits) registers.
When counting is disabled, a new counter value can be loaded via a software write to the combined COUNTVALUE bit field. In this case, when the counter gets re-enabled, it will start counting from the last value written to this field.
The counter can be optionally configured to stop incrementing when a debug halt signal is issued, by writing a '1' to the GTC_CFG1_CNTCR[1] HDBG bit. This condition is indicated through the GTC_CFG1_CNTSR[1] DBGH status bit.