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.

AM5718: Time management function Timer module and Clock module

Guru 12050 points
Part Number: AM5718

Hi, 

Q1
There is a statement that the Timer module works with the HWI task and the Clock module works with the SWI task.

Please tell me the specific usage.

Timer module for time-sensitive processing, otherwise
Is it okay to recognize that the Clock module should be used?

Q2
Could not find the maximum number of each module generated in AM5718.
The document says that it can be set with TimerProxy, but I can't find TimerProxy even if I search for multiple sample codes.
If the location of TimerProxy or AM5718 has an upper limit, please tell me the maximum value.

Tanks,

Astro

  • Hi Astro,

    Sorry, did not get your first question. Even Clock module internally uses hal.timer module to generate system ticks. 

    I would expect the max number timer module available to be equal to number of timers in the system. Not sure whats the usage of Clock. Can you please help me understand?

    Regards,

    Brijesh

  • Hi, Brijesh

    Sorry, did not get your first question.

    Please tell me the difference between the Timer module and the Clock module, and how to use them properly.

    In other words, I want to know whether to use the Timer module or the Clock module when processing time.

    I would expect the max number timer module available to be equal to number of timers in the system.

    The following URL has the following text in the 8.3 Timer Module.

    ーー

    ・The timerId can range from zero to a target/device-specific value determined by the TimerProxy.

     https://www.ti.com/lit/ug/spruex3v/spruex3v.pdf

    ーー

    Please let me know if there is an upper limit for TimerProxy of AM5718.

    Thanks,

    Astro

  • Hi Astro,

    I have not used Clock Module, so i would recommend using timer module..

    For the number of timer support, can you please refer to the AM5718 datasheet?

    Regards,

    Brijesh

  • Hi, Brijesh

    I checked the datasheet, but it didn't mention the TimerProxy of AM5718. Where can I find information about TimerProxy?

    Thanks,

    Astro

  • Hi Astro,

    We will not find timer proxy in the data sheet of the SoC. This is used in the TI RTOS.

    Timer module has a configuration parameter called TimerProxy which is plugged by default with a target/device-specific implementation. We need not to have to explicitly plug timer proxy to timer module.. 

    Regards,

    Brijesh