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

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

$
0
0
sorry i mean in not Uint rephrasing, in is declared as Uint and in2 is declared as int. Variable in holds a 12 bit adc conversion number between 0x0FFF (3.3V adc (4095)) and 0x0000 (0V adc (0)). I want to convert in into in2 so that in2 holds a 12 bit signed integer between 2047 and -2048 without overflow.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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