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
3
votes
1 answer

IAR Embedded Workbench cannot find files, Pe1696, even though it is searching for them

I am using IAR Embedded workbench 5.51 for MSP430. I am using C99. I am trying include code from a third party library. I have copied the directory structure of this third party library exactly within a sub-directory in my main project directory.…
Nick
  • 1,361
  • 1
  • 14
  • 42
3
votes
1 answer

MSP430 - Mixing Ports Registers inside an struct

I am now doing a program for a MSP430 in C and I am using Port 1.6, 1.7, 2.0, 2.1, and 2.2 to drive some LEDs. Now, in order to turn ON all LEDs I simply have to write: P1OUT |= 0xC0; P2OUT |= 0x07; However, I would like to know if is possible to…
jegonz
  • 65
  • 5
3
votes
1 answer

What does the ".bss" command do in MSP430 assembly code? For example what does ".bss beep_cnt,2" do with the variable beep_cnt2?

What does the ".bss" command do in MSP430 assembly code? For example what does ".bss beep_cnt,2" do with the variable beep_cnt2? .bss beep_cnt,2 ; beeper flag .bss delay_cnt,2 ; delay flag
user1779429
  • 65
  • 1
  • 2
  • 3
3
votes
1 answer

How to put the msp430 to sleep for 12 seconds?

What's the best way to put the MSP430 to sleep for 10 seconds. Speed is not as important as low power usage.
Dan B
  • 31
  • 1
2
votes
1 answer

IAR Embedded Workbench MSP430 and *.lib files linking

I was assuming that it was a really simple task but I did not find anything relevant or my mistake. So putting my problem here i.e. I have some project for MSP430 which is actually in code composer studio. I have to run this whole code into IAR…
jahmed
  • 151
  • 4
  • 11
2
votes
1 answer

Unable to see static variables when debugging CC430F6137 using IAR Embedded Workbench 430 5.3

I've been searching for why for two hours. Now I'm using IAR Embedded Workbench Evaluation 5.30 to debug on a CC430F6137 dev kit board. As I have declared some global static variable, I realize that I am not able to watch that correctly. They are…
Zhongjie Wu
  • 307
  • 3
  • 12
2
votes
0 answers

MSP430 I2C SCL line idling high (when it should be idling low)

I have the MSP430 configured as an i2c master device and it is talking with two slave devices: a battery fuel gauge (LTC2943) and a battery charger (LT8491 evaluation board). I noticed that when talking with the battery charger, a duplicate byte…
2
votes
3 answers

Controlling MSP430 with computer (USB?)

I'm looking to control a bunch of LEDs from my computer, with a TI MSP430 or similar. My computer is a Macbook Air, and so it looks like the only port I can communicate with is USB. The MSP430 has a USB port, but I can't find any information about…
amindfv
  • 8,438
  • 5
  • 36
  • 58
2
votes
0 answers

Assembly: Error[66]: Segment too long (max is ffff)

I created a new Assembly project in which I will write a test.s file and just link against an entire app and its mocks (both of those are in Assembly too). The test.s file is mostly empty so far, yet when now compiling everything it just says…
2
votes
2 answers

MSP430 I2C reading a SDP610 differential pressure sensor issue

I am trying to read a SDP610 sensiron differential pressure sensor via a Texas Instruments msp430. I am having the issue of the sensor not acknowledging the command and thus, not communicating the pressure value itself. Note I have confirmed that…
Thomas Morris
  • 794
  • 5
  • 26
2
votes
1 answer

MSP430 ACLK problems after reset

I have an MSP-EXP430G2ET launchboard which has msp430g2553 microcontroller. I bought it for my embedded systems course. Lately we learned to use timers and the last lab work was using the watchdog timer in time interval mode. But while doing that I…
user8979215
2
votes
3 answers

microSD card FAT module

I have recently been using a uALFAT microSD board by GHI Electronics for data logging, but I have been having problems with its reliability; some of its function calls, at times, take far longer than I can handle. I am currently using an MSP430…
Dustin
  • 89
  • 11
2
votes
1 answer

ADC raw data forming

I would like to ask you for an explanation about this part of my code. I am not sure what it really does. This is example code and I would like to understand it. The purpose of the original code should be acquiring the data from ADC in the streaming…
Dan
  • 33
  • 3
2
votes
0 answers

Using Visual Studio to develop MSP430 firmware

Hi am migrating a Code Composer Studio project to Visual Studio 2017 (Visual GDB) I created a new sample project as explained here for MCU: MSP430 FR5729 Then included(copied) all .c and .h files to the Source files folder in my solution…
HaBo
  • 13,999
  • 36
  • 114
  • 206
2
votes
2 answers

Handle multi and priority interrupt on msp430fr5969

Currently working on msp430fr5969. I have multiple interrupt like SPI, I2C, Timer and the requirement is the SPI protocol is the highest priority. However, according the datasheet, the priority of I2C(eUSCI_B0) higher than SPI(eUSCI_A1) and cant…
thanhSon
  • 21
  • 4