Digital Electronics Page

From bibbleWiki
Jump to navigation Jump to search

Gray Codes

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)BCD Binary (base 2)Gray Binary-Reflected (no base)
000000000
100010001
200100011
300110010
401000110
501010111
601100101
701110100
810001100
910011101
1010101111

Excess-3 Codes

Decimal(base 10)BCD Binary (base 2)
000000011
100010100
200100101
300110110
401000111
501011000
601101001
701111010
810001011
910011100