1
\$\begingroup\$

I am very new into electronic.

Can you please explain why looping OR gate output back to input does not work when using BJT transistors for OR gate? but it works with OR gate ICs

Here is the schematic: http://everycircuit.com/circuit/6264984905187328

enter image description here

I am trying to achieve this setup, but wondering why it is not working when OR gate is made out of BJT transistors.

enter image description here

Simulation Screenshot when input is on: enter image description here

Simulation screenshot when input is off: enter image description here

\$\endgroup\$
10
  • \$\begingroup\$ It should work. Not sure why it wouldn't. Can you show a screenshot of the simulation? We can't really see what is or isn't working. Does this simulation allow you to probe for current and voltage? \$\endgroup\$
    – MCG
    Jan 27, 2020 at 11:17
  • \$\begingroup\$ it allows you to see current and voltage, I have built this on breadboard with PN2222A NPN transistors. it is not working on breadboard too. will attache simulation screenshot now. \$\endgroup\$
    – Gevorg
    Jan 27, 2020 at 11:22
  • \$\begingroup\$ Because you have two emitter followers with their outputs summed, and a pull-down on the output. It's not the same thing. With the upper BJT off, the pull-down causes the lower BJT to be off, as well, and the pull-down rules the output. \$\endgroup\$
    – jonk
    Jan 27, 2020 at 11:22
  • \$\begingroup\$ @jonk I was assuming the upper BJT would be on at the time, otherwise it isn;t really doing much \$\endgroup\$
    – MCG
    Jan 27, 2020 at 11:24
  • 1
    \$\begingroup\$ @Gevorg the OR gate ICs are made up of more than just 2 transistors. The 2 transistor method is just a very basic circuit that mimics the function of a logic gate, but they aren't ideal. I have added the schematic to one of TI's SN7432 OR gate ICs. As you can see, there is a bit more to it \$\endgroup\$
    – MCG
    Jan 27, 2020 at 11:40

2 Answers 2

2
\$\begingroup\$

It is working exactly as it should from looking at your screenshots. When the input is high, the upper BJT is turned on, and current can flow to the LED.

When the input is low, the lower BJT is pulled down via the 5k resistor so both BJTs are off, and the LED will not illuminate.

So it looks to me like it is working as it should with this configuration. If you want to design an 'ideal' OR gate, you will need more than just 2 BJT transistors and a few resistors.

For example, just have a look at a TI OR gate (DATASHEET LINK):

enter image description here

\$\endgroup\$
5
  • 1
    \$\begingroup\$ You can look here for a proper, single-supply RTL design. (Early designs used a negative rail to provide better margins, but it can be achieved well enough with a single supply.) \$\endgroup\$
    – jonk
    Jan 27, 2020 at 12:10
  • 1
    \$\begingroup\$ @jonk thanks for that, was a very interesting read! \$\endgroup\$
    – MCG
    Jan 27, 2020 at 12:20
  • 1
    \$\begingroup\$ You are welcome and thanks for the kind words! \$\endgroup\$
    – jonk
    Jan 27, 2020 at 12:21
  • \$\begingroup\$ @jonk of course, you got an extra +1 for that answer. Was very well explained. \$\endgroup\$
    – MCG
    Jan 27, 2020 at 12:29
  • 1
    \$\begingroup\$ The margins can be improved if that pull down goes to a negative rail instead of ground. Which is what they did "back in the day" when RTL was being used for space satellite circuits in the 1960's when transistors were expensive. But it is fun to try and figure out how to do something similar with a single rail. Anyway, I'm just happy you enjoyed reading it. \$\endgroup\$
    – jonk
    Jan 27, 2020 at 12:33
0
\$\begingroup\$

Your first schematic won't latch on because when the top transistor stops conducting, the bottom one is being driven only by its own emitter. Since the base voltage needs to be 0.6V higher than the emitter to turn on, the bottom transistor turns off as soon as the top one does.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.