Skip to main content
blue_dolphin1987
Associate III
November 27, 2012
Question

Disable External Interrupt

  • November 27, 2012
  • 4 replies
  • 769 views
Posted on November 27, 2012 at 06:06

Hi , 

 Is there a way to disable/enable external interrupt ?
    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    November 27, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    blue_dolphin1987
    Associate III
    November 28, 2012
    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 III
    November 28, 2012
    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.

    Tesla DeLorean
    Guru
    November 28, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..