Two p-n junction diodes and are connected as shown in figure. and are input signals and is the output. The given circuit will function as a ______.
- Option A: AND Gate
- Option B: OR Gate
- Option C: NOR Gate
- Option D: NAND Gate
Solution
Core idea. With cathodes facing the inputs and a pull-up resistor, any low input wins and drags the output low.
Concept refresher. An ideal diode conducts like a plain wire when its anode is at a higher potential than its cathode, and is an open switch otherwise.
An AND gate gives : the output is 1 only when every input is 1.
Picture the situation. Both cathodes face the inputs and both anodes meet at the output node, which the resistor joins to . When an input is low, current flows from the supply through the resistor and that diode.
Approach. Check the output for the four combinations of inputs, then match the truth table with a gate.
Step 1: One input low
Take . The node is pulled up towards , so the anode of is above its cathode and conducts. The node, and so , is held near :
The same happens when , whatever the other input is.
Step 2: Both inputs high
With , neither anode is above its cathode, so no current flows through . The output sits at the supply voltage:
Step 3: Name the gate
The output is 1 only when both inputs are 1, so the truth table is that of an AND gate, .
Answer. (A) AND Gate
Sanity check. Turning both diodes round and joining the resistor to ground instead would make any high input pull the output high, an OR gate; the direction of the diodes decides the gate.
Why the other options are wrong
- (B) An OR gate needs a high output when one input is high, but with high and low the diode conducts and holds low.
- (C) A NOR gate would give a high output when both inputs are low, but then both diodes conduct and is low; diodes alone also cannot invert.
- (D) A NAND gate would give a low output only for both inputs high, but then both diodes are off and sits at , which is high.
Key takeaway
The trap. Calling every pair of diodes joined at one node an OR gate without looking at their direction.
How toppers think. They test the single input pattern that separates AND from OR, one input high and one low, and read the output.
Remember. Diodes from the inputs to a pull-up node give ; diodes towards a grounded resistor give .
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›