Questions tagged [msp432]

42 questions
0
votes
0 answers

Same C code different results TIv5.2.5 and gcc 5.4.1 c99 compiler

I am using MSP432P401R to do FFT of SAR ADC samples, did FFT in MATLAB and got results same as C compiler online but Code Composer Studio IDE is giving different output than MATLAB results, I thought that can be a compiler issue so tried reading…
0
votes
1 answer

Nodejs serialport cannot run both code at the same time

I am trying to stream data in from the MSP432 xds110 so i can plot it on my website in real time. To do this i am using node.js serialport library to get the data. this is the page for serialport: https://serialport.io/docs/guide-usage in my MSP432…
0
votes
2 answers

Using Plotly.js and Node.js to get and plot data

I'm trying to create a simple webpage which gets data from a microcontroller (MSP432) and plots it on a graph in real time. I have researched and I'm currently using plotly.js and html to create the graph. I currently have a graph that updates…
Coder
  • 69
  • 7
0
votes
2 answers

Interrupt is not triggering. Any ideas as to why that is?

I'm programming in C on an MSP432 using Code Composer Studio v8.2.0. Now I am writing an interrupt to use 4 different buttons to increment and decrement a variable. The code below cuts out two of those buttons and is simply trying to increment or…
LightMan
  • 1
  • 1
0
votes
1 answer

MSP432p401r: What are the possible inputs to CTLW0->BRW?

The project I am working on includes i2c. I am looking through the datasheets and I cannot find how to use the prescaler setting, BRW. The section on this register does not tell me anything. It is here on the top of page 982. How does this register…
ardee
  • 7
  • 1
  • 5
0
votes
2 answers

How would an ISR know what pin cause the interrupt?

Interrupts can be enabled for a specific pin(s) on a digital I/O port, correct? How would the ISR determine which pin caused the interrupt? Because the vector table has only one slot for the Port1 ISR. So the same ISR function gets called no matter…
0
votes
1 answer

MSP432p401r: Where is this declaration?

I am attempting to move some of TI's driverlib functions over to my own drivers so that the code is smaller and easier to handle. However, I am having a lot of trouble with the driverlib, specifically the eUSCI declarations. This line: /* Disable…
ardee
  • 7
  • 1
  • 5
0
votes
1 answer

Absolute Encoder hexadecimal input

Question: How do I receive input from a absolute encoder that makes it output in hexadecimal/grey code into a Arduino? do I use a digitalRead or analogRead command? I could not find example code/projects with a absolute encoder online. Overall…
crazydude
  • 21
  • 2
0
votes
1 answer

FreeRTOS application stack free memory decreases over time

I have a task running on freeRTOS and I am checking how much application stack is unused in this application. What I see is, the available stack memory decreases after some time and stays at that value for a long time. The task has a while(1) loop…
bhargava_sg
  • 153
  • 9
0
votes
1 answer

Convert MSP432 freeRTOS demo project to Fresh empty Project

I recently started to learn RTOS. I need help to modify MSP432 freeRTOS demo project to a fresh Project or Create a new freeRTOS project for MSP432. I use Code compiler studio from Texas Instrument. I searched all over the web, but no luck.
Dr.pK
  • 37
  • 7
0
votes
0 answers

Declaring Pointer Error Message: "expected an identifier"

I am trying to define some pointers to the port registers on my board MSP432, however, in the following code when I attempt to declare my pointers, I keep receiving the following error: "../main.c", line 11: error #41: expected an…
SomeUser
  • 13
  • 4
-2
votes
1 answer

Trying to use timer_A to control an LED

I am trying to create a code that takes in an input from a 4x3 keypad, then turns that input into a duty cycle which using the Timer_A will adjust the LED's intensity. However my code is not working and I was wondering what changes the code needs.…
lopo0
  • 1
1 2
3