0% found this document useful (0 votes)
90 views

Unit 1 - Lesson 2 - Logic Gates

The document discusses logic gates, which are electronic switches that form the basis of circuits, memory, and control systems. It defines basic logic gates like AND, OR, and NOT, and provides truth tables to illustrate their behaviors under different input conditions. Several examples show how to represent different logic expressions using combinations of logic gates to evaluate multiple inputs and produce an output.

Uploaded by

Aditya Mishra
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Unit 1 - Lesson 2 - Logic Gates

The document discusses logic gates, which are electronic switches that form the basis of circuits, memory, and control systems. It defines basic logic gates like AND, OR, and NOT, and provides truth tables to illustrate their behaviors under different input conditions. Several examples show how to represent different logic expressions using combinations of logic gates to evaluate multiple inputs and produce an output.

Uploaded by

Aditya Mishra
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 30

Year 9 ICT

Fundamentals of Computer Science


Lesson 2- Logic Gates
Learning Objectives

We learning today:
• What are logic circuits?

• The symbols and behaviors of three logic Gates


• AND, OR, NOT gates
What grade am I aiming for?
Logic Gates
A logic gate is a switch that make up an electronic circuit.

Electronic circuits, computer memory and controlling devices are


made up of 1000’s of logic gates.

Logic gates work on binary inputs and produce binary outputs

A switch is on =1 True
A switch is off = 0 False
You need to know:
The symbols and behaviors of THREE Different logic gates:

• AND
• NOT
• OR
• NAND
• NOR
• XOR
AND Gate
The output is 1, if both the inputs are 1

Input A = 1
Input B = 1 Output X = 1

Input A Input B Output

0 0 0

0 1 0

1 0 0

1 1 1
AND Gate
Complete the Truth Table for the AND GATE

Input A Input B Output

0 0

0 1

1 0

1 1
NOT Gate
Has only one input, reverses the logic state

Input A = 1 Output X =0
Input A Output
1 0
0 1
NOT Gate
Complete the Truth Table for the NOT GATE

Input A Output
1
0
OR Gate
The output is true, if either of the inputs are
true Input A Input B Output
0 0 0
Input A = 1 0 1 1
Input B = 0 Output X = 1 1 0 1
1 1 1
OR Gate
Complete the Truth table for the OR Gate

Input A Input B Output

0 0

0 1

1 0

1 1
What grade did I achieve?
Which Gate?
Identify the symbol:

a) AND
b) NOR
c) NOT
Which Gate?
Identify the symbol:

a) NAND
b) NOR
c) NOT
Which Gate?
Identify the symbol:

a) NAND
b) NOR
c) OR
Choose the correct 1
If an output of a logic gate is True, this means
that the output is:

a) 1
b) False
c) Off
Which Gate?
Has only one input, reverses the logic state

Input A = 1 Output X =0
Input A Output
1 0
0 1

a) NAND
b) NOR
c) NOT
Which Gate?
The output is true, if both the inputs are true

Input A = 1
Input B = 1 Output X = 1
Input A Input B Output
0 1 0
1 0 0
1 1 1

a) AND
b) OR
c) NOR
Which Gate?
The output is true, if either the inputs are true
Input A Input B Output
Input A = 1 0 0 0
Input B = 1 Output X = 1 0 1 1
1 0 1
1 1 1

a) XOR
b) OR
c) NOT
TASK 1

Input A Input B Input C Output D Output L


(A AND B) (D AND C)

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
TASK 1 ANSWERS

Input A Input B Input C Output D Output L


(A AND B) (D AND C)

0 0 0 0 0
0 0 1 0 0
0 1 0 0 0
0 1 1 0 0
1 0 0 0 0
1 0 1 0 0
1 1 0 1 0
1 1 1 1 1
TASK 2

Input A Input B Input C Output E Output F Output X


(A AND B) (B OR C) E OR F)

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
TASK 2 ANSWERS

Input Input B Input C Output E Output F Output X


A
(A AND B) (B OR C) E OR F)

0 0 0 0 0 0
0 0 1 0 1 1
0 1 0 0 1 1
0 1 1 0 1 1
1 0 0 0 0 0
1 0 1 0 1 1
1 1 0 1 1 1
1 1 1 1 1 1
TASK 3
Input A Input B Input C Output P Output Q Output X
(A OR B) B AND C) (P OR Q)

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
TASK 3 ANSWERS

Input A Input B Input C Output P Output Q Output X


(A OR B) B AND C) (P OR Q)

0 0 0 0 0 0
0 0 1 0 0 0
0 1 0 1 0 1
0 1 1 1 1 1
1 0 0 1 0 1
1 0 1 1 0 1
1 1 0 1 0 1
1 1 1 1 1 1
TASK 4: Logic Diagram

• If Switch A or Switch B are ON and if Switch C is OFF


then a signal (X) to sound the alarm is produced.
TASK 4: Logic Diagram
• If Switch A or Switch B are ON and if Switch C is OFF
then a signal (X) to sound the alarm is produced.
TASK 5: Logic Diagram

• IF (switch A is NOT on) OR (switch B is on AND switch


C is NOT on) then alarm, X, sounds
TASK 6: Logic Diagram

• A stop signal (x=1) occurs when: A=1 AND B=0 OR B=1


and C=0
What grade am I aiming for?

You might also like