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

Nested Interrupt CM3

Note: This was originally posted on 29th May 2012 at http://forums.arm.com

Hello everyone,
i just want to know how does nesting interrupt work on Cortex M3.
Register PRIMASK, BASEPRI and FAULTMASK are usefull if i want to ignore ,when occurs, certain interrupt (by setting a priority level threshold) ignore= interrup not accepted,  interrupt not nested
Register like SETENA enable or disable specific interrupt ( by # )
When the processor  is handling an exception and comes an interrupt that has upper priority level, the current exception is nested (save register etc etc ) and the new exception is executed. If the priority of the new interrupt is lower , the NVIC will not nest the interrupt, it will be ignored.

is correct what i've understood? is there something that i miss?



thank you in advance
Nino

ps i'm sorry for my bad english
Parents
  • Note: This was originally posted on 6th June 2012 at http://forums.arm.com

    why there are 2 registers (SETENA and CLRENA) when i can enable/disable external interrupt by using one?  (bit =1 external interrupt enabled , bit= 0 ext. int. disabled)
    i know that writing 1 in reg CLRENA means that clear to 0 the respectively bit in the SETENA reg, but with one reg it works better

    another question , how nvic schedule the pending interrupt (external or internal ) by priority?


    thank you
Reply
  • Note: This was originally posted on 6th June 2012 at http://forums.arm.com

    why there are 2 registers (SETENA and CLRENA) when i can enable/disable external interrupt by using one?  (bit =1 external interrupt enabled , bit= 0 ext. int. disabled)
    i know that writing 1 in reg CLRENA means that clear to 0 the respectively bit in the SETENA reg, but with one reg it works better

    another question , how nvic schedule the pending interrupt (external or internal ) by priority?


    thank you
Children
No data