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.

How to set external clock for timer OMAP L137

Hello,

 

I'm working on testing the performance of the OMAP L137 for several computations.

Up to now I used the internal input clock (24Mhz) but I would like to have a better precision so the fastest input clock.

 

I saw that we could use external input clock but I don't know how to map another clock (and which one) to TM64P_IN12 pin ...

 

Does anyone know ?

 

Thanks

  • I really don't understand how we can use other clock as input clock for the timer.

     

    Is it at least possible for example to use 32Khz RTC clock as input clock ? Or SYSCLK1 ...

    I don't know how to "map" signals to this input pin TM64P_IN12 or TM64P_IN34

     

     

  • Maxime,

     

       Please include a detailed block diagram of what you are trying to accomplish so we can make some suggestions on how to configure the chip.

  • I don't know how to explain what I want to do with a block diagram.

    It's either easy to do, or impossible but I can't figure it out since I'm just debutant with Embedded Systems development.

    What I'm doing is using timer0 of the OMAP L137 to know computation time of my functions. I receive data from UART2 (ARM side) and signal DSP to treat these data.

    Timer0 is configured and used by ARM, in 64bit, continuous mode. Up until now, I use the internal clock (CLKSRC12 = 0). But this internal clock isn't fast enough, I would like to have more precision on the time needed by the DSP to treat my data. (Because the way I'm doing it right now is reading TIM12 and dividing it to obtain seconds, milliseconds and microseconds but can't get more precise since internal clock is only 24Mhz).

    Maybe there is some easier way to know time needed. If not, I saw that instead of using internal clock we can use external clock by setting CLKSRC to 1. The thing I don't know is how to "link" another source to the pin TM64P_IN12 which tick timer0 counter.

     

    Is it any clearer ?

     

    If it is, which source can I use to tick timer0 the fastest ?

    And sorry I made a mistake about RTC clock, don't know why I thought one moment 32khz was faster than 24Mhz ... fatigue ...

  • TM64P_IN12 is an external pin to the device, and an external clock generator would have to be hooked up here.

    Keep in mind that the maximum cycle time for this input clock is 4*OSCIN_cycle_time ns, as shown in the datasheet. With a 24MHz OSCIN clock, you can only use a maximum of 6MHz for your external clock.

    Jeff

  • Thanks a lot for your fast replies !

    So there isn't any way that I could obtain a timer precise to +- 10ns.