An OR gate has two or more inputs and a single output. The definition of OR gate states that if one of the inputs is '1' the output will be '1'. The figure below shows the structure of the OR gate.
For a two-input OR gate, the relationship between input and output is shown in the truth table below.
You will notice that if any-one of the input is 1 then the output is 1.
Now let us try to understand how you can build OR gate using diodes. But first, you must understand the basic principle on which the diode works.
Look at the figure of the diode below. If you apply some positive voltage V(in) which is greater than Vth (Breakdown voltage of diode) at point A then the diode will act as a closed switch or it will be forward biased. Thus the diode will start conducting. On the other hand if you apply some negative voltage V(in) which is less than Vth, the diode will not conduct and will act as an open switch. This is called reverse biased.
Having understood the working of the diode, let us now take a look at the circuit diagram of the OR gate.
Construction:- V1 and V2 are input voltages. R2 and R3 are the source resistances. R2 and R3 are equal and R1 >> R2, R3. D1 and D2 are the diodes. R1 is a pull-down resistor. Vout is the output voltage.
Working:-
Case 1:- V1 = 0, V2 = 0
If we apply zero voltage at both V1 and V2 then the diodes will not conduct (as V1, V2 < Vth). Therefore, the output voltage will also be zero volts.
Case 2:- V1 = 0, V2 = 5 V
In this case diode D1 will be in reverse biased (V1 < Vth) mode whereas D2 (V2 > Vth) will be forward biased and will start to conduct. thus the output voltage will be HIGH. It will not be exactly equal to the input voltage but slightly less than the input voltage. This is because of the voltage drop across R3, D2, and R1.
Case 3:- V1 = 5 V, V2 = 0 V
This is similar to case 2. The only difference is instead of D2, D1 will start conducting and the output will be HIGH.
Case 4:- V1 = 5 V, V2 = 5 V
In this case, both D1 and D2 will be forward biased and start conducting. What do you think will happen then? Will the 5 volts from V1 and 5 volts from V2 will add up to give an output voltage of 10 volts? Well, for your surprise the output voltage will still be 5 volts.
Let us try to understand this in detail.
V1 = V2 = 5 volts
Thus, we can consider the terminals V1 and V2 to be short together and supply a common 5 v supply as shown in the figure below.
Now,
R1 = R2 = R (Say)
Also, R1 and R2 are parallel to each other. Thus their equivalent resistance will be R/2. The simplified circuit diagram is shown below.
This brings us back to case 2, where only one diode was conducting. Thus the output will be HIGH. Of course, in this case, the Vout will be slightly higher than the previous cases. This is because the equivalent resistance (R/2) is less than the source resistance (R) due to which there will be less voltage drop across the source resistance and the output will be slightly higher than 5 volts.
Comments
Post a Comment