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.
↧