Questions tagged [msp430]

The MSP430 is a Texas Instruments low-power microcontroller family.

The MSP430 is a 16-bit mixed-signal microcontroller family, aimed at low power embedded applications.

Further references:

  • TI MSP430 homepage: The official homepage of the Texas Instruments MSP430 microcontroller family.
  • MSP430 community: A collection of open source projects.
  • GCC toolchain: An open source toolchain, including a compiler and debugger, targetted at the MSP430.
  • GoodFET debugger: An open-source JTAG adapter.
  • 43oh: An active MSP430 forum.
  • openMSP430: An open source, synthesizable MSP430 core that is compatible with the GCC toolchain.
469 questions
16
votes
2 answers

Why do programs stop watchdog timer on MSP430?

Many sample programs for the MSP430 have their first line as: WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer Why do they do this?
necromancer
  • 417
  • 1
  • 3
  • 11
15
votes
5 answers

What are some good ideas to practice on the MSP430

I've got 4 launchpads (I'm a hog, I know, I got 'em while I could) and I'm getting used to the programming, e.g. the timers, ADC, PWM, LPM, etc. I don't have a lot of money and would like to do some projects to solidify my knowledge. What are some…
Matt Williamson
  • 1,202
  • 2
  • 13
  • 24
9
votes
1 answer

What happens to I/O pins in Low Power Mode on MSP430

I'm reading the datasheet for the MSP430G2553 about the low power modes that the microcontroller has but it doesn't talk about what happens to the IO Ports when it enters low power modes. It only talks about the what happens to the clocks like so:…
Dean
  • 8,448
  • 27
  • 72
  • 120
6
votes
2 answers

How does __delay_cycles work?

I'm using a msp430g2553 and setting the clock to 1Mhz: BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; I've timed a 5 million cycles and it unexpectedly takes around 6 seconds (I was expecting 5). The loop I've used is: int i; for(i=0;i<5000;i++) …
diciu
  • 203
  • 1
  • 2
  • 6
5
votes
1 answer

MSP430 programming under Linux - mspdebug fails to connect to programmer

I am trying to program the MSP430 (on an MSP-EXP430F5438 evaluation board) under Linux using gcc-msp430 (I eventually will do code larger than the 16k that the free version of the Code Composer allows). As a debugger, it is recommended to use…
Renan
  • 5,120
  • 2
  • 28
  • 45
4
votes
1 answer

Petit FAT file system with a MSP430

Is there a way of clearing a file in the petitFAT format? What I came up with is this: void SDerase(void) { for(;;){ res = pf_write("\0", 1, &bw); if(res || !bw) break; } } So this basically writes NULL characters to the…
user2218339
  • 475
  • 1
  • 4
  • 14
4
votes
2 answers

MSP430 In Circuit Emulator(ICE)

Does anyone have any directions on what ICEs exist for MSP430s. I currently use the MSP430F148. I have others in use, and plan to switch to some higher end in the future. I would be interested in ICE or any other solutions people know of. We have…
Kortuk
  • 13,412
  • 8
  • 62
  • 85
3
votes
1 answer

Can flash memory be used in place of RAM in microcontroller applications?

In my application I'm using a MSP430, however I need to buffer 11kB of data from a UART connection. Obviously the 512B of RAM available is not enough to do this, however the MSP430 has 16kB of flash which would easily do the job. My basic…
user28350
  • 117
  • 4
3
votes
1 answer

Controlling MSP430 PWM with a Laptop

I have written a code which takes two digit number from laptop and changes the PWM dutycycle to that number. It is part of a bigger requirement where I need to control motor speed over UART. #include "io430g2553.h" #include void…
Gaurav K
  • 143
  • 6
3
votes
2 answers

How do I load the Demo temperature program on an MSP 430 access point and end point?

I have successfully downloaded Code Composer Studio v5 on linux under evaluation license and I also have two devices: . MSP430 2.4-GHz Wireless Target Board (end point) MSP430 Wireless Development Tool (access point) My understanding is there is…
user1068636
  • 715
  • 2
  • 9
  • 19
3
votes
1 answer

how to timestamp packets with CC2420 and MSP430F1611

I'm working on a sensor project which uses TelosB based on CC2420 and MSP430F1611 running TinyOS. And I want to timestamp each incoming packet, whose reception time is indicated by the SFD pin rising of CC2420. The SFD pin of CC2420 is connected to…
sinoTrinity
  • 201
  • 2
  • 6
3
votes
1 answer

Simulation of RF in CC430F5137 is not working

I'm trying to debug the program RF_Toggle_LED_Demo.c which is included in slaa465b.zip (SLAA465 - CC430 RF Examples) via the simulator in IAR for MSP430 ver.5.501. When I run the program step by step I get stuck at the instruction SetVCore(2); I've…
user11903
  • 31
  • 2
3
votes
2 answers

MSP430G2553: measure the voltage of a non-rechargeable 3.6V battery

I am designing a circuit to measure the voltage of a non-rechargeable 3.6V battery. This battery powers the microcontroller (http://www.ti.com/lit/ds/symlink/msp430g2253.pdf) with which I want to measure its voltage.I simulated both circuits and…
FranMartin
  • 506
  • 7
  • 21
3
votes
2 answers

How critical a resistor value for MSP430 spy-bi-wire on reset?

When setting up a circuit for the TI MSP430 - the reset line in all example circuits has a 47k Ohm resistor (R1 below) on it. How critical is that specific value and why that value? This is what I've currently been using to do this. Can I use…
rfusca
  • 329
  • 5
  • 16
2
votes
1 answer

How to Calculate Basic Cycles in MSP430?

Hey all I am fairly new with the MSP430 and I have begun using it to do very simple projects and I am trying to keep track of how many cycles I use within my program, and I have a two simple questions that I cannot find the answer for. How many…
Mitch
  • 123
  • 4
1
2 3