Edc

21
Presentation on logic Presentation on logic gates and its gates and its applications applications

Transcript of Edc

Page 1: Edc

Presentation on logic Presentation on logic gates and its applicationsgates and its applications

Page 2: Edc

History of logic gatesHistory of logic gatesThe first logic gates were developed

around 1837 and were of mechanical form. For most of that century, these gates went through much development until Nikola Tesla developed circuit-based logic in 1898. Furthermore, Boolean algebra was introduced to circuit analysis during the mid-19th century and shaped the way people interpret this logic today

Page 3: Edc

There are many different types of logic in electronics, where gates are made up of many different devices such as diodes, relays transistors, and most importantly, integrated circuits (ICs).

Page 4: Edc

Variations of logic gatesVariations of logic gates

One of the biggest decisions to make when dealing with Boolean logic is deciding which gates to use to compare your logic inputs. Here is a breakdown of different types of logic gates including their output truth tables when two Boolean inputs exist:

Page 5: Edc

AND Gate The AND gate compares in a waythat the output is high only if both inputsare high.

Page 6: Edc

OR GateThe OR gate will have a high

output for all input cases except when both inputs are low.

Page 7: Edc

NOT gate (inverter)NOT gate (inverter)

The output Q is true when the input A is NOT true, the output is the inverse of the input: Q = NOT A A NOT gate can only have one input. A NOT gate is also called an inverter.

Page 8: Edc

NAND gate (NAND NAND gate (NAND = = NNot ot ANDAND))

This is an AND gate with the output inverted, as shown by the 'o' on the output. The output is true if input A AND input B are NOT both true: Q = NOT (A AND B) A NAND gate can have two or more inputs, its output is true if NOT all inputs are true.

Page 9: Edc
Page 10: Edc

NOR gate (NOR = NOR gate (NOR = NNot ot OROR))

This is an OR gate with the output inverted, as shown by the 'o' on the output. The output Q is true if NOT inputs A OR B are true: Q = NOT (A OR B) A NOR gate can have two or more inputs, its output is true if no inputs are true.

Page 11: Edc

EX-OR (EXclusive-OR) gateThe output Q is true if either input A is true OR input B is true, but not when both of them are true: Q = (A AND NOT B) OR (B AND NOT A) This is like an OR gate but excluding both inputs being true. The output is true if inputs A and B are DIFFERENT. EX-OR gates can only have 2 inputs.

Page 12: Edc

EX-NOR (EXclusive-NOR) gate

This is an EX-OR gate with the output inverted, as shown by the 'o' on the output. The output Q is true if inputs A and B are the SAME (both true or both false): Q = (A AND B) OR (NOT A AND NOT B) EX-NOR gates can only have 2 inputs.

Page 13: Edc
Page 14: Edc

Applications Applications Simple application of NAND gateThe application discussed here is that of a door

closing system of an automobile. A car needs to be so designed that the driver gets a visual indication if any of the doors of the car is open so that it helps to avoid accident and injury to the passengers. Assuming there are two doors (just for simplicity, it works for more doors as well) where this system is fitted, the circuit can be designed using a NAND gate as follows

Page 15: Edc

You can see from the figure that when any of the switches is open due to the door position, the NAND gate energies the lamp inside the car, hence warning the driver.A Car Door Open Warning System using a NAND Gate

Page 16: Edc

This truth table gives us the behaviour of lamp inside the car when any one the doors are opened

Page 17: Edc

(2) Fire Alarm system ( OR gate )

Page 18: Edc

(3) (3) Fire Control system Fire Control system AND gate & OR gate AND gate & OR gate

Page 19: Edc

Some more examples Below is the logic gate for a

simple house alarm. The alarm protects the front and back doors and six windows.

Once the alarm is set if any of the doors or windows are opened the alarm will sound.

Page 20: Edc
Page 21: Edc