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 ?
-> ...
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 ?
-> 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.
THE GRAY CODE{Image in Ppt}
3- 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 101102 to Gray code
1 + 0 + 1 + 1 + 0 binary
1 1 1 0 1 Gray
CONVERTING CIRCUIT{Image in Ppt}
LOGIC DIAGRAM OF 4 BIT BINARY TO GRAY CODE CONVERTER{Image in Ppt}
TRUTH TABLE{Image in Ppt}
All images related to topics are in ppt.
THANK YOU
Size: 300.58 KB
Language: en
Added: Dec 09, 2016
Slides: 11 pages
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 ?
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