90 likes | 388 Views
5. NUMBER SYSTEM AND CODES. LEACH, MALVINO & SAHA. Why binary numbers are used. Almost all digital computers and systems are based on binary (two-state) operation. For instance, the switch shown in figure can be open or closed; therefore, a switch is one example of a natural binary device.
E N D
5 NUMBER SYSTEM AND CODES LEACH, MALVINO & SAHA
Why binary numbers are used • Almost all digital computers and systems are based on binary (two-state) operation. For instance, the switch shown in figure can be open or closed; therefore, a switch is one example of a natural binary device. Transistor ckt switch Tape rec. Disk drive
Binary-to-Decimal Conversion • Positional notations and weights • Binary Weights • Streamlined Method • Fractions • Mixed Numbers
Decimal-to-binary Conversion • Double Dabble • Fractions • Useful Equivalents
Octal Numbers • Octal-to-Decimal Conversion • Decimal-to-Octal Conversion • Fractions • Octal-to-Binary Conversion • Binary-to-Octal Conversion
Hexadecimal Numbers • Hexadecimal-to-Binary Conversion • Binary-to-Hexadecimal Conversion • Hexadecimal-to-Decimal Conversion • Decimal-to-Hexadecimal Conversion
OTHERS • The ASCII Codes • The Excess-3 Code • The Gray Code
Others • Gray Code • The advantage of such coding will be understood from this example • The disadvantage with gray code is that it is not good for arithmetic operation. Object moving along a track with sensors (a) binary coded and (b) gray coded. (a)Binary to Gray converter and (b)Gray to Binary converter