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

IAR Embedded workbench 6 (MSP430 V5.6) Overriding program start

I am using IAR embedded workbench for MSP430 v5.60.7, which is IAR embedded workbench version 6.6. I am using C99. I am trying to override __program_start() with my own symbol, a function called __unit_test_main(). I have gone to the linker config…
Nick
  • 1,361
  • 1
  • 14
  • 42
1
vote
1 answer

How to play a tone on the MSP430 using Assembly language

I want to play a song via a buzzer connected to an MSP430. The song will be a series of times or beeps. However I do not know how to make a buzzer beep or how to control its tone in Assembly. I am using IAR's Embedded Workbench to work on this…
1
vote
2 answers

If statement in C not evaluating properly?

I'm currently programming a TI MSP430 in C... I'm having a bizarre issue in the debugger that displays the if statement as satisfying the conditions to step forward but not doing so while running. Any ideas? The if statement not being evaluated in…
1
vote
0 answers

Error: "undefined reference to ‘__udivsmodsi4" when switching compilers in Contiki 2.6

I am switching from contiki 2.7 to contiki 2.6 but have found that the sky-shell-exec example does not build with msp430-gcc 4.5.3 in contiki 2.6. To get around this while using contiki 2.6 I am trying to install msp430-gcc 4.6.3. I have downloaded…
John Cast
  • 1,771
  • 3
  • 18
  • 40
1
vote
1 answer

how to perform floating point calculation in tmote sky (contiki)

I have the following code snippet: #include "contiki.h" #include /* For printf() */ PROCESS(calc_process, "calc process"); AUTOSTART_PROCESSES(&calc_process); PROCESS_THREAD(calc_process, ev, data) { double dec=13.2, res=0, div=3.2; …
siju koshy
  • 21
  • 3
1
vote
1 answer

MSP430 G2553 UART Baudrate 9600 16MHz clock Issues

I'm interfacing my G2553 to a standard LCD screen using UART. I got it working like a dream at 1MHz, but need the system to run at 16MHz for certain other peripherals. I got it very close to working at 16MHz but there is what I believe to be a…
Nick
  • 11
  • 1
  • 2
1
vote
1 answer

MSP430 JC, JNC , JEQ and JNZ

I was looking through the MSP430's instruction set and stumbled upon something I can't quite understand. I can't seem to differentiate what the difference between JC and JNZ and JNC and JEQ. I understand the functions of JEQ and JNZ, but I'm a…
Alan W
  • 291
  • 1
  • 5
  • 18
1
vote
1 answer

Not waking from LPM3, fault on ACLK

I am going through Chapter 5 in the SoftBaugh MSP430 State Machine Programming book and am having trouble getting started. I have tried this twice now, deleting the project and starting over with the solution from the previous chapter, and then…
Kyle Falconer
  • 8,302
  • 6
  • 48
  • 68
1
vote
2 answers

What Causes CCS6 to Generate Symbols like "__TI_int47"?

While compiling in CCS6, I encountered this error: #10056 symbol "__TI_int47" redefined (Compiling for the MSP430 using Code Composer Studio by Texas Instruments) It happens when declaring an Interrupt Service Routine, such as: #pragma…
Brent Faust
  • 9,103
  • 6
  • 53
  • 57
1
vote
1 answer

read()/ioctl disturbs GPIO signal?

I connect a Linux embedded board(based on imx233) and a MSP430 MCU. They are connected via 4 pin SPI, but I use a GPIO for the chip select purpose on the Linux board. What I do is to use poll to detect falling edge of the GPIO(nr 52) then perform…
Angs
  • 1,605
  • 2
  • 23
  • 47
1
vote
1 answer

MSP430: unable to find device a device matching 0451:f432

everyone! My problem is when I use the command 'lsusb', The result is: Bus 002 Device 011: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub Bus 002 Device 012: ID 2047:0013 Texas Instruments But when I use 'make msp5529 install', it shows: usbutil:…
user3915850
  • 11
  • 1
  • 2
1
vote
2 answers

Can I Configure GPIO pins after disabling high-impedance mode?

I have the following sample program for the MSP430 and I wish to rearrange it so that the line PM5CTL0 &= ~LOCKLPM5; comes before P2SEL1 |= BIT0 | BIT1;. Would there be a problem if I did so? I. e. would there be a problem if I configure the GPIO…
necromancer
  • 23,916
  • 22
  • 68
  • 115
1
vote
2 answers

PuTTY data into MSP430

I am attempting to program two MSP430s to essentially instant message through PuTTY, but cannot figure out how to get typed information onto the MSP430 without the debugger. I'm using CCS and it's an MSP430 F2274. I have one program in which the…
Lexie
  • 11
  • 3
1
vote
5 answers

MSP430 Interrupt Issue After Debugger Closes

I am using the following code to blink LEDs using a timer interrupt: #include #define LED1 BIT0 //define LED1 as bit 0 (0x00) #define LED2 BIT6 //define LED2 as bit 6 (0x40) int main(void) { …
austincrft
  • 343
  • 1
  • 2
  • 13
1
vote
3 answers

MSP430 printf function executes too slow

I try to use Sky mote (MSP430 F1611 + CC2420) to read the data from I2C sensor with 100Hz sampling frequency and write the data to serial port (USB). I tried a couple of tests and realized that the total output data have a sampling frequency of…
cloudfarm
  • 13
  • 3