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

TI CC3100 getting_started_with_wlan_station example gives linker error

I am trying to send some sensor values read through ADC on a port of MSP430F5529 to an access point using CC3100. I took the getting_started_with_wlan_station example from the CC3100SDK_1.2.0 and added the MSP430F55xx_adc_01.c code from the…
Deepak
  • 23
  • 5
1
vote
1 answer

analyzing MSP430 code

so if had the following statements in assembly for the msp430 with the rf2500 chip 0x0000c06a <+44>: 3f 40 22 00 mov #34, r15; 0x0022 and 0x0000c07c <+62>: 3e 53 add #-1, r14; r3 As==11 how many bytes does each instruction occupy?
andrewF
  • 54
  • 8
1
vote
1 answer

IAR Pre-Build batch file python call not working

I'm trying to setup a script to increment a build number inside a version file in IAR EW430. I've got the python script and the batch file working from the command line, but when I run it on the IAR IDE, the build number doesn't increment. In the…
Matt C
  • 13
  • 3
1
vote
1 answer

Interfacing an MSP430g2553 with a 16x4 LCD screen

I'm having trouble getting my msp430 to communicate with a 16x4 LCD screen. Data sheet for the LCD screen: https://www.beta-estore.com/download/rk/RK-10290_410.pdf Here is my code: #define READMODE P2OUT = (P2OUT | BIT1) //set R/W pin high #define…
user3736114
  • 458
  • 1
  • 6
  • 17
1
vote
0 answers

Real time data plotting using MSP430 on python

Actually I am using a function generator to give an external analog signal to input to the ADC of MSP430F5438A After that I tried to monitor the ADC data of MSP430 through UART of MSP430 on my PC, that I have done by using Tera term Now I am trying…
1
vote
1 answer

Why does this if statement not run?

I have this C code, and neither the if or else block is running when I go through it with the debugger Here is the code: if(P2IN & BIT4 == BIT4 ){ car_lock ^= BIT0; is_pressed = 1; }else{ is_pressed = 0; } At this point in the code,…
Matt
  • 2,232
  • 8
  • 35
  • 64
1
vote
1 answer

Measuring clock frequency on pin on MSP430

Using embedded programming. working on msp430F6779 and need to check frequency of DCO(if is 25MHz). Idea was to pull frequency on I/O pin and measure frequency with oscilloscope. In the datasheet there is nothing written about this opportunity. The…
user5939530
  • 51
  • 1
  • 6
1
vote
1 answer

How does port numbering works for receiving MODBUS TCP packets?

I am running an application on my microcontroller(MSP432), which writes data to an Ethernet cable to send it over to PC. I am using Packet sender to view the data received on the port(502) on PC from MC. Data received on PC As we can see in the…
JKV
  • 13
  • 5
1
vote
0 answers

MSP430 I2C slave holding clock line low

I'm more of a high level software guy but have been working on some embedded projects lately so I'm sure there's something obvious I'm missing here, though I have spent over a week trying to debug this and every 'MSP' related link in google is…
Muckle_ewe
  • 1,123
  • 3
  • 12
  • 18
1
vote
2 answers

Energia compilation error :exit status 1 Error compiling for board MSP-EXP430FR4133LP

I am trying to code for msp430 using energia . Can anyone help me understand the error? Energia: 1.6.10E18 (Windows 8.1), Board: "MSP-EXP430FR4133LP" msp430-g++: error: islam\Desktop\energia-1.6.10E18\hardware\tools\msp430/include: No such file…
Md Sifatul Islam
  • 846
  • 10
  • 28
1
vote
3 answers

How does assembly code know if a value is signed or unsigned?

I get very confused when it seems like sometimes my code treats a certain value as signed and sometimes it treats it as unsigned when comparing values. How does the code know whether a value is signed or unsigned?
Matt
  • 2,232
  • 8
  • 35
  • 64
1
vote
3 answers

MSP430G2553 Timer Intervals

After reading the text about five times and googling I've decided to reach out for help. I'm currently in the process of using Timer_A interrupt to turn on/off two LEDS in intervals of 1 second/10 seconds/1 minute one at a time. The default program…
TheJr
  • 51
  • 7
1
vote
2 answers

Strange logf behavior when calculating Poisson packet generation times in Contiki OS

I aim to generate packets accoding to Poisson distribution in Contiki Cooja using MSP430 Experimenter board (Exp430) platform (same issue applies to Zolertia Z1 motes which also have MSP430-based MCU). I included the math library and coded the…
Tlos
  • 151
  • 1
  • 12
1
vote
1 answer

How do loops with incrementing global variables work without volatile modifier?

I have been working on MSP430G2553 using using the mspgcc compiler and as an introductory program I have begun with blinking an LED. The code that I have used is as follows: #include unsigned int i; void main(void) { WDTCTL = WDTPW…
Akash
  • 11
  • 2
1
vote
1 answer

expected a ")" in IAR IDE

I got the error Error[Pe018]: expected a ")" at CPU_state == cpuStateOff. When I change cpuStateOff to 0 it's OK. I don't know why. In my PERIPHERAL_APP.h: #ifndef __PERIPHERAL_APP_H #define __PERIPHERAL_APP_H // CPU state #define CPU_STATE_OFF …
user3778432
  • 71
  • 1
  • 7