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

Watchdog timer triggers during MSP430F5529 initialization

I am coding a simple game and trying to test it on an MSP430F5529 microcontroller. The problem I have encountered is relating to the watchdog timer. The code I have written causes a device reset, which is an indication of a watchdog timer issue. I…
gbudan
  • 889
  • 7
  • 17
4
votes
1 answer

I'm looking for sample code to service the USCI (UART) on an MSP430 via DMA not interrupts

I have code that works "ok" for reading the USCI (UART) via interrupts, but the TI SimpliciTI stack is a CPU hog and it drops UART bytes when servicing the radio. I assume DMA is the way to go, but I couldn't find a full example of DMA using USCI as…
Mark Lakata
  • 19,989
  • 5
  • 106
  • 123
4
votes
2 answers

TI MSP430 Interrupt Problems After UART Code Port

I am using the MSP430F2013 processor for an application, which doesn't have a UART. I need a UART, and so I used the TI's sample code "msp430x20x3_ta_uart2400.c" to emulate one using the Timer module. This all worked fine (compiled with IAR Embedded…
Ed King
  • 1,833
  • 1
  • 15
  • 32
4
votes
2 answers

Automating linker configuration in IAR Embedded Workbench

I am working on a firmware project in which i have to do a crc16 check for flash integrity. The crc is calculated using IAR Xlink linker and kept at the end of the flash. Again crc is calculated at run time from the code and compared with the stored…
OnkarK
  • 127
  • 2
  • 9
3
votes
3 answers

Copying buffer contents of different data types

I am writing a code for modbus protocol, that runs on a MSP430 controller. The response buffer(global) is an array of 8bit data, through which the response to the processed request is to be sent on serial UART. Now, my problem is that the response…
OnkarK
  • 127
  • 2
  • 9
3
votes
2 answers

Reading MSP430 IO register too quickly?

I'm working on a system where a MSP430 is communicating with another chip over its SPI bus. I'm sending a series of setup commands over the SPI bus and polling on the slave chip's Ready line. I'm using IAR as my IDE and I'm compiling the code…
Jesse J
  • 532
  • 1
  • 7
  • 18
3
votes
1 answer

Where is R0 and R1 registers in the memory map?

I'm so confused about the location of program counter (R0) and stack pointer(R1) in the memory map.I think they are inside the CPU,so there is not any location inside memory map that shows these registers.But my friend insists that they are located…
user1112085
  • 29
  • 1
  • 6
3
votes
1 answer

Real time clock , MSP430

I need to set an alarm every 15 minutes (00:15, 00:30, 00:45, 01:00, ...) using a Real time clock do some process and then set new alarm value. Well I have a written the code, it does well to run the clock. But no period alarms occur. It would be…
Abhay
  • 85
  • 3
  • 10
3
votes
5 answers

mono for emdedded

I'm a C# developer, I'm interested in embedded development for chips like MSP430. Please suggest some tools and tutorials. Mono framework is very powerful and customizable, mono specific examples will be more helpful.
Sharique
  • 4,199
  • 6
  • 36
  • 54
3
votes
0 answers

In Assembly how would I get the value from a call function?

This my C code for my MSP430. I am trying to write str = word_start(str); in assembly but I am not sure if this is correct. char** tokenize(char* str){ int totalWords = count_words(str); printf("%d\n", totalWords); char **array; …
acebelowzero
  • 107
  • 1
  • 5
3
votes
1 answer

Why odd operand error when compiling assembly?

Learning assembly and reading about the BIT instruction on msp430. When trying to compile this code: int main (void) { while(1){ __asm__("BIT R2, 3"); } return 0; } It says: error: odd operand: -3 Yet when writing __asm__("BIT.B R2,…
user7659542
3
votes
2 answers

What does sxt instruction in MSP430 really do?

I understand that sxt is sign extend instruction. But I don't understand how does this really work. For example if my r15 register stores byte 0045, then what sxt r15 would do to it?
haruhi
  • 177
  • 1
  • 13
3
votes
5 answers

MSP 430 wrong values being displayed

I'm developing pressure measuring device. I've used MSP430F133 chip and using IAR embedded workbench. It shows pressure in 3 different units. I'm taking 32 samples and averaging it. Unit selection on P5, according to the unit selected output value…
user70944
3
votes
1 answer

What enviroment do I open prj/dtp files?

I have a project that includes "main.c" where I need to change a few hard variables, but my company has long since lost contact with the contracted coder who wrote the code. The source files I received include .dtp, .prj, .c, and .r43 file types and…
Hatman
  • 161
  • 1
  • 8
3
votes
2 answers

Struct offsets in inline assembly

I'm working on project, where some interrupt service has to be handled in assembler. The handler function is called from interrupt vector wrapper. The handler body is written in assembler and it receives single (pointer) parameter in specific…
1 2
3
42 43