fundamental logic gates and, or, not. logic gates: the basics regulate the flow of electricity...

15
Fundamental Logic Gates And, Or, Not

Upload: elijah-turner

Post on 18-Jan-2018

223 views

Category:

Documents


0 download

DESCRIPTION

Logic Gates and Transistors

TRANSCRIPT

Page 1: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Fundamental Logic Gates

And, Or, Not

Page 2: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: The Basics

Regulate the flow of electricity within circuits to perform desired functionalities

Each gate receives one or more inputs but has only one output

Represented using Schematics, Words, Symbols, and Boolean Equations

Page 3: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates and Transistors

Page 4: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: ANDSchematic Symbol Boolean Equation

• Y = A • B

(Output) Y is True:Only if both (Inputs) A and B are true.

Page 5: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Aside Boolean Variables

Boolean variables are always capital letters and can only take on the values T (true) or F (false).

For Example:A=True B=False X=true…

Page 6: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: AND continued… Ex. Are the following statements true or false ?

My name is Mr.Kurz and this is Room 231. I am a human and I am the Prime Minister of Canada.

A B Y0 0 00 1 01 0 01 1 1

A B YF F FF T FT F FT T T

Truth Tables:

or

Page 7: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Note on Truth Tables

There is only one pattern to follow!A B YF F FF T FT F FT T T

A B Y0 0 00 1 01 0 01 1 1

ANY other way is wrong!

Page 8: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: ORSchematic Symbol Boolean Equation

+ Y = A + B

(Output) Y is True:Only if (Inputs) A, B, or both A and B are true.

Page 9: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: OR continued… Ex. Are the following statements true or false ?

This class is ICE4M or is in Room 503. I am a human or I am the Prime Minister of Canada.

A B Y0 0 00 1 11 0 11 1 1

A B YF F FF T TT F TT T T

Truth Tables:

or

Page 10: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: NOTSchematic Symbol Boolean Equation

¯ Y = A

Output (Y) is True:Only if Input (A) is false.

Page 11: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Logic Gates: NOT continued… Ex. Which of these are true or false?

This class is not ICE4M. I am not the Prime Minister of Canada.

A Y0 11 0

A YF TT F

Truth Tables:

or

Page 12: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Example: Create a truth table for the following circuit:

Steps: Create Table Fill in A, B, C Solve one gate at a

time using in betweencolumns on the table

Solve for Y

A B C A • B (A+B)•C0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1

00000011

01010111

Page 13: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Additional Info

Equivalent Terminology:

For ‘n’ inputs into any logic gate, there will be 2n rows in your truth table.

True 1 on open High VFalse 0 off closed Low V

Page 14: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

The other three gates

NOR – “Not Or” NAND – “Not And” Xor - “One or the other, not both”

Page 15: Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each

Today

1. Complete the Logic Gate Summary Chart2. Use the IC schematics on the resources

page to set up and test each of the 6 logic gates.

Pin 14 goes to Power Pin 7 to ground.