<< Chapter < Page Chapter >> Page >

Analog signals, in general, are continuous in time. In digital signal processing, we do not use the whole analog signal but replace it by its amplitudes taken at regular intervals. This is sampling . The problem is we must sample the signal so that the samples represent correctly the signal, i.e. from the samples we can reconstruct the original analog signal perfectly.

Sampling of continuous-time signals

Sampling a continuous-time signal turns it into a correspond discrete-time signal so that it can be processed on digital systems. Actually, the sampling is followed by two other operations, quantization and binary encoding . In reality, the analog-to-digital converters (abbreviated ADC or A/D) do all the three steps.

Sampling of signal at sampling interval (period) T s MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadsfadaWgaaWcbaGaam4Caaqabaaaaa@37E3@

[link] depicts the sampling of a signal at regular interval t = n size 12{t=n} {} T s size 12{T rSub { size 8{s} } } {} where n is an integer, positive and negative. This is uniform sampling that we use routinely. Rarely, nonuniform sampling is mentioned. We denote the samples of the signal x(t) as x ( t ) size 12{ { {x}} \( t \) } {} or x ( nT s ) size 12{x \( ital "nT" rSub { size 8{s} } \) } {} . [link] shows the sampling process. It turns out that sampling is just a multiplication of the analog signal x(t) with a sampling signal (or function) s(t):

x ( t ) = x ( nT s ) = x ( t ) s ( t ) size 12{ { {x}} \( t \) =x \( ital "nT" rSub { size 8{s} } \) =x \( t \) s \( t \) } {}

The principle of sampling (a) Multiplying ; (b) Switching

The sampling signal s(t) is a regular sequence of narrow pulses δ t MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiabes7aKjaadshaaaa@3884@ of amplitude 1 ( [link] ) when multiplying s(t) with the signal x(t) we obtain the instantaneous values of x(t) which are the samples. An electric switch ( [link] b) is a way to implement the sampling: When the contact closes in a short time, the signal passes; and when the contact opens, no output signal appears.

sampling by a sequence of narrow pulses δ ( t ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiabes7aKjaacIcacaWG0bGaaiykaaaa@39DD@

The time distance T s MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadsfadaWgaaWcbaGaam4Caaqabaaaaa@37E3@ is called sampling interval or sampling period , f s = 1 / T s size 12{f rSub { size 8{s} } =1/T rSub { size 8{s} } } {} is sampling frequency (Hz or samples/sec), also called sampling rate. The samples were written as x ( nT s ) size 12{x \( ital "nT" rSub { size 8{s} } \) } {} but T s size 12{T rSub { size 8{s} } } {} is usually taken as 1, hence the samples will be denoted universally, unless otherwise specified, as x(n). The integer n can represent sample, time, space, but we will often call it time index , or just index, or sample.

When looking at [link] and [link] we may ask if the sampling is appropriate, that is the samples are too close or too far away or just right. This is really a big question and will be answered soon. For the time being, let’s examine the sampling of a sinewave ( [link] ) x(t) having period T x MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadsfadaWgaaWcbaGaamiEaaqabaaaaa@37E8@ and frequency F x = 1 / T x MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAeadaWgaaWcbaGaamiEaaqabaGccqGH9aqpcaaIXaGaai4laiaadsfadaWgaaWcbaGaamiEaaqabaaaaa@3C5A@ at the sampling rate f s size 12{f rSub { size 8{s} } } {} . Different authors use different symbols, this cause certain difficulty for readers. The figure shows the same sinewave but with 3 different sampling frequency f s MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAgadaWgaaWcbaGaam4Caaqabaaaaa@37F5@ . In the first case f s = 8 F x MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAgadaWgaaWcbaGaam4CaaqabaGccqGH9aqpcaaI4aGaamOramaaBaaaleaacaWG4baabeaaaaa@3BBB@ , the samples are quite close and represent very well the signal (from the samples we can reconstruct the signal). In the second case f s = 4 F x MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAgadaWgaaWcbaGaam4CaaqabaGccqGH9aqpcaaI0aGaamOramaaBaaaleaacaWG4baabeaaaaa@3BB7@ , still the samples can represent the signal (imagine that we connect the successive sample values to get a triangular wave

Sampling a sinewave of frequence f F x = 1 / T x F MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAeadaWgaaWcbaGaamiEaaqabaGccqGH9aqpcaaIXaGaai4laiaadsfadaWgaaWcbaGaamiEaaqabaGccaWGgbaaaa@3D2F@ at different sampling rates f s MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAgadaWgaaWcbaGaam4Caaqabaaaaa@37F5@

which is then passed through an analog lowpass filter to smooth out the wave form). In the last case f s = 2 F x MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqadeqabiGaciaacaqabeaadaqaaqaaaOqaaiaadAgadaWgaaWcbaGaam4CaaqabaGccqGH9aqpcaaIYaGaamOramaaBaaaleaacaWG4baabeaaaaa@3BB5@ , the sampling rate is equal twice the signal frequency. This is the critical case: The samples may or may not represent the signal depending on positions of sampling points.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Ece 454 and ece 554 supplemental reading. OpenStax CNX. Apr 02, 2012 Download for free at http://cnx.org/content/col11416/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ece 454 and ece 554 supplemental reading' conversation and receive update notifications?

Ask