<< Chapter < Page Chapter >> Page >
Converting between a signal and numbers.

Analog-to-digital conversion

Because of the way computers are organized, signal must be represented by a finite number of bytes. This restrictionmeans that both the time axis and the amplitude axis must be quantized : They must each be a multiple of the integers. We assume that we do not use floating-point A/D converters. Quite surprisingly, the Sampling Theorem allows us to quantizethe time axis without error for some signals. The signals that can be sampled without introducingerror are interesting, and as described in the next section, we can make a signal "samplable" by filtering. In contrast,no one has found a way of performing the amplitude quantization step without introducing an unrecoverable error.Thus, a signal's value can no longer be any real number. Signals processed by digital computers must be discrete-valued : their values must be proportional to the integers. Consequently, analog-to-digital conversion introduces error .

The sampling theorem

Digital transmission of information and digital signal processing all require signals to first be "acquired" by acomputer. One of the most amazing and useful results in electrical engineering is that signals can be converted from afunction of time into a sequence of numbers without error : We can convert the numbers back into the signal with (theoretically) no error. Harold Nyquist, a Bell Laboratories engineer, first derived this result, known as the Sampling Theorem, in the1920s. It found no real application back then. Claude Shannon , also at Bell Laboratories, revived the result once computerswere made public after World War II.

The sampled version of the analog signal s t is s n T s , with T s known as the sampling interval . Clearly, the value of the original signal at the sampling times ispreserved; the issue is how the signal values between the samples can be reconstructed since they are lost in the samplingprocess. To characterize sampling, we approximate it as the product x t s t P T s t , with P T s t being the periodic pulse signal. The resulting signal, as shown in [link] , has nonzero values only during the time intervals n T s Δ 2 n T s Δ 2 , n -1 0 1 .

Sampled signal

The waveform of an example signal is shown in the top plot and its sampled version in the bottom.
For our purposes here, we center the periodic pulse signal about the origin so that its Fourier series coefficients arereal (the signal is even).
p T s t k c k 2 k t T s
c k k Δ T s k
If the properties of s t and the periodic pulse signal are chosen properly, we can recover s t from x t by filtering.

To understand how signal values between the samples can be "filled" in, we need to calculate the sampled signal'sspectrum. Using the Fourier series representation of the periodic sampling signal,

x t k c k 2 k t T s s t
Considering each term in the sum separately, we need to know the spectrum of the product of the complex exponential and thesignal. Evaluating this transform directly is quite easy.
t s t 2 k t T s 2 f t t s t 2 f k T s t S f k T s
Thus, the spectrum of the sampled signal consists of weighted (by the coefficients c k ) and delayed versions of the signal's spectrum( [link] ).
X f k c k S f k T s
In general, the terms in this sum overlap each other in thefrequency domain, rendering recovery of the original signal impossible. This unpleasant phenomenon is known as aliasing .

Aliasing

The spectrum of some bandlimited (to W Hz) signal is shown in the top plot. If the sampling interval T s is chosen too large relative to the bandwidth W , aliasing will occur. In the bottom plot, the samplinginterval is chosen sufficiently small to avoid aliasing. Note that if the signal were not bandlimited, thecomponent spectra would always overlap.
If, however, we satisfy two conditions:
  • The signal s t is bandlimited —has power in a restricted frequency range—to W Hz, and
  • the sampling interval T s is small enough so that the individual components in thesum do not overlap— T s 1 2 W ,
aliasing will not occur. In this delightful case, we can recover the original signal by lowpass filtering x t with a filter having a cutoff frequency equal to W Hz. These two conditions ensure the ability to recover abandlimited signal from its sampled version: We thus have the Sampling Theorem .

The Sampling Theorem (as stated) does not mention the pulse width Δ . What is the effect of this parameter on our ability torecover a signal from its samples (assuming the Sampling Theorem's two conditions are met)?

The only effect of pulse duration is to unequally weight the spectral repetitions. Because we are only concernedwith the repetition centered about the origin, the pulse duration has no significant effect on recovering a signalfrom its samples.

The frequency 1 2 T s , known today as the Nyquist frequency and the Shannon sampling frequency , corresponds to the highest frequency at which a signal can contain energy andremain compatible with the Sampling Theorem. High-quality sampling systems ensure that no aliasing occurs byunceremoniously lowpass filtering the signal (cutoff frequency being slightly lower than the Nyquist frequency) beforesampling. Such systems therefore vary the anti-aliasing filter's cutoff frequency as the sampling rate varies. Because such quality featurescost money, many sound cards do not have anti-aliasing filters or, for that matter, post-samplingfilters. They sample at high frequencies, 44.1 kHz for example, and hope the signal contains no frequencies above theNyquist frequency (22.05 kHz in our example). If, however, the signal contains frequencies beyond the sound card's Nyquistfrequency, the resulting aliasing can be impossible to remove.

To gain a better appreciation of aliasing, sketch the spectrum of a sampled square wave. For simplicityconsider only the spectral repetitions centered at 1 T s , 0 , 1 T s . Let the sampling interval T s be 1; consider two values for the square wave's period:3.5 and 4. Note in particular where the spectral lines go as the period decreases; some will move to the left andsome to the right. What property characterizes the ones going the same direction?

The square wave's spectrum is shown by the bolder set of lines centered about the origin. The dashed linescorrespond to the frequencies about which the spectral repetitions (due to sampling with T s 1 ) occur. As the square wave's period decreases, the negativefrequency lines move to the left and the positive frequency ones to the right.

If we satisfy the Sampling Theorem's conditions, the signalwill change only slightly during each pulse. As we narrow the pulse, making Δ smaller and smaller, the nonzero values of the signal s t p T s t will simply be s n T s , the signal's samples . If indeed the Nyquist frequency equals the signal's highest frequency, at least twosamples will occur within the period of the signal's highest frequency sinusoid. In these ways, the sampling signalcaptures the sampled signal's temporal variations in a way that leaves all the original signal's structure intact.

What is the simplest bandlimited signal? Using this signal, convince yourself that less than twosamples/period will not suffice to specify it. If the sampling rate 1 T s is not high enough, what signal would your resulting undersampled signal become?

The simplest bandlimited signal is the sine wave. At theNyquist frequency, exactly two samples/period would occur. Reducing the sampling rate would result in fewersamples/period, and these samples would appear to have arisen from a lower frequency sinusoid.

Questions & Answers

Three charges q_{1}=+3\mu C, q_{2}=+6\mu C and q_{3}=+8\mu C are located at (2,0)m (0,0)m and (0,3) coordinates respectively. Find the magnitude and direction acted upon q_{2} by the two other charges.Draw the correct graphical illustration of the problem above showing the direction of all forces.
Kate Reply
To solve this problem, we need to first find the net force acting on charge q_{2}. The magnitude of the force exerted by q_{1} on q_{2} is given by F=\frac{kq_{1}q_{2}}{r^{2}} where k is the Coulomb constant, q_{1} and q_{2} are the charges of the particles, and r is the distance between them.
Muhammed
What is the direction and net electric force on q_{1}= 5µC located at (0,4)r due to charges q_{2}=7mu located at (0,0)m and q_{3}=3\mu C located at (4,0)m?
Kate Reply
what is the change in momentum of a body?
Eunice Reply
what is a capacitor?
Raymond Reply
Capacitor is a separation of opposite charges using an insulator of very small dimension between them. Capacitor is used for allowing an AC (alternating current) to pass while a DC (direct current) is blocked.
Gautam
A motor travelling at 72km/m on sighting a stop sign applying the breaks such that under constant deaccelerate in the meters of 50 metres what is the magnitude of the accelerate
Maria Reply
please solve
Sharon
8m/s²
Aishat
What is Thermodynamics
Muordit
velocity can be 72 km/h in question. 72 km/h=20 m/s, v^2=2.a.x , 20^2=2.a.50, a=4 m/s^2.
Mehmet
A boat travels due east at a speed of 40meter per seconds across a river flowing due south at 30meter per seconds. what is the resultant speed of the boat
Saheed Reply
50 m/s due south east
Someone
which has a higher temperature, 1cup of boiling water or 1teapot of boiling water which can transfer more heat 1cup of boiling water or 1 teapot of boiling water explain your . answer
Ramon Reply
I believe temperature being an intensive property does not change for any amount of boiling water whereas heat being an extensive property changes with amount/size of the system.
Someone
Scratch that
Someone
temperature for any amount of water to boil at ntp is 100⁰C (it is a state function and and intensive property) and it depends both will give same amount of heat because the surface available for heat transfer is greater in case of the kettle as well as the heat stored in it but if you talk.....
Someone
about the amount of heat stored in the system then in that case since the mass of water in the kettle is greater so more energy is required to raise the temperature b/c more molecules of water are present in the kettle
Someone
definitely of physics
Haryormhidey Reply
how many start and codon
Esrael Reply
what is field
Felix Reply
physics, biology and chemistry this is my Field
ALIYU
field is a region of space under the influence of some physical properties
Collete
what is ogarnic chemistry
WISDOM Reply
determine the slope giving that 3y+ 2x-14=0
WISDOM
Another formula for Acceleration
Belty Reply
a=v/t. a=f/m a
IHUMA
innocent
Adah
pratica A on solution of hydro chloric acid,B is a solution containing 0.5000 mole ofsodium chlorid per dm³,put A in the burret and titrate 20.00 or 25.00cm³ portion of B using melting orange as the indicator. record the deside of your burret tabulate the burret reading and calculate the average volume of acid used?
Nassze Reply
how do lnternal energy measures
Esrael
Two bodies attract each other electrically. Do they both have to be charged? Answer the same question if the bodies repel one another.
JALLAH Reply
No. According to Isac Newtons law. this two bodies maybe you and the wall beside you. Attracting depends on the mass och each body and distance between them.
Dlovan
Are you really asking if two bodies have to be charged to be influenced by Coulombs Law?
Robert
like charges repel while unlike charges atttact
Raymond
What is specific heat capacity
Destiny Reply
Specific heat capacity is a measure of the amount of energy required to raise the temperature of a substance by one degree Celsius (or Kelvin). It is measured in Joules per kilogram per degree Celsius (J/kg°C).
AI-Robot
specific heat capacity is the amount of energy needed to raise the temperature of a substance by one degree Celsius or kelvin
ROKEEB
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Analog-to-digital conversion. OpenStax CNX. Sep 20, 2008 Download for free at http://cnx.org/content/col10578/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Analog-to-digital conversion' conversation and receive update notifications?

Ask