Systems: Sources and functions of components - EduqasLogic gates

Components are chosen based on factors including working properties, environmental impact, function, manufacturing processes etc. It is important to choose a component fit for purpose.

Part ofDesign and TechnologyIn-depth technical principles

Logic gates

are contained within an .

The IC:

  • usually has 14 legs, or
  • is relatively cheap to buy
  • works within a range of voltages, usually between 3 and 15 volts (V)

Logic gates are used to make decisions so that electrical outputs only ‘turn on’ when the correct has been applied. Each logic gate has a name that helps to describe how different will determine the possible . To fully understand how a logic gate works, the table of logic possibilities needs to be studied. This table is called a and is used when planning and designing which logic gates to use.

The three logic gates to learn about first are:

‘AND’If inputs A and B are high, output Q will be high
‘OR’If inputs A or B, or A and B are high, output Q will be high
‘NOT’If input A is ‘high’ then output Q will be ‘low’, and if input A is ‘low’ then output Q will be ‘high’
‘AND’
If inputs A and B are high, output Q will be high
‘OR’
If inputs A or B, or A and B are high, output Q will be high
‘NOT’
If input A is ‘high’ then output Q will be ‘low’, and if input A is ‘low’ then output Q will be ‘high’

Truth table for an ‘AND’ gate:

A ‘1’ in a truth table represents where the input or output is ‘high’, eg where a switch is pressed or a lamp is lit. A ‘0’ represents the opposite, eg where a switch is not pressed or a lamp is not lit.

ABQ
000
010
100
111
A0
B0
Q0
A0
B1
Q0
A1
B0
Q0
A1
B1
Q1
The AND gate symbol - A and B go into the base of a semi-circle that Q comes out of. Inputs A and B must be ‘high’ for output Q to be ‘high’.
Figure caption,
‘AND’ gate symbol - inputs A and B must be ‘high’ for output Q to be ‘high’

Truth table for an ‘OR’ gate:

ABQ
000
011
101
111
A0
B0
Q0
A0
B1
Q1
A1
B0
Q1
A1
B1
Q1
OR gate symbol - A and B go into the curved base of a semi-circle that Q comes out of. Inputs A or B must be ‘high’ for output Q to be ‘high’. If both inputs are ‘high’ then output Q is also ‘high’.
Figure caption,
‘OR’ gate symbol - inputs A or B must be ‘high’ for output Q to be ‘high’ and if both inputs are ‘high’ then output Q is also ‘high’

Truth table for a ‘NOT’ gate:

AQ
01
10
A0
Q1
A1
Q0
The NOT gate symbol - A goes into the base of a triangle that Q comes out of. If input A is ‘high’ then output Q will be ‘low’ and if input A is ‘low’ then output Q will be ‘high’.
Figure caption,
‘NOT’ gate symbol - if input A is ‘high’ then output Q will be ‘low’ and if input A is ‘low’ then output Q will be ‘high’

These three can then be used to make others:

  • ‘NAND’ - an ‘AND’ gate combined with a ‘NOT’ gate
  • ‘NOR’ - an ‘OR’ gate combined with a ‘NOT’ gate
  • ‘XOR’ (or ‘eXclusive OR’) - a variation on the ‘OR’ gate, if the two inputs to an ‘OR’ are both ‘high’ then their output from the ‘OR’ gate will be ‘high’ too, but with an ‘XOR’ gate the output would be low if both inputs are ‘high’

If a ‘NOT’ gate is added to the output of an ‘AND’ or ‘OR’ gate then the output of these new gates will be the opposite of the original ‘AND’ or ‘OR’ gate.

Logic gates can be combined in many ways. To work out what the final output will be, the truth tables must be used to track the outputs and inputs along the combination of logic gates, like working out a puzzle.