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.

AM2634: am2634

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG

I am using AM263X-LP.
Is it possible to generate interrupt using rti timer at 3MHz or above??
If possible, pls tell how to do it.

  • Hello Tej,

    It would be possible and you'd do it through SysConfig largely, that said I need to defer to one of our SW experts for further guidance on exact steps needed for configuration.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,
    Eagerly waiting for your reply.

  • Hi Tej,

    Apologies, I was out-of-office yesterday and could not respond.

    You can refer the RTI LED Blink example in the SDK: examples/drivers/rti/rti_led_blink. This example will toggle the LED to on and off every second and thus the syscfg is configured for the same operation.

    You can directly go to the syscfg and modify the compare and counter blocks to configure the interrupts to run at 3MHz or more. You can go to the Counter block in Syscfg and enter the desired output frequency. I tried with 5 MHz

    Configure the tick period accordingly (In the compare event).

    Regards,

    Shaunak

  • Hi Shaunak Deshpande,


    Can you share the screen shot of your RTI setting for generating the interrupt at 5MHz ??
    Also it would be great help if you can provide any link or document on how to calculate the same.

  • Hi Tej,

    I could not find any document to show the calculations, I can explain my approach: Please correct me if it defers from your requirements.

    1. I pass the input clock as SYSCLK with freq of 200Mhz -> 1 clock cycle is 5ns

    2. You need RTI at 5MHz which means an interrupt every 200 ns or 40 clock cycles

    3. You can open syscfg, set the input clock as 200MHz SYS_CLK, then in desired output frequency in counter block 0, enter 5MHz 

    4. In compare event 0, set the tick period to 0.2us (200ns)

    Then rebuild your application and try to profile it. Can you please try this configuration on your end and let me know if it works for you?

    Regards,
    Shaunak

  • Hi Shaunak,
    Thanks for your guidance.

    Can you tell how to get 5MHz frequency when i am using Timer with an RTI instance, because here Tick period cannot be assigned less than 1.

  • Hi Tej,

    You can override that by entering 0.2. I am using the 09.02 MCU_PLUS_SDK

    Regards,
    Shaunak