Digitaltechnology 090926105236 Phpapp02
Digitaltechnology 090926105236 Phpapp02
• 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/an
alog-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
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
http://electronics.howstuffworks.com/digital-camera1.htm
The above site has a video clip to explain the digitisation of the light .
Digital Camera Resolution