cancel
Showing results for 
Search instead for 
Did you mean: 

Disable External Interrupt

blue_dolphin1987
Associate II
Posted on November 27, 2012 at 06:06

Hi , 

 Is there a way to disable/enable external interrupt ?
4 REPLIES 4
Posted on November 27, 2012 at 15:30

Is there a way to disable/enable external interrupt ?

External to what, the part, the core?

You should be able to enable/disable at the EXTI, NVIC and peripheral (XX_ITConfig) level.

At the core you have __enable_irq()/__disable_irq() which assemble as

cpsie i / cpsid i
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
blue_dolphin1987
Associate II
Posted on November 28, 2012 at 02:51

Hi , 

 I only want to enable external interrupt from a device at certain time (ms interval) only.

This means that i have to reinitialize the NVIC on every enable and disable ?

Regards,

aymen
Associate II
Posted on November 28, 2012 at 10:29

hi,

I have the same problem.  I want to disable usart interrupt for some time then enable it to continue recieving/sending data.

Posted on November 28, 2012 at 12:43

I have the same problem.  I want to disable usart interrupt for some time then enable it to continue recieving/sending data.

 

  USART_ITConfig(USART1, USART_IT_TXE | USART_IT_RXNE, DISABLE); // Comes to mind

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..