[quote user="Amit Aryal"]Uint 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 number between 2047 and -2048 without overflow.[/quote] That is a semantic contradiction.
↧