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

Assembly language ASCII string ordering

I'm new into using the MSP430 with Code composer and i was doing a lab assignment where i had simple instructions coded in. I ran this instruction: mov.w #'ABC', R9 in result, I obtain a #0x4241 in R9. i understand that the above in quote 'ABC' are…
Nicholas
  • 21
  • 2
2
votes
1 answer

How can I use an interrupt service routine to detect button events on this MSP430 code?

below is a code for the MSP430G2 micro-controller. I am having trouble adding to this assignment so far to include using the Interrupt Service Routine to my code. This code is a two bit counter which counts up using the S2 button on the launchpad…
2
votes
0 answers

How does jnz work in MSP430 assembly?

I'm running the following code: 448a: bf90 263e 0000 cmp #0x3e26, 0x0(r15) 4490: 0d20 jnz $+0x1c With an r15 value of: r15 = 439c While the memory looks like: 4390: 6045 0200 9c43 6400 8844 5044 3e26 0000 Note that at memory…
Ash
  • 97
  • 1
  • 8
2
votes
1 answer

MSP430 - how to use timer A1 interrupts for different purposes?

Is it possible to use timer A1 interrupts for different purposes with different set of lines? I get error message that I am declaring the timer A1 interrupts, that I have duplicate declaration. My code has a low power interrupt using timer A1, and…
Aladdin
  • 23
  • 3
2
votes
2 answers

ModBUS RTU with CC430F6137

I wrote a code to communicate via ModBUS RTU for Master device with 9600 baudrate. I downloaded a Simulation Program which is ModBUS Slave. I could communicate with PC by this way. I could read Input Register with my microcontroller. I downloaded…
Mustafa
  • 147
  • 1
  • 12
2
votes
1 answer

MSP430 SWAP bytes explanation assembly

When we have a code like this : main: MOV #SFE(CSTACK), SP ; set up stack ;;; some instructions ....... ; load the starting address of the array1 into the register R4 MOV.W #arr1, R4 ; load the starting…
user629034
  • 659
  • 2
  • 11
  • 30
2
votes
0 answers

Assembly Indexed Mode

Here's the assignment: Write a program in assembly such that it contains a subroutine which performs the AND operation with the entry of register R6 and hexadecimal #0001h. And then repeat it by applying the same operation to five successive memory…
2
votes
3 answers

Different results between a 16-bit int machine and a 32-bit int machine in a subtraction

When the code below is run against a 16-bit integer machine like MSP430 micro controller, s32 yields 65446 #include uint16_t u16c; int32_t s32; int main() { u16c = 100U; s32 = 10 - u16c; } My understanding is that 10 -…
Nguai al
  • 958
  • 5
  • 15
2
votes
2 answers

How to compare negative numbers with positive ones in assembly code?

I am using a TI MPS430G2553 launchpad and Code Composer Studio v6 I am trying to compare to numbers in an array. I am looping throught the array and at each number I compare that number to the next number in the array. If the next number is less…
Matt
  • 2,232
  • 8
  • 35
  • 64
2
votes
1 answer

Force minimum size of linker script section

I have a set of linker script sections for an interrupt vector table. The sections will be located in RAM and will be loaded into RAM by my code. As each vector must be at an absolute location, there is a separate section (and a separate memory…
P Mendham
  • 241
  • 5
  • 12
2
votes
2 answers

What are the names of interrupt service routines for the msp430 series of microcontrollers?

Is there a comprehensive list of names of interrupt service routines (ISR), specifically for msp430F5438A? Any help would be appreciated, thanks.
2
votes
1 answer

MSP430 (msp430-gcc) linker undefined reference to

I'm trying to compile my MSP430 project using the Linux msp430-gcc compiler. When I try to compile it using the CCS IDE it works just fine, but when I try to compile it using the msp430-gcc commandline tool, I get linker errors about functions like…
Olliek
  • 124
  • 2
  • 11
2
votes
1 answer

No output from pyserial

I am trying to write a code wit pyserial (v2.6) that should wait indefinitely for any input from the port specified using inWaiting() and then read it using read() but there's no luck and no output at all. What am I doing wrong? The program just…
Ahmed Al-haddad
  • 805
  • 2
  • 16
  • 41
2
votes
1 answer

MSP430 - XT1 Crystal turning OFF in LPM3

I am using MSP430F6638 controller. As per the Datasheet ACLK and the Source clock from which ACLK is derived from will NOT be turned OFF in LPM3 (Deep SLeep). But in my case, As soon as i enter the LPM3, XT1 stops oscillating. The above mentioned…
2
votes
1 answer

ELF Relocation Types on MSP430

I have to take a relocatable ELF file and fix the addresses in a MSP430-F5529 with red hat compiler (not TI). However, I don't understand how the relocations have to be made as I don't get the notation used. Here are the types and their…
UDKOX
  • 738
  • 3
  • 15