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 |
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 .
Get Answers For Free
Most questions answered within 1 hours.