Docsity

Understanding Basic Logic Gates: NOT, AND, and OR, Lecture notes of Digital Electronics

Partial preview of the text

Download Understanding Basic Logic Gates: NOT, AND, and OR and more Lecture notes Digital Electronics in PDF only on Docsity!

15EC304 Digital System

Design

Lecture-3 Basic Logic Gates

Session Objective

1. To Write the truth tables for, and draw the symbols for, 2-

input OR, AND gates and NOT gate

2. To analyse the operations of these gates

The Basic Gates—not, or, and

 Three logic circuits, the inverter, the OR gate, and the AND

gate, can be used to produce any digital system.

The Basic Gates – NOT Gate

In Boolean algebra a variable can be either 0 or 1. The output Y of not gate is always complement of input A. In equation form Y = not A i.e. Y = A’ so that, if A = 0, Y = 0’ = 1 and if A = 1, Y = 1’ = 0

The Basic Gates – 3 input OR Gate

 (^) Figure shows a 3-input OR gate.  (^) The inputs are A, B, and C. When all inputs are low, Y is low.  (^) If A or B or C is high, Y will be high.  (^) The truth table summarizes all input possibilities. In equation form, the three input OR gate is represented as: Y = A + B + C.

The Basic Gates – OR Gate

 (^) An OR gate can have as many inputs as desired.  (^) No matter how many inputs, the action of any OR gate is summarized like this: One or more high inputs produce a high output.

The Basic Gates – AND Gate

 (^) The AND gate has a high output only when all inputs are high.  (^) Figure shows a 2-input AND gate. The truth table summarizes all input-output possibilities for a 2-input AND gate.  (^) The AND gate has a high output only when A and B are high. In other words, the AND gate is an all-or-nothing gate; a high output occurs only when all inputs are high.  (^) This truth table uses 1s and 0s, where 1 = H and 0 = L.

The Basic Gates – AND Gate

 (^) In Boolean equation form Y = A AND B, i.e. Y = A.B or Y = AB so that, Y = 0.0 = 0, Y = 0.1 = 0, Y = 1.0 = 0 and Y = 1.1 = 1  (^) The ‘.’ sign here represents logic AND operation and not multiplication operation of basic arithmetic though the result are same for both.

The Basic Gates – Review

What is the Boolean equation for the logic circuit of Fig.?

The Basic Gates – Review

Write the Boolean equation for Fig.

Self Test

  1. A system in which H = 1 and L = 0 is (positive, negative) logic.
  2. A gate whose output is H if any input is H is an _______ gate.
  3. A gate whose output is H only when all inputs are H is an _______ gate.
  4. Write an expression for an inverter, or NOT gate equivalent to Y = not A.
  5. Write a Boolean expression for an OR gate having A and B as inputs and Y as the output.
  6. Write the Boolean expression for an AND gate with A and B as inputs and Y as the output.