11-25-2005 05:39 AM
Sorry about that...
I think this one should work:
11-25-2005 06:29 AM
11-25-2005 10:20 AM
11-28-2005 02:29 PM
11-28-2005 02:31 PM
01-23-2018 06:19 AM
Nice but you did not drop the sign bit
01-23-2018 06:50 AM
01-24-2018 04:37 AM
my two cents to raise the thread from the dead
works for arbitrary bit sizes
01-25-2018 06:46 AM
I have attached a 12 bit 2s complement I used for temperature senor TMP100. The Negative numbers are represented in binary twos complement format and has a resolution of .0625C per count.
01-25-2018 07:14 AM - edited 01-25-2018 07:28 AM
Is this the same result? No, not exactly.
It's the same except for 0x800, that value (-0?) gives a bad result.