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.

AM5728: Timer configuration

Part Number: AM5728

Sir,

We are having 1PPS connected to TIMER2 of AM5728.

Our requirement is to get interrupt on every 1PPS which is connected to TIMER2 .

I request you to let me know how to configure the timer2 for triggering external interrupt from 1PPS.

I had looked into timer2 example code  but no where it is mentioned about how to take external input interrupt.

Request you to help me in configuring the timer2 in TI RTOS.(for DSP).

Sirisha

  • Hi Sirisha,

    I would expect you to use GPIO module for taking the external input from 1PPS and generating GPIO interrupts.

    You can then create a Clock object in RTOS which is ticked manually by calling Clock_tick().

    Clock_tick() will be called in GPIO ISR which is triggered to the input from 1PPS. This will have the Clock ticking at the rate of 1PPS input.

    I am not sure why you want to use Timer 2. For Timer, you can change clock source from internal SYS_CLK to an external reference clock and then you can configure how often the timer triggers interrupt based on the that clock.

    Regards,
    Stanley