Teaching Computing to GCSE

Slides:



Advertisements
Similar presentations
Truth Tables and Logic Gates. What are Logic Gates? Logic gates are components used in making logic circuits. Each gate has one or more inputs and produces.
Advertisements

Logic Gates.
Programmable Logic Controllers.
GCSE Computing#BristolMet Session Objectives#5 MUST explain why data is represented in computer systems in binary SHOULD understand and produce simple.
Boolean Logic & Truth Tables In today’s lesson we will look at: a reminder about truth values and NOT, AND, OR and EOR truth tables operator precedence.
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
AND, OR and NOT. The AND gate needs to be both on, So number wise both 1. So then you will get a 1 as you can see in the last image on the right, If 1.
LOGIC GATES Logic generally has only 2 states, ON or OFF, represented by 1 or 0. Logic gates react to inputs in certain ways. Symbol for AND gate INPUT.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
GCSE Computing: A451 Computer Systems & Programming Activity 1 Grab a whiteboard and pen, come to the front and work out the.
TODAY YOU ARE LEARNING to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
Teaching Computing to GCSE Level with Python Session 3.
1 GCSE Computing Binary Logic. GCSE Computing 2 Candidates should be able to understand and produce simple logic diagrams using the operations NOT, AND,
Activity 1 Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: 5 minutes R A B C Q.
Logic Gates The processor is made up of millions of logic gates. These are used to make decisions. Each gate takes an electric input and outputs a result.
GCSE Computing – Topic 2 Lesson 5a – Binary Logic CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for.
© 2016 AQA. Created by Teachit for AQA Boolean logic Lesson 3.
CS 111 – Aug. 27 Section 1.1 –Binary data and operations –Logic gates –Flip-flop –A binary shorthand: hexadecimal Commitment for next day: –Please read.
© 2016 AQA. Created by Teachit for AQA Boolean logic Lesson 1.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Unit 1 Logical operators.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Activity 1 5 minutes Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: R A B C Q.
Basics of Logic gates - Part 1
Truth Tables & Logic Expressions
Lesson Objectives Aims You should be able to:
Component 1 Logical operators.
Logic Gates.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Logic What is logic? Logic is the name given to an electronic component which will monitor a number of inputs and give an output depending on them Input.
Minecraft Logic Gates!.
Multiplexer.
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Chapter 2.3 Binary Logic.
FLIPPED CLASSROOM ACTIVITY CONSTRUCTOR – USING EXISTING CONTENT
Computers Logic Gates.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT
How Boolean logic is implemented
Teaching Computing to GCSE
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Thursday, 22 November 2018 Logic Gates
3.4 Computer systems Boolean logic Lesson 2.
Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT
For OCR GCSE Computing Unit 1 - Theory
Teaching Computing to GCSE
Logic Gates.
Computers in the real world Objectives
Design Example “Date of Birth Problem”
KS4 Electricity – Electronic systems
GCSE Computer Science – Logic Gates & Boolean Expressions
Today You are Learning simple logic diagrams using the operations AND, OR and NOT truth tables combining Boolean operators using AND, OR and NOT.
Binary Logic.
Objectives Construct truth tables for the following logic gates:
XOR Function Logic Symbol  Description  Truth Table 
Truth tables Mrs. Palmer.
Truth Tables & Logic Expressions
Introduction to Logic diagrams and truth tables
Chapter 3 – Describing Logic Circuits
Introduction to Logic diagrams and truth tables
Programming Techniques :: Logic & Truth Tables
Presentation transcript:

Teaching Computing to GCSE Session 2 Theory: Truth Tables / Logic Diagrams Practical: For and While Loops

Specification Content OCR Simple logic diagrams using the operations AND, OR and NOT Truth tables Combining Boolean operators using AND, OR and NOT to two levels Applying logical operators in appropriate truth tables to solve problems. AQA Be able to construct truth tables for the following logic gates: NOT, AND, OR Construct truth tables for simple logic circuits Interpret the results of simple truth tables Create, modify and interpret simple logic circuit diagrams. Edexcel Be able to construct truth tables for a given logic statement (AND, OR, NOT) Be able to produce logic statements for a given problem.

Starter Match the symbol and description to the logic gate: NOT AND OR Outputs 1 if both of the inputs are 1. Outputs 1 if one or both of the inputs is 1. Reverses the input.

What’s the Output? 1 ? A 1 ? C 1 ? B 1 ? D

Combining Logic Gates We combine logic gates in order to build logic circuits. For example:

Activity 1 Predict what you think the outputs of these logic diagrams will be: Build these circuits in the logic.ly simulator to test your predictions. An example of the first circuit is show here: 1 Prediction: 1 Prediction:

Truth Tables Recap All the possible outcomes of a logic diagram or logic statement can be represented using a truth table. Examples: OR Gate AND Gate Input 1 Input 2 Output FALSE TRUE Input 1 Input 2 Output 1 Input 1 Input 2 Output FALSE TRUE Input 1 Input 2 Output 1

Activity 2 Complete this interactive truth tables activity:

Intermediate Results Often truth tables include additional columns to show intermediate results. X A B X Y 1

Activity 3 Complete the truth table for this logic diagram: A B X Y Z 1

Logic Statements Logic diagrams can also be represented using logic statements. For example the logic statement for this logic diagram would be: A AND B is placed in brackets with NOT before it to show that the output of the AND gate is passed through a NOT gate. Y = NOT(A OR B)

Activity 3a Create a logic diagram to represent the logic statement shown below: Y = NOT(A AND B)

Activity 3b Create a logic diagram to represent the logic statement shown below: Y = (NOT A) AND B

Activity 3c Write the logic statement to represent the logic diagram shown below: Logic statement:

Activity 3d Write the logic statement to represent the logic diagram shown below: C D Logic statement:

Scenarios (1) Sometimes students may be asked to produce a logic statement for a specific scenario. Example A car alarm (A) is set off if a window (W) is broken or if it senses something moving (M) inside the car, and if the alarm is on (O) . Give the logic statement the microcontroller uses to determine if the car alarm should be sounded. A = (W OR M) AND O

Scenarios (2) Students may also be asked to produce a logic diagram for a specific scenario. A = (W OR M) AND O W M O A

Scenarios (3) Students could also be asked to produce a truth table for a logic statement that relates to a specific scenario. A = (W OR M) AND O INPUTS OUTPUT W M O A 1

Activity 4a Write the logic statement for this scenario: An automated weather station monitors rain fall (R), wind speed (S) and temperature (T). It generates a warning (W) if any of the readings are outside set limits. Logic statement:

Activity 4b Complete the logic diagram for the logic statement you created in activity 4a: Logic diagram: R S W T

Activity 4c Complete the truth table for the logic diagram you created in activity 4b: INPUTS OUTPUT R S T W

Break After the break we will look at For and While loops in Python.