Diode As A Switch:
Have a closer look at diode symbol. It represents an arrow, which shows the direction of current. It allows current to flow from anode to cathode. As you know, it is a voltage controlled two terminal device. It has characteristics of a switch. In one direction it allows current to flow, while in other direction it blocks the current. In other words, during forward biased conditions, diode has ideally zero resistance. It behaves as a closed switch. While during reverse biased it behaves as an open switch. Diodes use in switching applications are also known as 'signal diodes’.
Figure 1 Diode as a switch. Practical versus ideal diodes |
Apply voltage positive V at anode. When anode is more positive than anode, it behaves as a closed switch. Input is directly coupled to the output. And hence current flows from positive to negative terminals.
Now apply positive voltage at cathode. See figure 1. It means cathode is at greater potential than anode. In this situation the diode acts as an open switch between input and output terminals. Consequently no current flows through the diode.
- Signal diodes are common in mixing circuits (mixers)
- Logic gates can also be implemented with the help of switching diodes.
Positive Logic AND Gate Using Diodes:
The figure below (figure 2) is two input positive logic AND gate circuit. It is made up of diodes. Here diode is using as a digital switch.
Let's understand the working of circuit. Input A and input B is tied to cathode. While both anodes are connected to VCC through resistor R1. The output VOut depends on both inputs. If either input is zero output is zero.
VA is voltage at input A
VB is voltage at input B
VA < VCC
VB < VCC
Vout = 0 (logic 0)
At this condition, both diodes are forward biased (closed switch) because both input terminals (cathodes) are at lower potential than anode. The current flows from diodes and hence output is low.
VA > VCC
VB < VCC
Vout = 0
At this condition, diode D1 is reverse biased. While diode D2 is forward biased. The current flows from diode D2 and hence output is low.
VA < VCC
VB > VCC
Vout = 0
At this condition, D2 is reverse biased. While D1 is forward biased because input A (cathode) is at lower potential than anode. The current flows from D1 and hence output is low.
VA > VCC
VB > VCC
Vout = 1 (logic 1)
At this condition, both diodes are reverse biased (opened switch). No current flows from diodes and hence output is high.
A
|
B
|
Out
|
0
|
0
|
0
|
0
|
1
|
0
|
1
|
0
|
0
|
1
|
1
|
1
|
Figure 2: AND gate using diode |
Positive Logic OR Gate Using Diodes:
Look at figure 3. It is two input OR gate, implemented from diodes only. A and B are two inputs, where output is taken across resistor R1. Truth table is given as well.
Let's understand the working of circuit.
Look at the diode position. Input A is at its anode. While the cathode is tied to resistor R1, which is grounded. Same for input B.
When anyone input A or B is positive (logic high) the output is high. That is positive logic (voltage) at anode, makes the diode forward bias. Hence input appears at the output.
VOut = VA = VB ...for ideal diode
VOut = VA - 0.7 … for practical diode
Where VA is voltage at input terminal A
A
|
B
|
Out
|
0
|
0
|
0
|
0
|
1
|
1
|
1
|
0
|
1
|
1
|
1
|
1
|
Figure 3 Diode OR gate |