Forum Discussion
Altera_Forum
Honored Contributor
16 years ago2's complement consideration
Hello everyone! I have some considerations about the implementation of twos complement in a filter/decimation design. The ADC used in the design is AD7401, which had also been discussed ea...
Altera_Forum
Honored Contributor
16 years agoOften an ADC uses offset binary number representation, e.g. an input range of -1.. +1 V is represented by 0x0000 to 0xffff, with 0x8000 for zero input. You can convert offset binary to two's complement and vis versa by simply inverting the MSB, respectively XORing with 0x8000.