Shop OBEX P1 Docs P2 Docs Learn Events
Help - Interrupt Queuing SX28 — Parallax Forums

Help - Interrupt Queuing SX28

sounddezignsounddezign Posts: 9
edited 2008-04-03 17:13 in General Discussion
Hi guys,

I've been trying to search the forum for an answer, but im not finding one.

Scenario:
The SX28 is executing code in the ISR.
WKPND_B was cleared on entry to do usual check to see what caused the interrupt.
Now while in the ISR an external source triggers an interrupt, setting the WKPND_B register (I know the WKPND_B register gets set)
The SX now does a RETI

My Question:
Will this external interrupt and setting of WKPND_B register during the ISR cause the SX28 to jump back into the ISR again??

I really need to be able to catch every single external event, even when they occur during the ISR!

Thanks in advance for any help/info
Cheers,
Andy

Comments

  • AlessandroAlessandro Posts: 26
    edited 2008-04-03 09:10
    As i know, during an interrupt service, the other that may occur are not served.

    But you can check the "pending register" to see if there will be any new·external.

    I'm not so good, wait for other answer.

    Alessandro (italy)
  • BeanBean Posts: 8,129
    edited 2008-04-03 17:13
    Andy,
    Yes. As soon as the RETI is executed the program will jump right back into the interrupt routine.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
Sign In or Register to comment.