Talk:Blink your first LED

Comments on Blink your first LED -

Sicness said ...
>   for(i=0; i< 20000; i++);                // Delay between LED toggles. This for-loop will run until the condition is met. //In this case, it will loop until the variable i increments to 50000.

- Not 50000.

--Sicness 02:45, 16 August 2012 (CDT)

AdrianF said ...
Good catch! Just fixed it. Thanks

--AdrianF 09:51, 18 August 2012 (CDT)

Rcrw88 said ...
Could somebody please explain to me how to actually program/flash the device? All of these examples just have you running debug... I don't want to be connected via the USB all the time if I'm actually using the board away from a computer....

--Rcrw88 16:48, 15 March 2013 (CDT)

Rcrw88 said ...
Never mind, used to having to specifically flash the device with an external program. Guess this is done all in CCS..?

--Rcrw88 16:59, 15 March 2013 (CDT)

Jeffburton said ...
To configure direction for both red and green: P1DIR |= 0x41;

To toggle both: P1OUT ^= 0x41;

To make synchronize (make sure both are on at the same time), put this before the infinite loop:

P1OUT |= 0x41;

--Jeffburton 19:48, 20 March 2013 (CDT)

Touletan said ...
I don't know why but when using Ubuntu gcc, nop function must be called in the for loop like this: for(i=0; i< 20000; i++) { nop; }

--Touletan 18:43, 4 April 2013 (CDT)

VLeshka said ...
Jeffburton, thanks!

--VLeshka 03:42, 28 April 2013 (CDT)

Kmehindru4 said ...
how can we ON the watchdog timer feature in msp430 & set it's duration of operation...

--Kmehindru4 21:56, 4 June 2013 (CDT)