Question: This code doesn't work can someone fix it? First mistake I see is that PIDIR is supposed to be P1DIR , check please and add
9:36 AM ooooo T-Mobile LTE 100% this is the code to toggle the LED at P1.0 pin connect Led anode pin to P1.0 and cathode to Ground #include "msp430.h". /header file for msp430 int main0 //code execution start from here WDTCTL WDTPW. WDTHOLD://watchdog timer disable for infinite running the code PIDIR F0x07//setting P1.0 as OUTPUT while(1)//forever loop P1OUT 1//writing HIGH on Pl.0 for(int i 0; ik 5000; i++);//delay for 5 sec P1OUT 0;//writing Low on P1.0 for int i 0; i a 5000 i +0;//delay while main for programing easy with msp430 use energia ide 09493148685 for support
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
