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 4. Consider the problem of interrupt priority setup with the following
assumptions:
We only use the most significant 6 bits of the byte in each IP register. (Again the priority number is
expressed in a 6-bit unsigned number.)
We set up the system to use 3 bits for preemption priority.
We set up the priority of IRQn3 using NVIC_SetPriority (IRQn3,18);.
Now, we consider the setup for the priorities of three other interrupt sources, represented by IRQn0,IRQ1,
IRQn2, respectively. Answer the following questions:
What are the values of PPN and SPN of IRQN3 in decimal? What is the value read from IP[IRQn3]
directly in hexadecimal?
If we want IRQn0 to be able to preempt IRQn3, what will be the range of priority number we can use
when setting it up?
If we want IRQn3 to be able to preempt IRQ1, what will be the range of priority number we can use
when setting it up?
If we do not want IRQn2 to preempt IRQn3, what will be the range of priority number we can use when
setting it up?
Prob 4 . Consider the problem of interrupt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!