Tool/software:
I am working on with a SPI based accelerometer and I am trying to run a function on all of the sampled data. I was able to read all of our data and save it to memory in prior tests but when I attempt to run our function on our data as it comes in our values are unexpected. Essentially we verified our data is coming in correctly but the mathematical alterations to the data are inconsistent (at this point we are just adding the current sampled value to the sum of all of the other sampled values within a period of time).
My question:
The data is hex 2's compliment. What is the best way to completed addition of 2's compliment with this data? Is there a different way the micro handles this data that we are not seeing?