Let us understand the concept of Interrupt Priorities :
▶️If you ever visited any bank then you must have noticed that in order to manage the customers efficiently, there is a token system implemented by the bank. Customers having the lowest token number will be called first in order to service their request.
Similarly, in case of interrupts the position in the Vector Table decides the priorities of interrupts. If the position or IRQ number is lower that means the priority of that interrupt to get served by the processor is higher.
Basically, when two or more requests are made simultaneously the order of service is determined by their priorities.
➡️Each exception/interrupt has associated an 8-bit priority level register. But not all bits are used to set priorities. ARM Cortex MCU has only 16 priority levels which means that 4 MSB bits are used to set priorities.
➡️By default, there are two bits for both Preemption priority and Sub-Priority. We can also modify the bit allocation as per our requirement. Here we have Four possible combination of preemption priority as well as sub-priority.
➡️If we use all 4 bits to store preemption priority, then there will be no bit left for sub priority, and vice versa, there will be no bit available for preemption priority when all 4 bits are used for sub priority. This process is call priority grouping.
✔ Register for this free course & you will get an access to e-Learning content and code files🏆🚀
https://www.hexnbit.com/product/free-...
🌐 STM32 Related Courses:
Certificate Course: https://www.hexnbit.com/advance-embed...
Foundation Course: https://www.hexnbit.com/product/found...
✨ HEXNBIT Social Media :
Instagram: / hexnbit
Twitter: / hexnbit_life
YouTube: / hexnbit
Facebook: / hexnbit
🎓 Other Courses:
Visit : https://www.hexnbit.com/
About us: Hexnbit provides one-stop solutions for the students & working professionals in Skill development programs. The platform not only provides subject expertise to the candidates but also, give them industry exposure to apply their learnings analytically in a practical real-world.