Question

13.3.1 - What is the vector label that we need to use when initializing the vector...

13.3.1 - What is the vector label that we need to use when initializing the vector address in C for a port 2 interrupt?

Question 1 options:

#pragma vector = P2_VECTOR

#pragma vector = PORT2_VECTOR

#pragma_vector = VECTOR_P2

#pragma_vector = VECTOR_PORT2

13.3.2 - What is the vector label that we need to use when initializing the vector address in C for a port 3 interrupt?

Question 2 options:

#pragma_vector = VECTOR_PORT3

#pragma_vector = P3_VECTOR

#pragma vector = VECTOR_P3

#pragma vector = PORT3_VECTOR

13.3.3 - What does the __enable_interrupt() function do?

Question 3 options:

Toggles the GIE bit in the status register

Clears the GIE bit in the status register

Sets the GIE bit in the status register

Complements the GIE bit in the status register

Homework Answers

Answer #1

Ans. 1 #pragma_vector = VECTOR_P2 , is the right initialisation for vector address with pragma in C for port2 interrupts. .

Ans 2 similiarly from above ,   #pragma_vector = VECTOR_P3 , is the right initialisation for vector address with pragma in C for port3 interrupts.

Ans3. __enable_interrupt() function enables global interrupts by setting the GIE bit in the status register and also returns the value of the status register before the GIE bit is set .

Know the answer?
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
Similar Questions
(In c code only, not c++) We will simulate the status of 8 LEDs that are...
(In c code only, not c++) We will simulate the status of 8 LEDs that are connected to a microcontroller. Assume that the state of each LED (ON or OFF) is determined by each of the bits (1 or 0) in an 8-bit register (high-speed memory). Declare a char variable called led_reg and initialize it to 0. Assume that the least-significant bit (lsb) controls LED#0 and the most-significant bit (msb) controls LED#7. In the main function, build and present a...
We have learned that we can consider spaces of matrices, polynomials or functions as vector spaces....
We have learned that we can consider spaces of matrices, polynomials or functions as vector spaces. For the following examples, use the definition of subspace to determine whether the set in question is a subspace or not (for the given vector space), and why. 1. The set M1 of 2×2 matrices with real entries such that all entries of their diagonal are equal. That is, all 2 × 2 matrices of the form: A = a b c a 2....
Q1 ) We are writing a subroutine, and want to use $t0. What are the considerations?...
Q1 ) We are writing a subroutine, and want to use $t0. What are the considerations? (check all that apply) 1 - We know that the routine which called us gives us permission to use this register, so we don't have to save its value before using it. 2 - The routine which called us may have an important value in that register, so we should save its value before using it. 3- We know that the subroutine won't touch...
Scenario 1 (Use the network 221.153.17.0 for the following questions.) We need to subnet this network...
Scenario 1 (Use the network 221.153.17.0 for the following questions.) We need to subnet this network to support a minimum of 4 (seven) networks. How many bits do we need to use from the last octet to support this? How many hosts would each network be able to support? What will the subnet mask be? Give the network, IP range, and broadcast address for the first 3 networks: Network 1:    _________________             Broadcast: _________________ Host IP Range:         _________________ to _________________...
For this assignment, you need to write a parallel program in C++ using OpenMP for vector...
For this assignment, you need to write a parallel program in C++ using OpenMP for vector addition. Assume A, B, C are three vectors of equal length. The program will add the corresponding elements of vectors A and B and will store the sum in the corresponding elements in vector C (in other words C[i] = A[i] + B[i]). Every thread should execute an approximately equal number of loop iterations. The only OpenMP directive you are allowed to use is:...
For this assignment you need to write a parallel program in C++ using OpenMP for vector...
For this assignment you need to write a parallel program in C++ using OpenMP for vector addition. Assume A, B, C are three vectors of equal length. The program will add the corresponding elements of vectors A and B and will store the sum in the corresponding elements in vector C (in other words C[i] = A[i] + B[i]). Every thread should execute approximately equal number of loop iterations. The only OpenMP directive you are allowed to use is: #pragma...
For this assignment, you need to write a parallel program in C++ using OpenMP for vector...
For this assignment, you need to write a parallel program in C++ using OpenMP for vector addition. Assume A, B, C are three vectors of equal length. The program will add the corresponding elements of vectors A and B and will store the sum in the corresponding elements in vector C (in other words C[i] = A[i] + B[i]). Every thread should execute an approximately equal number of loop iterations. The only OpenMP directive you are allowed to use is:...
We are using a raspberry pi in my computer systems class. We need to Write a...
We are using a raspberry pi in my computer systems class. We need to Write a statically allocated linked list in ARM assembly. Steps You Should Follow Step 1 You will statically allocate some space for your link list elements. You need to make 5 elements, each elements should have two components, the next pointer first then the value stored. First inialize next pointer to NULL. The value stored at the address will be a string pointer. It doesn't matter...
We are using a raspberry pi in my computer systems class. We need to Write a...
We are using a raspberry pi in my computer systems class. We need to Write a statically allocated linked list in ARM assembly. Steps You Should Follow Step 1 You will statically allocate some space for your link list elements. You need to make 5 elements, each elements should have two components, the next pointer first then the value stored. First inialize next pointer to NULL. The value stored at the address will be a string pointer. It doesn't matter...
ou may need to use the appropriate appendix table or technology to answer this question. The...
ou may need to use the appropriate appendix table or technology to answer this question. The port of South Louisiana, located along 54 miles of the Mississippi River between New Orleans and Baton Rouge, is the largest bulk cargo port in the world. The U.S. Army Corps of Engineers reports that the port handles a mean of 4.5 million tons of cargo per week.† Assume that the number of tons of cargo handled per week is normally distributed with a...