EveryCircuit
Contact
Reviews
Home
eekee
modified 8 years ago

Fixed Trinary Adder in Op-Amps

1
0
134
00:52:18
Fixed: It needed a carry input. It was really simple. Apart from the obvious extra input resistor, it required changing of 2 other resistors (now 6k), and adjustment of the reference voltages for the comparators. Original notes, very slightly revised: Bit of an experiment, this. I'm much more practiced with op-amps than making logic gates, so when I wanted to make a trinary adder an op-amp design came to me easily, mostly! I also thought that it might require less soldering, but now it's done I see there are an awful lot of resistors. Balanced trinary digits are represented as '+' '0' and '-'. While it doesn't require anything like binary's "twos complement", it's got its own oddities. The columns are ones threes nines etc, but to write a two you need to use the threes column. It's a little like roman numerals in that way. Input switches are on the left. Of each pair, the left switch selects + or - and the right chooses that selection or 0. Red and blue LEDs show the state of the main inputs and output. Orange and light blue LEDs show the carry input and output. Employs both op-amps and comparators. The comparators are distinguished in the schematic by 1 MV/V amplification. (The 1V/V amp in the top right is supposed to be a normal op-amp in unity-gain configuration, but the simulator chokes on that.) The comparators' output limits are +/-12V. (I'm working for power rails of +/-5V and +/-12V.) I wonder if the fast output swing of comparators might be a problem. The main signal path is two op-amps in inverting configuration, unity gain, and mixing multiple inputs. This alone adds the inputs correctly in all cases except where both are + or -. When they are, the first op-amp's output is twice the normal + or - voltage and the wrong polarity. The two comparators detect this and compensate via the diodes and the second op-amp. The comparator outputs are also mixed to produce the carry output, which is buffered by the third op-amp (top-right). Once I grasped balanced trinary arithmetic and of course op-amps, the only tricky part was getting the comparator outputs and diodes correct to fix the output. I love op-amps!
published 8 years ago

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy