Home | | Basic Electrical and Electronics Engineering | The Binary Number System

Chapter: Basic Electrical and electronics : Digital Electronics

The Binary Number System

When the base-10 child reached nine (the highest symbol in his scheme), the next penny gave him “one group of ten”, denoted as 10, where the “1” indicated one collection of ten.

The Binary Number System

 

Consider again the example of a child counting a pile of pennies, but this time in binary.

 

He would begin with the first penny: “1.” The next penny counted makes the total one single group of two pennies. What number is this?

 

When the base-10 child reached nine (the highest symbol in his scheme), the next penny gave him “one group of ten”, denoted as 10, where the “1” indicated one collection of ten.

 

Similarly, when the base-2 child reaches one (the highest symbol in his scheme), the next penny gives him “one group of two”, denoted as 10, where the “1” indicates one collection of two.

 

Back to the base-2 child: The next penny makes one group of two pennies and one additional penny: “11.” The next penny added makes two groups of two, which is one group of 4: “100.” The “1” here indicates a collection of two groups of two, just as the “1” in the base-10 number 100 indicates ten groups of ten.

 

Upon completing the counting task, base -2 child might find that he has one group of four pennies, no groups of two pennies, and one penny left over: 101 pennies. The child counting the same pile of pennies in base-10 would conclude that there were 5 pennies. So, 5 in base-10 is equivalent to 101 in base-2. To avoid confusion when the base in use if not clear from the context, or when using multiple bases in a single expression, we append a subscript to the number to indicate the base, and write:

510 =1012

Just as with decimal notation, we write a binary number as a string of symbols, but now each symbol is a 0 or a 1. To interpret a binary number, we multiply each digit by the power of 2 associated with that digit’s position.

 

For example, consider the binary number 1101. This number is:


 

Since binary numbers can only contain the two symbols 0 and 1, numbers such as 25 and 1114000 cannot be binary numbers.

 

We say that all data in a computer is stored in binary—that is, as 1’s and 0’s. It is important to keep in mind that values of 0 and 1 are logical values, not the values of a physical quantity, such as a voltage. The actual physical binary values used to store data internally within a computer might be, for instance, 5 volts and 0 volts, or perhaps 3.3 volts and 0.3 volts or perhaps reflection and no reflection. The two values that are used to physically store data can differ within different portions of the same computer. All that really matters is that there are two different symbols, so we will always refer to them as 0 and 1.

 

A string of eight bits (such as 11000110) is termed a byte. A collection of four bits (such as 1011) is smaller than a byte, and is hence termed a nibble. (This is the sort of nerd-humor for which engineers are famous.)

 

The idea of describing numbers using a positional system, as we have illustrated for base-10 and base-2, can be extended to any base. For example, the base-4 number 231 is:




Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Basic Electrical and electronics : Digital Electronics : The Binary Number System |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.