Wednesday 20 July 2011


.      What is Weighted Code?
A weighted code is a code in which a weight has been assigned to each symbol position in the code word. Weighted codes are commonly used for representing numbers.
Example:   BCD, 7421 codes, 5211 code.

.      What is Non-Weighted Code?
Non-weighted codes are defining as codes in which there are no specific weights assign to their bit positions. Gray code is an un-weighted code.

 
.      What is Gray Code?
Y      It is a non-weighted code.
Y      In this code a decimal number represented in binary form in such a way that each gray code number differs from the preceding and succeeding number by a single bit.
Y      This code is a reflected code.
Y      Used: A/D converter, I/O device etc.

.      What is Excess-3 Code?
This non-weighted code is another form of BCD code. Excess-3 code is derived by adding 3 to each decimal digit and then converting the result of four-bit binary. It is a self-complementary code.

What are the differences between ASCII & EBCDIC?

Sl.No
ASCII
EBCDIC
1.
Two types i) ASCII-7 ii) ASCII-8
Only one type EBCDIC-8
2.
All computers are including P.C and main-frame used the ASCII code.
Large computing systems are used EBCDIC code.
3.
In ASCII-8, 8th bit is used for parity bit or it may be permanently 1 or 0.
EBCDIC code is an 8-bit code without parity, but 9th bit can be used for parity.