Question: I want to ask for questions about Interrupt priority. Let's say only 3 bits are implemented in the priority level register first. (other bit not

I want to ask for questions about Interrupt priority.

Let's say only 3 bits are implemented in the priority level register first. (other bit not implemented lead to 0)

I want to ask for questions about Interrupt priority. Let's say only

As you see there are preempt priority and sub-priority fields but

If there are two interrupts, for example, 0x40 [01000000] and 0xA0 [10100000].

Q1: how to know which priority group they belong to?

Q2: Assume they may be using group 5, and then for 0x40 [01|0 00000], 01 is preempt priority and 000000 sub-priority and for 0xA0[10|100000], 10 is preempt priority and 100000 sub-priority .

Now let's compare them.

a. Am I correct if I say 0x40 can preempt 0xA0 because of lower preempt priority?? [01 vs 10] 01000000 vs 10100000]

b. Am I correct if I say 0x40 can preempt 0xA0 because of lower sub-priority ??

Thanks

Table 7.5 Definition of Preempt Priority Field and Subpriority Field in a Priority Level Register in Different Priority Group Settings Priority Group 0 Preempt Priority Field Subpriority Field Bit 17:1] Bit 7:2] Bit 7:3] Bit 17:4] Bit 7:5 Bit 7:6 Bit 7 None Bit [O] Bit [1:0] Bit [2:0] Bit 13:0] Bit [4:0] Bit [5:0] Bit [6:0] Bit 17:0] 3 4 6 7 Table 7.5 Definition of Preempt Priority Field and Subpriority Field in a Priority Level Register in Different Priority Group Settings Priority Group 0 Preempt Priority Field Subpriority Field Bit 17:1] Bit 7:2] Bit 7:3] Bit 17:4] Bit 7:5 Bit 7:6 Bit 7 None Bit [O] Bit [1:0] Bit [2:0] Bit 13:0] Bit [4:0] Bit [5:0] Bit [6:0] Bit 17:0] 3 4 6 7

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 Databases Questions!