Powers Are Used in Digital Data
Powers Are Used in Digital Data
There are 10 types of people in this world, those who understand binary, and those who dont.
A Simple Riddle
You just lost a MAJOR bet, your options are: A) Pay $1,000 per day for a month
OR
B) Pay 1 the first day, then double the payment each day for a month Which do you choose?
Topics
Number Bases
Decimal Binary -> Base 10 -> Base 2
1 Much
of this discussion comes from John F. Wakerlys Digital Design: Principles and Practices, 2nd ed.
Decimal numbers
Each digit can take one of ten values.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Digital signal
Digital signals are limited to a finite number of discrete amplitudes. In digital computers, the most basic unit storage can take one of only two values, 1 or 0.
Binary numbers
Each binary digit (or bit) can take on one of two values.
0 or 1
Binary numbers
The leftmost bit is called the most significant bit (MSB) because it has the largest weighting. The rightmost bit is called the least significant bit (LSB) because it has the smallest weighting.
10110111
Example Problem 1
Convert the binary number 10111012 into decimal.
Example Problem 1
Convert the binary number 10111012 into decimal.
1 0 1 1 1 0 1
64 32 16 8 4 2 1
64 + 16 + 8 + 4 + 1 = 93
203/ 2 101/2 50 / 2 25 / 2 12 / 2 6/ 2 3/ 2 1/ 2
= = = = = = = =
Quotient 101 50 25 12 6 3 1 0
Example Problem 2
Convert 18210 into binary.
Example Problem 2
Convert 18210 into binary.
Quotient Remainder 91 0 45 1 22 1 11 0 5 1 2 1 1 0 0 1
182 2 91 2 45 2 22 2 11 2 52 22 12
10110110
Example Problem 4
Using binary addition, count in binary from 0 to 8.
8 4 2 1
0 1 2 3 4 5 6 7 8