Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting...

23
Intro to Digital Logic

Transcript of Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting...

Page 1: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Intro to Digital Logic

Page 2: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

What does “Digital” mean?• A method of storing, processing and

transmitting information through the use of distinct electronic or optical pulses that typically represent the binary digits 0 and 1.

• This is typically represented by transistors switched “on” or “off”

• Data carrying signals carry one of two possible values.

• 1/0,on/off,high/low, or pulse present/pulse absent

Page 3: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

What was the earliest digital communication?

• Morse code?

• Does it have different states?

• 5 different states, but still digital

• Semaphore?

• What about smoke signals?

• One if by air, two if by sea?

• All digital, as they are using a code to represent a message

Page 4: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Logic!

• Why is this unit called digital logic?

• What is logic?

• Logic in these gates is based on theories from a book called “An investigation in the laws of thought” by George Boole.

• This came to be known as Boolean Logic or Boolean Algebra

Page 5: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Thoughts

• There IS a transition between the low and high, and back to low signals.

• In the ideal setting, there would be no transition.

• Real world circuits approximate this well enough that we will not take it into consideration

Page 6: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Gates

• There are seven gates.• The first two are AND and OR gates

Page 7: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

AND gate

• The AND gate logic is such that BOTH outputs must be high to trigger a high output

• This is like two doors in a row that both must be open to pass a beam of light through

Page 8: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

The switch analogy

• We can build a manual approximation of the circuit using switches very easily.

Page 9: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

The OR gate

• The OR gate is such that when a high signal is sent on either input, the output will be high.

• This is like a double door that either side can open to let the light through.

Page 10: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

The switch analogy

• We can build a manual approximation of the circuit using switches very easily.

Page 11: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Positive Logic Vs Negative Logic

Page 12: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Positive Logic Vs. Negative Logic

• When describing the input states, we can use positive or negative logic

• For example, the AND gate:

• Positive Logic

• When both inputs are high, the output is high

• Negative Logic

• When either input is low, the output is low

Page 13: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Interesting coincidence• On the and gate:• If either input 1 OR input 2 are low, the

output is low• OR? How did OR get in there?• This Positive AND gate is also a Negative

OR gate!• On an OR gate, both input 1 AND input 2

have to be low in order to have a low output!• AND!?• A positive OR gate is a Negative AND gate!

Page 14: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Truth Table (or trooth, if you rather)

• A truth table is helpful in determining what type of gate you have, or what you should expect based on your gate

• A and B represent the two inputs

• C represents output• What type of gate is this?

Page 15: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Lab Time

Page 16: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Materials

• Power Supply (Use +5V DC)• Digital Display Module• Bread Board• Interface Module 2• Data Switches• Quad AND Gate• Quad OR Gate• Ribbon Cable• Power Supply Leads• Wire

Page 17: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

How to set it up

• Plug the AND gates and Data switches together so they share a common strip in between.

• Plug in the Interface Module 2 in above the 2 other modules.

• Run a ground wire from the ground side of the AND gate to the ground on the Interface Module.

• Plug on end of the ribbon cable into the Interface Module and the other into the DDM on J2

• Turn on power supply and set to +5v DC and hook the leads to the + and – side of the circuit.

Page 18: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Build a Single AND Gate

Build a truth table for this circuit

Page 19: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Build a two AND Gate Circuit

Build a truth table for this circuit

Page 20: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Build a three AND Gate Circuit

Build a truth table for this circuit

Page 21: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Build a Single OR Gate

Build a truth table for this circuit

Page 22: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Build a two OR Gate Circuit

Build a truth table for this circuit

Page 23: Intro to Digital Logic. What does Digital mean? A method of storing, processing and transmitting information through the use of distinct electronic or.

Build a circuit with one AND and one OR

Build a truth table for this circuit