Question

State how to enable an interrupt by a NVIC function. What is the difference between the...

State how to enable an interrupt by a NVIC function. What is the difference between the following two statements?

NVIC->ISER[1] |= (1<<6); //enableIRQ(USART2_IRQn)

NVIC_EnableIRQ  ( 38 );   // 38: USART2 interrupt no

Find out the NVIC functions for the following operation

Resets the whole system including peripherals.

Sets the priority grouping.

Returns the value of the current priority grouping.

Enables the interrupt IRQn.

Disables the interrupt IRQn.

Sets the priority for the interrupt IRQn.

Returns the priority for the specified interrupt.

Sets the interrupt IRQn pending.

Returns the pending status of the interrupt IRQn.

Clears the pending status of the interrupt IRQn, if it is not already running or active.

Returns the active status for the interrupt IRQn.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

Note: multiple questions asked, please post unanswered questions separately

State how to enable an interrupt by a NVIC function.

  • The Nested Vector Interrupt Controller (NVIC) is a controller used to perform different functions associated with interrupts.
  • “void NVIC_EnableIRQ (IRQn_Type IRQn           )” function evoke is used to enable an interrupt the device specific interrupt value IRQn is used to identify the device from which interrupt is happened.
  • The SETENA register will control the enable interrupt process.

What is the difference between the following two statements?

NVIC->ISER[1] |= (1<<6); //enableIRQ(USART2_IRQn)

NVIC_EnableIRQ  ( 38 );   // 38: USART2 interrupt no

  • The first statement is to enable the interrupts from the interrupt service routine by selecting the interrupt priority.
  • The interrupt values received at the USART port will be used here.
  • The second statement is used to enable a particular interrupt by specifying that interrupt number.
Add a comment
Know the answer?
Add Answer to:
State how to enable an interrupt by a NVIC function. What is the difference between the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Summarize these pages in your own style and you have to include in your report some...

    Summarize these pages in your own style and you have to include in your report some figures highlighting the relation between these operations. Basic AGGREGATE functions (Revision) COUNT: returns the number of tuples, which meet the specified condition: SELECT COUNT(DISTINCT Dept) AS Num_Depts FROM subject: SUM: returns the sum of the values in a specified column (i.e. numeric column) SELECT COUNT(*) AS hi_sal, SUM(salary) FROM Lecturer WHERE Salary > 4500 MIN: returns the minimum value in a specified column (numeri...

  • Edit a C program based on the surface code(which is after the question's instruction.) that will...

    Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....

  • The differences & similarities between the federal & state court systems. 2. The structure of the...

    The differences & similarities between the federal & state court systems. 2. The structure of the Washington state court system; i.e. the trial court of general jurisdiction, the intermediate appellate court, the state supreme court. 3. Remember, Washington is in the 9 th Circuit Court of Appeals. 4. Under both the Washington state and federal court system, there is one appeal as of right. Appeals to the Washington Supreme Court(in the state system), or to the U.S. Supreme Court in...

  • Chapter overview 1. Reasons for international trade Resources reasons Economic reasons Other reasons 2. Difference between...

    Chapter overview 1. Reasons for international trade Resources reasons Economic reasons Other reasons 2. Difference between international trade and domestic trade More complex context More difficult and risky Higher management skills required 3. Basic concept s relating to international trade Visible trade & invisible trade Favorable trade & unfavorable trade General trade system & special trade system Volume of international trade & quantum of international trade Commodity composition of international trade Geographical composition of international trade Degree / ratio of...

  • This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation...

    This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...

  • Read this article. Then write a 250 word response on two of the programs you like...

    Read this article. Then write a 250 word response on two of the programs you like the most. Open source business intelligence software 1. BIRT BIRT is an open source BI program that CloudTweaks says is often viewed as the industry standard. BIRT boasts “over 12 million downloads and over 2.5 million developers across 157 countries.” Its users include heavyweights such as Cisco, S1, and IBM (which is also a BIRT sponsor). They also have maturity going for them, as...

  • What happened on United flight 3411?What service expectations do customers have of airlines such ...

    What happened on United flight 3411?What service expectations do customers have of airlines such as United and How did these expectations develop over time? Thank You! In early April 2017, United Airlines (United), one of the largest airlines in the world, found itself yet again in the middle of a service disaster this time for forcibly dragging a passenger off an overbooked flight. The incident was to become a wake-up call for United, forcing it to ask itself what to...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT