Thursday, July 24, 2014

Digital Logic Gates

Digital systems are constructed using logic gates. Basic Logic gates are AND, OR, NOT, NAND, NOR, EXOR and EXNOR. The basic operations are described below with the aid of truth tables.

AND


A Logic AND Gate is a type of digital logic gate that has an output which is normally at logic level “0” and only goes “HIGH” to a logic level “1” when ALL of its inputs are at logic level “1”. The output state of a “Logic AND Gate” only returns “LOW” again when ANY of its inputs are at a logic level “0”.

The logic or Boolean expression given for a Digital Logic AND Gate is that for Logical Multiplication which is denoted by a single dot or full stop symbol, ( . ) giving us the Boolean expression of:  

 A.B = Q.
 
“If both A and B are true, then Q is true”

Symbol Truth Table
2-input AND gate
2-input AND Gate
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
Boolean Expression Q = A.B Read as A AND B gives Q


OR

A Logic OR Gate or Inclusive-OR gate is a type of digital logic gate that has an output which is normally at logic level “0” and only goes “HIGH” to a logic level “1” when one or more of its inputs are at logic level “1”. The output, Q of a “Logic OR Gate” only returns “LOW” again when ALL of its inputs are at a logic level “0”.
The logic or Boolean expression given for a Digital Logic OR Gate is that for Logical Addition which is denoted by a plus sign, ( + ) giving us the Boolean expression of: 

 A+B = Q.

 “If either A or B is true, then Q is true”

Symbol Truth Table
2-input OR gate
2-input OR Gate
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Expression Q = A+B Read as A OR B gives Q


NOT

The digital Logic NOT Gate is the most basic of all the logical gates and is sometimes referred to as an Inverting Buffer or simply a Digital Inverter. It is a single input device which has an output level that is normally at logic level “1” and goes “LOW” to a logic level “0” when its single input is at logic level “1”.

The output from a NOT gate only returns “HIGH” again when its input is at logic level “0” giving us the Boolean expression of:   

A = Q.

“If A is NOT true, then Q is true”

Symbol Truth Table
logic not gate
Inverter or NOT Gate
A Q
0 1
1 0
Boolean Expression Q = not A or A Read as inverse of A gives Q


NAND
 
The Logic NAND Gate is a combination of the digital logic AND gate with that of an inverter or NOT gate connected together in series. The NAND (Not – AND) gate has an output that is normally at logic level “1” and only goes “LOW” to logic level “0” when ALL of its inputs are at logic level “1”. The Logic NAND Gate is the reverse or “Complementary” form of the AND gate we have seen previously.

Logic NAND Gate Equivalence

logic nand gate

The logic or Boolean expression given for a logic NAND gate is that for Logical Addition, which is the opposite to the AND gate, and which it performs on the complements of the inputs. The Boolean expression for a logic NAND gate is denoted by a single dot or full stop symbol, ( . ) with a line or Overline, ( ‾‾ ) over the expression to signify the NOT or logical negation of the NAND gate giving us the Boolean expression of:   
                                                                                                               ___
A.B = Q.

“If either A or B are NOT true, then Q is true”

SymbolTruth Table
2-input logic NAND gate
2-input NAND Gate
ABQ
001
011
101
110


NOR

The Logic NOR Gate or Inclusive-NOR gate is a combination of the digital logic OR gate with that of an inverter or NOT gate connected together in series. The NOR (Not – OR) gate has an output that is normally at logic level “1” and only goes “LOW” to logic level “0” when ANY of its inputs are at logic level “1”. The Logic NOR Gate is the reverse or “Complementary” form of the OR gate we have seen previously. 

Logic NOR Gate Equivalent

 

2-input nor gate equivalent

The logic or Boolean expression given for a logic NOR gate is that for Logical Multiplication which it performs on the complements of the inputs. The Boolean expression for a logic NOR gate is denoted by a plus sign, ( + ) with a line or Overline, ( ‾‾ ) over the expression to signify the NOT or logical negation of the NOR gate giving us the Boolean expression of:   
                                                                                                              ____
A+B = Q.

 “If both A and B are NOT true, then Q is true”

SymbolTruth Table
2-input nor gate
2-input NOR Gate
ABQ
001
010
100
110
 

EXOR

The two-input “Exclusive-OR” gate is basically a modulo two adder, since it gives the sum of two binary numbers and as a result are more complex in design than other basic types of logic gate. The truth table, logic symbol and implementation of a 2-input Exclusive-OR gate is shown below.
 
Symbol Truth Table
2-input exclusive-or gate
2-input Ex-OR Gate
A B Q
0 0 0
0 1 1
1 0 1
1 1 0

The truth table above shows that the output of an Exclusive-OR gate ONLY goes “HIGH” when both of its two input terminals are at “DIFFERENT” logic levels with respect to each other. If these two inputs, A and B are both at logic level “1” or both at logic level “0” the output is a “0” making the gate an “odd but not the even gate”. 

EXNOR

The Exclusive-NOR Gate function or Ex-NOR for short, is a digital logic gate that is the reverse or complementary form of the Exclusive-OR function. Basically the “Exclusive-NOR Gate” is a combination of the Exclusive-OR gate and the NOT gate but has a truth table similar to the standard NOR gate in that it has an output that is normally at logic level “1” and goes “LOW” to logic level “0” when ANY of its inputs are at logic level “1”.

Ex-NOR Gate Equivalent

exclusive-nor gate 

Symbol Truth Table
2-input exclusive-nor gate
2-input Ex-NOR Gate
A B Q
0 0 1
0 1 0
1 0 0
1 1 1

Sunday, July 20, 2014

Variable Voltage Regulators

Here is a simple variable voltage regulator circuit using LM317 and LM337 ICs

Components Required:

1) Breadboard
2) 1Amps Fuse
3) 15 - 0 - 15 center tapped Transformer
4) 1N4007 diode = 4
5) 2200uf capacitor = 2
6) 100nf capacitor = 2
7) 150 ohm resistor = 2
8) 3.9 kilo ohm Potentiometer (POT) = 2
9) LM317 Positive Voltage Regulator IC
10) LM337 Negative Voltage Regulator IC

Explanation for Dual Voltage Regulator:
  • Connect the circuit as shown in the circuit diagram below.
  • The output of the center tapped transformer is AC voltage.
  • Voltage between the center and anyone of the other terminal gives +15Volt AC, Voltage between the two outer terminals gives +30Volt AC.
  • Connecting in center tapped pattern gives +15Volt AC across terminals 1 & 2 and gives -15Volt AC across terminals 3 & 2.
  • Four 1N4007 diode connected as shown below forms a bridge circuit which converts bidirectional AC into unidirectional DC.
  • The converted signal is not pure DC, it still consists of some AC signals.
  • The 2200uf capacitor is used as a filter, which allows only DC to pass through..
  • LM317 Voltage Regulators are used for Adjustable Positive voltage values & LM337 Voltage Regulators are used for Adjustable Negative voltage values.
  • LM317 and LM337 consists of three terminals namely regulated output voltage, adjustable terminal and unregulated input voltage.
  • +15Volt DC input goes to LM317 and -15Volt DC input goes to Lm337, which gives +1.5 to +13Volt and -1.5 to -13Volt regulated DC output.
  • Output of the regulator produces noise which can be removed using 100nf capacitor, which acts as a filter.
Circuit Diagram:



Figure 1: Variable Dual Voltage Regulator using LM317 & LM337 Circuit simulation made in Multisim


Explanation for Single Voltage Regulator:
  • Connect the circuit as shown in the circuit diagram below.
  • The output of the center tapped transformer is AC voltage.
  • Voltage between the two outer terminals gives +30Volt AC.
  • Four 1N4007 diode connected as shown below forms a bridge circuit which converts bidirectional AC into unidirectional DC.
  • The converted signal is not pure DC, it still consists of some AC signals.
  • The 2200uf capacitor is used as a filter, which allows only DC to pass through..
  • LM317 Voltage Regulators are used for Adjustable Positive voltage values.
  • LM317 consists of three terminals namely regulated output voltage, adjustable terminal and unregulated input voltage.
  • +30Volt DC input goes to LM317, which gives +1.5 to +28Volt regulated DC output.
  • Output of the regulator produces noise which can be removed using 100nf capacitor, which acts as a filter.
Circuit Diagram:
 

 Figure 2: Variable Voltage Regulator using LM317 Circuit simulation made in Multisim

Thursday, July 17, 2014

Fixed Voltage Regulators

Here is a simple Fixed voltage regulator circuit using 7805 and 7905 voltage regulator ICs

Components Required:

1) Breadboard
2) 1Amps Fuse
3) 9 - 0 - 9 center tapped Transformer
4) 1N4007 diode = 4
5) 2200uf capacitor = 2
6) 100nf capacitor = 2
7) LM7805 Positive Voltage Regulator IC
8) LM7905 Negative Voltage Regulator IC

Explanation for Dual Voltage Regulator:
  • Connect the circuit as shown in the circuit diagram below.
  • The output of the center tapped transformer is AC voltage.
  • Voltage between the center and anyone of the other terminal gives +9Volt AC, Voltage between the two outer terminals gives +18Volt AC.
  • Connecting in center tapped pattern gives +9Volt AC across terminals 1 & 2 and gives -9Volt AC across terminals 3 & 2.
  • Four 1N4007 diode connected as shown below forms a bridge circuit which converts bidirectional AC into unidirectional DC.
  • The converted signal is not pure DC, it still consists of some AC signals.
  • The 2200uf capacitor is used as a filter, which allows only DC to pass through..
  • 78XX Voltage Regulators are used for Positive voltage values and 79XX Voltage Regulators are used for Negative voltage values.
  • Here i have used +5Volt and -5Volt Voltage Regulator ICs ie) 7805 and 7905.
  • 78XX and 79XX consists of three terminals namely unregulated input voltage, ground and regulated output voltage.
  •  +9Volt DC input goes to 7805 and -9Volt DC input goes to 7905, which gives +5Volt and -5Volt regulated DC output.
  • Output of the regulator produces noise which can be removed using 100nf capacitor, which acts as a filter.
Circuit Diagram:

 
Figure 1: Fixed Dual Voltage Regulator Circuit simulation made in Multisim


Explanation for Single Voltage Regulator:
  • Connect the circuit as shown in the circuit diagram below.
  • The output of the center tapped transformer is AC voltage.
  • Voltage between the center and anyone of the other terminal gives +9Volt AC, Voltage between the two outer terminals gives +18Volt AC.
  • Four 1N4007 diode connected as shown below forms a bridge circuit which converts bidirectional AC into unidirectional DC.
  • The converted signal is not pure DC, it still consists of some AC signals.
  • The 2200uf capacitor is used as a filter, which allows only DC to pass through..
  • 78XX Voltage Regulators are used for Positive voltage values and 79XX Voltage Regulators are used for Negative voltage values.
  • Here i have used +5Volt Voltage Regulator IC ie) 7805. Similarly we can replace 7805 with 7905 to get -5Volt regulated output.
  • 78XX consists of three terminals namely unregulated input voltage, ground and regulated output voltage.
  •  +9Volt DC input goes to 7805, which gives +5Volt regulated DC output.
  • Output of the regulator produces noise which can be removed using 100nf capacitor, which acts as a filter.
  • For other voltage values we can simply replace 7805 with the corresponding 78XX or 79XX Voltage Regulator ICs.
Circuit Diagram:

 

Figure 2: Fixed Single Voltage Regulator Circuit simulation made in Multisim