Dlc{binary to gray code conversion} ppt

TanishGupta10 11,127 views 11 slides Dec 09, 2016
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

BINARY TO GRAY CODE CONVERSION
1- WHAT IS A BINARY CODE ?
-> A binary code represents text or computer processor instructions using the binary number system's two binary digits, 0 and 1. The binary code assigns a bit string to each symbol or instruction.
2- WHAT IS A GRAY CODE ?
-> ...


Slide Content

SUBMITTED BY:- TANISH GUPTA{150130117029} KARANVEER MUQAND{1501300117040} GOVERNMENT ENGINEERING COLLEGE, GANDHINAGAR

DIGITAL LOGIC AND COMPUTER DESIGN

BINARY TO GRAY CODE CONVERSION

WHAT IS A BINARY CODE ? A binary code represents text or computer processor instructions using the binary number system's two binary digits, 0 and 1. The binary code assigns a bit string to each symbol or instruction.

The reflected binary code(RBC), also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one bit. This code was originally designed to prevent spurious output from electromechanical switches. WHAT IS A GRAY CODE ?

THE GRAY CODE Decimal Binary Gray Code 0000 0000 1 0001 0001 2 0010 0011 3 0011 0010 4 0100 0110 5 0101 0111 6 0110 0101 7 0111 0100 Decimal Binary Gray Code 8 1000 1100 9 1001 1101 10 1010 1111 11 1011 1110 12 1100 1010 13 1101 1011 14 1110 1001 15 1111 1000

Binary-to-Gray code conversion The MSB in the Gray code is the same as corresponding MSB in the binary number. Going from left to right, add each adjacent pair of binary code bits to get the next Gray code bit. Discard carries . ex: convert 10110 2 to Gray code 1 + + 1 + 1 + 0 binary 1 1 1 0 1 Gray

CONVERTING CIRCUIT Binary to Gray conversion is accomplished with 2 XOR gates.

LOGIC DIAGRAM OF 4 BIT BINARY TO GRAY CODE CONVERTER

TRUTH TABLE

THANK YOU