Presentation – Binary (day 3)

Download Report

Transcript Presentation – Binary (day 3)

Logic Gates
Binary Day 3
PEOPLE 2016
Read the first page of the
“Introduction to Logic Gates”
worksheet
Logic Gates
• Performs a “logical
operation” on one or
more inputs
• Gives one output
• Outputs and inputs of
logic gates are true
(“1”) or false (“0”)
AND Gate
Logic Gates and Computers
• Help computers
transmit information
between components
• Logic gates steer signals
through a larger circuit,
similar to a stoplight
directing traffic
Truth Table
Outlines specific
input/output
combinations for a
logic gate
AND Gate
A
B
Y
0
0
?
1
0
?
0
1
?
1
1
?
Truth Table – A “Real Life” Example
"If you wash the
dishes and clean your
room, you can go to
the party."
Wash Dishes
Go to
Party?
Clean Room
AND Gate
A
Wash
Dishes
B
Clean
Room
Y to Party?
Go
0
No
0
No
?
No
1
Yes
0
No
?
No
0
No
1
Yes
?
No
1
Yes
1
Yes
?
Yes
Fill out page 2 of the “Introduction
to Logic Gates” worksheet
Today’s Activity
• Use “real” logic gates – chips with built-in logic
functions - to test these logical relationships
• Even if you think you know how to fill out the
truth tables, DO THE EXPERIMENTS!
• In addition to filling out the worksheet, write
down unexpected results and interesting
observations
• Working with breadboards
Breadboards
Tips for Using Breadboards
• Connect ground to one column on the side of the
breadboard and positive voltage to a second column
• Place your chip in the breadboard so that each pin is in
a separate row – what would this look like?
• Use wire to connect ground and positive voltage to the
same row as the appropriate pin (remember stripping
the wire casing on the Christmas lights activity? You
will need to do this again)
• Connect wire to the appropriate rows on the chip from
the input(s) and output ports located on the blue IDL
800 Digital Lab
Output
Light
Indicator
(On = 1,
Off = 0)
Connections
for +5V and
GND (Ground)
are here
Input Switches
(Change Input
from 0 to 1)
Output
Connection (put
output wire here,
look at
corresponding
light for each)
Input connections
(put each input
wire in a different
connection, use
the corresponding
switch for each)