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

Sound Sensor RGB LED coding

So we connected a sound sensor to our board to light up our LED light when sound is heard, it kinda works but there some hiccups. We tried messing with the code for a while but no matter what we do the senor will only react to loud even when we put…
1
vote
2 answers

capture the incoming signal

i'm using msp430f2013 micro controller in my project.. in that i need to calculate the incoming train of pulse signal frequency.... i don't know how to do it.... can anyone help me in this.. example code is more usefull to me.... advance thanks for
user624122
  • 11
  • 2
1
vote
3 answers

Measure CPU speed of IoT devices at different temperatures

I want to measure the computational speed of a telosB at different temperatures. To program the device I use contiki. My idea was to let it send messages in fixed intervals with the return of clock_time (void) as content. A second device reads…
schande
  • 576
  • 12
  • 27
1
vote
1 answer

Code Composer Studio Skipping Breakpoints When Compiling with GNU

I'm attempting to debug a program in Code Composer Studio compiling with the GNU toolchain rather than the default TI, it's my understanding that CCS by default only places CCS breakpoints which are not recognized by the GDB when working in a CCS…
1
vote
3 answers

JL instruction in MSP430

Given the code in MSP430: CLR R6 MOV #5, R5 L1: DEC R5 CMP #0, R5 JL L1 INC R6 I was told the value of R5 after execution is 4 and not 0. Is this something specific to JL…
user629034
  • 659
  • 2
  • 11
  • 30
1
vote
1 answer

Bubble Sort Assembly (MSP430)

So I'm having trouble dictating where I should place my swap statements in my sort function. It works here and there but Maybe I've cmp.b/mov.b in the wrong memory address or in my line? I am using a TI MSP430 which is a 16 bit micro controller, so…
Pablo Porta
  • 13
  • 1
  • 6
1
vote
1 answer

Define & Iniitialise flash variable in main

Struggling with what is probably a simple command to define and initialise a flash variable in main.c (IAR Embedded Workbench / TI MSP430F) I have a flash routine In a separate C file (Battery_Store.c) which takes in a variable (from main) and…
Active
  • 143
  • 2
  • 10
1
vote
0 answers

MSP430 Assembly move contents of .data section to reserved space in address label

.data Vdata .byte 7 Wdata .word 10,-1 Xdata .space 2 Ydata .string "BA", "BY" Zdata .word 99h .sect "mysect" Dest .space 14 mysect is a section i have created assigned to the…
1
vote
1 answer

C code: Slowing down While loop after each iteration?

I'm currently working with the MSP430G2553, which is coded in C. For some reason I seem to be awful at coding basic For and While loops, and I can't figure out how to make a While loop take longer to complete after every iteration. Basically, I have…
Martian
  • 11
  • 1
1
vote
0 answers

How do I view the output of a program loaded into MSP430?

I have an AES encryption program that has been loaded into the MSP430 Launchpad. Is there any way I am able to view the output on the terminal to check whether the encryption works? I am using Ubuntu 16.04. This is what the terminal shows as I run…
Amer Aiko
  • 21
  • 2
1
vote
0 answers

Can't read accelerometer data

I am trying to read accelerometer data from MMA8652 with msp430G2553, but always getting 0. It looks it never reads xval. Compiler has warnings: #112-D statement is unreachable #161-D declaration is incompatible with previous "i2c_rx" (declared at…
Audrius M
  • 21
  • 3
1
vote
0 answers

Setting IAR Workbench variables in code

I made at .bat file that modifies a .h file containing a #define BUILD_VER so that it gets incremented every time I build. There is also a #define MAJOR_VER in the same .h file that defines the version that the customers will see. I'm trying to…
1
vote
1 answer

MSP430 timer clock divider doesn't work

I am trying to do simple PWM with MSP430. Working with timer I am facing one issue. I have noticed that clock divider doesn't make any sence eather I set ID_3 that suppose divide clock by 8, or I set ID_1 or ID_2. The output frequency that I am…
Audrius M
  • 21
  • 3
1
vote
1 answer

RAM and ROM usage

I have modified contiki code to implement a solution to an attack. I want to measure the RAM and ROM usage of modified contiki code. What is the standard way to compute RAM and ROM usage in contiki? I am using Tmote sky motes in cooja simulator. I…
Shridhar R Kulkarni
  • 6,653
  • 3
  • 37
  • 57
1
vote
0 answers

mqtt_client project in CC3100 SDK gives linker errors

I am trying to build the mqtt_client project in the CC3100SDK_1.2.0, so that later I can integrate it into the getting_started_with_wlan_station project for further work. As suggested in the mqtt_client.pdf document, I built the osi_lib.lib and…
Deepak
  • 23
  • 5