Professional Documents
Culture Documents
ECE 221 - AC Circuit and System Lab: Lab 8: Pulse Amplitude Modulation (PAM) and Pulse Code Modulation (PCM)
ECE 221 - AC Circuit and System Lab: Lab 8: Pulse Amplitude Modulation (PAM) and Pulse Code Modulation (PCM)
ECE 221 - AC Circuit and System Lab: Lab 8: Pulse Amplitude Modulation (PAM) and Pulse Code Modulation (PCM)
Lab 8: Pulse Amplitude Modulation (PAM) and Pulse Code Modulation (PCM)
Objective: In this lab, PAM and PCM signals will be generated through a sample & hold circuit.
An FPGA-based system will be used for data acquisition.
Introduction:
In digital communication systems, an analog signal, w (t), can be periodically sampled by a pulse
train, p ( t ) before transmission. The varying amplitude in the sampled discrete-time signal, w s (t) ,
reflects the information of w (t). This type of communication scheme is called as pulse-amplitude
modulation (PAM). The PAM signal, w s (t) , can be further processed by holding and quantizing
signal amplitude into N binary bits are used to represent the amplitude level of quantized signal,
w sh (t). After all the processes shown in Figure 1, a digital signal, w (n), is obtained for digital
communication. This type of signal is also called a pulse-code modulation (PCM) signal.
p(t )
Figure 8.1 PAM and PCM signal generation
Part A: PAM signal and sample-and-hold circuit
A circuit will be built to sample and hold an analog signal. Figure 8.2 shows the block diagram of
system, where w (t) is a signal generated by a signal generator, p(t) is a pulse signal generated from
a FPGA board.
w (t) w s (t) w sh (t)
Hold
Sampler
Circuit
p(t)
Figure 8.2 PAM signal and sampler circuit
Sketch amplitude spectra corresponding to the input signal w ( t ), the sampling pulse train p ( t ) ,
the sampled signal w s ( t ) , the output signal at the output of the LPF, w out ( t )
2. Test the sampler circuit with the following conditions and record your observations.
Step #1 : Use a signal generator to apply an analog signal, w ( t )= A cos (2 πft )
where A=3V and f =200 Hz , to the sampling circuit (Pin #13, A1, of the
analog switch)
Step #2 : Apply a 20% duty-cycle pulse train, p ( t ) , to the sampling
circuit (Pin #11, S0 , of the analog switch)
1) The wiring information of cd74hc4053 is listed below. (Pay attention to the changes in
RED)
V CC : +3.3 V ( from a power supply)
V EE : - 3.3 V ( from a power supply)
GND : Ground
E : Inverted pulse train (i.e., pwm_sig_bar from a source)
A1 : Analog input, w ( t ), from a signal generator
A0 : Ground
S0 : +3.3 V (from a power supply)
S1 : Ground
S2 : Ground
AN : A signal fed to LMC6482
Note: Be sure the source and the power supply of IC share a common ground.
Figure 8.5 below shows the sampling process to generate a PAM signal, where w s ( t ) is the sampled
signal, T s is the sampling period, and τ is the pulse width.
w s ( t ) =w ( t ) p(t ) (1)
where p ( t ) =∑ ∏
n
( t−nτ T )=¿ ∑ ∏( tτ )∗δ (t−n T ) ¿
s
n
s (2)
{
τ
∏( t
τ )
=
1∧|t|≤
2 (Rectangular function)
0∧others
{
δ (t )= +∞ ∧t=0
0∧others
(Dirac delta function, δ function)
To obtain Fourier transform of the sampled signal, first take Fourier transform of the sampling
function .
Part B: FPGA-based Data Acquisition System through SPI (serial peripheral interface)
An A/D converter daughter board (PmodAD1) is used to interface with an FPGA kit. The
circuit diagram of PmodAD1 is shown in Figure 1. It includes two ADCS7476 12-bit A/D
converter chips, two anti-alias filters and two connectors (J1 and J2). The ADCS7476 is a
low power, monolithic CMOS 12-bit A/D converter. Based on successive approximation
register architecture with internal track-and-hold, the device provides a digital serial
output. The serial interface is a compatible SPI bus.
Figure 8.6 PmodAD1 circuit diagram
Design requirements:
1. Go through the ADC datasheet and design requirements, then answer the following
questions:
(1) What’s the maximum frequency of SCLK to the A/D device?
20 MHz
(2) How many cycles of SCLK are needed for each data sample?
1 MPSPS
(3) Show the timing diagram of data conversion
Debug your VHDL codes and implement the ADC data acquisition system on an FPGA board.
3.3 V
2V
1.6 V
0.8 V