<< Chapter < Page Chapter >> Page >

Logic gates

There are five main types of logic gate: NOT, AND, OR, NAND and NOR. Each one makes its decision in a different way.

The not gate

Problem: You want an automatic circuit in your office to turn on the heating in the winter. You already have a digital electronic temperature sensor. When the temperature is high, it sends out a 1. When the office is cold, it sends out a 0. If this signal were sent straight to the heater, the heater would turn on (1) when it was already hot, and would stay off when it was cold. This is wrong! To make the heater work, we need a circuit which will change a 0 (from the sensor) into a 1 (to send to the heater). This will make the heater come on when it is cold. You also want it to change a 1 (from the sensor) into a 0 (to send to the heater). This will turn the heater off when the room is hot. This circuit is called an inverter or NOT gate . It changes 0 into 1 (1 is NOT 0). It changes 1 into 0 (0 is NOT 1). It changes a signal into what it is NOT.

The symbol for the NOT gate is:

The action of the NOT gate can be written in a table called a truth table . The left column shows the possible inputs on different rows. The right column shows what the output (decision) of the circuit will be for that input. The truth table for the NOT gate is shown below.

Input Output
0 1
1 0

When you read the truth table, the top row says, “If the input is 0, the output will be 1.” For our heater, this means, “If the room is cold, the heater will turn on.” The bottom row says, “If the input is 1, the output will be 0.” For our heater, this means, “If the room is hot, the heater will switch off.”

The and gate

Problem: An airliner has two toilets. Passengers get annoyed if they get up from their seat only to find that both toilets are being used and they have to go back to their seat and wait. You want to fit an automatic circuit to light up a display if both toilets are in use. Then passengers know that if the light is off, there will be a free toilet for them to use. There is a sensor in each toilet. It gives out a 0 of the toilet is free, and a 1 if it is in use. You want to send a 1 to the display unit if both sensors are sending 1s. To do this, you use an AND gate.

The symbol for the AND gate is:

Symbol for the AND logic gate.

The truth table for the AND gate is shown below. An AND gate has two inputs (the NOT gate only had one). This means we need four rows in the truth table, one for each possible set of inputs. The first row, for example, tells us what the AND gate will do if both inputs are 0. In our airliner, this means that both toilets are free. The right column has a 0 showing that the output will be 0, so the display will not light up. The second row has inputs of 0 and 1 (the first toilet is free, the other is in use). Again the output is 0. The third row tells us what will happen if the inputs are 1 and 0 (the first toilet is in use, and the second is free). Finally, the last line tells us what will happen if both inputs are 1 (the first toilet is in use and the second toilet is in use). It is only in this case that the output is 1 and the display lights up.

Questions & Answers

how is ester formed
Aubrey Reply
how is n ester formed
Aubrey
Alcohol reacts with a carboxylic acid
Texas
an athlete with a mass of 70kg runs at a velocity of 45km . determine the athlete's momentum
Lesedi Reply
Is that a velocity or something else
msawenkosi
45km/h i guess
Texas
Change to m/s
Texas
45km/h = 12.5 m/s p=mv =70×12.5 =875 kg.m/s
Thato
what are the measures of the rates of reaction
Lesego Reply
Volume Concentration Temperature Pressure Surface Area
Thato
the principle of superposition of waves
Sfundo Reply
what is work
Kool Reply
is this a group chat
Nobuhle Reply
Hey can y'all define newton's 2nd law
mthebzification
If a resultant force act on an object...the object will accelerate in the direction of a resultant force,the acceleration of the object is directly proportional to the net force and inversely proportional to the mass of the object
mosa
how do you calculate tension force
Bulumko
use the formula Fnet=ma if there is tension connecting two objects
Sboniso
to calculate Tension, usually calculate acceleration first Draw separate free body diagrams for each body. Apply Fnet = ma to calculate Tension
Kevin
Hi people
Paul
how does temperature affect the equilibrium position
Blessing Reply
an increased temperature increases the average kinetic energy thus in turn increases the number of effective collisions........
Lwando
so...which reaction is favored between endothermic and exothermic .when temperature is increased..?
Blessing
exothermic reaction because energy is realised to the surroundings as heat and light energy ....graphical so much energy is realised as reactants to form product and because temperature is high rate of reaction is fast which means there is a successful collision
Code
INTEMENDO - INCREASE IN TEMPERATURE FAVOURS ENDOTHERMIC DETEMEXO - DECREASE IN TEMPERATURE FAVOURS EXOTHERMIC
Thato
an object will continue in a state of rest unless it is acted upon an unbalanced force
Junior Reply
Newton's Law 1
Code
First Newton's Law
Azola
Newton's first law
Surprise
newton first law
Thinavhuyo
Newton's first law
Blessing
when pressure is increased what happen to volume
Siphelo Reply
decreases
Code
care to explain?
Mpati
if pressure is applied to a pistol , the volume will decrease and particles will collide more frequently with the wall of a container .Each time they collide with the wall they exert a force on them .More collision means more force and the pressure will increase , that Boyle's Law
Code
Because the volume has decreased , the particle will collide more frequently with the wall of a container and each time they collide with the wall of a container they exert a force on them.More collision means more force so the pressure will increase , that Boyle's Law
Code
what is the difference between momentum and a change in momentum?
Chavonne Reply
How to name a branched molecule from right or left?
Vadin Reply
What's Free Fall
Senzo Reply
Free Fall means there is no acting force on that object.
Dingaletu
only gravitational force
Dingaletu
no external force acting on an object
Sphiwe
by only force of gravite
Sello
but gravitational force
Sphiwe
true
Lucky
a motion in which the only force acting is gravitational force
Blessing
and an object experiencing free fall is referred as a projectile
Blessing
Do polymers form restrictedly only if compound is saturated, only?
milani Reply
what is a free fall?
Beyanca Reply
is when The Only Force acting On an Object is Gravitational Force
Madman
Thats right
Beyanca
then Why ask when you Know the answer?
Madman
She's just helping those who forgot it...bro
Thato
guys I need help on Getting ready for a last minute test
Kenelioe Reply
what help you need
Neil
we'll I'm in grade 12 so we doing this topic about upac thing
Kenelioe
on What?
Madman
the organic molecule section
Kenelioe
IUPAC NAMING WHICH FUNCTIONAL GROUP YOU CANNOT NAME?SO I COULD HELP YOU
Madman
ester
Sboniso
you should also look at structural isomers. Its crucial that they might add that one. also try and write down the structural formula of all the given compounds on the table
milani

Get the best Siyavula textbooks: gr... course in your pocket!





Source:  OpenStax, Siyavula textbooks: grade 12 physical science. OpenStax CNX. Aug 03, 2011 Download for free at http://cnx.org/content/col11244/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Siyavula textbooks: grade 12 physical science' conversation and receive update notifications?

Ask