Number_systems-3 in Digital circuits and systems.pdf
prateekjain415709
10 views
13 slides
Jul 08, 2024
Slide 1 of 13
1
2
3
4
5
6
7
8
9
10
11
12
13
About This Presentation
Digital circuits and systems
Size: 269.1 KB
Language: en
Added: Jul 08, 2024
Slides: 13 pages
Slide Content
DIGITAL LOGIC DESIGN
NUMBER SYSTEMS AND
CODES
1
Binary codes for decimal numbers
•A binary number of n digits gives 2
n
distinct combinations which can be
used to represent distinct group of quantities
•Different binary codes available are weighted codes, un-weighted codes,
self-complementing codes, reflecting codes
•Weighted codes: Each bit position is assigned a weighing factor and each
digit is evaluated by adding the weights of all the ones in the coded
combination
Eg: BCD code, 2-4-2-1 code, (8, 4,-2,-1) code, etc
2
Binary codes for decimal numbers
•Un-weighted codes: Weight is not assigned to the bit positions
Eg: Excess-3 code
•Self complementing code: 9’s complement of the decimal number is
obtained by changing 1’s to 0’s and viceversa.
Eg: 2-4-2-1 code, Excess-3 code
8,4, -2 -1 code
3
BCD code
•Decimal numbers 0 –9 can be represented using 4 bits.
•There are 6 unused combinations in this coding scheme.
4
Different binary codes for decimal
numbers
5
BCD number
Convert decimal to BCD number
Convert BCD to Decimal
BCD Addition
6