SECTION 03 / 8

Representing Information with Voltage

3 min read
On this page 6 headings

Start here Long ago, people stored information by carving on stone. Your body stores information in DNA. A computer has no stone and no DNA. It has only electricity. So how does a computer store a photo, a song or your name using just electricity?

What makes a good way to store a bit?

A bit is the smallest piece of information: a 0 or a 1.

A computer needs billions of bits, so a good way to store one must be:

Need Why
Small and cheap We need lots of them
Stable It should stay the same and give the same answer every time
Easy and fast to use We must read it, change it, combine it and send it quickly

Which electrical quantity should we use?

Electricity gives us four choices: voltage, current, phase and frequency. Computers mostly use voltage.

Voltage: good points Voltage: problems
Easy to make and to detect Affected by the surroundings (noise)
Engineers know it well Wires behave like tiny resistors and capacitors, which slow things down
Uses very little power when it’s not changing

Example: storing a picture with voltages

Each point of a black-and-white photo becomes one voltage: 0 V for black, 1 V for white, in between for grey.
Each point of a black-and-white photo becomes one voltage: 0 V for black, 1 V for white, in between for grey.
Open image ↗
A picture as voltages

Take a black-and-white photo and look at it point by point:

Voltage Colour
0 V Black
1 V White
0.67 V 67% grey

Scanning: go across the picture row by row (like reading a page) and turn each point into a voltage. You get a wavy voltage signal. A TV signal works in a similar way.

How much information is in one point?

In theory, a voltage between 0 V and 1 V could be any value: 0.671, 0.6712… so one point could hold endless information.

In real life, no. Noise and imperfect parts mean we can only trust a few voltage levels. How many levels we can reliably tell apart decides how much information each point really holds.

Processing = computation

Once information is a voltage, a circuit can change it. That’s computation.

Block What it does to the voltage V
COPY Output = V (same picture)
INVERT Output = 1 − V (black becomes white: a photo negative)

These are ready-made blocks. If every block works reliably, we can join many of them to build a reliable big system.

But there’s a catch, and it leads to the most important idea of this week: the digital abstraction (next page).

In one line: Computers store information as voltages (for example, 0V=0 V = black, 1V=1 V = white), and circuits that change these voltages are doing computation. Exam words: bit, information, voltage, current, phase, frequency, noise, scan (raster order), signal waveform, COPY block, INVERT block, computation.


Quick check

Give three qualities of a good way to store a bit. Small and cheap, stable (reliable), and easy and fast to manipulate.
Which electrical quantity do computers mainly use to represent information? Voltage.
If0V=I f 0 V = black and 1V=1 V = white, what does 0.25 V show? A dark grey (25% of the way to white).
An INVERT block gets 0.8 V. What comes out? 1 − 0.8 = 0.2 V.
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑