Presentation is loading. Please wait.

Presentation is loading. Please wait.

Author : Khairi LOGIC GATES Logic gate Input Output  Logic gates are electronic switches with one or more input but only one output ogic gates are commonly.

Similar presentations


Presentation on theme: "Author : Khairi LOGIC GATES Logic gate Input Output  Logic gates are electronic switches with one or more input but only one output ogic gates are commonly."— Presentation transcript:

1 Author : Khairi LOGIC GATES Logic gate Input Output  Logic gates are electronic switches with one or more input but only one output ogic gates are commonly found in computers and other electronic system  Input and output for logic gates only 1 or 0

2 Author : Khairi TRUTH TABLE All inputs and outputs of logic gates can be displayed by using a table The table is known as truth table LOGIC GATES Input Output ABCX

3 Author : Khairi NOT GATE Symbol for NOT GATE AX INPUTOUTPUT AX 1 0 Truth table 0 1 Boolean expression X = A Output is opposite to input LOGIC GATES

4 Author : Khairi NOT GATE AX INPUTOUTPUT AX 1 0 Truth table 0 1 Corresponding electric circuit LOGIC GATES Symbol for NOT GATE

5 Author : Khairi AX INPUTOUTPUT AX 1 0 Truth table 0 1 Corresponding electric circuit LOGIC GATES Symbol for NOT GATE NOT GATE

6 Author : Khairi AND GATE Boolean expression X = A B INPUTOUTPUT ABX 0 0 0 1 10 11 0 0 0 1 A B X Corresponding electric circuit Choose all high LOGIC GATES

7 Author : Khairi Boolean expression X = A B INPUTOUTPUT ABX 0 0 0 1 10 11 0 0 0 1 A B X Corresponding electric circuit LOGIC GATES AND GATE

8 Author : Khairi AND GATE (3 inputs) Boolean expression for X X = A B C AB C = A B X C LOGIC GATES

9 Author : Khairi Combination of possible inputs 2 3 = 2 x 2 x 2 = 8 AB C = A B X C LOGIC GATES AND GATE (3 inputs)

10 Author : Khairi Truth table A BC X AB C = 0 000 0 010 0 100 10 0 0 110 0 10 10 0 110 111 1 A B C = A B X C LOGIC GATES AND GATE (3 inputs)

11 Author : Khairi NAND GATE Boolean expression for X X AB= A B X LOGIC GATES

12 Author : Khairi Combination of possible inputs 2 2 = 2 x 2 = 4 X A B = A B LOGIC GATES NAND GATE

13 Author : Khairi Truth table A B X A B = Output for NAND GATE is opposite the output of AND GATE 0 0 X A B = A B LOGIC GATES NAND GATE

14 Author : Khairi Truth table A B X A B = 0 0 Input 00 for AND GATE produces 0 output Inverting the output to get the output for AND GATE 1 01 X A B = A B LOGIC GATES NAND GATE

15 Author : Khairi Truth table A B X A B = 0 0 1 01 1 X A B = A B LOGIC GATES Input 01 for AND GATE produces 0 output Inverting the output to get the output for AND GATE NAND GATE

16 Author : Khairi Truth table A B X A B = 0 0 1 01 1 1 01 110 Corresponding electric circuit X A B = A B LOGIC GATES NAND GATE

17 Author : Khairi EXERCISE A B C X Write the Boolean expression for X and list down all the possible inputs and outputs for the gate in a truth table LOGIC GATES

18 Author : Khairi A B C X = A B C INPUTOUTPUT ABX 0 0 0 0 01 01 C 0 1 0 1 100 101 110 111 1 1 1 1 1 1 1 0 LOGIC GATES EXERCISE

19 Author : Khairi OR GATE A B X Boolean expression for X X = A + B INPUTOUTPUT ABX 0 0 0 1 10 11 0 1 1 1 Choose any one high LOGIC GATES

20 Author : Khairi OR GATE A B X Boolean expression for X X = A + B INPUTOUTPUT ABX 0 0 0 1 10 11 0 1 1 1 Corresponding electric circuit LOGIC GATES

21 Author : Khairi A B X C Boolean expression for X X = A + B + C INPUTOUTPUT ABX 0 0 0 0 01 01 C 0 1 0 1 100 101 110 111 0 1 1 1 1 1 1 1 LOGIC GATES OR GATE

22 Author : Khairi NOR GATE Boolean expression for X X = A + B A B X INPUTOUTPUT ABX 0 0 0 1 10 11 1 0 0 0 LOGIC GATES

23 Author : Khairi EXERCISE Write Boolean expression for X. List all possible inputs and outputs for the logic gate in a truth table P Q X R INPUTOUTPUT PQX 0 0 0 0 01 01 R 0 1 0 1 100 101 110 111 X = P + Q + R 1 0 0 0 0 0 0 0 LOGIC GATES

24 Author : Khairi COMBINATION OF LOGIC GATES In the electronic circuit,logic gates are combined into various combination to produce a desired output LOGIC GATES AND NAND AND

25 Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES A B C D X What is the Boolean expression for X A B

26 Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES A B C D X What is the Boolean expression for X A B C D

27 Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES A B C D X What is the Boolean expression for X A B C D A B C D

28 Author : Khairi P Q X Write the Boolean expression for X and state the equivalent basic logic gate. P + Q P Q X Equivalent logic gate is NOR GATE LOGIC GATES COMBINATION OF LOGIC GATES

29 Author : Khairi EXERCISE P Q R S X Write the Boolean expression for X LOGIC GATES X = P Q R S + +

30 Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES 1 0 0 1 X What is the output,X ? 0 1 0

31 Author : Khairi EXERCISE Build a truth table for the combination of logic gates above LOGIC GATES ABX 0 0 1 1 0 1 0 1 0 1 0 0 A B X

32 Author : Khairi EXERCISE LOGIC GATES 1 1 1 1 X State the output for X 1 0 0

33 Author : Khairi LOGIC GATES EXERCISE 1 1 0 1 X State the output for X 1 0 1

34 Author : Khairi LOGIC GATES EXERCISE 1 1 0 1 X State the output for X 1 0 0

35 Author : Khairi SERIAL INPUT State the output for X X 1011 1001 LOGIC GATES

36 Author : Khairi 1011 1001 1 X LOGIC GATES State the output for X SERIAL INPUT

37 Author : Khairi 1 X 1011 1001 0 LOGIC GATES State the output for X SERIAL INPUT

38 Author : Khairi 1 X 1011 1001 01 LOGIC GATES State the output for X SERIAL INPUT

39 Author : Khairi 1 X 1011 1001 01 1 LOGIC GATES State the output for X SERIAL INPUT

40 Author : Khairi 1 X 1011 1001 01 1 Output X = 1011 LOGIC GATES State the output for X SERIAL INPUT

41 Author : Khairi State the output for X 1011 1001 X 1 LOGIC GATES SERIAL INPUT

42 Author : Khairi 1011 1001 X 1 0 LOGIC GATES State the output for X SERIAL INPUT

43 Author : Khairi 1011 1001 X 1 00 LOGIC GATES State the output for X SERIAL INPUT

44 Author : Khairi 1011 1001 X 1 001 Output X = 1001 LOGIC GATES State the output for X SERIAL INPUT

45 Author : Khairi EXERCISE LOGIC GATES 1111 1001 1101 0001 X State the output for X 1111 0001 1111

46 Author : Khairi LOGIC GATES EXERCISE 1111 1001 1101 0001 X State the output for X 0000 1110 1110

47 Author : Khairi LOGIC GATES EXERCISE 1111 1001 1101 0001 X State the output for X 0000 1110 0001

48 Author : Khairi INPUT FROM TIMING DIAGRAM LOGIC GATES 1 0 11 00 The input is 1001

49 Author : Khairi X Draw the output for X on timing diagram Get the input in binary number 1 01 001 Get the output in binary number = 101 Draw the timing diagram for output X LOGIC GATES INPUT FROM TIMING DIAGRAM

50 Author : Khairi INPUT P INPUT Q OUTPUT X If P and Q are the inputs of AND GATE. Draw the output X LOGIC GATES INPUT FROM TIMING DIAGRAM

51 Author : Khairi EXERCISE Draw the output if the inputs are fed to NOR GATE 1011100 0011010 0100001 LOGIC GATES

52 Author : Khairi EXERCISE Draw the output X LOGIC GATES X

53 Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp Name the logic gate P. NOT gate

54 Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp Q is AND gate.Draw the AND gate by using two switches,batteries and lamp.

55 Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp Complete the truth table below for output X. Input light sensor Input body heat sensorOutput X 0 0 1 1 0 1 0 1 0 1 0 0

56 Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp State the function of the relay switch in the circuit. To switch on or off the security lamp.

57 Author : Khairi Which of the following truth tables represents output R in the circuit ? PAST YEARS QUESTION

58 Author : Khairi Which of the following truth tables represents output R in the circuit ? PAST YEARS QUESTION

59 Author : Khairi What is the get X which produces the output in the truth table ? A. AND B. OR C. NAND D. NOR PAST YEARS QUESTION

60 Author : Khairi Which of the Boolean algebraic expression represents the output Z ? A. Z = X Y B. Z = X Y C. Z = X Y D. Z = X Y Both S 1 and S 2 have to close to produce Z high PAST YEARS QUESTION

61 Author : Khairi Which of the following output signals is produced by the logic gate circuit ? A.B.C.D. 0101 1001 1110 0110 1110 PAST YEARS QUESTION

62 Author : Khairi PAST YEARS QUESTION Which truth table is correct ?

63 Author : Khairi Figure shows two combination of logic gates. a. Name the logic gate M. OR gate b. Complete the truth table for P and Q S1S1 S2S2 Output P 0 1 1 0 0 1 0 1 0 S1S1 S2S2 Output Q 0 1 1 0 0 1 1 1 1 PAST YEARS QUESTION

64 Author : Khairi Figure shows the system used to control the level of pesticide in a bottle Input S 1 and S 2 is “0” when they receive a low level of radiation and “1” when they receive a high level of radiation. a. State the level of the pesticide in the bottle if the input S 1 is “0”. Give your reason. Level of pesticide in the bottle is high because it receives low radiation due to less penetration of radioactive radiation PAST YEARS QUESTION

65 Author : Khairi Figure shows the system used to control the level of pesticide in a bottle Input S 1 and S 2 is “0” when they receive a low level of radiation and “1” when they receive a high level of radiation. b. State the level of the pesticide in the bottle if the input S 1 is “1”. Give your reason. Level of pesticide in the bottle is low because it receives high radiation due to higher penetration of radioactive radiation PAST YEARS QUESTION

66 Author : Khairi Figure shows the system used to control the level of pesticide in a bottle Input S 1 and S 2 is “0” when they receive a low level of radiation and “1” when they receive a high level of radiation. c. If the output of logic gate system is “1” when the volume of pesticide accepted and “0” if it is rejected.Which combination of logic gate P or Q is suitable to be used ?Give reason for your answer. Combination of logic gate P because both S 1 and S 2 have to be “0” when the volume is acceptable PAST YEARS QUESTION

67 Author : Khairi PAST YEARS QUESTION output What is the output ?


Download ppt "Author : Khairi LOGIC GATES Logic gate Input Output  Logic gates are electronic switches with one or more input but only one output ogic gates are commonly."

Similar presentations


Ads by Google