Question: Prob 4 . Consider the problem of interrupt priority setup with the following assumptions: We only use the most significant 6 bits of the byte
Prob Consider the problem of interrupt priority setup with the following
assumptions:
We only use the most significant bits of the byte in each IP register. Again the priority number is
expressed in a bit unsigned number.
We set up the system to use bits for preemption priority.
We set up the priority of IRQn using NVICSetPriority IRQn;
Now, we consider the setup for the priorities of three other interrupt sources, represented by IRQnIRQ
IRQn respectively. Answer the following questions:
What are the values of PPN and SPN of IRQN in decimal? What is the value read from IPIRQn
directly in hexadecimal?
If we want IRQn to be able to preempt IRQn what will be the range of priority number we can use
when setting it up
If we want IRQn to be able to preempt IRQ what will be the range of priority number we can use
when setting it up
If we do not want IRQn to preempt IRQn what will be the range of priority number we can use when
setting it up
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
