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 create/ configure Hard ware timer in Jacinto 2 ARM controller.



Hello,

i'm working Jacinto2(i.e. DRx416 Automotive Digital Radio and Infotainment Applications Processors) it's two core (i.e.ARM & DSP), In ARM core we are using RTOS (i.e. ESOL OS), Actually i've created  timer by using RTOS system call (OS_TimerCreate ) with that timer  interrupt not accurately triggering, Ex: i've created 10msec timer using RTOS system call and observed timer interrupt service routine (ISR) is i triggered  8msec, 2msec , 7msec etc...

so i want to create Hardware timer and i think Hardware timer interrupt will trigger  properly.

can you please help me how to configure the Hardware timer in Jacinto 2RTI_SPRUF06A.pdf

we are using crystal frequency 24Mhz and ARM is running @ 264 Mhz.

you can send out details to my below mail ID.

My email ID is

1)rjoshi400@gmail.com

2) rajesh.joshi@delphi.com

kindly can you please help me.

.

  • Hi Rajesh,
    I don't have much experience with J2. But I think the RTI timer programming details are already in the document you are referring.
    For low-level programming, you need generally:
    1. Enable the timer to have register access
    2. Decide which clock to use for timer tick: SYSCLK8 or OSC0 CLK - set it in the MISC_CTL0 register
    3. Set the prescaler
    4. Set the compare value (when to trigger an interrupt)
    5. Start the timer

    But the more important question would be is at least one RTI free to use and not reserved by RTOS?

    Regards,
    Stan