How does blinking the led work on MSP430?

How does blinking the led work on MSP430?

This is the second tutorial on MSP430, and it will feature code on blinking the led’s and hence will tell you how to configure the ports as input and output and make the port low and high when it’s declared as output. For those having an MSP430 launchpad, it has two onboard led’s connected via two jumpers to pins p1.0 and p1.6.

What is the watchdog timer on the MSP430?

Inside the main function, you can see, initialization of the watchdog timer. The MSP430 and many of the new generation microcontroller includes a special timer called the Watchdog Timer. Its function is to reset the CPU in case of an event when the CPU gets stuck.

How to debug MSP430 led in Windows 10?

To build and debug, click on PROJECT->BUILD ALL and then click on Run->Debug. While building, you will see in the console at the bottom of the window, that will say ‘finished building target’. After clicking on debugging, you will get a popup related to power saving, simply click proceed.

Is there a delay function in MSP430?

The important point is there is no inbuilt delay function in MSP430, so you have to use a loop to provide the delay. Assigned a loop for i=0 till i=30000, incrementing it by 1 every time. The number 30000 will determine your toggling time.

What kind of microcontroller is MSP430 LaunchPad?

The microcontroller on the LaunchPad is the MSP-EXP430G2, which has 20 Pins. It’s useful to learn what your microcontroller’s “Pin out” is, which you can usually find in the microcontroller’s datasheet.

How do you connect LEDs to breadboard with MSP430?

This is providing power to the breadboard. Start with connecting a 560K resistor from the negative column to the row you will be connecting the negative of the LED. (suggest from the Blue (-) rail one end of the resistor and connect the other end of the resistor to row 3 column c).Hold up the LED, there is a long leg and a short leg.