Bits and Bytes
A BIT is one number in binary code--a 0 or a 1. "Bit" stands for "BInary digiT."
A BYTE is eight bits. For example, 11110000 is a byte. 10101010 is also a byte. 11010010 is also a byte. Any combination of eight ones and zeroes is a byte. In a byte, you have 256 possible numbers. The first number is 0 ("00000000"), and the highest number is 255 ("11111111"). Why do we use the byte? Why not only count in bits? Well, the byte can be useful. For example, people use letters and numbers and symbols and punctuation. These are called "characters." How can a computer understand that? It only knows 1s and 0s. Well, we use a special code called "ASCII" to translate between binary numbers and characters. Each character has its own 8-digit binary number ("byte"). For example, the lowercase letter "a" has the binary code "01100001." Here is a chart with some sample ASCII binary codes (see page 4-108 in your Capron textbook for a larger chart):
Can you see how that works? Every letter, number, symbol and punctuation mark has a 1-byte binary code. This 1-byte system was convenient, so it was used in many other places, and became common. |
||||||||||||||||||||||||||
Usually, bytes are used to describe the amount of stored data--that is, how much data on a floppy disk, CD-ROM or hard drive. Usually, bits are used to describe transmission speeds--how many bits of data are sent in one second. You can tell bits and bytes apart by how they are written: a bit is shown as a small, lower-case "b". A byte uses an upper-case capital "B". Therefore, a Mb is a megabit, and a MB is a megabyte. Remember, a byte equals 8 bits. So, 1 MB = 8Mb. |
||||||||||||||||||||||||||
A kilobyte is not really 1000 bytes, it is 1024. We say "1000" for convenience. Notice that the numbers use the binary prefixes--kilo, mega, giga, tera, peta, etc. They are explained simply here. So what do these sizes mean? Well, a simple text file made by a word processing program could be just 20K in size. A larger text file could be 200K in size. A photograph taken by a digital camera might be 1MB. An MP3 music file might be 5 MB. An MPG movie file might be 1GB in size. These are just examples; the size of each file could be much smaller or much larger depending on how much content they hold. You might also compare these figures with the capacities of common storage media:
|
||||||||||||||||||||||||||
Also remember that 8 Mbps means you can send 8 MegaBITs, which equals 1 MegaBYTE. You have probably heard "bits" before, when you heard about the speed of Internet connections. When you get a DSL connection at home, the tell you the speed in "Megabits," for example, 50Mbps (50 Megabits per second). It is important to remember: 8 bits is 1 Byte! |