Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Name: L.ab Section: Question 3: GPIO Interrupt Processing and Using the Tiva Datasheet a. A GPIO input can cause an interrupt. i. What is the
Name: L.ab Section: Question 3: GPIO Interrupt Processing and Using the Tiva Datasheet a. A GPIO input can cause an interrupt. i. What is the name of the GPIO register for Port B that controls whether an input event on a GPIO pin, such as pin 3, is allowed to send an interrupt to the interrupt controller? l.., the register that enables interrupts from the port. ii. Sketch the register as shown in the datasheet description. Circle the bit or bit fields to enable a Port B pin 3 interrupt. Write a line of code using this register to enable interrupts from PB3 to be sent to the NVIC. b. The priority level of a GPIO port interrupt can be configured using the NVIC What is the name of the NVIC register that is used to set the priority level for Port B interrupts? (Hint: See Table 5.10 in the textbook.) i. ii. Sketch the register as shown in the datasheet description. Circle the bit or bit fields used to assign a priority value for Port B interrupts ili. Write a line of code using this register to assign a priority value of 5 to Port B interrupts c. An interrupt request usually must be cleared in the interrupt service routine What is the name of the GPIO register that clears an edge-triggered interrupt by Port B pin 3. i. ii. Sketch the register as shown in the datasheet description. Circle the bit or bit fields used to clear a Port B pin 3 interrupt. iii. Write a line of code using this register to clear an edge-triggered interrupt for PB3 Name: L.ab Section: Question 3: GPIO Interrupt Processing and Using the Tiva Datasheet a. A GPIO input can cause an interrupt. i. What is the name of the GPIO register for Port B that controls whether an input event on a GPIO pin, such as pin 3, is allowed to send an interrupt to the interrupt controller? l.., the register that enables interrupts from the port. ii. Sketch the register as shown in the datasheet description. Circle the bit or bit fields to enable a Port B pin 3 interrupt. Write a line of code using this register to enable interrupts from PB3 to be sent to the NVIC. b. The priority level of a GPIO port interrupt can be configured using the NVIC What is the name of the NVIC register that is used to set the priority level for Port B interrupts? (Hint: See Table 5.10 in the textbook.) i. ii. Sketch the register as shown in the datasheet description. Circle the bit or bit fields used to assign a priority value for Port B interrupts ili. Write a line of code using this register to assign a priority value of 5 to Port B interrupts c. An interrupt request usually must be cleared in the interrupt service routine What is the name of the GPIO register that clears an edge-triggered interrupt by Port B pin 3. i. ii. Sketch the register as shown in the datasheet description. Circle the bit or bit fields used to clear a Port B pin 3 interrupt. iii. Write a line of code using this register to clear an edge-triggered interrupt for PB3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started