Blinking the LED with MSP430

This is the second tutorial on MSP430 and it will feature code on blinking the led’s and hence will tell you on how to configure the ports as input and output, and how to make the port low and high when it’s declared as output. For those having a MSP430 launchpad, it has two on-board led’s connected via two jumpers to pins p1.0 and p1.6. Our task for today is to blink these led’s alternatively or toggle them. To start with open code composer studio, go to FILE->NEW->CCS PROJECT. After doing this, you will get a window mentioned below Enter your project name, select family as MSP430 and now variant is msp430g2253. Remember, this is a important step. To check your variant, refer your chip on the Launchpad. It clearly… Continue reading