Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Number Conversion from one system

to another

By,
Satish J. Patel 190170109095
Savan P. Patel 190170109096
Manav H. Rao 190170109113
Nimesh F. Prajapati 190170109103
Niraj Prajapati N. 190170109104
➔ Types of code:

1. Weighted codes
2. Non-Weighted codes
3. Reflective codes
4. Sequential codes
5. Alphanumeric codes
6. Error Detection & correcting codes
Binary to Gray:
● Invented by Frank Gray.
● Unweighted code.
● Also known as Reflected Binary
Code(RBC).
● Two successive value differs only
by one bit. It reduces switching
operation.
● Use in a K-map.
Binary conversion to Gray conversion
Step 1: Record the MSB as it is.

Step 2: Add the MSB to the next


bit, record the sum and neglect the
carry.

Step 3: Repeat the process.


Gray code to Binary code conversion
Step 1:Record the MSB as it is.

Step 2:Add to the next bit if Gray code,record the


sum and neglect the carry.

Step 3:Repeat the process.


Circuit diagram:
Binary coded decimal(BCD)

● In this code each decimal digit


is represented by a 4-bit binary
number.
● Positional weights are 8-4-2-1.
● BCD is less efficient than
Binary.
Conversion of Decimal to Conversion of BCD to Decimal
BCD
Example:
Example: 1.00011001==>19
1. 17 ==>00010111 2.01000101==>45
2. 156 ==>000101010110 3.01010100==>54
35
3. 30 ==>00110000
25 22
Excess-3
● Xs-3 or X-3 code is unweighted
code.
● 4-bit code.
Circuit diagram : BCD to Excess-3

You might also like