Question: I need help with these questions please ! 1. Given the following C program written for the MSP430 LaunchPad #include int num[91-11,1,0,1,0,1,e,1,ej; void main (void)

I need help with these questions please !

I need help with these questions please ! 1. Given the following

C program written for the MSP430 LaunchPad #include int num[91-11,1,0,1,0,1,e,1,ej; void main

1. Given the following C program written for the MSP430 LaunchPad #include int num[91-11,1,0,1,0,1,e,1,ej; void main (void) WDTCTL-WDTPWI WDTHOLD; int i-e,zeros-0,ones-0; P1DIR BIT0+BIT6; P1OUT 0; while(iones) P1OUT-BITe; else P1OUT BIT6; while(1); a) b) Comment each line of code (10 pts) Run the code in CCS (Code Composer Studio) and tell which LED connected to P1.0 or LED connected to P1.6 will turn on. (15 pts) (Observe P1 Registers) After reading Chapter 9 regarding interrupts for the MSP430G2553 answer the following questions (5 pts each): 3. a) What conditions must be met before a device can interrupt the computer? What is saved on the stack when an interrupt occurs? Where are interrupt vectors located in memory? ISRs? (True or False) Interrupts are predictable asynchronous events b) c)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!