Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Vi Special Issue On Database And Expert Systems Applications Lncs 7600

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2012th Edition

3642341780, 978-3642341786

More Books

Students also viewed these Databases questions