Clearing Interrupt

Hi All,

I want the PRU code to run repeatedly when it receives a command from the host (A-8) processor. I want to use ARM_PRU0_INTERRUPT to make this work. I’m able to successfully send an interrupt to the PRU.

However, I’m unable to clear the interrupt once it is received. My code snippet to clear the interrupt is shown below:

#define ARM_PRU0_INTERRUPT 36

WBS R31.t30 //wait for the interrupt

MOV R0, ARM_PRU0_INTERRUPT
SBCO R0, CONST_PRUSSINTC, SICR_OFFSET, 4
MOV R31, 0x00

Can anyone, please tell me what I’m doing wrong?