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.
Hello,
My program correctly configures the RTI interrupt generation and the RTI0 ISR "rtiCompare0Interrupt" is logically called (with RTIINTFLAG register equal to 0).
Can you indicate which registers to check, and how to acquit interrupt pending status flags of RTI0, RT1 and RTI2 in ISR functions ?
Best Regards,
Hello,
Interrupt Flag 0 (field INT0 in RTIINTFLAG register) is set to 1 when interrupt due to a Compare 0 match is pending and interrupt will be generated if enabled. According to TRM (Section 17.3.27 RTI Interrupt Flag Register (RTIINTFLAG)) writing 1 to INT0 field will clear it.
rtiCompare0Interrupt is servicing this interrupt. The first thing rtiCompare0Interrupt is doing is to clear INT0 field: rtiREG1->INTFLAG = 1U;