Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: Uint16 to int(signed) conversion

$
0
0
Apart from the simple type cast and the "shift" (subtraction of 2048) - having values from -2048...+2047 representing all-positive ADC values and voltages is a bit dubious. That would fit to truly differential ADCs. However, you need to keep track of your ideas, and be able to read and understand your code later on.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>