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
1
vote
1 answer

Carry flag in MSP430 is confused

"mov #10,r5\n" "sub #1,r5\n" //test value I run in hardware, when 'sub' exec, the Carry flag is set. why? enter image description here
Duo jia
  • 13
  • 2
1
vote
1 answer

What causes the error #18 expected a ")" on a MSP430

Compiling the following C++14 code for a MSP430 using TI Code Composer I got the following errors: subdir_rules.mk:14: recipe for target 'main.obj' failed "Interface.h", line 75: error #18: expected a ")" "Derived.h", line 91: error #18: expected a…
Bart
  • 1,405
  • 6
  • 32
1
vote
1 answer

unresolved symbols remain Code composer studio

I have been trying out my first assembly level program on MSP4302355 microcontroller. All i am doing is just moving values from one register to another. But whenever I compile the code i am getting a errors "error #10234-D: unresolved symbols…
Eswar Reddy
  • 35
  • 2
  • 6
1
vote
1 answer

MSP430F5xxx RTOS restore context assembler not clear

I'm trying to port a FunkOS RTOS from MSP430F2xxx to MSP430F5529. I'm using CCS 10.4 with TI v20.2.5 LTS compiler. I ported most of the code but I have problem with the RTOS taking over the control. After I initialize all the tasks I call…
KaDw
  • 78
  • 1
  • 7
1
vote
0 answers

Kiss FFT on TI MSP430FR6989

I am trying to run Kiss FFT (Kiss FFT github) on an MSP430FR6989 Launchpad. For now, I'm just trying to get the kiss_fftr test shown here to work. I am running into an issue with kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem).…
1
vote
1 answer

MSP430 i var randomly resets at value 0 in middle of loop

So I got this very strange problem that happens every time. I am trying to interface and LCD with the MSP430 module. But in this function at the middle of the loop, the variable i resets itself to 0 for no apparent reason at all, somethimes it even…
1
vote
2 answers

Trouble reading memory

When I run my code through the debugger, after a series of steps it eventually gets lost and executes commands out of order. I'm not sure if the stack is overflowing or what. This is the error I usually get: MSP430: Trouble Reading Memory Block at…
Dustin
  • 89
  • 11
1
vote
2 answers

MSP430F5418 port interrupt occurs for both high-to-low and low-to-high transitions

I had set MSP430F5418 P2.5 for high to low transition. But I am getting interrupts for both low-to-high and high-to-low transitions. Please my code snippet below. P2OUT |= BIT5 /* Enable P2.5 internal resistances */ P2REN |= BIT5 /*…
Ammamon
  • 467
  • 1
  • 10
  • 18
1
vote
1 answer

Negative operand in mov.b Instruction

I am currently working to solve the stage Hanoi in the Microcorruption CTF. This CTF focusses on the MSP430 Family (RISC, 16Bit). I stumbled across the following lines: 445c: c443 fcff mov.b #0x0, -0x4(r4) . . . 4472: 5f44 fcff mov.b…
Bassrelic
  • 90
  • 11
1
vote
0 answers

How to disable some msp430 gcc code injections

I'm working on a project for MSP430 microcontrollers. This project is a code instrumenter tool which requires all of the code that is deployed on the device to be instrumented. The tool is basically ready but for one problem: in order to work it…
Michele Grisafi
  • 149
  • 1
  • 9
1
vote
0 answers

Proper function calling and array manipulation in assembly for MSP430

I am making a program that is going to multiply powers of 2 and place the products into the elements of an array. I want to do this using the HW multiplier (and placing those products into an array) and the SW multiplier (and placing those products…
Turndown
  • 11
  • 1
1
vote
1 answer

MSP432 LaunchPad pushbutton initialization

I am struggling to initialize the LEDs and pushbuttons on my MSP432p401R LaunchPad. The problem: Write a code that reads input of the two pushbuttons S1 & S2 (P1.1 & P1.4) and changes the state of the LED correspondingly: none - off S1 - RED S2 -…
Kyle Bains
  • 19
  • 2
1
vote
3 answers

PWM "Pulses" w/ MSP430

I am trying to develop a delay generator that can generate 50 "pulses" within a short amount of time and then hold for a much longer time, then repeat. I am familiar with using the MSP 430 as a constant PWM source, but I am not sure what the best…
CLand
  • 11
  • 2
1
vote
2 answers

Bitwise operator on registers on MSP430 without dereferencing

I'm using an MSP430G2553 and TI have some helper code defined in headers that I'm using (msp430g2553.h). So for example if I want to set the direction of GPIO pin 0 of port 1 I can write P1DIR |= BIT0; Out of curiosity I looked at how P1DIR is…
user2251965
  • 371
  • 2
  • 9
1
vote
1 answer

MSP430 I2C read multiple bytes communication problem

I'm trying to use a temperature sensor(PCT2075) by MSP430F249 To get a temperature, I get a 2bytes from this sensor. I wrote a code from this…
Jaeseo Lee
  • 172
  • 10