DLD 1
DLD 1
CHAPTER 1
DIGITAL SYSTEMS
AND BINARY
NUMBERS
This chapter presents the various binary systems
suitable for representing information in digital
systems. The binary number system is explained
and binary codes are illustrated.
2 41
2 20 – 1 Divide until the
2 10 – 0 Quotient is less
than ‘r’. Here 2
2 5 – 0
2 2 – 1
2 1 – 0
8 153
Divide until the
Quotient is less
than ‘r’
• (0.513)10 = (0.406517…)8
• Convert (41.6875)10 to binary ?
• Convert 41 to binary and 0.6875 to binary and then
combine.
17
• i.e. for base-2 i.e. binary, N would only have 1’s and 0’s,
2n will be written in binary which always will be 1 followed
by n zeroes (this is true for any base), and finally the
operation (rn – 1) – N is to be binary subtraction.
9 9 9 9 9 10
• Thus, 10’s C of 012398 is
• 987602
9 9 9 10
• And 10’s C of 246700 is
• 753300
32
• It is the end carry that tells us that X≥ Y & the result thus
will be positive. Have to discard end carry though.
38
• It is the end carry that tells us that X≥ Y & the result thus
will be positive. Perform end carry around operation.
41
• Since +ve integers always start with ‘0’, the complement will
start with ‘1’ indicating the –ve number.
2’s
C
+6 00000110 -6 11111010
-13 11110011 -13 11110011
*For –ve result, it’s already in 2’s C
*Discard End-carry, always form, no need to take 2’s C and give
-ve sign as in previous topic
51
Important to Note:
Difference between
addition of signed and
subtraction of unsigned
numbers
52
Topic 1.8
Not included
75
x-axis: time
y-axis: logic/voltage
80
END OF CHAPTER 1