today you are learning....... 1. to explain why data is represented in computer systems in binary...

26

Upload: ambrose-moore

Post on 28-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams
Page 2: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

TODAY YOU ARE LEARNING.......

1. to explain why data is represented in computer systems in binary form

2. to understand and produce simple logic diagrams using the operations NOT, AND and OR

3. to produce a truth table from a given logic diagram.

Page 3: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

LOGIC GATES

Page 4: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

SOLVE THESE LOGIC PROBLEMS

http://www.think-logically.co.uk/lt.htm

Starter - http://www.logic-puzzles.org/game.php?u2=259141ce8e168b457b53b6b9d9a8bcee

Starter 2 - http://www.logic-puzzles.org/game.php?u2=a4d4c77ef9e37009fb233bf8f170a395

Further Reading http://www.ee.surrey.ac.uk/Projects/CAL/digital-logic/gatesfunc/index.html#orgate

Page 5: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams
Page 6: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

AND GATE

Input A Input B Output (Q)

0 0

0 1

1 0

1 1

Produces an output only if both inputs are on

Page 7: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A CIRCUIT THAT WOULD ACT LIKE AN AND GATE?

Page 8: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams
Page 9: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

OR GATEProduces an output when one or the other input are active….

Input A Input B Output (Q)

0 0

0 1

1 0

1 1

Page 10: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A CIRCUIT THAT WOULD ACT LIKE AN OR GATE?

Page 11: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams
Page 12: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

NOT GATE

A NOT gate inverts its input

Input (A) Output (Q)

0

1

Page 13: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A CIRCUIT THAT WOULD ACT LIKE AN NOT GATE?

Page 14: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

SOME EXTRAS TO FRY YOUR BRAIN

Page 15: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

NAND IS AN “INVERTED AND GATE”

Page 16: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

NOT AND = NAND

Input A Input B A.B Output (Q)=A.B

0 0

0 1

1 0

1 1

Page 17: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A CIRCUIT THAT WOULD ACT LIKE AN NAND GATE?

Page 18: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

A NOR gate is simply an inverted OR gate. Output is high when neither input A nor input B is high:

Page 19: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

NOT OR =NOR

Input A Input B A+B Output (Q) A+B

0 0

0 1

1 0

1 1

Page 20: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A CIRCUIT THAT WOULD ACT LIKE AN NOR GATE?

Page 21: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

An XOR gate is constructed similarly to an OR gate, except with an additional NAND gate inserted such that

if both inputs are high, the inputs to the final NAND gate will also be high, and the output will be low.

Page 22: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

XOR – EXCLUSIVE OR

Input A Input B Output (Q)

0 0

0 1

1 0

1 1

Page 23: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A TRUTH TABLE?

Page 24: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

CAN YOU DRAW A TRUTH TABLE?

Page 25: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

NOT GATE

Page 26: TODAY YOU ARE LEARNING....... 1. to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams

AND GATE