# What is a Computer Bit and How Does it Work?

## What Makes Computers Tick?

When you think of computing, you may have images of whizzing processors or geeks typing on screens. But did you ever wonder how all these devices work? If so, keep reading.

As technology continues to advance and computer literacy becomes more important than ever, we are going to break down what makes computers tick!

## Electricity is the Common Demonator

You flick a switch and a light bulb turns on. You flick the switch again and the blub turns off. If I were to tell you that computers run on this simple principle, would you believe me?   Well, believe you should because that’s all there is. Simply refer to a bulb that is lit as the number ‘1’ and when it is off, refer to it as a ‘0’.

In other words, the values ‘0’ and ‘1’ are based on whether electricity, more popularly referred to as current, is flowing and is represented by ‘1’ or current is not flowing, represented by ‘0’.

## So Should I Call Them Ones and Zeros?

Not exactly. These two values are known as bits. So whatever you are doing on the computer; such as reading this article, you are actually reading a long list of bits that the computer sees and then it translates those bites into words.

Of course, it is a bit (pun intended) more detailed than that. Not complex though, just a little more to absorb. Starting with the fact that when I mentioned “reading a long list of bits”, we have to translate these “long lists” into an organized pattern that the computer can understand; in other words, how to translate them into something we humans will understand.

## I’ll Byte!

If you align eight bits in a row where some are set to ‘1’ and others are set to ‘0’, you have created what is referred to as a byte.

It’s an arrangement that has a particular meaning to the computer.

A byte can be any letter or number from A-Z, 0-9 respectively. It can also store special characters, For example, binary code 00001101 is equal to 13 in decimal form. The alphabetic character “M” is similar in bit arrangement, but with one bit (pun intended again) of a difference, and that is it has an extra ‘on’ bit – 01001100.

If you were to type the letter ‘R” on your screen, it would involve a different combination of eight bits. In this case, for the letter ‘R, the sequence would be 01000010, and the letter ‘S’ would be 01000011, and so on.

Let’s backtrack and look at how these bits equate to their electrical equivalent. For our ‘M’ example above, which has the bit arrangement of 01001100, that would equal the following combination of electrical current that is, in this exact sequence: off, on, off, off, on, on, off, off.

It is based on a table called ASCII (As Key), which displays the eight bits (bytes), in ascending sequence, where each byte equates to a letter or number.

The particular instruction would depend upon the arrangement of the 1s and 0s. If you think this seems like some type of code, it is and is called binary code.

## Bites and Bytes Review

• A bit is a switch that is either electronically on or off.
• A byte is a combination of eight bits.
• Each pattern of bits in the bytes represents a number, letter or special character.

## Why are Bits Important?

Bytes determine whether a file is an image, document, spreadsheet, movie, audio file or other medium and they tell your computer what to do with the information in that file.

Converting information into digital form is called encoding; the process of converting it back into its original state is called decoding. Encoding and decoding both involve assigning values to different pieces of information so that a computer can store and process it appropriately.

For example, let’s say you have a picture that you want to save on your computer. The picture will be broken down into individual pixels and assigned an identifying number. This number will represent the color of each pixel (e.g., red, blue, or green). Thus, encoding this picture involves assigning numbers to each piece of information in it—in this case, the colors of each pixel in the photo.

Decoding would work the same way it would give a pixel its original identifying number so that it could once again be identified as a specific color; thus allowing you to see the photo as intended by its creator!

## Bits in Programming

When you’re programming a computer, you use bytes to represent information. For example, when the programmer asks the computer to calculate 5+5, it translates this into binary. “0001 0010 0101” So in binary, 5+5 is “0110 0100 0101” (This is called a binary addition). These two numbers are added together and the answer of 10 is sent back. And that’s how bits work!

## Writing the Computer Program

Computer programs read what’s called instructions. It tells the computer to do things, as explained in the following examples.

1. Print Something
When you tell your computer to print a document, there are instructions that tell it to do just that.
Scan the document or picture.
Contact the printer.
Send the document or picture to the printer.
Tell the printer to print it.
2. An ATM Example
In banking, a set of computer instructions tells the system to read a customer’s checking balance when he/she is at an ATM. If the individual attempts to withdraw funds that are more than what’s in the checking balance, the person would be told there is not enough money in the account for this withdrawal.
3. Here are computer program instructions written in Python that determines if a variable input of a stock price is higher than 50 and display a corresponding message:
# Get the stock price from the user
stock_price = float(input(“Enter the stock price: “))# Check if the stock price is higher than 50
if stock_price > 50:
else:

In this example, the program prompts the user to enter the stock price, which is stored in the variable `stock_price`.

The program then uses an `if` statement to check if the stock price is higher than 50. If it is, it displays the message “Your stock is growing!” using the `print` function. If the stock price is not higher than 50, it displays the message “Your stock is not growing.”

This is called an if/then condition and is extremely common in computer programming. Also called a logical statement.

The same situation will occur over and over and the same result will happen. There is no determination that there may be more issues occurring, such as possible fraudulent activity and that is where artificial intelligence comes in as we discuss in our AI 101 article.

## Summing Up

A computer bit is the smallest unit of information that a computer can read. When you align eight bits in a row, it is called a byte and each byte represents a letter, number, or special character, which is defined by the arrangement of the bits in the byte.

The translation of each byte can be found in the ASCII table. Bits are used to process everything from the simplest math problems to streaming video or playing games online.

# What are Semiconductors and How Do They Work?

## Overview

This is where we describe the device that controls the flow of electricity inside the semiconductor so that the bit patterns (bytes) can become the language that the computer will translate into human literacy, or in layman’s terms, translate from bytes to English characters, numbers, and special characters.

## Driving the Current

You might say electricity hates semiconductors because current can only travel through them when you tell it to, or more specifically when you turn a switch on or off. It is similar to driving a car. You can’t drive down the road and not think there will be any obstacles such as a red light to stop you.

A good example is to picture your car as the current and the road as the semiconductor. Now imagine a light bulb at the end of the road. If the current (your car) continues to travel down the road without hitting a stop light, you will reach the bulb, and voila! You (the current) reached the bulb and lit it up.

But what if there was a red light on the road? You must stop the car (stop the flow of current) and then there is no voila. The bulb will not light because no electricity was allowed to continue down the road to reach it.

Another analogy is when you turn on a faucet to allow water to flow. When you are done, you turn it off and the water stops flowing, but you can also control the speed or force at which the water comes out. It is this force that can be equated to voltage when referring to electricity. Let’s look at this in a bit more detail.

## The Voltage Factor

So the flow of electricity that is controlled through the semiconductor is via the amount of voltage that is being used. If too little voltage is implemented, then no electrical current will flow through, but if you raise the voltage, it will trigger the semiconductor to open the gate and allow the current to flow through. In other words, voltage is the controlling factor in whether current will or will not flow through the conductor.

## The Managing Device Within the Semiconductor

This control of whether current flows or doesn’t flow through a semiconductor has a name – transistor, which is nothing more than a switch to allow or disallow electricity to travel through it. The transistor will open when a specific amount of voltage (force) is used but will close when not enough voltage is used.

Before semiconductors were introduced, transistors were controlled by vacuum tubes. They were large, bulky devices, but they worked the same way as today’s tiny transistors do. You may recall seeing old photos of large rooms filled with vacuum tubes. That’s what it took to just make some simple calculations.

Transistor Sizes as Compared Throughout the Decades. Top-Left is a vacuum tube that would represent one transistor., equating to one state of either on or off. The rightmost device is a semiconductor computer chip that can contain hundreds or even thousands of transistors with simultaneous on and off states. Photo vlabo from iStock

Today’s transistors are tiny and the hundreds, if not thousands of vacuum tubes that filled a room can now fit on a computer chip the size of your fingernail. These ‘chips’, sit on a board, called a motherboard that connects the circuits which allow the current to run along with it.

The transistor’s on and off states create logic that represents the basic building blocks of the decision making process; however, we don’t refer to this process as on or off. Instead, we represent it by numbers. ‘1’ represents ‘on’ and ‘0’ represents ‘off’, which in computer talk are called bits.

Our article on how bits and bytes work explains this in more detail.

## What are Semiconductors Made Of?

Transistors are made of silicon and germanium, an element typically found in sand. The physical characteristics of silicon and germanium can be perfect conductors to allow current to flow without much resistance, but can also be perfect insulators to stop any current from flowing, which makes it a truly superior mineral when you need to control electricity.

## Summary

Transistors allow current to flow or not to flow through it. The material that the current resides in is silicon, which is used because its properties allow it to work well as a conductor but just as well as an insulator. Each on or off state is represented by a ‘1’ or ‘0’ and is called a bit. Eight bits make a byte, and it is the particular pattern of bits in each of the bytes that determines a certain instruction for the computer to follow.