Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using a MSP430FR6989 launchpad. C language. c main.c X lel *main.c 1//Code that flashes the red LED 3#include 4#include 7 #define redLED BIT0 //red LED

Using a MSP430FR6989 launchpad. C language.

image text in transcribedimage text in transcribed

c main.c X lel *main.c 1//Code that flashes the red LED 3#include 4#include 7 #define redLED BIT0 //red LED at P1.0 8 #define greenLED B1T7 //green LED at P9.7 9 void main (void) i 10 volatile uint32_t i,j; 12 13 14 15 WDTCTLWDTPW I WDTHOLD; I/Stop the Watshdog timer 16 17 18 19 20 21 PM5CTL0 &=-LOCKLPM5; /Disable GPIO power-on default high-impedance mode P1DIR redLED; P1OUT-redLED; //Direct pin as output //Turn Red LED Off pgDIR-greenLED; P9OUT greenLED; //Direct pin as output /Turn Green LED On 23 24 //pg0UTl=-greenLED; 25 26 27 for(;;) i 28 29 30 //Delay Loop i 31 32 P1OUT AredLED; //Toggle Red LE 34 35 i 36 37 i 38 39 40 41 42 43

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions