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.

AM6442: How to generate timer interrupts in PRU

Part Number: AM6442

Hi,

The PRU's in AM6442 don't have timer modules of their own. So is there any way to generate timer interrupts in PRU? I want to generate 1Mhz timer interrupts.

Just for reference I am not using Linux, I developing the firmware in CCS.

Thanks.

  • Hello ,


    An Industrial Ethernet Peripheral (IEP) module is available on the PRU.

    The IEP module features an industrial ethernet timer with 16 compare events, industrial ethernet sync generator and
    latch capture, industrial ethernet watchdog timer, and a digital I/O port (DIGIO).

    You can choose your required frequency  by using this IEP module.

    Please see more details of IEP module from below section.

    6.4.13 PRU_ICSSG IEP and 6.4.7.3 PRU_ICSSG Interrupt Requests Mapping.

    There are two ways you can route your IRQ into the PRU or R5F.

    If you want to write IRQ in PRU/R5F core see example below for more details.

    C:\ti\mcu_plus_sdk_am64x_08_04_00_17\examples\pru_io\adc\ads85x8\firmware\am64x-evm\icssg0-pru0_fw\ti-pru-cgt

    C:\ti\mcu_plus_sdk_am64x_08_04_00_17\examples\pru_io\adc\ads85x8\am64x-evm\r5fss0-0_freertos

    Regards,

    S.Anil.

  • Ok, I will try IEP and see if it works for me.

  • Thanks.

    If this is resolved, please close the thread and open new threads if you have any.

    Regards,

    S.Anil.