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

How to create a new project from an exisiting project in Texas Instruments Code Composer?

I would like to archive a finished version of a C program for the MSP430, programmed using TI Code Composer Studio version 5.2.1, creating a new project for a new version I’m going to add new features to. Attempts to follow TI's documentation and…
Mike Jablonski
  • 1,703
  • 6
  • 27
  • 41
1
vote
1 answer

Z1 motes - Communication between a base station and sensing node

I have been trying for the last few days to access the individual nodes via the base station but I have been out of luck. I tried the following on a base station (unicast-receiver.c) and a sensing node (unicast-sender.c) Firstly, I tried to create…
Ahmed Al-haddad
  • 805
  • 2
  • 16
  • 41
1
vote
0 answers

RTC MSP430 count mode

Using MSP430F6736A,programming in CCS. I want to use RTC to count specific time that user will choose. For example 10 minutes. But I don´t know where to start. I was reading user guide+ datasheet, but Idon´t know how to configurate the RTC. Can…
user5939530
  • 51
  • 1
  • 6
1
vote
5 answers

Converting decimal to BCD

I'm working on an assignment currently that uses a microcontroller and a circuit to display a decimal in binary, through LED's. I have to use three push buttons: one to increment, one to decrement, and the last to reset. I have my wiring and…
MarineUTEP
  • 33
  • 1
  • 1
  • 7
1
vote
1 answer

Assembly - Correcting a Source Program

I am given this assignment: This program is supposed to search an array of bytes for the value 0xf2. When it finds 0xf2, it should save its location (i.e. address) into the integer variable “f2Address”. If it does not find the value of 0xf2 in the…
1
vote
2 answers

Carry bit in msp430

I am writing simulator to microcontroller msp430. I cant understand when i should set carry bit. For example in add instruction: 1+0x7FFF setting carry bit or 1+0xFFFF?
user3191398
1
vote
1 answer

DMA to UART transmits only the first byte

I am working on MSP430 Series Controller and I have a buffer to be sent on UART via DMA. I am pasting my DMA configuration and Code snippet for more information. DMACTL0 = DMA0TSEL__UCA0TXIFG; DMA0SA = &buff; DMA0DA = &UCA0TXBUF; DMA0SZ = 64; …
evaet1
  • 41
  • 10
1
vote
1 answer

How to generate binary from MSP430 assembler with correct jumps?

I'm programming a MSP430 in C language as a simulation of real microcontroller (or emulator if you want). When I prepare test.s file for MSP430: .text .global main .type main, @function main: mov #8,r4; add r5,r5; // r5 = 0 …
ziom
  • 199
  • 3
  • 11
1
vote
2 answers

MSP430 microcontroller - how to check addressing modes

I'm programming a MSP430 in C language as a simulation of real microcontroller. I got stuck in addressing modes (https://en.wikipedia.org/wiki/TI_MSP430#MSP430_CPU), especially: Addressing modes using R0 (PC) Addressing modes using R2 (SR) and R3…
ziom
  • 199
  • 3
  • 11
1
vote
1 answer

How do I calculate distance between GPS co-ordinates using Microcontroller chip

I need to calculate the distance between GPS co-ordinates to calculate distance being traveled. I've tried both the Haversine and Vincenty algorithms, which work fine on my desktop PC, but when I use the same code for MSP430 chip using CCS IDE, the…
shafi
  • 145
  • 6
1
vote
1 answer

Assigning a Label to a Fixed Memory Location in MSP430 Assembly

I have been trying but could not figure out how to assign a label to a fixed memory location in assembly programming of MSP430. I want to create two pointers (e.g., xPtr and yPtr) which point to fixed memory locations in MSP430 address space. Then…
Tlos
  • 151
  • 1
  • 12
1
vote
0 answers

NHD-0216HZ-FSW-FBW-33V3C Black Boxes in Line LCD Display

I installed a NHD-0216HZ-FSW-FBW-33V3C with an MSP430g2553. I tried to initialize it for 4-bit mode in assembly language but black boxes still shown and initialization is not completed I think. My connections are: DB4-DB7 --> P1.4-P1.7 respectively,…
EMPV
  • 11
  • 1
1
vote
2 answers

Does MSP430G2553 takes care of interrupt re-entrancy or should I allocate stacks for each tasks in ISR?

I am at present initializing stacks for tasks that need to be serviced upon receiving an interrupt. For an example there are 2 tasks which gets called with different periodicity, however both the tasks are using same ISR. The task with higher sample…
1
vote
1 answer

Connecting HC-05 Transceiver to MSP430G2 using PySerial

So I've been trying to connect this HC-05 transceiver to my MSP-430G2. Since I'm using a MacBook, I try to send messages using PySerial. I am using: OS X 10.9.5 Python 2.7 MSP-430G2553 Energia 0101E0016 This is my Energia code: int gLed =…
1
vote
1 answer

C# - Read serial data from MSP430 and display to chart

I tried and read a lot but now I am at the point where I stand still. I have a MSP430 witch sends it´s temperature data to my notebook over serial. Data get´s fine to my application and is written to my console. Screenshot: Temperature Data from…