Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

disabling external interrupt

i cant disable external interrupt,
i enabled exint0 in main, and in different function i want to use disable this interrupt and enable again
there is three bit related extrenal interrupt:
EX0=0 //disable exint0
EX0=1 //enable exint0
IT0=0 //level mode
IT0=1 //falling edge mode
IE0 : interrupt flag (automaticly cleared by hardware when interrupt serviced)
in main:

IT0=1;
EX0=1;
EA=1;//enable interrupts


in function:


EX0=0;//disable external interrupt
drawpic();// continue 5 second
IE0=0;
EX0=1;//enable external intrerrupt


but when drawing picture external interrupt continue to coming, where is the problem?