1. Engineering
  2. Computer Science
  3. using a msp430fr6989 launchpad c language...

Question: using a msp430fr6989 launchpad c language...

Question details

Using a MSP430FR6989 launchpad. C language.

c main.c X lel *main.c 1//Code that flashes the red LED 3#include 4#include <msp430fr6989.h> <stdint.h> 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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution