using code composer studio 1. write a program for the msp430fr6989 that will light LED1, whenever...

90.2K

Verified Solution

Question

Electrical Engineering

using code composer studio 1. write a program for themsp430fr6989 that will light LED1, whenever S1 is pressed. Itshould turn off whenever S1 is released.

2. Write a program that will make LED1 blink 5 times when S1 ispressed, and then stop.

Answer & Explanation Solved by verified expert
3.9 Ratings (592 Votes)
1 include define LED0 BIT0 define LEDOUT P1OUT define LEDDIR P1DIR define BUTTON BIT3 unsigned int blink 0 void mainvoid WDTCTL WDTPW WDTHOLD Stop watchdog timer LEDDIR LED0 Set P10 to output direction LEDOUT LED0 Set the LEDs off P1REN BUTTON pullerResistor on the buttonpin is enabled P1OUT BUTTON    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students