Professional Documents
Culture Documents
Digital Tech
Digital Tech
• Contents:
• Base 2 and base 10 number system
• Bits and bytes
• PN diodes
• Boolean logic
• Logic gates
• Digital and analog basics
• Storing devices for digital
• Changing Analog to digital
• How cds store in 1 and 0
• What are CCDs?
• Image capturing
• Sampling for analog to digital conversion
• Work cited pages
What are binary digits?
Computers use binary numbers, and
therefore use binary digits in place of
decimal digits. The word bit is a
shortening of the words "Binary digIT."
Whereas decimal digits have 10
possible values ranging from 0 to 9,
bits have only two possible values: 0
and 1.
Decimal and binary numbers.
• You can see that in binary numbers, each bit holds the value of
increasing powers of 2. That makes counting in binary pretty easy
• E.g 1011 means
• 1 * 23) + (0 * 22) + (1 * 21) + (1 * 20) = 8 + 0 + 2 + 1 = 11
• Some more examples
• 10 = 1010
11 = 1011
12 = 1100
13 = 1101
14 = 1110
15 = 1111
16 = 10000
Bits and bytes.
• Bits are rarely seen alone in computers. They
are almost always bundled together into 8-bit
collections, and these collections are called
bytes.
• With 8 bits in a byte, you can represent 256
values ranging from 0 to 255, as shown here:
• 0 = 00000000
1 = 00000001
2 = 00000010
...
254 = 11111110
255 = 11111111
Bits and bytes continued
• CD uses 2 bytes, or 16 bits, per sample. That
gives each sample a range from 0 to 65,535, like
this:
• 0 = 0000000000000000
1 = 0000000000000001
2 = 0000000000000010
...
65534 = 1111111111111110
65535 = 1111111111111111
Analog at a glance
Image from
www.howstuffworks.com
Analog Wave
What is it that the needle in Edison's phonograph is
scratching onto the tin cylinder? It is an analog wave
representing the vibrations created by your voice.
For example, here is a graph showing the analog
wave created by saying the word "hello":
Analog recording contd….
• The waveform was recorded electronically
rather than on tinfoil, but the principle is the
same. What this graph is showing is,
essentially, the position of the microphone's
diaphragm (Y axis) over time (X axis). The
vibrations are very quick -- the diaphragm is
vibrating on the order of 1,000 oscillations
per second. This is the sort of wave
scratched onto the tinfoil in Edison's device.
Notice that the waveform for the word "hello"
is fairly complex.
Getting in to the digital world
• In a CD (and any other digital recording technology), the
goal is to create a recording with very high fidelity (very
high similarity between the original signal and the
reproduced signal) and perfect reproduction (the
recording sounds the same every single time you play it
no matter how many times you play it). To accomplish
these two goals, digital recording converts the
analog wave into a stream of numbers and records
the numbers instead of the wave. The conversion is
done by a device called an analog-to-digital
converter (ADC). To play back the music, the stream
of numbers is converted back to an analog wave by
a digital-to-analog converter (DAC). The analog wave
produced by the DAC is amplified and fed to the
speakers to produce the sound.
Converting an analog wave to
digital wave
• http://communication.howstuffworks.com/a
nalog-digital3.htm
Here is a typical wave (assume here
that each tick on the horizontal axis
represents one-thousandth of a
second):
……………..contd…
• When you sample the wave with an
analog-to-digital converter, you
have control over two variables:
• The sampling rate - Controls how
many samples are taken per second
• The sampling precision - Controls
how many different gradations
(quantization levels) are possible
when taking the sample
Convert the curve to numbers
• In the following figure, let's assume that the
sampling rate is 1,000 per second and the precision
is 10:
The green rectangles represent
samples. Every one-thousandth of a
second, the ADC looks at the wave
and picks the closest number
between 0 and 9. The number
chosen is shown along the bottom
of the figure. These numbers are a
digital representation of the original
wave. Want to know the digital form
of this curve? 7 8 9 5 3 4 0 3 7 5
Binary form? For individual digit
7 8 9 and so on
111 1000 1001 …………..
• When the DAC recreates the wave from these
numbers, you get the blue line shown in the
following figure:
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
CD’s and Thin Film Interference
• A CD has multiple tracks
– The tracks consist of a sequence of pits of
varying length formed in a reflecting
information layer
• The laser beam shines on a metallic layer
through a clear plastic coating
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
A CD’s pits and bumps
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
Reading a CD
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
Reading a CD
• When the laser beam hits a rising or falling
bump edge, part of the beam reflects from the
top of the bump and part from the lower adjacent
area
• Light reflecting from the top and bottom of the pit
is a half-wavelength out of phase, so the
intensity drops.
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
Reading a CD
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
DVD’s
• DVD’s use shorter wavelength lasers
– The track separation, pit depth and minimum
pit length are all smaller
– Therefore, the DVD can store about 30 times
more information than a CD
Source:
www.physics.byu.edu/faculty/rees/106/PPT/Class26.ppt
• In the case of CD sound, fidelity (the
similarity between the original wave and
the DAC's output ) is an important goal, so
the sampling rate is 44,100 samples per
second and the number of gradations is
65,536. At this level, the output of the DAC
so closely matches the original waveform
that the sound is essentially "perfect" to
most human ears .
Why is a CD’s capacity approximately
750 mb?
• One thing about the CD's sampling rate and precision is
that it produces a lot of data. On a CD, the digital
numbers produced by the ADC are stored as bytes, and
it takes 2 bytes to represent 65,536 gradations. There
are two sound streams being recorded (one for each of
the speakers on a stereo system). A CD can store up to
74 minutes of music, so the total amount of digital data
that must be stored on a CD is:
44,100 samples/(channel*second) * 2 bytes/sample * 2
channels * 74 minutes * 60 seconds/minute = 783,216,000 bytes
(Convert to kbs and then Mbs.)
What is a digital image?
• Essentially, a digital image is just a long string of 1s and 0s
that represent all the tiny colored dots -- or pixels -- that
collectively make up the image. If you want to get a picture
into this form, you have two options:
• You can take a photograph using a conventional film
camera, process the film chemically, print it onto
photographic paper and then use a digital scanner to
sample the print (record the pattern of light as a series of
pixel values).
• You can directly sample the original light that bounces
off your subject, immediately breaking that light pattern
down into a series of pixel values -- in other words, you
can use a digital camera
•
Capturing image
• The image sensor employed by
most digital cameras is a charge
coupled device (CCD). Some
cameras use complementary
metal oxide semiconductor
A CMOS sensor (CMOS) technology instead. Both
CCD and CMOS image sensors
convert light into electrons.
• A simplified way to think about
these sensors is to think of a 2-D
array of thousands or millions of
tiny solar cells.
Digitisation of the light
• http://www.olympusmicro.com/primer/digit
alimaging/concepts/concepts.html
http://electronics.howstuffworks.com/digital-camera1.htm
The above site has a video clip to explain the digitisation of the light .
Digital Camera Resolution