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

Can Interrupt be Servied even when Micro controller hangs??

Hi Frnds,

Can a Interrupt Service Routine be serviced even when Micro controller hangs for undue reasons??

what is a hang in Microcontroller means????

Parents
  • A uP can be in a hung state if its stuck in a loop, for instance:

    while(1)
    {
       // do something
       if (result == TRUE)
          break;
    }
    


    This loop will never exit if result never becomes TRUE. When an interrupt is generated, the interrupt code will be executed. The exit of the interrupt code will then return execution back to this stuck loop.

Reply
  • A uP can be in a hung state if its stuck in a loop, for instance:

    while(1)
    {
       // do something
       if (result == TRUE)
          break;
    }
    


    This loop will never exit if result never becomes TRUE. When an interrupt is generated, the interrupt code will be executed. The exit of the interrupt code will then return execution back to this stuck loop.

Children