Lab 1:Logic Gate Systems :

Slides:



Advertisements
Similar presentations
Lab 03 :Vending Machine System : Slide #2 Slide #3 Logic Gate Equations: Slide #4 Vending Machine System: Older Generation IC Technology:
Advertisements

Lab02 :Logic Gate Fundamentals:
Logic Gates.
Programmable Logic Controllers.
Combinational Circuits
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Programmable Logic Controllers
Chapter 4 Gates and Circuits.
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 1 OF 3) COMPARATORS CODE CONVERTERS.
EE2174: Digital Logic and Lab
Lab 01:Binary numbers, UP-1 switches, and UP-1 LED’s :
Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data.
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.

3. DIGITAL ELECTRONICS..
UNIT-8 LOGIC GATES.
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
LOGIC GATES Logic generally has only 2 states, ON or OFF, represented by 1 or 0. Logic gates react to inputs in certain ways. Symbol for AND gate INPUT.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
TODAY YOU ARE LEARNING to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams.
Digital Logic Design Week 3
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
Basic Logic Operations and Standard Logic Gates (Lecture #1) ECE 331 – Digital System Design.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Basic Digital Logic 2 Combinational Logic
LOGIC GATES.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Basic Gates 3.1 Basic Digital Logic: NAND and NOR Gates ©Paul Godin Created September 2007 Last Update Sept 2009.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Basic Digital Logic: NAND and NOR Gates Technician Series ©Paul Godin Last Update Dec 2014.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
5 - Digital Logic with Boolean Algebra
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
Magnitude Comparator Dr. Ahmed Telba.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
Primitive Logic Functions Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
WORKING PRINCIPLE OF DIGITAL LOGIC
US Demonstrate knowledge of the practical applications of logic circuits.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
Lab 07 :Converting an older IC technology drill machine to VHDL: Slide 2 Slide 3 Generate a Truth Table from an Equation Generate a Truth Table from a.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
DAT10403 CHAPTER 4 COMPUTER ARITHMETIC By Noordiana Kassim
Basics of Logic gates - Part 1
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Introduction Molecules: made up of atoms of individual elements.
Lab02 :Logic Gate Fundamentals:
ECE 331 – Digital System Design
Logic Gates.
Basic Digital Logic.
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
SOLIDS AND SEMICONDUCTOR DEVICES - IV
The Bridge Between Symbolic Logic And Electronic Digital Computing
Digital Logic & Design Lecture 05
For OCR GCSE Computing Unit 1 - Theory
Logic Gates.
Logic Gates.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Logic Gates.
Digital Logic Experiment
XOR Function Logic Symbol  Description  Truth Table 
Digital Fundamentals Floyd Chapter 5 Tenth Edition
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Presentation transcript:

Lab 1:Logic Gate Systems : Slide #2 Binary Number System: Slide #3 Decimal Numbers: Slide #4 Binary Number Conversion: Slide #5 Switches and LED’s: Slide #6 The NOT gate: Slide #7 The OR gate: Slide #8 The AND gate: Slide #9 NOR Gate: Slide #10 NAND Gate: Slide #11 XOR and XNOR Gate: Slide #12 NOR / NAND Alternate Symbols: Slide #13 Rule for using alternate symbols: Slide #14 Logic Gate Equations: Slide #15 Vending Machine System:

1 9 1 1 1 1 1 1 1 Lab 1 : Binary Number System: We will use a car odometer to learn about the binary number system. A car odometer (non-digital) consists of a series of plastic discs that rotate to track the distance traveled by a car. 1 9 Driver Viewing Window A decimal odometer has the outer edge of each disc numbered from 0 … 9. Three discs will allow the odometer to record a maximum distance traveled of 999 Km’s. A binary odometer has the outer edge of each disc numbered with only 0 and 1. Using 3 discs will allow the odometer to record a maximum distance traveled of 111 binary Km’s … or … 7 km’s. Proceed to watch the odometer in action. 1 1 1 1 1 1 1 Decimal Equivalent 1 2 3 4 5 6 7 3 Bit Binary From the odometer example, you can place the 3 bit numbers in a table and see the order of the first 8 binary numbers. Slide #2

Lab 1 : Decimal Numbers : Reviewing some fundamental facts about the decimal number system will help you learn the binary number system. The decimal positional weight chart (PWC). Each numeral of a decimal number occupies a position that has a weight. Here is the decimal PWC. Hundreds Thousands Tens One’s 100 101 102 103 10-1 10-2 2 3 5 5 one’s 3 tens 2 Hundreds The weight of each position have been given names. A decimal point is used to separate the whole part and the fractional part of a number. Here is the decimal number 235 placed in the PWC. Slide #3

Lab 1 : Binary Number Conversions : Digital systems process data in binary format. It is important to know how to convert back and forth from binary to decimal. Binary numbers are part of a base 2 number system. Only two numerals exist: 1 and 0. Converting binary to decimal: Drop the binary number into the binary PWC to convert it to decimal. Example convert 11012 to decimal. 20 21 22 23 1 2 4 8 … Or … Binary PWC 1 = 1x8 + 1x4 + 0x2 + 1x1 = 8+4+0+1 = 1310 Converting decimal to binary: Example: convert 2510 to binary Write down a binary PWC which the MSB (most significant bit) surpasses the number you are trying to convert. Work from MSB and use a 1 to include the bit position and a 0 to exclude it. The included bits should have their weight add up to the number being converted. Exclude because 16 + 8 + 2 will exceed 25. Include because 16 + 8 + 1 will equal 25. Exclude because 16 + 8 + 4 will exceed 25. Include because 16 + 8 does not exceed 25. Include because 16 does not exceed 25. 1 2 4 8 16 32 Exclude because it would make number larger than 25 1 1 1 Slide #4

Lab 1 : Switches and LED’s: Students can create and test digital systems by using switches to represent binary input data and using LED’s (light emitting diode) to represent binary output data. Digital systems have an input side and an output side. Each arrow is a connection wire. The inputs of a digital system are binary digits (bits). You either input a binary 1 (logic 1) or a binary 0 (logic 0). The digital system processes the signals you have applied to the input and responds with binary 1 or binary 0 at the output(s). 5 volts represents a logic 1 and a 0 volts (also called GROUND or Gnd) represents a logic 0. The digital system is powered up by a 5 Volt power supply. A switch can be used to input a logic 1 and logic 0. An LED can be connected to the output to see the digital system’s response. Continue and you will see the switch and LED in action. 5v 5v Digital System Input Output Logic 1 ON Logic 0 OFF Logic 0 OFF Logic 0 OFF Logic 1 ON Logic 1 ON Slide #5

Lab 1:The NOT Gate (inverter): The NOT gate is the first of the three fundamental logic gates. You will learn its operation using Truth Table analysis and an animation. A X 1 Truth Table: Is a chart that lists the input condition on the left and the gate’s output response on the right. The table shows that the NOT gate responds at the output with the inverse of the signal applied to the input. Animation: In order to see how it works, the gate has been connected to a switch and LED. Continue to see the system in action… 5v Input A Output X Logic 1 OFF Logic 0 ON Logic 0 ON Logic 0 ON Logic 1 OFF Logic 1 OFF Slide #6

Lab 1: The OR Gate: The OR gate is the second of three fundamental logic gates. You will learn its behaviour using a Truth Table analysis and an animation. Truth Table: The table shows that the OR gate responds with a high at the output if the signal applied to the input A or B is high. Animation: In order to see how it works, the gate has been connected to 2 switches and LED. Continue to see the system in action… 5v Logic 1 Logic 1 Logic 0 Input A Output X Input B OR Logic 0 Logic 0 Logic 1 A B X 1 Slide #7

Lab 1: The AND Gate: The AND is the last of the remaining fundamental logic gates. You will learn its behaviour using a Truth Table analysis and an animation. Truth Table: The table shows that the AND gate responds with a high at the output if the signal applied to the input A and B are both high. Animation: In order to see how it works, the gate has been connected to 2 switches and LED. Continue to see the system in action… 5v Logic 1 Logic 0 Logic 1 Input A Output X Input B AND Logic 0 Logic 0 Logic 1 A B X 1 Slide #8

Lab 1 : NOR Gate The NOR gate is equivalent to an OR gate with a NOT gate connected to its output. NOR comes from the words Not OR. Continue to see the standard symbol for NOR. NOR Symbol Truth Table: The table shows that the NOR gate responds with a low at the output if the signal applied to the input A or B is high. System animation: In order to see how it works, the gate has been connected to 2 switches and LED. Continue to see the system in action… 5v Logic 1 Logic 0 Logic 1 Logic 0 Input A Output X Input B NOR Logic 0 Logic 1 Logic 0 Logic 1 A B X 1 Boolean Equation: here is the equation for the NOR gate. Slide #9

Lab 1 : NAND Gate The NAND gate is equivalent to an AND gate with a NOT gate connected to its output. NAND comes from the words Not AND. Continue to see the standard symbol for NAND. NAND Symbol Truth Table: The table shows that the NAND gate responds with a low at the output if the signal applied to the input A and B is high. System animation: In order to see how it works, the gate has been connected to 2 switches and LED. Continue to see the system in action… 5v Logic 1 Logic 0 Logic 1 Logic 0 Input A Output X Input B NAND Logic 0 Logic 1 Logic 0 Logic 1 A B X 1 Boolean Equation: here is the equation for the NAND gate. Slide #10

Lab 1 : XOR Gate The XOR gate is an exclusive OR gate. It will output a logic 1 if there is an exclusive logic 1 at input A or B. Exclusive means: Only one input can be high at one time. Truth Table: The table shows that the XOR gate responds with a high at the output if the signal applied to the input A or B is high (but not both high). XOR Boolean Equation: Input A Output X Input B XOR A B X 1 The XNOR gate is an exclusive OR gate with an NOT gate at the output. It will output a logic 0 if there is an exclusive logic 1 at input A or B. Input A Output X Input B XNOR A B X 1 XOR Boolean Equation: Slide #11

Lab 1 : NOR and NAND Gate Alternate Symbols: The NAND and NOR logic gate symbols you have studied are called the “standard” symbols. Each gate also has an “alternate” symbol. A B X 1 A B X 1 NAND NOR NOT The “standard” logic symbols for the NAND and NOR gates indicates a gates response to “logic 1” at the input. 0 AND 0 = 1 0 OR 0 = 1 Alternate NOR GATE: The bubbles at the input of the NOR gate implies that a “logic 0” at input A and a “logic 0” at input B are required to produce a “logic 1” at output X (NO bubble at output). Alternate NAND GATE: The bubbles at the input of the NAND gate implies that a “logic 0” at input A or a “logic 0” at input B are required to produce a “logic 1” at output X (NO bubble at output). Alternate NAND Alternate NOR Slide #12

= = = Lab 1 :Rule for Using the Alternate symbols : The basic logic gates AND, OR, and NOT have standard logic symbols and alternate logic symbols. A general rule for using alternate symbols exists. The rule is a guide and not a strict rule. Some designers do not use the rule but many do. = = = Standard Alternate The rule is simple : Active high device connects to active high symbol : Active low device connects to the active low symbol. Example: Connect an LED to an AND gate: There are two types of LED connections. Active Low LED 5V A logic 1 lights the LED 1 A logic 0 lights the LED Active High LED Active high device connects to active high symbol (standard). Active low device connects to the active low symbol (alternate). Slide #13

Lab 1 : Logic Gate Equations : Each logic gate has a Boolean equation to represent its operation. Input A Output X Boolean Equation: NOT Boolean Equation: Input A Output X Input B AND Input A Output X Input B OR Boolean Equation: Slide #14

Lab 1 : Vending Machine System: Design a logic system for a vending machine that will dispense a 75 cent surprise gift package if any of the following conditions occur… Three quarters are inserted. A dollar is inserted. The machine can only accept quarters and a dollar coin / note. Step 1: Declare Inputs and Outputs: Inputs : Quarters (Q1, Q2, Q3). Dollar (L). Logic 1 = currency present. Outputs : Package (P). Quarter Change (C). Logic 1 = dispense item. 1 1 1 1 Q3 Q2 Q1 L P C Q1 • Q2• Q3  =  + L C2 1 L Step 2: Generate Equation for the system: Dispense Package if Quarter1 and Quarter2 and Quarter3 OR Dollar is inserted. Dispense change if dollar is inserted. P = Q1 • Q2• Q3 + L C = L Once the system diagram is complete it can be used to test the operation of the system. Here is what happens when someone inserts 3 quarters. Here is what happens when someone inserts a dollar. P-Term : thus : P =  + L Here is what happens when someone searches their pocket finds a quarter and inserts it into the machine. Then they realize that they do not have 2 more quarters! If they insert a dollar what would be the result? Step 3: Draw the Digital System Diagram : Group variables that are ANDed together into a single block. This block is called product term (P-Term). The result: The package and the change would be dispensed. The un-happy user of the machine would have paid $1 ($1.25 - $0.25 change). To resolve this problem an extra change output could be added. Work from output towards input. P must be connected to an OR gate. Slide #15 Re-insert the P-Term (Q1 • Q2• Q3). A 3 input AND gate is required. Connect L to OR gate and connect C to L (C=L).