Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logically, the output will be 1

Similar presentations


Presentation on theme: "Logically, the output will be 1"— Presentation transcript:

1 Logically, the output will be 1
What is binary logic? What is Binary Logic? Binary logic, put simply, is how the CPU makes decisions based on the inputs it gets. The CPU (like us) will take inputs which may be true or false (1 or 0) and make a decision which will produce a particular output. Logically, the output will be 1 True Input 1: 1 True Input 2: 1 Computers think using binary logic. With binary logic computers take inputs (zeros and ones) and produce sensible outputs, based on these rules (inputs) True

2 What is binary logic? What is Binary Logic?
There are only a few simple logic operations that a CPU will perform on its inputs, but combinations of these lead to incredibly complex calculations. The logic operations that a CPU will perform are: a) The NOT operation b) The AND operation c) The OR operation Electronics engineers created hardware that can carry out the AND, OR and NOT logic operations and it is these pieces of hardware that makes up the CPU.

3 AND Gate Input A Input B Output (Q) 1 1
Produces an output only if both inputs are on. Input A Input B Output (Q) 1 AND gate examples:  Electronic door will only open if it detects a person and the switch is set to unlocked.  Microwave will only start if the start button is pressed and the door is closed. Truth table 1 Get them to complete the Logic Gates Worksheet.docx and draw the gate and truth table. Fill in the Output values. Answer: 0, 0, 0 & 1.

4 OR Gate 1 Input A Input B Output (Q) 1
Produces an output when only one input is on. OR gate examples:  Microwave will stop if the timer has finished or the door has been opened. Input A Input B Output (Q) 1 Truth table 1 Get them to complete the Logic Gates Worksheet.docx and draw the gate and truth table. Fill in the Output values. Answer: 0, 0, 0 & 1. . Fill in the Output values. Answer: 0, 1, 1 & 1. Tell them that even though 1 OR 1 seems to go against the logic, it does however output as a 1.

5 NOT Gate A NOT gate inverts its input. Input (A) Output (Q) 1 1
Truth table Input (A) Output (Q) 1 NOT gate examples:   Microwave will stop if the door is not closed.  House alarm will go off if the door is not closed.  Traffic light will operate normally if it's not in maintenance mode 1 Get them to complete the Logic Gates Worksheet.docx and draw the gate and truth table. Fill in the Output values. Answer: 0, 0, 0 & 1. . Fill in the Output values. Answer: 0, 1, 1 & 1. Tell them that even though 1 OR 1 seems to go against the logic, it does however output as a 1.


Download ppt "Logically, the output will be 1"

Similar presentations


Ads by Google