Questions tagged [msp430]

The msp430 is a family of 16-bit microcontrollers from Texas instruments.

The MSP430 family is designed for low cost, low power consumption embedded applications. The architecture dates from the 1990s and is reminiscent of the DEC PDP-11.

The Wikipedia article contains an extensive description of the architecture and variants, and the home page has an extensive set of technical documents, support tools and products. There is also the developer community.

640 questions
-2
votes
1 answer

How can i return two integer from function

I want create a function and return two integers: i and c. How can i do this? Thanks in advance a++ ; if(i == 288){ a = 0 ; i-- ; b++ ; c++ ; } if(c == 5000) { i = 0 ; c = 0 ; } if(a == 1 ){ P2OUT = 0xFF ; a = 0 ; } if (b ==…
Mustafa
  • 37
  • 1
  • 7
-2
votes
1 answer

Parentheses in #define-macros fail

Programming an msp430 in CCSTUDIO. In second and third line the expressions compile fine without parentheses, but with parentheses as shown in second line, they fail to compile at the line where the macro is used. Why does it fail? #define LED2…
bretddog
  • 5,411
  • 11
  • 63
  • 111
-2
votes
1 answer

connect TI msp430 CC3200 and android app to azure

i'd like to know if it is possible to connect to the very same cloud system(or a database), azure, a msp430 with wifi module cc3200 and a android app. i want to write data in the cloud using the android app and read those data in the Texas Msp430,…
-2
votes
1 answer

MSP430 Interrupt Overhead

I am writing an ISR for the MSP430. It reads the volatile PxIFG register and copies it into a stack variable on the first instruction. Is there any overhead to an ISR jump or can I expect __interrupt void SW_PRESSED_ISR(void) { unsigned short…
Apcragg
  • 133
  • 1
  • 7
-2
votes
2 answers

Not sure what this line of code does in c

tempValue = input2[0] << 8; I can't figure out what the << does in this line of code. What is this used for?
Tyler McAtee
  • 300
  • 2
  • 12
-2
votes
1 answer

JAVA GUI : To send and receive data between an MSP430 and a Laptop

I have a requirement where I need to establish communication between Laptop and an MSP 430 device. The interface should be JAVA GUI. I have experience with MSP430 and a little knowledge of JAVA. Could any one suggest how to proceed for this or any…
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
-3
votes
1 answer

C array of pointers to functions pointers breaks program above certain length

Hi im trying to call functions from a string the microcontroller receives. To do this the micro controller find recieves and compares this to the names in the peripheral name list. It uses the index to get a pointer to a list of functions names…
JAck
  • 15
  • 2
-3
votes
1 answer

will carry flag be set after cmp[.b] #4, #-1 ? [MSP430 16 bit]

[MSP430 16 bit] 0x437c mov[.b] #-1, r12 0x926c cmp[.b] #4, r12 0x2801 jlo 0xda36 Could anyone help me calculation (cmp[.b] #4, r12 ) with Binary? Example : r12-#4= 1111111111111111 - 0100 @@? I dont know how to calculation cmp with…
鍾豐吉
  • 11
  • 3
-4
votes
1 answer

Interrupt implementation for msp430 microcontroller

Can anyone explain me how to implement msp430 interrupts I need to work for uart interrupts . what does it means USCI_A2_VECTOR ??
-6
votes
0 answers

WITH C IN MSP430 WITH IAE EMBEDDED WORKBENCH

I would appreciate it if you wrote down a code that performs temperature control for the air conditioner. When the temperature exceeds 22 degrees, the clock starts running. The clock starts running, the controller outputs a voltage of 2.5 to 10…
1 2 3
42
43