Electric Lunatic

www.ElectricLunatic.net

Flash Analog To Digital Converter

Signed 1's Compliment Conversion

Using Discrete ICs



Introduction

Schematic

A full schematic of the 1's compliment version of the circuit is shown below.



Discussion

This version of the signed flash converter generates a signed binary value using 1's compliment notation. 1's compliment notation is rarely used in modern digital systems. There are pros and cons to using 1's compliment notation which are discussed here.

1's Compliment Binary Numbers

Four bit binary numbers from -7 to 7 are shown below using 1's compliment notation.

                                        1's
                    Decimal             Compliment
                    ------------------------------
                    + 7                 0111
                    + 6                 0110
                    + 5                 0101
                    + 4                 0100
                    + 3                 0011
                    + 2                 0010
                    + 1                 0001
                    + 0                 0000
                    ------------------------------
                    - 0                 1111
                    - 1                 1110
                    - 2                 1101
                    - 3                 1100
                    - 4                 1011
                    - 5                 1010
                    - 6                 1001
                    - 7                 1000

                

As can be seen, a 1's compliment negative value is simply the inversion of it's absolute value. That is, -1 is expressed as 1110, which is 0001 inverted. However, negative and positive zero are expressed with 1's compliment. Zero is neither positive or negative. The four bit binary numbers 0000 and 1111 both mean zero. For this reason, binary arithmetic is performed using 2's compliment and almost all modern computers and adder ICs use 2's compliment.

The only advantage to using 1's compliment notation in this particular application of an analog to digital converter is that it can be known that the input voltage is less than zero volts, but not yet at the -%12.5 of reference threshold. This may be important in some applications. The 1's compliment value can be converted to 2's compliment simply by adding one to the value.

A graph of the 1's compliment converter output is shown below.



Digital Output

A schematic of the output section of the 1's compliment converter is shown below.



The digital output of the 1's compliment converter is fairly simple. There are three functional components to the output.

The first functional component is the polarity detector. This is a 311 non-inverting comparator. The input of the comparator is connection to the output of the gain amplifier in the input section. The output of the polarity detector is 1 when the voltage being converted is negative and otherwise 0. Remember that the gain amplifier is an inverting amplifier, so a negative input voltage will be positive at the output of the gain amplifier. This is why the 311 is used in the non-inverting configuration.

The next functional component is are the XOR gates (exclusive OR, 74LS86). These are being used as "programmable inverters", so to speak. The output of the priority encoder is connected to the XOR gates. The remaining inputs of the XOR gates are connected to the output of the polarity detector. The output of the priority encoder is inverted by the XOR gates when the output of the polarity detector is 1 (negative input), otherwise it is unchanged. Now, to complicate things a bit - Remember that the output of the priority encoder is inverted. So why isn't the output of the priority encoder inverted when the input is negative? Well, it could be, but in this particulary circuit, the output value is inverted again in the final output section which is a data latch...

The last functional component of the the digital output is a data latch (quad D flip-flop, 74LS175). By using a latch, the digital output of the converter can be latched at any time and held. Then stable data can be read later when ready. The 74LS175 has complimentary (inverted) outputs in addition to non-inverted outputs. The complimentary outputs are used to invert the digital output value again (as discussed above). The output of the polarity detector is used as the sign bit (MSB) and is not inverted.

With all of that being said, yes, the polarity detector can be an inverting comparator and the non-inverted outputs of the 74LS175 be used. Either way would work. If this circuit were to be interfaced to a CPU bus or any other digital bus, a tri-state buffer would be used on the output of the latch. Buffers such as the 74LS125, 74LS244, 74LS541 or 74LS365 could be used. The input signal to latch the data could also be buffered (also could be inverted to make the latch signal active low if so desired).




Copyright 2026, Jon T. Qualey. All Rights Reserved


Back To Signed Flash A to D Converter