This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Questions about GTC

Part Number: TDA4VM

Hi TI,

we have got a system which consists of 2 TDA4 SoC's. We want to use GTC on both TDA4 as a synchronoues timestamp. Therefore, we source the GTC module on both TDA4 with an external reference clock. This clock is provided by a FPGA and can be activated via SPI. In order to achieve a synchronous timestamp, we have to call the following commands on each of the TDA4:

  1. Disable GTC Counter
  2. Set Counter to Zero
  3. Change Clock Source to External Reference Clock
  4. Enable GTC Counter
  5. Send SPI command to activate External Reference Clock (Needs to be done only on one of the TDA4)

The problem with this approach is, that step 4 crashes, since at this time, the GTC module does not have a valid clock source, because only in step 5, the external reference clock is activated.

I have therefore the following questions about GTC module:

1. Is it possible to change the default behaviour of GTC module? At the moment, the GTC shows following behaviour at power-up: Counter is disabled and CTRLMMR_GTC_CLKSEL is set to 0 (internal clock). Desirable behaviour would be: GTC is enabled and CTRLMMR_GTC_CLKSEL is set to external ref clock.

2. Is there a minimum GTC_CLK frequency, which is accepted by GTC module?

3. Is it possible to reset GTC module from outside the TDA4?

Thanks for your help and best regards,

Felix

  • Hi Felix,

    Why don't you send SPI command before enabling GTC counter? This should help in clock issue and it will still be synchronous clock input. 

    1. Is it possible to change the default behaviour of GTC module? At the moment, the GTC shows following behaviour at power-up: Counter is disabled and CTRLMMR_GTC_CLKSEL is set to 0 (internal clock). Desirable behaviour would be: GTC is enabled and CTRLMMR_GTC_CLKSEL is set to external ref clock.

    I really doubt this is possible. Please refer to TRM/specs for more information on this.

    2. Is there a minimum GTC_CLK frequency, which is accepted by GTC module?

    Please refer to TRM/specs on this question.

    3. Is it possible to reset GTC module from outside the TDA4?

    I really doubt it, but please refer to TRM to see if it is possible.

    Regards,

    Brijesh