1

I am just learning to build circuits, and I thought I would try my hand at building a 7 segment decoder using just logic gates.

I drew the following schematic in Logisim, and it works, but there are a lot of chips to implement. I don't have a source for a 13 input OR gate, so it will turn into more chips than the logic diagram shown here.

enter image description here

Q: Can you point me to any tricks that will reduce the gate/transistor count?

K H
  • 4,023
  • 1
  • 11
  • 24
Ted Lowery
  • 111
  • 2
  • 5
    google `karnaugh maps` ... you need to draw 7 maps, each one having 4 inputs – jsotola Dec 07 '17 at 03:12
  • 1
    you can also use seven de-multiplexers each with 4 inputs – jsotola Dec 07 '17 at 03:14
  • 1
    Just to follow up a little on @jsotola said. Anything that needs to be logically reduced can be done using K-Maps. It's literally the answer to every question with regards to logical reduction and rearrangement... okay fine. Maybe some DeMorgan's Theorems can help too. –  Dec 07 '17 at 03:28
  • 1
    You could do it the lazy way and look at datasheets for commercial decoders. You should decide whether you want to decode 0..9 or 0..F, and whether the 9 and 6 will have tails or not (though the tails are necessary to distinguish b from 6 if you decode 0..F so there are really only 3 viable choices rather than 4). – Spehro Pefhany Dec 07 '17 at 03:58
  • Just a quick look... Are you sure you are getting the right result for zero with the above circuit? – R Drast Dec 07 '17 at 10:09
  • R Drast- I checked my simulation, and the drawing above, and 0 is wired up and works correctly, all but the g-segment is wired to low for each of my inputs. – Ted Lowery Dec 07 '17 at 22:13
  • instead of 13 input OR you could use 3 input NOR on the other 3 wires. – Jasen Слава Україні Feb 02 '19 at 05:36

2 Answers2

1

The "simplest" optimization you can do is using karnaugh maps as jsotola commented. This reduces your circuit a lot. But you can do more. The gates used for A might have terms that B has too. The karnaugh maps have multiple optimal results and by picking the right combintion of results you can increase the amount of shared terms.

You can also use more types of gates than the standard sum-of-products or products-of-sum solutions from karnaugh maps. I found that XOR gates are often helpful in reducing the gate count.

As for your 13 input or gate: You can build one yourself by simply connecting each of the 13 inputs to a diode and connect all the outputs. You will loose some voltage across the diodes so your output HIGH level might be lower than you like. Connecting 2 NOT gates in series can restore the level to proper HIGH. That uses less gates than using multiple OR gates to reach 13 inputs overall. But after optimizing you shouldn't need such a large OR gate.

You can also look at the solution I found for my binary to 7 segment HEX decoder. I managed to optimize it down to 24 gates in 6 ICs.

0

Use a shift register. Send one byte from a microcontroller.

CrossRoads
  • 3,453
  • 1
  • 6
  • 14