lecture14 logic circuits.ppt

16
Digital Circuits

Upload: kartika-munir

Post on 25-Sep-2015

229 views

Category:

Documents


1 download

TRANSCRIPT

  • Digital Circuits

  • Analog and Digital Signals

  • Noise margins in Logic Circuits

  • Noise margins in Logic Circuits

  • Digital to Binary ConversionConversion of the integer part

  • Digital to Binary ConversionConversion of the fractional part

  • Binary Addition

  • Binary Coded Decimal and Hexadecimal Representation3786.1=0011 0111 1000 0110. 0001BCDTo get BCD replace each digit by a group of 4 bitsBinary to hexadecimal conversion (0,1,..9,A,..,F)1110 1010 1001 0101=EA9516Exercise: Represent 25 by its BCD and binary codes

  • Binary Coded Decimal and Hexadecimal Representation3786.1=0011 0111 1000 0110. 0001BCDTo get BCD replace each digit by a group of 4 bitsBinary to hexadecimal conversion (0,1,..9,A,..,F)1110 1010 1001 0101=EA9516Exercise: Represent 25 by its BCD and binary codes25/2 = 12 rem 112/2 = 6 rem 06/2 = 3 rem 03/2 = 1 rem 11/2 = 0 rem 1 25 = 0010 0101BCD25 = 0001 1001

  • Binary and Grey Codes

  • Binary and Grey Codes

  • Twos Complement and Binary AdditionOnes complement id obtained by inverting all the bitsTwos complement is obtained as ones complement + 1

  • Positive and Negative Binary NumbersSigned twos complement of a number is used a the negative number value. This can be used in subtraction operation.

  • Positive and Negative Binary NumbersThis can be used in subtraction operation.

    To subtract number B from A we add twos complement of B to AExample: Compute A-B=25-11 using binary adders

    Find binary representations A= , B= Find twos complement of B -B= Add A+(-B) using binary notation

  • Positive and Negative Binary NumbersThis can be used in subtraction operation.

    To subtract number B from A we add twos complement of B to AExample: Compute A-B=25-11 using binary adders

    Find binary representations A=011001, B=001011Find twos complement of B -B=110101Add A+(-B) using binary notation 011001+110101 001110 = 14

    ****************