Logic Gate Exe
Logic Gate Exe
The switch S1 is on
and
either P1 is less than 3 or P2 is less than 3, but not both.
All logic gates used must have a maximum of two inputs.
1
2. Plastic pipes of various sizes are manufactured by heating the plastic and using pressure.
The manufacturing system uses sensors to measure the pressure (P), temperature (T) and
speed (S) of production.
The inputs to the manufacturing system are:
The system will sound an alarm (X) when certain conditions are detected.
The alarm will sound when:
Temperature is > 200 degrees Celsius and the pressure is <= 5 bar
or
Speed is > 1 metre per second and Temperature is <= 200 degrees Celsius
Draw a logic circuit to represent the above alarm system.
Logic gates used must have a maximum of two inputs.
3. A factory that manufactures cleaning products has a system that monitors conditions
throughout the manufacturing process.
The inputs to the system are:
2
The system will sound an alarm (X) when certain conditions are detected.
The alarm will sound when:
• The pressure > = 80 % and the temperature > = 35 °C
or
• The temperature < 35 °C and the pH > 7
Draw a logic circuit to represent the alarm system in the factory. Each logic gate must have a
maximum of two inputs.
4. A greenhouse uses a system to monitor the conditions that plants need to grow.
The inputs to the system are:
The system will sound an alarm when certain conditions are detected.
Alarm (X) will sound (=1) when:
window is closed and temperature >=26 °C
or
temperature <26 °C and humidity >=50%
Draw a logic circuit to represent the system.
5. X = (((A AND B) OR (NOT (B OR C))) NAND C)
6. X = (((A OR B) OR (NOT (B XOR C))) AND C)
7. X = (((A OR B) AND (NOT(B XOR C))) OR NOT C)
8. X = ((((NOT A AND B) OR C) AND B) NOR (B OR C))
3
9. An aeroplane has a warning system that monitors the height of the aeroplane above the
ground, whether the aeroplane is ascending or descending, and the speed of the aeroplane.
The warning system will produce an output of 1 that will sound an alarm (W) when either of
these conditions apply:
Height is less than 500 metres and the aeroplane is descending
or
The aeroplane is descending and speed is greater than 470 knots
Draw a logic circuit to represent the warning system.
10. X = ((NOT (A NAND B)) OR (B NOR C))
11. X = (((A NAND B) NOR (B AND C)) OR C)
12. X = ((B AND NOT A) XOR (A OR C))
13. X = (A OR NOT B) AND (B AND NOT C)
4
14. Consider the truth table:
(b) Write a logic expression for the given truth table. Do not simplify the logic expression.
15.