1 / 58

Digital Electronics

Digital Electronics. Dr Khayyat. Logic gates AND gate OR gate NOT gate XOR gate NAND gate NOR gate XNOR gate. Dr Khayyat. INTRODUCTION.

Download Presentation

Digital Electronics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Digital Electronics

  2. Dr Khayyat • Logic gates • AND gate • OR gate • NOT gate • XOR gate • NAND gate • NOR gate • XNOR gate

  3. Dr Khayyat INTRODUCTION • Logic Gates are circuits made up of transistors, diodes, and resistors. Logic gates process one or more input signals in a logical fashion. Depending on the input value or voltage, the logic gate will either output a value of '1' for ON or a value of '0' for OFF.

  4. Dr Khayyat • DIGITAL CIRCUITS Logic Gates are digital circuits. All digital circuits are either ON or OFF. • A light switch in your house can be used as an example of a digital circuit. The light is either ON or OFF depending on the switch position. • When the Light is ON the output value is '1'. • When the Light is OFF the output value is '0'. • The inputs are the position of the light switch. The switch is placed either in the ON or OFF position to activate the Light.

  5. Dr Khayyat Digital signals

  6. Dr Khayyat • There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR.

  7. Dr Khayyat AND gate • The AND gate is so named because, if 0 is called "false" and 1 is called "true," the gate acts in the same way as the logical "and" operator. • The output is "true" when both inputs are "true." Otherwise, the output is "false."

  8. Dr Khayyat AND (symbol & truth table) A.B = Y

  9. A B A.B

  10. Dr Khayyat • 'AND' gates are like two or more switches in series. All the switches have to be closed ( 'ON' or a value of '1') in order to make the lamp (output C) turn on.

  11. Dr Khayyat

  12. Dr Khayyat OR gate • The OR gate gets its name from the fact that it behaves after the fashion of the logical inclusive "or." The output is "true" if either or both of the inputs are "true." If both inputs are "false," then the output is "false."

  13. Dr Khayyat OR (symbol & truth table) A+B = Y

  14. Dr Khayyat • An 'OR' gate is like two or more switches in parallel. Only one switch needs to be closed ('ON' or a value of '1') in order to make the lamp (output C) turn 'ON' with a value of '1'.

  15. Dr Khayyat What is AND & OR?

  16. Dr Khayyat AND • To the right is the equivalent AND gate. We use the same logic levels, but the diodes are reversed and the resistor is set to pull the output voltage up to a logic 1 state. For this example, +V = +5 volts, although other voltages can just as easily be used. Now, if both inputs are unconnected or if they are both at logic 1, output Z will be at logic 1. If either input is grounded (logic 0), that diode will conduct and will pull the output down to logic 0 as well. Both inputs must be logic 1 in order for the output to be logic 1, so this circuit performs the logical AND function.

  17. Dr Khayyat OR • To the left you see a basic Diode Logic OR gate. We'll assume that a logic 1 is represented by +5 volts, and a logic 0 is represented by ground, or zero volts. In this figure, if both inputs are left unconnected or are both at logic 0, output Z will also be held at zero volts by the resistor, and will thus be a logic 0 as well. However, if either input is raised to +5 volts, its diode will become forward biased and will therefore conduct. This in turn will force the output up to logic 1. If both inputs are logic 1, the output will still be logic 1. Hence, this gate correctly performs a logical OR function.

  18. Dr Khayyat • In both of these gates, we have made the assumption that the diodes do not introduce any errors or losses into the circuit. This is not really the case; a silicon diode will experience a forward voltage drop of about 0.65v to 0.7v while conducting. But we can get around this very nicely by specifying that any voltage above +3.5 volts shall be logic 1, and any voltage below +1.5 volts shall be logic 0. It is illegal in this system for an output voltage to be between +1.5 and +3.5 volts; this is the undefined voltage region.

  19. Dr Khayyat • Typical Voltage Assignment • Binary 1: Any voltage between 2V to 5VBinary 0: Any voltage between 0V to 0.8VNot used: Voltage between 0.8V to 2V, this may cause error in a digital circuit.

  20. Dr Khayyat Inverter or NOT gate • A logical inverter, sometimes called a NOT gate to differentiate it from other types of electronic inverter devices, has only one input. It reverses the logic state.

  21. Dr Khayyat NOT (symbol & truth table)

  22. Dr Khayyat

  23. Dr Khayyat XOR gate • The XOR (exclusive-OR) gate acts in the same way as the logical "either/or." The output is "true" if either, but not both, of the inputs are "true." The output is "false" if both inputs are "false" or if both inputs are "true." Another way of looking at this circuit is to observe that the output is 1 if the inputs are different, but 0 if the inputs are the same.

  24. Dr Khayyat XOR (symbol & truth table)

  25. Dr Khayyat A B Y

  26. Dr Khayyat NAND gate • The NAND gate operates as an AND gate followed by a NOT gate. It acts in the manner of the logical operation "and" followed by negation. The output is "false" if both inputs are "true." Otherwise, the output is "true."

  27. Dr Khayyat NAND (symbol & truth table)

  28. Dr Khayyat NOR gate • The NOR gate is a combination OR gate followed by an inverter. Its output is "true" if both inputs are "false." Otherwise, the output is "false."

  29. Dr Khayyat NOR (symbol & truth table)

  30. Dr Khayyat XNOR gate • The XNOR (exclusive-NOR) gate is a combination XOR gate followed by an inverter. Its output is "true" if the inputs are the same, and "false" if the inputs are different.

  31. Dr Khayyat XNOR (symbol & truth table)

  32. Detailed Truth Table of XOR & XNOR

  33. Dr Khayyat Combinations of logic gates • Logic gates can be combined to produce more complex functions.

  34. Dr Khayyat D = NOT (A OR B)E = B AND CQ = D OR E = (NOT (A OR B)) OR (B AND C)

  35. Dr Khayyat Integrated Circuits (IC) • 7400 - NAND (four gates per chip) • 7402 - NOR (four gates per chip) • 7404 - NOT (six gates per chip) • 7408 - AND (four gates per chip) • 7432 - OR (four gates per chip) • 7486 - XOR (four gates per chip)

  36. Dr Khayyat Inside an IC

  37. Dr Khayyat The rules of Boolean Algebra • AND Operations (·) 0·0 = 0, A·0 = 0, 1·0 = 0, A·1 = A, 0·1 = 0, A·A = A, 1·1 = 1, A·A' = 0 • OR Operations (+) 0+0 = 0, A+0 = A, 1+0 = 1, A+1 = 1, 0+1 = 1 A+A = A, 1+1 = 1, A+A' = 1 • NOT Operations (') 0' = 1, A'' = A, 1' = 0

  38. Dr Khayyat القلابات أكثر الدوائر شيوعا في عمليات العد و التخزين هي دوائر القلابات و التي لها حالتا تشغيل مستقرتان تقابل هاتان الحالتان المستويين النطقيين 0 &1 هناك عدد من القلابات مثل: RS flip-flop JK flip-flop D flip-flop

  39. Dr Khayyat SR Flip Flop Q` Q

  40. Dr Khayyat قلاب له خطا دخل هما الخط و الخط و خطا خرج هما الخرج العادي و خرج المتمم يكون القلاب في حالة ضبط عندما يكون و يكون في حالة اعادة ضبط عندما يكون تنفذ دوائر القلاب باستخدام دوائر أو باستخدام دوائر S RS R Q` Q Q=1, Q`=0 SET Q=0, Q`=1 RESET NAND NOR RS

  41. Dr Khayyat • An SR Flip Flop is an arrangements of logic gates that maintains a stable output even after the inputs are turned off.  This simple flip flop circuit has a set input (S) and a reset input (R). The set input causes the output of 0 (top output) and 1 (bottom output).  The reset input causes the opposite to happen (top = 1, bottom =0).  Once the outputs are established, the wiring of the circuit is maintained until S or R go high, or power is turned of to the circuit.

  42. Dr Khayyat Truth table of the RS flip-flop

  43. Dr Khayyat بعض قوانين المنطق

  44. Dr Khayyat

  45. Dr Khayyat DeMorgan's Theorem • (x+y)' = x' * y' • (x*y)' = x' + y'

  46. Dr Khayyat Implications of DeMorgan's Theorem • (x+y)' = x' * y'

  47. Dr Khayyat (x*y)' = x' + y'

  48. Dr Khayyat Implementing Circuits From Boolean Expression

  49. Dr Khayyat What function is implemented by the circuit shownx'y'+z(x'+y')zx'y'zx'+y'+zNA

  50. Dr Khayyat • What function is implemented by the circuit shownx+y+zx+y+z'x'y'zx'+y'+z'NA

More Related