Talk:MSP430 LaunchPad LED Timer

Comments on MSP430 LaunchPad LED Timer -

Colfaxmingo said ...
Where are these things defined?

"__enable_interrupt;"

"__bis_SR_register(LPM0 + GIE);"

"#pragma vector=TIMERA0_VECTOR __interrupt void Timer_A (void)"

--Colfaxmingo 16:50, 22 February 2011 (CST)

KodeIn said ...
My answer may be a bit late for you, but it may help somebody else.

They are defined in the "msp430g2231.h" file. If you are using CCS, they are found in the MSP430 folder of CCS.

--KodeIn 03:40, 27 May 2011 (CDT)

Chrishardy said ...
The Timer A0 interrupt code in example should rewrite into " #pragma vector=TIMER0_A0_VECTOR". Otherwise CCSV520 and IAR550 both cann't make or built the project!
 * 1) pragma vector=TIMERA0_VECTOR "

--Chrishardy 04:52, 13 October 2012 (CDT)

Ninux said ...
If you try this example on the LaunchPad and the given MCU (M430G2253) from the genuine content, you have to change the headerfile and modify the line

"__bis_SR_register(LPM0 + GIE);" to "__bis_SR_register(LPM0_bits + GIE);"

(tested on Ubuntu 12.10 with the following packages: binutils-msp430, gcc-msp430, gdb-msp430, msp430-libc, msp430mcu, mspdebug)

--Ninux 08:52, 20 February 2013 (CST)

Dongk10a said ...
mình không hiểu gì hết

--Dongk10a 03:44, 1 June 2013 (CDT)