Digital Electronics Page: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Created page with "=Gray Code= This is a technique where we convert number from binary to grays. We do this because Gray reduces the bits we need to change for addition. <table> <tr><td>Decimal (base 10)</td><td>Binary (base 2)</td><td>Binary-Reflected (no base)</td></tr> <tr><td>0</td><td>0000</td><td>0000</td></tr> <tr><td>1</td><td>0001</td><td>0001</td></tr> <tr><td>2</td><td>0010</td><td>0011</td></tr> <tr><td>3</td><td>0011</td><td>0010</td></tr> <tr><td>4</td><td>0100</td><td>0110<..."
 
Line 1: Line 1:
=Gray Code=
=Gray Code=
This is a technique where we convert number from binary to grays. We do this because Gray reduces the bits we need to change for addition.
This is a technique where we convert number from binary to grays. We do this because Gray reduces the bits we need to change to get to the next number. e.g. changing from 2 to 3 decimal requires a 1 bit change.


<table>
<table>

Revision as of 22:25, 14 January 2023

Gray Code

This is a technique where we convert number from binary to grays. We do this because Gray reduces the bits we need to change to get to the next number. e.g. changing from 2 to 3 decimal requires a 1 bit change.

Decimal (base 10)Binary (base 2)Binary-Reflected (no base)
000000000
100010001
200100011
300110010
401000110
501010111
601100101
701110100
810001100
910011101
1010101111