Posts Tagged ‘trit’

Ternary Coded Decimal and 7 Segment Control.

March 23, 2024

When you are designing binary circuits you will need to display your results in Decimal so it readable by the user, such as Temperature, Distance and Arithmetic calculation results. There are 74LS chips that will make the conversion for you, such as the 74LS148. It seems like we need to investigate the Ternary version and see if reveals some interesting results.

1A

The first design (1A) utilises the well known Ternary TAND Gate, where the assertions are the positive voltage only.

1B

The second design (1B) replaces the TAND with a TONLY Gate as we have no need of the negative values if we are interfacing a binary circuit. Looking at the TONLY Gate it seems that we do not need such a complex gate as the ones used, maybe we could just use some Unary Gates to do the same job.

1C

Design (1C) fulfils this completely using only 3 Unary gates, by creating a USR Gate that can be modified by another input, in this case it is the positive that gets asserted from the result of the first input, the final Gate is just another cascade from the second Gate. The output is either positive or zero so it can be linked to a Binary circuit.

1D

The last design (1D) in this set reduces the Unary Gates to 2, thus allowing a negative as an output, this is mainly for use in other Ternary circuits, like the one I will show in another design (2B).

My basic approach to using Ternary, is to make it more useful than binary which has many short falls that nobody can see unless you have been involved in designing these circuits from scratch, the current pardigm requires a complex binary arch to acomplish results and requiring multiple iterations to arrive at a result. Where Ternary can accomplish more in less gate interations than binary. Each Ternary Gate is only slightly more complex than its Binary counterpart, such as the inverter.

These circuits show how much can be achieved with less resources while being less complex connections than the binary version.

7 Segment Circuit

The final section is the Ternary to 7 Segment circuit. The first circuit (2A) is a basic 0 to 9 Led from a 3 Trit input, using the 3 Unary Gate logic from my earlier design (1C), the second circuit (2B) gives you another 9 more selections. Ternary easily uses negative numbers to increase data width selection, more elaborate schemes could be accomplished, like a complete 27 symbol choice, if I used all 13 positive numbers and all 13 negative numbers and zero.

2A

2B

Both of these designs use Diodes to accomplish the 7 Segment interface, making it suitable for a LED chip such as a Common Cathode TOS5121AR (Titan), LSD505400 (PlusOPTO), LTS-5003AWC (LITEON). You could even make your own with Leds or use a Large display.

I hope to finish my Division section of my Ternary ALU very soon, so far I have Addition, Subtraction, Multiply and a few Logic gates. I am still designing the shift registers and memory, while the ROM will be programmable with switches, I am basing it on 81 Trits at present.

Regards Arto

The 2 to 9 Decoder

May 4, 2021

The 2 to 9 Decoder

by Arto Juhani Heino (c) 2021

The completion of the trinary understanding in relays has been very rewarding, this is my first attempt at a trinary decoder chip version of the 3-8 decider 74138, where a 2-9 decoder TD2-9 is a trinary designed device that would also do the job. It could be fabricated with FETs and miniaturised so it fits onto existing chip boards.

As I see this as my first step into making useful and efficient circuitry based on trinary inputs and easily adapted to the standards in current use. I see great promise in adapting trinary systems to current binary as a step into integration. These ideas are adaptable and flexible to be used in some AI systems. even now.

The long dreamed idea of a trinary system was to advance understanding of natures logic and repair the mistakes made in the service of short gain which is full of hubris and greed. Current digital systems can be 256 wide, but not in most cases they run 64bit and 32bit subsystems even some 16 and 8 bit are in the mix, is all due to the through put required by graphic chips to reduce time lags and memory bottle necks with all that constraint issues.

These behemoth super computer systems are complex to design and control. let us look some maths.

Binary Trinary

0………+ 0 –
2 bit…….3 trit
4 bit…….9 trit
8 bit…….27 trit
16 bit…..81 trit
32 bit…..243 trit at this point we have reached beyond our current systems
64 bit…..729 trit
128 bit…2187 trit
256 bit…6561 trit
512 bit…19683 trit As you can see that 64bit computing is the norm at present and moving into 128bit at lighting pace. Where we could have reached 729 trit in the same time frame. imagine the 64bit super cellphone you hold in your hand would have been the norm in 1980’s. This is the amount of development retardation we were forced to endure due to short sightedness and unripe understanding of all the future issues at hand. This simple list shows one aspect, here the binary decoder version

Binary inputs and Binary outputs
1_______________2
2_______________4……74139
3_______________8……74138……4028
4_______________16….74154
5_______________32
6_______________64

So a 3 to 8 decoder has the trinary equivent of the 2 to 9 decoder, if we ueed 3 inputs we would arrive at 27 outputs, the advantages are simple.

Trinary Inputs and Trinary outputs
Trinary Inputs and Binary outputs
Binary Inputs and Binary outputs
Binary Inputs and Trinary outputs
1___3……..TD1-3
2___9……..TD2-9 can also act like two of 4 bit dual level logic (2 Only gates make a Sure gate)
3___27……TD3-27
4___81……TD4-81
5___243….TD5-243
6___729….TD6-729

There are no off the shelf trinary chips to build useful devices from these decoders as yet.At this present form(very large relays) you could apply these trinary systems to AI of the grid system, where self regulation with the enviroment is required and not optional. As you are dealing with an Earth that has all three parts of the trinary logic, the Sky, the surface and Inner Earth, as ” + 0 – “. I have extended the understanding here to illustrate our well of energy we walk upon.

This diagram illustrates the relay design of the three different trinary gates you need here. You can make the relays a small or big as you need . Everything here is simple and easily built on you electronic bench, please feel free to use these gates in a project.

INC and DEC gates and a TAND gate

As now I have decided upon my choice of trinary AND gates, which there are a few, the TAND gates now lives amongst my circuit ideas. More decoders and encoder to be illustrated very soon.

TD2-9 Trinary Decoder

Here is the place this circuit will live, 2 of these to drive the 16 pin 8 x 8 led matrix (ADM-388C0). How simple is that, 4 trinary trits control 81 LED locations, 64 for the Matrix and 17 for other things.Regards Arto.

The Trinary Explorer Board