question about interrups
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2010-10-18 06:28 AM
Posted on October 18, 2010 at 15:28
what will happen if during an interrupt routin another interrupt request will accure ?
will the micro jump to the other or finish this routine and the jump to the other? thanks.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2010-10-18 08:14 AM
Posted on October 18, 2010 at 17:14
what will happen if during an interrupt routine another interrupt request will occurs ?
will the micro jump to the other or finish this routine and the jump to the other?
It depends on the priority and preemption settings for the interrupt in the NVIC. Would suggest you look at the manuals ARM provides for the Cortex-M3 for the core (including the NVIC), and/or Joseph Yiu's book on the Cortex-M3. Interrupts with high priority will break into the execution of user or low priority interrupt code. Interrupts with lower or equivalent priority will be executed as you leave the current handler code. The order will depend on the sub-priority level, or the interrupt number, depending on if/how the NVIC is configured.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..