Logic Gate 1

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 6

Logic gates / Get Logik

Logic gate : An electronic circuit with a single output NOR gate


and one or more inputs. The symbol of NOR gate is: Truth table
Uses 2 digits : 0 (no input , no output)
Input Output
1 (got input , got output)
Truth table : A table that summarizes all the A B X
The Boolean algebraic: 0 0 1
possible input and output of a logic gate.
Boolean algebraic: A form of symbolic logic which provides a 0 1 0
mathematical procedure for manipulating 1 0 0
logical relationships in symbolic form. 1 1 0
Example 1
AND gate /Get DAN Truth table The figure shows a logic gate with inputs P and Q.
Input Output
A B X
If the input P = 0011010 and the input Q = 1100011, what is
0 0 0 the output X?
0 1 0
1 0 0
1 1 1 Example 2
The diagram shows a logic gates circuit.
The symbol of AND gate The Boolean algebraic

Complete the following truth table below


OR gate Truth table Input Output
Input Output P Q R
A B X 0 0
0 0 0 1 0
0 1 1 0 1
1 0 1 1 1
1 1 1
The symbol of OR gate The Boolean algebraic Example 3
The diagram shows a logic gates circuit.

NOT gate Truth table

Input Output Complete the following truth table below


A X Input Output
0 1 A B X
1 0 0 0
1 0
The symbol of NOT gate The Boolean algebraic 0 1
Simbol get TAK Boolean algebra 1 1

1 Which of the following is equivalent to a NOT gate?


NAND gate / Get TAKDAN
The symbol of NAND gate Truth table
Input Output
A B X
0 0 1 2 The diagram shows a circuit containing three logic gates.
The Boolean algebraic: 0 1 1
1 0 1
1 1 0

38
C P Q R D P Q R
0 0 0 0 0 1
1 0 0 1 0 1
Which of the following logic gate is equivalent to the 0 1 0 0 1 0
circuit above? 1 1 0 1 1 1
A OR gate B AND gate C NOT gate D NAND gate
7 The diagram shows the combination of four logic gates.
3 The diagram shows the combination three logic gates.

Which of the following is the correct truth table for output X?


A X Y Q B X Y Q
The truth table for the combination of three logic gates is
0 0 0 0 0 1
as follows.
0 1 1 0 1 1
Input Output
1 0 1 1 0 1
P Q R
1 1 0 1 1 0
0 0 1
0 1 1
1 0 1 C X Y Q D X Y Q
1 1 0 0 0 1 0 0 0
What is the gate X? 0 1 0 0 1 1
A AND B OR C NAND D NOR 1 0 0 1 0 1
1 1 1 1 1 1
4 The diagram shows a circuit containing four NAND
gates. 8 The diagram shows a circuit containing two logic gates.

Which of the following is the correct truth table for output R?


Which of the following logic gate is equivalent to the A P Q R B P Q R
circuit above?
0 0 0 0 0 0
A OR gate B AND gate C NOR gate D NAND gate
0 1 0 0 1 1
5 The diagram shows a circuit containing three logic gates. 1 0 0 1 0 0
1 1 1 1 1 0

C P Q R D X Y Q
0 0 0 0 0 1
0 1 0 0 1 0
If the input signals P and Q are respectively 1001 and 1 0 1 1 0 0
1100 what is the output signal at X? 1 1 0 1 1 0
A 0001 B 0010 C 1010 D 1110
9 The diagram shows a circuit containing three logic gates.
6 The diagram shows a combination of three logic gates.

Which truth table is correct for the combination of three Which of the following is the correct truth table for output
logic gates? R?
A P Q R B P Q R A P Q R B P Q R
0 0 1 0 0 0 0 0 0 0 0 1
1 0 1 1 0 0 0 1 1 0 1 0
0 1 1 0 1 1 1 0 1 1 0 1
1 1 1 1 1 0 1 1 1 1 1 1

39
C P Q R D X Y Q Which of the following is the output signal of the OR
0 0 1 0 0 1 gate?
0 1 0 0 1 0
1 0 1 1 0 0
1 1 0 1 1 1

10 The diagram shows the combination of AND gate , OR


gate and NOT gate.
13 The figure shows a OR gate with input signals P and Q.

Which of the following is the correct truth table for output


C?
A A B C B A B 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 Which of the following is the output signal of the OR
gate?
C A B C D A B C
0 0 0 0 0 1
0 1 1 0 1 0
1 0 0 1 0 1
1 1 1 1 1 0

11 The table shows a truth table for a combination of logic 14 The diagram shows a logic gate circuit with input signals,
gates. K and L.
P Q R
0 0 1
0 1 0
1 0 0
1 1 0
Which of the following is true to show a circuit according Which of the following output signals is produced by the
to the truth table above? logic gate circuit?

12 The figure shows a OR gate with input signals P and Q.


15. Fig. 5.1 is a schematic diagram of an electronic circuit controlling
a lamp.

Fig. 5.1

40
The output of the temperature sensor is high (logic 1) when it detects …….………………………………………...…….[1 mark]
raised temperatures. The output of the light sensor is high (logic 1) (iii)Table 8.1 is a truth table for this security lamp system
when it detects raised light levels. The lamp is lit when the input to Jadual 8.1 ialah jadual kebenaran untuk sistem lampu
the relay is high (logic 1). keselamatan.
Input light sensor Temperature sensor Output X
(a) Name an electronic component that can be used as
0 0
(i) temperature sensor: …………………………………………..… 0 1
[1] 1 0
1 1
(ii) light sensor:…… ………………………………………………...[1] Table 8.1
Complete table 8.1 [2 m]
(b) Using the electrical components shown below, draw a circuit
diagram which produces the same output as logic gate B (iv)State the conditions under which the lamp is lit.

……………………………………………………[1 mark]

(v)Suggest why B is connected to a relay, rather than


directly to the lamp.

[2 marks] ……………………………………………………[1 mark]


(b) Complete the truth table by giving the outputs of A and B.
(b)Diagram 8.2 shows an automatic barrier system at a car
park

[2]
(c) State the conditions under which the lamp is lit.
Diagram 8.2 / Rajah 8.2
………………………...………………………………………………[1] The bar is lifted when the car stops at pad P and button Q
is pressed
(c) Suggest why B is connected to a relay, rather than directly to the Key / kekunci:
lamp. Input Logic Condition Output Logic Condition
0 car is not at Barrier 0 Not lifted
…………………………………………………..……………………[1]
pad
P
16(a)Diagram 8.1 shows a combination of logic gates to 1 car is at pad 1 Lifted
control a security lamp of 240 V. P
0 button is not
pressed
Q
1 button is
pressed
Diagram 8.3 shows the circuit which contains the logic gate
Diagram 8.1 / Rajah 8.1 circuit that is connected to the electric motor that controls
The temperature sensor gives logic 1 when it detects the barrier
raised temperatures. The light sensor gives logic 1 when
it detects raised in light levels. The lamp is lit when the
input to the relay is high (logic 1).

(i)Name logic gate A.

…………………………………………………….[1 mark]
Diagram 8.3 / Rajah 8.3
(ii)What is the function of logic gate A.

41
Some modifications need to be done on the barrier, the (c) Suggest why B is connected to a relay in order to light the
electric motor and type of logic gate used to enable the lamp.
automatic barrier system to function effectively. State the
suitable modification and give one reason for the ………………....................................................................[1]
modification.
(i) Mass of barrier. (d) Suggest a practical use for this circuit.

…………………………………………...…….…[1 mark] ….....................................................................................[1]

Reason 17.Diagram 2.1 is a block diagram of an electronic circuit. The parts


of the circuit are labelled X, Y and Z. The heat sensor is ON
…………………………………………….……..[1 mark] when it is hot and OFF when it is cold. The light sensor is ON
when it is light and OFF when it is dark.
(ii) Power of the electric motor

………………………………………………....…[1 mark]

Reason

…………………………………….……………..[1 mark]
Diagram 2.1
(iii)Type of logic gate W (a) Name the two types of logic gate used in the circuit above.

…................................................................................................[2]
………………………………………………....…[1 mark]
(b) State the conditions for the heater to be on.
Reason
………………..............................................................................[2]
…………………………………………..……..[1 mark]
(c) Why relay switch is required in the circuit?
16. Fig. 10.1 shows schematically a digital electronic circuit.
…………………………………………………………………………[1]

18.Diagram 3.1 shows a combination of logic gates to control a


simple fire alarm system.

Fig. 10.1
(a) State the name of the logic gate

(i) at A:………………………………………………..................

(ii) at B.:..............................................................................[2]

(b) The light sensor has a “high” (logic 1) output in bright light (a) Name the logic gate M.
and a “low” (logic 0) output when it is dark. The heat sensor
has a “high” (logic 1) output when it is hot and a “low” (logic ………………………………………………………………………[1]
0) output when it is cold. State the outputs of A and B when
(i) it is bright and cold, (b) Using the electrical components in Diagram 3.2, draw a
circuit diagram that has the same output as M.
output of A = ....................................................................

output of B = ................................................................[2]
Diagram 3.2
(ii) it is dark and hot.

output of A = ...................................................................

output of B = ...............................................................[2]

42
(c) Table 3 is the truth table for the simple fire alarm system.
Complete the truth table.
Input Output X
A B
0 0
0 1
1 0
1 1

(d) State one electrical component which can be used as a


heat detector.

43

You might also like