Lecture DLD
Lecture DLD
Binary Addition
Binary Subtraction
Binary Multiplication
Binary Division
Binary Addition
Carry 1 10 1
1st Number 1 0 1 1
2nd Number 1 1 0
3rd Number 1 0 0 0
4th Number 1 1
Result 1 1 1 0 0
Binary Subtraction
Borrow 1
1st Number 1 0 1 1
2nd Number 1 1 0
Result 1 0 1
Binary Multiplication
1101 (13)
x 101 (5)
1st product term 1101
2nd product term 0000
3rd product term 1101
Product 1000001 (65)
Multiplication by shifting left
10
101 | 1101
101
011
000
11
Division by shifting right
BCD Code
BCD Addition
Gray Code
Alternate Representations
23 0010 0011
48 0100 1000
71 0110 1011
1011 is illegal BCD number
BCD Addition
23 0010 0011
48 0100 1000
71 0110 1011
0110
0111 0001
Gray Code
Shaft encoders
Braking Systems
Gray Code
1. The most significant bit (left-most) in the binary code is the same as
corresponding in the Gray code.
2. Add each binary code bit generated to the Gray code bit in the next
adjancent position.Discard carries. For exapmle
1 1 0 1 1 Gray
1 0 0 1 0 Binary
Binary to gray
Bray Code to Binary
ASCII Character Codes and Properties 23