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.

TMS320F28377S: Problems controlling enabling/disabling interrupts

Part Number: TMS320F28377S

Greetings,

I'm trying to develop a code that will execute a series of functions once a certain GPIO pin is set to high. When those functions start to be executed, it doesn't matter if the GPIO pin goes high again. When the functions stop, they should start again as soon as the GPIO pin goes high again. 

I have been able to produce most of the necessary code, however my problem is that sometimes the GPIO pin goes high during the execution of the functions and that interrupt is queued. As soon as the functions stop, they start again immediatly (because the interruption dictated by XINT1, the GPIO, was waiting to be processed). 

How can I fix this? I'm having a lot of trouble to understand the solution, even after reading the Peripheral Interrupt section of the manual.

Thanks in advance,
Franco