Presentation is loading. Please wait.

Presentation is loading. Please wait.

Slide 1EE100 Summer 2008Bharathwaj Muthuswamy EE100Su08 Lecture #16 (August 1 st 2008) OUTLINE –Project next week: Pick up kits in your first lab section,

Similar presentations


Presentation on theme: "Slide 1EE100 Summer 2008Bharathwaj Muthuswamy EE100Su08 Lecture #16 (August 1 st 2008) OUTLINE –Project next week: Pick up kits in your first lab section,"— Presentation transcript:

1 Slide 1EE100 Summer 2008Bharathwaj Muthuswamy EE100Su08 Lecture #16 (August 1 st 2008) OUTLINE –Project next week: Pick up kits in your first lab section, work on the project in your first lab section, at home etc. and wrap up in the second lab section. USE MULTISIM TO SIMULATE PROJECT (REFER TO MULTISIM FILE ONLINE!) –HW #3s-#6s: Pick up from lab, regrades: talk to Bart –Introduction to Boolean Algebra and Digital Circuits –Diode Logic –Transistor introduction (MOSFETs) –Transistor logic circuits Reading –Reader: Chapter 2, Chapter 4 and 5 (for transistors, just concentrate on logic applications).

2 Slide 2EE100 Summer 2008Bharathwaj Muthuswamy

3 Slide 3EE100 Summer 2008Bharathwaj Muthuswamy Most (but not all) observables are analog think of analog vs. digital watches but the most convenient way to represent & transmit information electronically is to use digital signals think of a computer! Analog vs. Digital Signals

4 Slide 4EE100 Summer 2008Bharathwaj Muthuswamy Digital Signal Representations Binary numbers can be used to represent any quantity. Counting:

5 Slide 5EE100 Summer 2008Bharathwaj Muthuswamy Digital Signal Representations Binary numbers can be used to represent any quantity. Counting:

6 Slide 6EE100 Summer 2008Bharathwaj Muthuswamy Decimal Numbers: Base 10 Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Example: 3271 = (3x10 3 ) + (2x10 2 ) + (7x10 1 ) + (1x10 0 ) This is a four-digit number. The left hand most number (3 in this example) is often referred as the most significant number and the right most the least significant number (1 in this example).

7 Slide 7EE100 Summer 2008Bharathwaj Muthuswamy Numbers: positional notation Number Base B  B symbols per digit: –Base 10 (Decimal):0, 1, 2, 3, 4, 5, 6, 7, 8, 9 –Base 2 (Binary):0, 1 Number representation: – d 31 d 30... d 1 d 0 is a 32 digit number – value = d 31  B 31 + d 30  B 30 +... + d 1  B 1 + d 0  B 0 Binary:0,1 (In binary digits called “bits”) 11010 = 1  2 4 + 1  2 3 + 0  2 2 + 1  2 1 + 0  2 0 = 16 + 8 + 2 = 26 –Here 5 digit binary # turns into a 2 digit decimal #

8 Slide 8EE100 Summer 2008Bharathwaj Muthuswamy Hexadecimal Numbers: Base 16 Hexadecimal: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F –Normal digits + 6 more from the alphabet Conversion: Binary  Hex –1 hex digit represents 16 decimal values –4 binary digits represent 16 decimal values  1 hex digit replaces 4 binary digits

9 Slide 9EE100 Summer 2008Bharathwaj Muthuswamy Decimal-Binary Conversion Decimal to Binary –Repeated Division By 2 Consider the number 2671. –Subtraction – if you know your 2 N values by heart. Binary to Decimal conversion 110001 2 = 1x2 5 +1x2 4 +0x2 3 +0x2 2 + 0x2 1 + 1x2 0 = 32 10 + 16 10 + 1 10 = 49 10 = 4x10 1 + 9x10 0

10 Slide 10EE100 Summer 2008Bharathwaj Muthuswamy Possible digital representation for the sine wave signal: Example

11 Slide 11EE100 Summer 2008Bharathwaj Muthuswamy Binary Representation N bit can represent 2 N values: typically from 0 to 2 N -1 –3-bit word can represent 8 values: e.g. 0, 1, 2, 3, 4, 5, 6, 7 Conversion –Integer to binary –Fraction to binary (13.5 10 =1101.1 2 and 0.392 10 =0.011001 2 ) Octal and hexadecimal

12 Slide 12EE100 Summer 2008Bharathwaj Muthuswamy Logic Gates Logic gates –Combine several logic variable inputs to produce a logic variable output Memory –Memoryless: output at a given instant depends the input values of that instant. –Memory: output depends on previous and present input values.

13 Slide 13EE100 Summer 2008Bharathwaj Muthuswamy Boolean algebras Algebraic structures –"capture the essence" of the logical operations AND, OR and NOT –corresponding set for theoretic operations intersection, union and complement –named after George Boole, an English mathematician at University College Cork, who first defined them as part of a system of logic in the mid 19th century. –Boolean algebra was an attempt to use algebraic techniques to deal with expressions in the propositional calculus. –Today, Boolean algebras find many applications in electronic design. They were first applied to switching by Claude Shannon in the 20th century.

14 Slide 14EE100 Summer 2008Bharathwaj Muthuswamy Boolean algebras The operators of Boolean algebra may be represented in various ways. Often they are simply written as AND, OR and NOT. In describing circuits, NAND (NOT AND), NOR (NOT OR) and XOR (eXclusive OR) may also be used. Mathematicians often use + for OR and · for AND (since in some ways those operations are analogous to addition and multiplication in other algebraic structures) and represent NOT by a line drawn above the expression being negated.

15 Slide 15EE100 Summer 2008Bharathwaj Muthuswamy Logic Functions, Symbols, & Notation “NOT” F = A TRUTH NAME SYMBOL NOTATIONTABLE FA ABF 000 010 100 111 “OR” F = A+B F A B AF 01 10 ABF 000 011 101 111 “AND” F = AB F A B

16 Slide 16EE100 Summer 2008Bharathwaj Muthuswamy Logic Functions, Symbols, & Notation 2 “NOR” F = A+B ABF 000 011 101 110 “NAND” F = A B F A B ABF 001 011 101 110 “XOR” (exclusive OR) F = A + B F A B F A B ABF 001 010 100 110

17 Slide 17EE100 Summer 2008Bharathwaj Muthuswamy

18 Slide 18EE100 Summer 2008Bharathwaj Muthuswamy

19 Slide 19EE100 Summer 2008Bharathwaj Muthuswamy Boolean Algebra NOT operation (inverter) AND operation OR operation

20 Slide 20EE100 Summer 2008Bharathwaj Muthuswamy Boolean Algebra Distributive Property De Morgan’s laws An excellent web site to visit –http://en.wikipedia.org/wiki/Boolean_algebra

21 Slide 21EE100 Summer 2008Bharathwaj Muthuswamy Circuit Realization: Three input adder with carry

22 Slide 22EE100 Summer 2008Bharathwaj Muthuswamy Diode Logic: AND Gate Diodes can be used to perform logic functions: AND gate output voltage is high only if both A and B are high A B R AND V cc C Inputs A and B vary between 0 Volts (“low”) and V cc (“high”) Between what voltage levels does C vary?

23 Slide 23EE100 Summer 2008Bharathwaj Muthuswamy Diode Logic: Incompatibility and Decay Diode Only Gates are Basically Incompatible: AND gate output voltage is high only if both A and B are high A B R AND V cc C AND OR gate output voltage is high if either (or both) A and B are high A B R OR C OR C AND High want R AND >> R OR C AND Low want R AND << R OR Signal Decays with each stage (Not regenerative)

24 Slide 24EE100 Summer 2008Bharathwaj Muthuswamy MOSFETs: Detailed outline OUTLINE –The MOSFET as a controlled resistor –MOSFET ID vs. VGS characteristic –NMOS and PMOS I-V characteristics –Simple MOSFET circuits Reading –Reader: Chapters 4 and 5

25 Slide 25EE100 Summer 2008Bharathwaj Muthuswamy MOSFET NMOS: Three regions of operation –V DS and V GS normally positive valus –V GS <V t :cut off mode, I DS =0 for any V DS –V GS >V t :transistor is turned on V DS < V GS -V t : Triode Region V DS > V GS -V t : Saturation Region Boundary

26 Slide 26EE100 Summer 2008Bharathwaj Muthuswamy MOSFET PMOS: Three regions of operation (interchange > and < from NMOS) –V DS and V GS Normally negative values –V GS >V t :cut off mode, I DS =0 for any V DS –V GS <V t :transistor is turned on V DS > V GS -V t : Triode Region V DS < V GS -V t : Saturation Region Boundary

27 Slide 27EE100 Summer 2008Bharathwaj Muthuswamy MOSFET Operating Regions TriodeSaturationCut-off NMOS TriodeSaturationCut-off PMOS

28 Slide 28EE100 Summer 2008Bharathwaj Muthuswamy Inverter = NOT Gate V out V in V out V V/2 Ideal Transfer Characteristics

29 Slide 29EE100 Summer 2008Bharathwaj Muthuswamy V DD /R D V DD NMOS Resistor Pull-Up v DS iDiD 0 v OUT v IN 0 Circuit: Voltage-Transfer Characteristic V DD VTVT AF 01 10 A F increasing v GS = v IN > V T v GS = v in  V T v IN = V DD V DD

30 Slide 30EE100 Summer 2008Bharathwaj Muthuswamy Disadvantages of NMOS Logic Gates Large values of R D are required in order to –achieve a low value of V OL –keep power consumption low  Large resistors are needed, but these take up a lot of space. One solution is to replace the resistor with an NMOSFET that is always on.

31 Slide 31EE100 Summer 2008Bharathwaj Muthuswamy The CMOS Inverter: Intuitive Perspective V DD RnRn V IN = V DD CIRCUIT SWITCH MODELS V DD RpRp V IN = 0 V V OUT V OL = 0 VV OH = V DD Low static power consumption, since one MOSFET is always off in steady state V DD V IN V OUT S D G G S D

32 Slide 32EE100 Summer 2008Bharathwaj Muthuswamy Features of CMOS Digital Circuits The output is always connected to V DD or GND in steady state  Full logic swing; large noise margins  Logic levels are not dependent upon the relative sizes of the devices (“ratioless”) There is no direct path between V DD and GND in steady state  no static power dissipation

33 Slide 33EE100 Summer 2008Bharathwaj Muthuswamy NMOS NAND Gate Output is low only if both inputs are high V DD RDRD A B F ABF 001 011 101 110 Truth Table

34 Slide 34EE100 Summer 2008Bharathwaj Muthuswamy NMOS NOR Gate Output is low if either input is high V DD RDRD AB F ABF 001 010 100 110 Truth Table

35 Slide 35EE100 Summer 2008Bharathwaj Muthuswamy An NMOSFET is a closed switch when the input is high N-Channel MOSFET Operation NMOSFETs pass a “strong” 0 but a “weak” 1 Y = X if A and B Y = X if A or B B A X B A X YY

36 Slide 36EE100 Summer 2008Bharathwaj Muthuswamy A PMOSFET is a closed switch when the input is low P-Channel MOSFET Operation PMOSFETs pass a “strong” 1 but a “weak” 0 Y = X if A and B = (A + B) Y = X if A or B = (AB) B A X B A X YY

37 Slide 37EE100 Summer 2008Bharathwaj Muthuswamy Pull-Down and Pull-Up Devices In CMOS logic gates, NMOSFETs are used to connect the output to GND, whereas PMOSFETs are used to connect the output to V DD. –An NMOSFET functions as a pull-down device when it is turned on (gate voltage = V DD ) –A PMOSFET functions as a pull-up device when it is turned on (gate voltage = GND) F(A 1, A 2, …, A N ) PMOSFETs only NMOSFETs only … … Pull-up network Pull-down network V DD A1A2ANA1A2AN A1A2ANA1A2AN input signals

38 Slide 38EE100 Summer 2008Bharathwaj Muthuswamy CMOS NAND Gate ABF 001 011 101 110 A F B AB V DD

39 Slide 39EE100 Summer 2008Bharathwaj Muthuswamy CMOS NOR Gate A F B A B V DD ABF 001 010 100 110


Download ppt "Slide 1EE100 Summer 2008Bharathwaj Muthuswamy EE100Su08 Lecture #16 (August 1 st 2008) OUTLINE –Project next week: Pick up kits in your first lab section,"

Similar presentations


Ads by Google