Professional Documents
Culture Documents
Safety
The voltages used in this experiment are less than 15 V and normally do not present a
risk of shock. However, you should always follow safe procedures when working on any
electronic circuit. Assemble or modify a circuit with the power off or disconnected. Don’t
touch different nodes of a live circuit simultaneously, and don’t touch the circuit if any
part of you is grounded. Don’t touch a circuit if you have a cut or sore that might come
in contact with a live wire. Check the orientation of polarized capacitors before
powering a circuit, and remember that capacitors can store charge after the power is
turned off. Never remove a wire from an inductor while current is flowing through it.
Components can become hot if a fault develops or even during normal operation so use
appropriate caution when touching components.
Objectives: To investigate PAM sampling and to observe the effects of sampling and
quantization and to measure output quality in terms of signal to noise ratio (SNR) for PCM
systems.
Equipment: You will require a PAM module for the first part and a PCM module for the
second part. You will also require a filter module The modules are available from the
technicians in 2C94.
Reference:
Virtual experiment found at http://www.engr.usask.ca/classes/EE/352/
Procedure: Sampling—Pulse Amplitude Modulation
1. Obtain a PAM sampling module (Figure 1) from the technicians and set up the sampling
circuit of Figure 2. Use a pulse generator to generate a gating signal for the sampling
module. Set the pulse voltage to TTL levels (0 V low to 4 V high). Attach a 3 kHz filter
module to the output of the sampling module. You will use a signal generator for the input
signal for most of the steps below. Limit the input signal to ±4 V; larger signals may
damage the sampling gate chip.
The sampling module (Fig. 3) uses a 4066 CMOS switch, controlled by the gating pulse, to
apply the input signal to either a 10K resistor or a 10 nF capacitor to ground, selected by
switch S1. With the 10K resistor selected, the output voltage will follow the input voltage
so long as the 4066 switch is closed but will be pulled to ground through the 10K resistor
when the 4066 switch is open. The result is natural sampling. With the 10 nF capacitor
selected, the input voltage charges the capacitor while the 4066 switch is closed and the
voltage is maintained by the capacitor when the 4066 switch is open. The result is flat-top
sampling provided the gate signal has a small duty cycle. A second 4066 switch allows the
capacitor to be discharged before the next sample resulting in less than 100% width flat-top
sampling. The timing is controlled by a PIC microcontroller; the % width of flat-top
sampling is set by the dip switch. The TL082 voltage follower prevents loading of the
sampling circuit by the device connected to the output.
2. Set the sampling pulse to 100 µs period (10 kHz) and 25% duty cycle. Apply 2 V DC to
the input and confirm that the sampling gate is operating correctly. Use the 10K load
resistor to produce natural sampling, and check the result with both an oscilloscope and a
spectrum analyzer. Measure the spectrum and confirm that it agrees with theory.
3. Apply a 4 Vpp sinusoid at 2 kHz to the sampling circuit input. Display the input signal,
the sampled signal and the filter output signal on the oscilloscope and spectrum analyzer.
Measure the spectrum and confirm that it agrees with theory.
4. Investigate
! how the sampled signal’s spectrum and the filtered output wave form
changes as
a) the input signal frequency fm is increased
b) the pulse duty cycle is increased
c) the sampling frequency fs is altered
d) fm is increased up !to twice fs
5. Generate an approximation to flat-top sampling by using the 10 nF capacitor in place of
the 10K load resistor !and by reducing the duty cycle of the gating pulses as much as
!possible; be sure the sampling
! frequency is 10 kHz. Start with 100% width flat-top
sampling. Observe the sampled waveform on the oscilloscope and use the spectrum
analyzer to observe baseband alias frequency components as the input signal frequency is
increased up to and beyond fs . Confirm that the relative gain follows the theoretical
sin x / x function part of which is shown in Figure 4. Switch to 50% and then 25% width
flat-top sampling and measure the relative gain as a function of signal frequency.
!
!
12%
1.0
25%
50%
0.9
Relative Gain
100%
0.8
Sampling Frequency
Fs = 10 kHz
0.7
0 2.5 5
Frequency in kHz
+
CLOCK CLK 1K
12 10 2 TL072
+
D2 DAC #1 -
1µF 1K AD7575 D3 11 9
1K DAC08
16 10 8
AIN D4 1K
8 7 14
D5 Vref (+) DAC REF
INPUT 7 6 15
1K D6 Vref (–)
(MSB) D7 6 5 2
(MSB) I 1K
17 V TP 3
REF +5V o 1
2 VLC
RD
0.1µF C 1 COMP 16
4 -V
S
BUSY 0.1µF
3
AGND DGND
–15V 0.1µF
15 9
+5V
+15V
0.1µF 5.1K
3.3K –
2CA3140 DAC 13
6 REF +V
12 4 6
+
+ 3 7 (LSB) I - OUTPUT #2
4 7 3
AD589 +5V 11 o
5 TL072 1
+
– 47µF 1K
10 DAC #2 2 TL072
+
-
9
DAC08
8
+5V 1K
SAMPLE 7 Vref (+) 14 DAC REF
CLOCK 14 10K 6 15
Vref (–)
11 5 2
5 74121 (MSB) I 1K
VLCo 1
3 ONE 10 27pF 16
COMP
4
SHOT 6 -V
3 0.1µF
7
0.1µF
–15V
signal. (Note that quantizing noise power should be constant except when overload occurs).
4. Increasing the sampling rate improves the SNR of a band-limited PCM system (i.e. a
system with a low-pass filter on the output). Verify this experimentally by changing the
sampling rate from 10 kHz to 80 kHz and measuring the SNR.