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
6
votes
5 answers

Writing embedded application for msp430?

I would like to be able to have a basic OS and a basic file system for the high end MSP430 probably the MSP430F5438. I know I can go with something like FreeRTOS , IAR PowerPac or Micrium to name just some of the options for the OS and file system.…
Rex Logan
  • 26,248
  • 10
  • 35
  • 48
6
votes
3 answers

MSP430 assembly instructions

I am trying to understand what these instructions do for the MSP 430 processor: (1) MOV.w #0x0055,R5 (2) BIC.w #0xFFEE,R5 (3) BIS.w #0x1144,R5 I haven't been able to find much that explains the assembly instructions and would love to find…
jordan
  • 9,570
  • 9
  • 43
  • 78
5
votes
4 answers

How to get execution time using msp430?

I would like to have the execution time of a C code in milliseconds and I use msp430f16. Any help will be appreciated. Thank you.
ouma talel
  • 51
  • 1
  • 2
5
votes
2 answers

What does the MSP430 cmp.b instruction do?

Working on the microcorruption challenge. Coming in from a little experience with MIPS and I'm still figuring out some msp430 things. The instruction set summary doesn't have a particularly descriptive entry for the cmp.b instruction, but I can see…
craybobnee
  • 103
  • 1
  • 8
5
votes
2 answers

Does MSP430 GCC support newer C++ standards? (like 11, 14, 17)

I'm writing some code that would greatly benefit from the concise syntax of lambdas, which were introduced with C++ 11. Is this supported by the compiler? How do I specify the compiler flags when compiling using Energia or embedXcode?
Alexander
  • 59,041
  • 12
  • 98
  • 151
5
votes
2 answers

Adding my own library to Contiki OS

I want to add some third party libraries to Contiki, but at the moment I can't. So I wanted to just test with a simple library. I wrote two files hello.c hello.h, in hello.c I have: printf(" Hello everbody, library call\n"); In hello.h I…
yushaa yave
  • 145
  • 1
  • 9
5
votes
1 answer

On MSP430, what will happen when I dereference a null pointer?

I know dereferencing a null pointer is undefined - but I would like to know what happens on a specific target - an MSP430. I don't have a board to load this on in front of me to test this out right now. What would happen if I did this (or…
Nick
  • 1,361
  • 1
  • 14
  • 42
5
votes
3 answers

TI MSP430 Interrupt source

I know that when working with the MSP430F2619 and TI's CCSv4, I can get more than one interrupt to use the same interrupt handler with code that looks something like this: #pragma vector=TIMERA1_VECTOR #pragma vector=TIMERA0_VECTOR __interrupt void…
TheDelChop
  • 7,938
  • 4
  • 48
  • 70
5
votes
1 answer

IAR Embedded Workbench breakpoint failure

I've been using IAR embedded workbench for quite some time but there is still one thing I'm unable to wrap my head around. And that's the inconsistency of the breakpoint operation. I have a quite big project which runs an RTOS (might this affect…
Zjerre
  • 105
  • 1
  • 7
5
votes
3 answers

Embedded C: Registers Access

Suppose we want to write at address say 0xc000, we can define a macro in C as: #define LCDCW1_ADDR 0xc000 #define READ_LCDCW1() (*(volatile uint32_t *)LCDCW1_ADDR) #define WRITE_LCDCW1(val) ((*(volatile uint32_t *)LCDCW1_ADDR) = (val)) My…
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
4
votes
1 answer

Prevent GCC from using dynamic jumps / functions invocations

I'm trying to write an assembly-instrumenter module for GCC-compiled applications as part of a security framework. To boost the performance of the module I need to reduce as much as possible dynamic jumps / dynamic function invocations. These,…
Michele Grisafi
  • 149
  • 1
  • 9
4
votes
1 answer

How to place an array at a specific memory location that is provided from a variable?

For an embedded system project, an array is supposed to be placed in RAM. I have split the device's RAM into two sections, one which stores globals and other data, and another section, RAM_DATA, which I wish to store two arrays (a source location…
nice_remark
  • 325
  • 3
  • 12
4
votes
1 answer

Store float value in uint32_t pointer

I want to store some float data in the FRAM register of my TI MSP430 microcontroller and have some prolems. I don't know how I can do this. With normal integer variables it is no problem. Normal integer variables: void main() { uint32_t value =…
Pantastisch
  • 135
  • 1
  • 1
  • 11
4
votes
3 answers

What is difference between MSP430 and MSP430X?

Any comparison table available?
Adnan
  • 193
  • 3
  • 8
4
votes
2 answers

How to correctly calculate address spaces?

Below is an example of a question given on my last test in a Computer Engineering course. Anyone mind explaining to me how to get the start/end addresses of each? I have listed the correct answers at the bottom... The MSP430F2410 device has an…
Nedlinin
  • 881
  • 2
  • 12
  • 21
1
2
3
42 43