ROLUAN: Ternary "NOT" Gate


As we know, all computer calculations are done through hardware circuits. Depending of those circuits schemas, we can do adding, subtraction, multiplying and so on. But, at the base of all calculations there are just a few base gates, and their combination permits to the processor to make really complicated things.

Today we will describe one of these base gates: NOT gate. 

We will not go into description of what is a transistor, or voltage supplier,  ground, etc. We will just describe the schema and how it works.

For the ternary inverter, we should know first the truth table for it. It is represented in image below:



As you see, "0" is not inverted, "1" is inverted into "-1", and "-1" is inverted into "1". This reminds us the formulas of converting the ternary number into a decimal number. Yes, the math is a surprising thing.

So, lets see the general circuit schema of a ternary inverter, or NOT gate, excluding supplemental components:


It looks simple. Lets consider each case:

Case A: when input = "1" (or 3 volts)

As we see here, if we put "1" on input, the voltage is invert to negative, or "-1" (and the light is on) . In this case the direction of electrons is from the ground to the source of current (you can see the arrow and trajectory in green).

Case B: when input = "-1" (or -3 volts)

Similar to Case A, but at output we have positive voltage. Again, the light is on, and the direction of electrons is from positive voltage source to ground.

Case C: No input.

Simple. Nothing happens. The light is off. The direction of electrons is from positive voltage source to negative, and no current is passing through our light.

The programming code that corresponds to this gate can be found on our GitHub project page.

That's it. Next time we will describe other ternary base gates.