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.

Clock configuration of DMTimer4 on AM335x

HI ,

I want to configure the time base for DMTIMER 4  to 1.25MHz .  I looked at the definition of the " DMTimer4ModuleClkConfig" It uses the "CM_DPLL_CLKSEL_TIMER4_CLK_CLKSEL_CLK_M_OSC " which is 24Mhz.

I used the "DMTimerPreScalerClkEnable" function . but the presaclar( 2,4,8,16,32,64,128,256)  does not give me 1.24 Mhz.

Could you me please  let me know which API of starterware I should be using to set the  prescalar in the PCRM to acheive 1.25MHz..

Regards,

Veena

 

  • Hi Veena,

    We are looking into this and will get back to you. Thanks.

    Lali

  • Veena kudva said:

    I used the "DMTimerPreScalerClkEnable" function . but the presaclar( 2,4,8,16,32,64,128,256)  does not give me 1.24 Mhz.

    Could you me please  let me know which API of starterware I should be using to set the  prescalar in the PCRM to acheive 1.25MHz.

    This is a hardware limitation.  Please see Section 20.1.3.6 "Timer Counting Rate" of the AM335x TRM.  The prescalar only allows values of 1, 2, 4, 8, 16, 32, 64, 128, 256.  The only way to achieve a 1.25 MHz clock would be if you input a 1.25 MHz clock on the TCLKIN pin and then select TCLKIN as the DMTimer4 clock via the CLKSEL_TIMER4_CLK register.