Problem #3. (20 points) Interrupts An MSP430-based system interfaces 4 external
ID: 3349130 • Letter: P
Question
Problem #3. (20 points) Interrupts An MSP430-based system interfaces 4 external devices (EDO, EDI, ED2, ED3), each capable of generating an interrupt request. The external devices place a request by setting the request line (a transition from a logic one to a logic zero). The request lines are connected on port 1 pins P1.7, P1.6, P1.5, and P1.4, respectively. A request line is kept active as long as the interrupt request is pending, until the request is serviced. Answer the following questions. A (5 points) Specify the registers that need to be initialized at the beginning to configure the system for accepting the interrupts from the devices EDO-ED3. Fill in the table below. Note: to specify interrupts active on the falling edge the edge-selection bits should be set to 1. Register Full Name Content after initialization intem ins from Eno-Epi Outline the service routine (orExplanation / Answer
Register Full Name Content after initialization P1IE Port one Interrupt Enable Enables port 1 pins for Interrupt operation when set. P1IES Port one Interrupt Edge Select Determines the Interruput based on rising or falling edge P1IFG Port one Interrupt Flag Initialised to 0 to Clear pending Interrupts. Changes to 1 when Interrupt is in process. SR.GIE Status Register - Global Interrupt Enable This bit is set to enable all maskable Interrupts
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.