A key element of electrical engineering

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

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, every.
EMS1EP Lecture 2 Electronic Circuits Dr. Robert Ross.
Give qualifications of instructors: DAP
Introduction Digital Electronics Logic Gates De Morgan’s Theorem
Electricity and Circuits
Electrical Engineering 1 WISE Investments Electrical Engineering Lab Digital Logic Tutorial and Design Dr. Keith Holbert.
Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Chapter 4 Gates and Circuits.
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
Lecture 3. Boolean Algebra, Logic Gates
Electrical Engineering 1 WISE Investments Electrical Engineering Lab Digital Logic Laboratory Dr. Keith Holbert.
Gates A digital circuit is one in which only two logical values are present. Typically, a signal between 0 and 1 volt represents one value (e.g. binary.
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 2P. 1Winter Quarter Digital Electronics Lab 2.
Ch4 Electronic Components Circuit/Schematic Symbols.
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.
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
Intro to Digital Electronics. Classifications of Electronic Circuits Switching Circuits – by turning electricity on and off. – Figure 1 – Known as the.
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
CSCI-235 Micro-Computers in Science Hardware Design Part I.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
Multiplexers 1 The output is equal to one of several input signals to the circuit The multiplexer selects which input signal to use as an output signal.
First, let’s review the structure and use of a breadboard.
Homework - Write Truth Tables for toy car. You will design a simple digital circuit to make a toy car follow a flashlight. The car has three light sensors.
DIGITAL LOGIC ELECTRICITY, GATES, COMPONENTS. DIGITAL LOGIC READING: APPENDIX C THROUGH C.3 The Student shall be able to: Define voltage, current, resistance,
Basic Digital Logic 2 Combinational Logic
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
4. Electrons and electronics 4.5 Digital electronics.
CSCI-100 Introduction to Computing Hardware Design Part I.
Electronic Components Circuit/Schematic Symbols. RESISTOR Resistors restrict the flow of electric current, for example a resistor is placed in series.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Some basic electronics and truth tables Some material on truth tables can be found in Chapter 3 of Digital Principles (Tokheim)
ELECTRICAL ENGINEERING DIGITAL LOGIC TUTORIAL AND DESIGN 1.
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
CS/COE0447 Computer Organization & Assembly Language
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
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.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Logic Gates Unit 16.
Logic gates.
Basics of Logic gates - Part 1
Logic Gates Binary Day 3 PEOPLE 2016.
Purpose of This Minilab
Introduction Molecules: made up of atoms of individual elements.
Instructor:Po-Yu Kuo 教師:郭柏佑
Circuits Logic in Hardware.
ECE 331 – Digital System Design
Basic Digital Logic.
Chapter 4 Gates and Circuits.
Computer Science 210 Computer Organization
CS/COE0447 Computer Organization & Assembly Language
Digital Electronics Lab 2 Instructor:
Instructor:Po-Yu Kuo 教師:郭柏佑
Basic Electronics Part Two: Electronic Components.
Introduction to Wiring Logic Gates
Electricity and Circuits
Digital Circuits and Logic
Logic Gates AIM: To know the different types of logic gate
2019 Investing Now Summer Program
Presentation transcript:

A key element of electrical engineering Digital Circuits A key element of electrical engineering sources: http://www.facstaff.bucknell.edu/mastascu/eLessonsHTML/EEIndex.html http://www.jhu.edu/~virtlab/logic/log_cir.htm

Foundations of Electrical Engineering Electrophysics Maxwell's Equations, Circuit theory Information (Communications) Theory Data rate vs Signal Strength, Error correction Digital Logic Using Logic Gates to build up complex ccts 2

EE Subdisciplines Power Systems Electromagnetics Solid State Communication/Signal Processing Controls Analog/Digital Design 3

What is Voltage? V = “Electrical pressure” - measured in volts. H2O High Pressure Low Pressure Figure 1.1

A battery in an electrical circuit plays the same role as a pump in a water system.

Where can I find a digital circuit? Digital Circuits and Digital Logic are the buiding blocks for computers certain control systems (robots, factories) LED displays Digital Circuits are built up from Analog circuits analog: continuous varying, digital: discrete steps electricity has many characteristics of logic (+/-, True/False, etc)

Digital Logic is based on Binary Two possible states True/False 1/0 Yes/No On/Off Light/Dark

Logic Signals      Different systems for representing binary info in the physical world: A voltage signal: Zero (0) corresponding to 0 volts One (1) corresponding to five volts. A sinewave: Zero corresponding to some frequency One corresponding to some other frequency. Switches: OPEN for "0" and CLOSED for "1". (And there are more ways!)

Characteristics of Logic Signals Change in time Initially we look at unchanging values Voltage signal takes on two values corresponding to 0 and 1. for example, 0 Volts and 5 volts We can associate a variable with a logic signal assign a symbol to represent that variable like the symbol A.

Think Binary! Examples: Logic signal, A, takes on values of Cell phone converts voice into series of ones and zeros Thermostat: 1 when temp is too low, 0 when too high Logic signal, A, takes on values of 0 (FALSE, OFF) or 1 (TRUE, ON).  might be a voltage, a switch closure, etc.  More generally, think in terms of zeros and ones not in terms of the values of the voltage or switches.

Operations on Logic Circuits Suppose there are 2 logic signals. A and B We often want to derive a 3rd signal C based on the values of A and B if it is dark outside (A) OR raining (B) Turn on lights (C) OR GATE

Logic Gates Logic Gates are digital circuit packages that perform logic operations on logic signals AND gate: both must be true for true output OR gate: only one must be true for true output NOT gate: true in means false out and vice versa NAND gate: the opposite of AND AND followed by NOT

Truth Tables and Logic Gates Truth tables use 1/0 instead of True/False OR AND NOT (inverter)

NAND GATE = NOT AND A B C A B C An AND gate followed by NOT Truth Table Usually drawn as: A B C A B C Any logic gate can be built from 1 or more NAND gates!

Lab: LS7400 Quad Nand Gate IC Pinout shows which pins are connected to what Vcc = +5 V, -Vcc = 0V Verify the notch location!!

Breadboard a NAND gate a breadboard is a quick way to build circuits without soldering 5 pin rows are connected by metal clips vertical column on sides are connected.

Connect Power Supply to Breadboard Ground +5V Black to Ground Red to +5V

Add signal wires for A and B

Add LEDs to show value of A,B (1- 470 Ohm Resistor for each LED) The shorter Wire on LED goes to GROUND When both are connected, turn on power (A, B are '1')

Move brown wire to change B to '0' Add LED to output pin 3

Are these showing the NAND truth table?

How about these?

A NAND Inverter A C Connecting the two inputs A and B are both at A Truth table is the same as Inverter A C

NAND + NAND = AND A B C Taking NOT-NOT AND Try it! Add wires from Pin 3 to 4, 4 to 5 move your output Resistor to pin 6

FLIP FLOP – another 2 NAND cct Output of 1 (P) feeds back to input of 2 Output of 2 (Q) feeds back to input of 1 MEMORY!! previous state was X=1, Y=0 previous state was X=0, Y=1

Flip Flop Wiring And each labelled pin A,B,P,Q have resistors and LED to ground for monitoring

Flip Flop in Action A=0 B=1 A=0 B=0

Flip Flop in Action A=0 B=1  A=1, B=1 A=1 B=0  A=1, B=1

3 NANDs make an OR A C B Use the digital circuit simulator to try out: http://www.jhu.edu/~virtlab/logic/logic.htm

Team Challenges (simulate or wire up) Using only NAND gates: A . Design, construct and test a three input AND. B. Design, construct and test a three input NAND. C. Design a four input NAND. Hint: If wiring, use an LED indicator to show the inputs and/or the outputs in your circuits. Use a current-limiting resistor for each LED.

Use the circuit builder http://www.jhu.edu/~virtlab/logic/logic.htm D. Using only AND, NOT, and OR produce a three-input OR circuit, ie., the output is 1 if any of the inputs is 1. E. Create a two-input "adder" with two outputs: the one-digit result of the add, and the value of a "carry" bit. In binary arithmetic, 1+1=0 with a carry=1.

Super Bowl Problem At the beginning of halftime during the Superbowl, 35 million toilets are flushed almost simultaneously. Resulting loss of water pressure wreaks havoc on many municipal water systems. Make a controller to solve the problem for a "three toilet" system. Devise a logic circuit whose "1" inputs represent "flushes" and whose "1" outputs represent opened water valves If no more than one toilet is flushed, then that toilet's water valve opens, the others remaining closed. If more than one toilet is flushed, then all the water valves remain closed.