This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

APP TIMER INTERRUPT AND GPIOTE INTERRUPT DOUBTS

HI ,

  • In our project we are using multiple gpiote and app timer interrupt.
  • SDK we are using is 15.3

DOUBTS

  • If both  gpiote and  app timer interrupt trigger simultaneously(at same time) ,code execution enter to which handler first gpiote or timer (note :- both priority are same)?
  • if both gpiote and  app timer interrupt trigger simultaneously,Is any of these interrupt ignore if so which one?

PLEASE REPLY TO MY TWO DOUBTS. 

   

Parents
  • It the timer has priority 7 and gpiote has priority 6 then the following will be

    • If the gpiote interrupt occurs while the timer IRQ handler is being executed, then the GPIOTE interrupt will pre-empt the timer IRQ handler as it has a higher priority and execute until its finished. Then execution will be returned to the timer interrupt handler. 
    • If the timer interrupt occurs while the GPIOTE IRQ handler is being executed, then the GPIOTE IRQ handler will execute until its finished and then the timer IRQ handler will be executed afterwards as it has lower priority.

    Best regards

    Bjørn

Reply
  • It the timer has priority 7 and gpiote has priority 6 then the following will be

    • If the gpiote interrupt occurs while the timer IRQ handler is being executed, then the GPIOTE interrupt will pre-empt the timer IRQ handler as it has a higher priority and execute until its finished. Then execution will be returned to the timer interrupt handler. 
    • If the timer interrupt occurs while the GPIOTE IRQ handler is being executed, then the GPIOTE IRQ handler will execute until its finished and then the timer IRQ handler will be executed afterwards as it has lower priority.

    Best regards

    Bjørn

Children
No Data
Related