Question: 1. Repeat the listing 8.4 part of Lab #9 using interrupts instead of polling (for C and Assembly). 2. Test your code using the Analog

1. Repeat the listing 8.4 part of Lab #9 using interrupts instead of polling (for C and Assembly).

2. Test your code using the Analog Discovery instead of the built-in push buttons and LEDs on the MSP430.
 1. Repeat the listing 8.4 part of Lab #9 using interrupts

Listing 8.4 Toggling the green LED when the push button is pressed, for MSP430 LaunchPad Rev.1.5 #include #define LED B1T6 #de fine BUTTON BIT3 void main (void) P?DIR = LED ; PiREN = BUTTON; P1OUT = BUTTON ; while(1) if ( (PIIN & BUTTON ) 0x00){ .delay.cycles(5000) if ( (P11N & BUTTON ) == 0x00){ P1OUT ^= LED ; while ((PIIN & BUTTON ) -= 0x00); lI

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!