Question: C with Switch and LED (12 pts) Write a C program for the MSP 430, using switch 1 (S1) to control LED1, switch 2 (S2)

 C with Switch and LED (12 pts) Write a C program

C with Switch and LED (12 pts) Write a C program for the MSP 430, using switch 1 (S1) to control LED1, switch 2 (S2) to control LED2 separately. Use pullup resistors for the switch. LED1 is P1.0, LED2 is P1.1, S1 is P1.6, S2 is P1.7 5. a. b. c. d. if press S1, LED1 is on if press S2, LED2 is on; if press both, both LEDs are on; Make comments on each line of code to explain your program

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!