ET-426L Lab Manual Spring 2020 PDF
ET-426L Lab Manual Spring 2020 PDF
January 2020
1
Table of contents
Lab Topics
0. Electrical safety education 7
1. Noise Measurement 8
2. FM Circuits 15
3. Time Domain Reflectometry (TDR) 21
4. Antenna Directional Patterns 25
5. Fourier Components of Digital Waveforms 31
6. A/D – D/A 37
7. FSK Modulation & Demodulation 40
8. BPSK Modulation & Demodulation 46
9. PAM, TDM 51
10. RS-232 56
11. Fiber Optics 58
12. RZ-NRZ (TBD)
Name ________________________________________________
2
ET-426 Reference Formulas
General
Vpp fo
Vrms = Q=
2 2 BW
1 Vout
fo = AV =
2π LC Vin
V2
P = V*I = = I2R
R
dB
Pout Vout
dB gain = 10 * log = 20 * log
Pin Vin
P P
dB m = 10 * log dB W = 10 * log
1 mW 1 W
Electrical Noise
FM
∆fc
mf = , ∆fc = deviation from carrier rest freq., fm = message freq.
fm
∆fc
% modulation =
BW = 2 * N * fm ∆fc max
3
Transmission Lines
L Vmax Zload Zo
Zo = SWR = = or
C Vmin Zo Zload
Antennas
c
λ = , c = 3 *10 8 m/sec
f
984
λ= , f in MHz, λ in feet
f
ERP
Specific Antenna Gain (dB) = 10 * log
P transmitter
P r
10 * log = G t + G r - (37 + 20 * log f + 20 * log d), f in MHz, d in miles
Pt
4
Fourier Theory
1 0.35
BW = , to = width of pulse BW = , tr = rise time
to tr
Encoding
Manchester: mark = falling edge, space = rising edge
Vpp
Resolution (volts / step) = , n = number of bits
2n - 1
Vsampled
A to D : = # of steps (rounded up) {converted to binary}
resolution
D to A : Binary value {converted to decimal} * resolution = voltage out
FO
BW (in MHz - km)
Max data rate (Mbps) R = , D = length of cable
5 * D (in km)
1
or R = , where d = dispersion factor
5 * d *D
10 log Ptransmitted = (distance losses + connector losses + splice losses + safety factor) {all in dB}
Preceiver
Data Overhead
5
7-bit ASCII Table
6
Lab 0: Electrical Safety Education
https://www.mayoclinic.org/first-aid/first-aid-cpr/basics/art-20056600
First aid:
Cardiopulmonary resuscitation (CPR): First aid
• Untrained. If you're not trained in CPR, then provide hands-only CPR. That means uninterrupted chest compressions
of 100 to 120 a minute until paramedics arrive (described in more detail below). You don't need to try rescue
breathing.
• Trained and ready to go. If you're well-trained and confident in your ability, check to see if there is a pulse and
breathing. If there is no breathing or a pulse within 10 seconds, begin chest compressions. Start CPR with 30 chest
compressions before giving two rescue breaths.
• Trained but rusty. If you've previously received CPR training but you're not confident in your abilities, then just do
chest compressions at a rate of 100 to 120 a minute. (Details described below.)
7
ET 426L Communications Lab
Theory
A. Noise is an electronic signal that gets added to the information signal as it is transmitted from one place to
another. There is external noise - from industrial sources, atmospheric sources, and space - and internal noise,
from electrical components. The external noise we often see in lab is low frequency, 60 Hz, which is picked up
through the air by long wires used to make connections.
The internal noise we often see is high frequency noise, which can be thermal noise from resistors, semiconductor
noise from transistors and integrated circuits, or distortion from waveform clipping or non-linear amplification.
This equation gives the internal noise generated by a resistor: Vn = 4kT(BW)R , k = 1.38x10 -23 , T in Kelvin
This equation states that noise will be larger when 1) resistance value, 2) bandwidth, and 3) temperature are
larger.
In = 2qI(BW) , q = 1.6x10 -19
For semiconductors,
This equation says that noise will be larger when 1) current and 2) bandwidth are larger.
In this lab, we will use an op-amp amplifier and control bandwidth, to see its effects on noise. We will be stuck
with the same resistance, current, and temperature for all parts of the experiment.
B. Noise is made up of all frequencies. On a scope you can see the different freq components of noise by looking
at the correct time/div settings.
- 60 Hz can be seen by setting the horizontal to 5 mSec / div (since 1/60 Hz = 16 mSec for 1 period).
- The 1 kHz test tone we will use can be seen by setting the vertical to 0.5 mSec / div (1/1 kHz = 1 mSec for 1
period).
C. A good S/N ratio is important. If the signal is not enough larger than the noise picked up from outside sources
and generated by the circuit itself, the signal will be lost. You calculate S/N ratio in dB by
G * BW = A V * f2
8
F. The lower cutoff, f1, is controlled by a high pass filter made of a cap and resistor in series with the signal.
1
f1 =
2 π Rseries Cseries
9
Procedure
1. Build this circuit on the small Protoboards (not with the built-in power supplies). Use the B&K DC Power
Supply for the +/- 15 V supplies to the opamps. The B&Ks usually generates less low frequency (60 Hz) noise
than the powered Protoboards.
Use the 10-turn, 10k pot, in order to have fine control of the signal. Build the multistage amplifier as shown.
Keep leads as short as possible, to reduce 60 Hz power line noise pickup. Wherever possible, connect parts
directly to pins on the op-amp, not using jumper wires.
Pin-out
Connect all the grounds of the circuit with a single-point-ground connection only. This will help avoid ground
loops that can pick up low-frequency noise (usually 60 Hz).
10
2. This 2-stage circuit will have an gain for each section of _?_ , and overall gain of _?_, which in dB is _?_.
We are using this high gain circuit to make the Vout noise signal be as large as possible.
3. The low-freq cutoff, f1, is set by the 0.47 uF cap in series with the 2.2k resistor. This makes
an f1 = _?_, (Theory part F above) which will help control the 60 Hz noise
The high-freq cutoff of this circuit is set by the op-amp used, f2 = ? (Theory part D above).
4. Set the signal generator for a 5 Vpp, 1 kHz sine wave. Adjust the 10k pot so there is no signal to the first 2.2k
resistor. (Measure on the left side of the 2.2 k resistor – explain why). Verify with the scope that the input voltage
is zero.
5. There should be no output voltage waveform, except for that caused by ac noise generated by the opamps and
resistors. (There is also, as of course you remember from Analog class, dc input offset currents and voltages
from the opamps themselves that affect the waveform. But, we are measuring ac noise voltages, so we can ac
couple the scope to the circuit, and can ignore the dc offset effects for this exercise.)
Don’t use the digital Vpp reading on the scope to take measurements. Select a vertical V/div scale that makes the
noise signal be about ½ of the screen, whenever possible. Look at the Vout signal and draw it. Estimate and
record the peak-to-peak voltage of the noise. This value is called the noise floor for this circuit setup.
6. Shut off DC power to the circuit, and record the output noise voltage seen. This is the amount of noise picked
up by the scope alone. Comment.
7. Calculate the value (Vpp) of a 1 kHz signal that will make output S/NdB values of +10 dB, +20 dB, and
+30 dB (Theory Part C above), using the output noise Vpp you measured in step 4. Record these values.
Turn power back on, and slowly increase the 10 k pot, and look at Vout, until you see the 1 kHz signal waveform
appear above the noise floor. Keep increasing the input signal level, changing V/div to keep the entire output
waveform on the screen, until the S/NdB is +10 dB, then +20 dB, then +30 dB, as calculated.
Sketch each (signal + noise) waveform.
Label the amplitude (Vpp) of the different freq. components. Comment on how “clean” the output waveform
looks each time.
Vpp out value calculated Sketch, including Label the amplitude (Vpp)
of the different freq. components
+10 dB
11
+20 dB
+30 dB
Comments:
8. Return the input signal to zero. Reduce the upper cutoff, therefore bandwidth, of the circuit by adding a 470 pF
cap in parallel to both of the 220 k feedback resistors (Theory Part E above). This make a new upper cutoff for
each stage: f2 = ? ___ and BW = ? .
9. Record the new noise floor Vpp value, and then record the new +10 dB, +20 dB, and +30 dB
S/NdB waveforms (including Vpp values). Comment.
+10 dB
12
+20 dB
+30 dB
Comments
10. When finished, write a summary (on the lab cover page), including what you learned about Noise and
Bandwidth, and what you learned about how different S/NdB waveforms look.
13
Use the Tektronix TDS2001C FFT function
11. After completing steps 1-9, go back to the setup of step 4. Start at S/N = 10 dB, with Ch 2 attached to the
output. Trigger on Ch 2.
The signal amplitude should match fairly closely to the Vpp measurement you made in step 5 previously, but the
noise floor reading will not. That is because when you look at the time-based waveform, you see all the frequencies
of noise present, and when you look at the frequency-based spectrum, you are only seeing a portion of the total
noise.
16. With the spectrum display in place, add the 470 pF cap in parallel to the 220 k resistor, for the final stage opamp
circuit only. See that the noise floor drops by a large amount, about _______ dB, as the bandwidth is made smaller
by adding the cap (and therefore the noise is limited).
14
ET 426L Communications Lab
Message signal:
C. You can see, on a properly triggered oscilloscope, this waveform from a sine wave modulating a higher freq.
carrier
T1
D. FM demodulation is done using a Phase Locked Loop – PLL. In general, a PLL always tries to make the 2
input waveforms match frequencies. As the external FM signal changes freq (Δfc), the phase detector produces a
change in voltage (Δv), to force the Voltage-controlled oscillator, VCO, to “catch up”. This Δfc to Δv
conversion is FM demodulation.
Input 1
FM Input 2
Signal Demodulated message signal out
15
Procedure:
1. Disconnect the signal generator. Adjust the 100k pot until the output, pin 2, is a 50 kHz waveform. Draw it.
What is the unmodulated period, T? (T = 1/f)
2. Set up the signal generator to be a 2 Vpp, 200 Hz sine wave. Apply to the circuit. See the FM waveform
(Theory Part C above). Adjust the amplitude of the signal generator until the FM signal
is 50 kHz ± 5 kHz, in other words, so you get approx. fmin = 45 kHz and fmax = 55 kHz. Draw the waveform
and measure/label T1 and T2.
16
3. Keep Modulator circuit set-up to attach to the FM Demodulator in Part B.
B. Set up the FM demodulator circuit as shown
1. Build the 565 circuit. Have no input signal to start. Attach the scope to pin 5 of the 565. Adjust the 10 kHz pot
until you have a 50 kHz sine wave (Set the PLL VCO to the center freq – Theory Part D).
2. Connect the FM input (going to pin 2) to the FM output of the 2206 circuit. Disconnect the signal generator
from the 2206 circuit, so the waveform from the 2206 is just the 50 kHz sine wave.
The 565, pin 7 output is ___? Vdc.
17
3. Attach the signal generator to the 2206 circuit. See the 565, pin 7, output reproduces the original 200 Hz.
waveform. Draw the original input and final output waveforms vertically and label Voltage and time.
4. Adjust the 200 Hz signal generator amplitude a small amount and see the final output follow it. Adjust the 200
Hz signal generator freq a little bit, and see the final output follow it. What happens if you adjust the signal
generator freq or amplitude too far?
5. On the cover sheet, summarize the facts you know about FM modulation, the FM waveform, and FM
demodulation.
18
Use the Tektronix TDS2001C FFT function in lab
6. After completing FM Modulation & Demodulation, attach scope channel 2 to XR2206 pin 2 (FM waveform).
Trigger on Ch 2.
8. Scope Setup
3. Using Horizontal scale control: 12.5 kHz/division
1. Using Horizontal position control: 50 kHz center frequency
2. Using Ch 2 Vertical scale: 10 dB/division
5. Rectangular window
FFT Zoom = x1
Adjust Vertical position so you can
see top of peak and noise floor
9. Attach a DMM (AC Volts) to the signal generator output. 2 Vpp equals 0.707 Vrms. Adjust to that.
11. Change FFT Zoom to x10. Disconnect the signal generator. The 2206 is outputting a single freq. Determine
that freq and amplitude, using the Cursor ‘frequency’ function. Use the Horizontal position control to move the
signal to the center of the screen, if it is not there already.
V
Amplitude = ________dBV = _____ Vpp Freq = _______ kHz dB V = 20 * log measured
1 Vrms
Sketch & label spectrum Convert dBV reading to Vmeasured
(Vrms), then Vrms * 1.414 * 2 = Vpp)
19
12. Reattach signal generator. Use the Cursor function to measure bandwidth of the FM signal.
13. Repeat step 3 with signal generator amplitude = 0.5 Vrms, 0.25 Vrms, and 0.1 Vrms. Record dBV amplitude
and BW numbers only, no sketches.
14. What conclusions do you draw about Vsignal input amplitude vs FM waveform bandwidth?
20
ET 426L Communications Lab
Characteristic Impedance, Zo
L
A. Characteristic impedance is INDEPENDENT of the length of the line Zo =
- Depends on C/unit length and L/unit length C
- RG58/U cable is Zo = 53.5 Ω, which we refer to as 50 Ω cable
- The cable is made with C = 28.5 pF/ft, Inductance in uH/ft is not given
T-connector
Ch A
Ch B
Ch A
L
We know td = LC , and Zo = , combining, we get td = Zo * Ctotal for entire cable,
C
28.5 pF
td measured = 53.5Ω * * X ft of cable
ft
If signal generator (50 Ω) matches line (50 Ω) matches load (50 Ω) – no reflections (as in the waveforms above)
Attenuation caused by copper resistance of the line IS dependent on length of the line
Measured in dB/100 ft, of attenuation.
at 1 MHz, RG58/U cable has 0.5 dB/100ft attenuation, Vout
- X dB = 20 * log ,
Vin
21
If Load does not match line – reflections
are generated. For example, with
an open load, the reflected pulse will add
to the original pulse at the input
On most scopes, the input is expecting a x10 probe to be used. The V/div is set up to be read directly that way.
The direct coax connection does not have the resistor divider,
so on the digital scope, change the channel to be on x1.
SWR stands for standing wave ratio. It is the ratio of max to minimum peak-to-peak voltage of the combined
(reflected) waveform.
Vmax Zload Zo
SWR = = or , whichever is greater than 1 (SWR is always > 1)
Vmin Zo Zload
Procedure:
1. Use the given unknown length of RG-58U cable. Also use the given T-connector and coax end with clips to
connect the load RL, as directed.
22
2. Set the signal generator for 1 MHz square wave, 4 Vpp. The signal generator output connection
is 50 Ω, so we can connect directly to the coax. Use a 51 Ω resistor for RL. Record the Ch A and B waveforms. Is
this the correct set of waveforms for a matched line-to-load?
3. Measure the delay time td, and calculate and record the length of the RG-58U cable. Show calculations.
4. Measure as precisely as possible the input and output Vpp (change V/div scale), and calculate the attenuation in
the length of coax. Is this close to the theoretical attenuation? Show the calculations.
5. Change the load RL = ∞, open circuit, and again record Ch A and B. Draw notes on the waveforms to explain
how the waveform on Ch B happens.
23
6. Repeat with a RL = 0, short circuit, record Ch A and B waveforms.
Calculate the SWR from the Zo and the Zload (RL = 100). (Optional: Also calculate the SWR from the Ch B
waveform. Are they close in value?)
24
ET 426L Communications Lab
Lab 4: Antennas
Theory
We will transmit a 914.5 MHz carrier from a ½ λ horizontal dipole and receive - measure the antenna pattern -
of 3 different antennas:
• horizontal ½ λ dipole,
• vertical Marconi w/ radials
• horizontal 3-element Yagi array
Transmitter Receiver
Radiometrix TX3A-914-64
7 6 5 4 3 2 1
Coax to antenna
+2.2 Vdc to +12 Vdc
25
Theory continued
On the transmitter end, a ½ λ horizontal dipole antenna (Zin = 73 Ω) is attached to the module transmitter output
(50 Ω), with some RG-58U (53 Ω) cable, so there is some reflection and power loss, but a carrier wave of 914.5
MHz is still transmitted.
On the receiving end, the Motorola Antenna input is also 50 Ω, and the 3 antennas are all different impedances,
but we can still take measurements.
For antenna systems to work properly, they must be at least 10 λ apart. Also, we want the electromagnetic wave
to reflect off as little metal as possible. We will use the classroom as our testing area, as poor as it may be for that
purpose.
Antenna Plotting:
1. Angles on the radials, with 360° total
2. dBm value on the circles, with the highest dBm value put on the outside circle, and an appropriate scale used to
make the rest of the data fit
26
Received signal data – data recorded on White board – copy the data here
15
30
45
60
75
90
105
120
135
150
165
180
195
210
225
240
255
270
285
300
315
330
345
360
27
ET 426 Antenna Lab
Dipole
Marconi
28
3-element Yagi
29
Blank page
30
ET 426L Communications Lab
Theory
A. Fourier analysis states that a square wave is made up of a sine
wave at the fundamental frequency of the square wave plus
an infinite number of odd harmonics.
C. You can see the harmonic components of a square wave using a bandpass filter. For example, filtering for the
3rd harmonic only
We make a Low Pass filter from a series RC circuit, with cutoff freq: 1
fcutoff =
2π R C
Procedure
A. Harmonic components of a square wave.
Build a series of LC band-pass filters to see the individual frequency components of a 20 kHz square wave.
Vout
Square wave,
20 kHz, 10 Vpp 100Ω
L = __________ mH
1. Use R = 100 Ω, and L = 8.9 mH. Measure the inductor, and use the exact value in your calculations. Calculate
values for the capacitor (See Theory Part C), for resonant frequencies of 20 kHz (fundamental),
60 kHz (3rd harmonic), 100 kHz (5th harmonic), and 140 kHz (7th harmonic). There will not be exact capacitors
that match your values, so choose and measure capacitors (C chosen) that are close.
Sample calculations
With the scope show both the 10 Vpp input square wave (from feedback of the RLC, it will be a little distorted)
and the Vout at the same time. Due to overshoots in the square wave, use the screen value only (divisions *
Volts/division) to get Vpp. Or with the digital scope, capture a waveform and use the Cursor to measure Vpp.
32
The signal generator stays at approx. 20 kHz for all readings. For each different capacitor, get the peak
voltage reading of the output waveform by varying the signal generator frequency no more than 2 kHz away from
the 20 kHz fundamental freq (theory Part F).
3. From the Vpp data of the different harmonics, draw a frequency domain plot of the 20 kHz square wave. Label
the frequency and amplitude of each harmonic – compare to the theoretical amplitude.
Square wave,
0.001 uF
20 kHz, 10 Vpp
1. Measure your 0.001 uF cap, and use its exact value to calculate the value of fcutoff (Theory Part D) for values
of R = 100, 390, 1k, 3.9 k, 10k, 100k. The value of fcutoff is the bandwidth (BW). As the BW gets smaller,
there are fewer odd harmonic frequency components present, which affects the shape of the square wave.
Sample BW calculation:
33
2. Make a data table with columns for: (BW needed for square waves)
R BW from Fourier theory how many Signal Sketch the Vout waveform for
calculated frequency components are Vpp out each value of R.
present in that much BW
3. On the frequency domain plot of the 20 kHz square wave you obtained in Part A, superimpose over it the
LP filter characteristic with BW that is “just enough” for adequate transmission (Theory Part E).
34
After all steps of regular lab.
4. Attach signal generator, 20 kHz, 10 Vpp, to a 100 Ω resistor as a load. This is to get a waveform without a lot
of overshoots. Use Ch 1 of scope. Draw & label the time-based waveform. Use the Tektronix TDS2001C FFT
function
Scope Setup
3. Using Horizontal scale control: 25 kHz/division
1. Using Horizontal position control: 110 kHz center frequency
2. Using Ch 1 Vertical scale: 10 dB/division
5. Rectangular window
FFT Zoom = x1
7. Determine the freq and amplitude of each of the major harmonic peaks, using the Cursor ‘frequency’ function.
You may have to use the cursor ‘magnitude’ function to get the values of the peaks.
Vmeasured
(NOTE: Convert dBV reading to Vmeasured (Vrms), then Vrms * 1.414 * 2 = Vpp); dB V = 20 * log
1 Vrms
35
8. Comment on comparing results from circuit vs. from Scope FFT
12. The spectrum scale is set to show the first 30 odd harmonics. Using the dB scale, estimate which is the first harmonic
(3rd, 5th, etc.) that is 20 dB less amplitude than the fundamental, as you change resistors.
13. In the band-limit step 3, you made an estimate of BW that is “just enough”. Sketch and label the spectrum for that
resistor.
36
ET 426L Communications Lab
Vpp
Resolution (volts / step) = , n = number of bits
2n - 1
Vsampled
A to D : = # of steps (rounded up) {converted to binary}
resolution
D to A : Binary value {converted to decimal} * resolution = voltage out
Procedure:
1. The analog input range of the A/D converter is 0 V to 5 V. Calculate the theoretical digital output for the given
analog inputs, and record in the table. Show sample calculations.
2. Build just the ADC0804 and 74LS244 portion of the circuit - see sheet attached.
3. Adjust the analog input voltage to each of the following values and record the actual digital code out on the
LEDs.
4. Add the DAC0800 and TL081 portion of the circuit to what you previously built. Calculate the theoretical
analog voltage out – rounding to nearest 0.1 V. Record the actual voltage out for each step. Use 2 DMMs, so you
can see both analog input and analog output voltages at the same time.
37
5. The a/d conversion time can be determined by looking at the INTR’ to WR’ connection on the ADC0804 chip.
Measure and record the time between pulses. Convert this to a frequency. Nyquist’s Law then says that the max
analog input frequency we can accurately reproduce is _______? Hz.
6. Replace the 10 k pot on pin 6 of the ADC0804 with a 4 Vpp, 2.5 Vdc waveform at 500 Hz. Record the input,
sampling pulse (ADC0804 pin 5), and output (of TL081) waveforms. (you can see at the same time input and
output on our 2-channel scope; draw in where the sampling pulses are.)
38
39
ET 426L Communications Lab
Theory
In this lab exercise, the two frequencies used will be approx. 80 kHz and 120 kHz.
An XR-2206 function generator chip will be used for modulation – generate an FSK waveform.
1
For the FSK circuit, the higher frequency, fmark, is when input = ‘1’. fmark =
R 1 C1
The lower freq, fspace, is when input = ‘0’. 1
fspace =
R 2 C1
An XR 2212 phase locked loop chip will be used to demodulate – to regenerate the input square wave from the
incoming FSK waveform, using a PLL.
40
Procedure:
10 uF
4.7k
4.7k
Binary Data In 47k
9 4 3
2 FSK Out
13
XR 2206
150k
14 10
1 uF
5 6 7 8 1 12
C1 R1 R2
1. Calculate the fmark and fspace frequencies for this FSK modulator circuit.
2. Ground pin 9 (‘0’ data in), and measure the amplitude and frequency out at pin 2. Record. This is the FSK ‘0’
data.
3. Unground pin 9, and put in +5 Vdc from a dc supply (‘1’ data in), and measure the frequency out. Record. This is
the FSK ‘1’ data.
41
4. Set up the signal generator to be a 5 Vpp (going between 0 and 5 V), 100 Hz square wave, and connect to pin 9 as
shown. This will represent an NRZ, alternating ‘1010’ data waveform. Look at the binary input on Ch 1 and the
FSK out on Ch 2 of a scope.
Trigger on Ch 1. Adjust the time base of the scope to about 10 uSec/div, and adjust the horizontal position so a
transition from 0 to 1, or 1 to 0, is in the center of the scope display. Capture a single trace. Use the cursor
function to measure the FSK frequencies. Draw these waveforms and comment.
42
B. Set up the FSK demodulator circuit as shown
1. To start, ground pin 2, and disconnect one end of R1 (10k fixed resistor). Adjust the 10k pot
until the VCO frequency at pin 5 is half-way between the ‘0’ and ‘1’ FSK frequencies you found
in Part A. (approx. 100 kHz). This is the free-run frequency of the PLL.
2. Unground pin 2, reconnect R1, and set the function generator to be a sine wave, of amplitude and frequency of
the FSK ‘0’ data from Part A. Measure the DC value of Vout.
3. Set the function generator to the FSK ‘1’ data. Measure the DC value of Vout.
43
4. Disconnect the function generator and connect to the FSK Vout of Part A (2206 pin 2). Record the waveforms at
the Binary data input of 2206 and the Vout of 2212. Comment.
44
Use the Tektronix TDS2001C FFT function (Optional for spring 2020)
Lab Frequency Shift Keying (FSK)
5. Go back to the Modulator, and attach Ch 1 to the XR2206 pin 2 (FSK out).
Scope Setup
3. Using Horizontal scale control: 50 kHz/division
1. Using Horizontal position control: 250 kHz center frequency
2. Using Ch 1 Vertical scale: 10 dB/division
5. Rectangular window
FFT Zoom = x1
Adjust Vertical position so you can
see top of peak and noise floor
Determine the frequencies of the 2 first peaks, and also the next 2 highest peaks. What is the relationship
between (1) and (2)?
45
EET 426L Communications Lab
Theory
46
Procedure:
1. Put in 0 Vdc to the binary data input (ground pin 1), and then adjust R2, the 1 k pot, so the BPSK output is a sine
wave with minimum distortion.
2. Unground pin 1, then put in approx.. 6 Vdc to the binary input, and adjust until the BPSK output is exactly 0 V.
Record this input voltage.
This is the input voltage that “nulls” the output waveform. Above this input voltage the output signal will have
one phase, and below this input voltage the output signal will have a 180° shifted phase.
4. Attach a freq generator to pin 1, the binary data input. Adjust the signal to be a 100 Hz, 4 Vpp square wave
(representing a 1010 digital input), with a DC offset equal to the voltage you found in step 3.
47
5. Look at pin 11 output, a square wave of freq ? . Record freq and amplitude.
6. Look at the binary input on channel 1 and the BPSK output waveform on channel 2 of the scope. You may have
to adjust the DC offset and the 100 Hz freq until you get a stable BPSK waveform. Draw these waveforms and
comment. Keep this circuit to use in the next part.
7. Digitally capture the waveform, and then zoom in on the time scale Keep decreasing the time step until you can
see the phase change happen when the input changes from 1 to 0, or vice versa. Draw this detail.
48
B. Set up the BPSK demodulator circuit as shown
0.1 uF
1
4.7k
BPSK 0.1 uF
2 100k Vout
in 8
Amp
(from 2206, Phase
pin 2, after the cap) Detector 0.001 uF
16
XR 2212 22 pF
PLL 6 100k
Carrier 7
in VCO
5
(from 2206, 11 47k
pin 11)
13 14 12 10 9 4
0.1 uF
R1
10k
0.001 uF
0.001 uF
(LP filter)
1. Connect
a) 2206 pin 11 to 2212 pin 16
b) BPSK modulator output (after the 0.001 uF cap from 2206 pin 2) to the BPSK demodulator input
(0.1 uF cap to 2212 pin 2)
2. On the 2206 modulator, pin 1, put in the 100 Hz, 4 Vpp square wave (representing a 1010 digital input), with a
DC offset equal to the null voltage. Draw the Modulator input and demodulator output voltage waveforms.
Comment.
49
3. How high a frequency can you go on the modulator input (1010 data input) until the demodulator output is not a
“good” square wave anymore?
50
ET 426L Communications Lab
Lab 9: PAM and TDM
Theory
51
Procedure
RA
RA
RB
C C
1. Measure the freq of the oscillator 555 circuit output (pin 3).
2. Look at the oscillator signal on Ch. A and the sampling pulse on Ch. B of the scope. Draw this. Explain.
52
3. Set signal 1 to be a 5 Vpp, 150 Hz sine wave at (4066, pin 1).
4. With channel 1, look at the incoming waveform (4066, pin 1) and with channel 2, look at the PAM out
waveform (4066, pin 2). Set the scope trigger for the PAM out channel. You may have to play with the trigger
level to get a stable waveform on the screen.
Draw the 2 waveforms, vertically, and explain. Is the sine wave being sampled often enough to be reproduced
properly when it is demodulated?
5. Adjust the signal generator amplitude and see the output Vpp (PAM sampled) follow the input Vpp.
53
B. TDM – Time Division Multiplexing
Add two more chips to the circuit of Part A. The additional chips - 4069 (inverter) and 2nd 555 sampling pulse
generator - produce another sampling waveform that is separate in time from the first sampling pulse. The two
sampling pulses will operate two switches in the 4066 alternately. The two CMOS switch outputs are OR-tied
together, and will show a time-division multiplexed waveform.
1. Look at sample pulse 1(4066 pin 13) on Ch A and sample pulse 2 (4066 pin5) on Ch B.
Draw and explain.
2. Make signal 1 be a 5 Vpp, 150 Hz sine wave at (4066, pin 1). Make signal 2 be 6 Vdc.
54
3. With channel 1, look at the sine wave and with channel 2, look at the TDM out waveform (4066, pin 2). Set the
scope trigger for the TDM out channel. You may have to play with the trigger level to get a stable waveform on the
screen. Draw the 2 waveforms, vertically, and explain.
55
ET 426L Communication Systems Lab
Lab 10 : RS-232
Use the HyperTerminal program in Windows to send data back and forth between 2 PCs using the serial RS232 port,
and see what handshaking is needed by using a breakout box.
1. From the class 232 handout, draw lines where connections are needed for DTE-DTE communications. These can
both be called “Null Modem” set-ups.
Breakout Box
Switch detail
connected ON
LEDs
not connected
2 2 14 14
25 pin female connector
25 pin male connector
3 3 15 15
4 4 16 16
5 5 17 17
6 6 18 18
7 7 19 19
t
8 8 20 20
9 9 21 21
10 10 22 22
11 11 23 23
12 12 24 24
13 13 25 25
3. On Desktop, start the Hyper Terminal program. Give the Session some name, then set it up to use COM1, and
then set the configuration to 2400 bps, 8 data bits, no parity, 1 stop bit, Hardware control.
Connect on the breakout box all connections needed for full hardware handshaking.
Under File, Properties, Settings, set to VT 100 emulation, then click on ASCII Setup, and select Send line feeds
and Echo characters locally. See that single characters (press any letter key) can be sent between PCs when there is
56
DTE-DTE full hardware handshaking enabled. Instructor OK ______
4. Put a single digital scope lead on pin 2 (Tx) from left-side PC. Set the scope for single sequence, press Acquire.
From the left-side PC, send the character “a” (61hex) with even parity. Draw the waveform and label the
idle/start/data/parity/stop bits. Change parity to odd and repeat.
bits
5. Restart HyperTerminal, and set up as in step 4 above, except change to each of the following Flow Control
setups in turn - Hardware, Software, or None. Use the breakout box to find the minimum hardware handshaking
configuration that is needed to make the connection work. That is, remove jumpers on the breakout box until
characters won’t transfer, then undo the last step. Also check to see what, if any, loop-back connections can be
made and characters are still transferred. After each setup, write down the minimum hardware connections
needed. SG – signal ground – is always used, and so doesn’t need to be noted.
For example: Full: all crossovers - TD-RD, RTS-CTS, DTR-DSR, and CD (RLSD) needed.
Loopback: only TD-RD, RTS-CTS needed.
Flow control:
a) Hardware
Full:
Loopback:
b) Xon/Xoff (software)
Full:
Loopback:
c) None
Full:
Loopback:
6. Now we try file transfers. Byron could only get the Z Modem to work, so use that configuration, not X Modem,
Y Modem, or Kermit.
Use Windows “Notepad” to make a short text file, and store the file on the desktop.
Restart HyperTerminal and set the bps, data, parity, and stop bits back to the same as Step 3 above on both PCs.
From the HyperTerminal Toolbar, Transfer tab, set one PC to Send and pick the text file you wrote as the file to
send. Set the other PC to Receive. Start the Receive side before you start the Send side. See the file transfer.
Hangup, set the bps to 19,200, and try to send again. What is the fastest bit rate you can get to work?
57
ET 426L Communication Systems Lab
Names _____________________________________________________________________
Part III
View the Daktronics Fiber Optic Training CD, available in Solberg 302. Start the PowerPoint. You can listen to
the voice over the PowerPoint, or read the notes attached to each slide. Also view the two splicing videos on the
CD. Answer the following questions
Part I
1. Cut ½” off the end of the fiber with a sharp knife on a solid surface (on something like a clipboard to protect the
lab countertops). Make the cut as close to 90° as you can. Do both ends of the fiber.
3. Point one end of the fiber to a light source and observe the other end of the fiber. Note the changes in brightness
you see as you move the other end around, or cover the tip with your finger. Point the fiber at various objects. Do
any colors seem to transmit better than others?
58
4. Hold the fiber ½ mm from this paper, and move it across the words on the page. Can you see the variations in
brightness?
Part II Use the constructed test board and follow the procedure.
1. Apply +5 V to (power, EN, and Tx-EXT) leads and ground to the GND lead. This will power both the
transmitter and receiver circuits. You should see the red LED glow in the transmitter side housing (blue
connector).
3. Take care not to stare into the end of the fiber for too long, to avoid eye damage. Move the fiber around, and
note that you can still see the red LED light transmitted, even with the fiber bent at sharp angles. Do not bend it
enough the crease the fiber.
4. Connect the other end of the fiber into the receiver photodetector housing, but do not tighten the cinch nut yet.
The transmitter circuit has an oscillator that is turning the LED on/off at a 1 kHz rate. Use the scope to see the
transmitted (test point 1 lead) and received (data out lead) square waves. Move the fiber straight out of the
receiver housing. How far away you can get it before the photodetector is not getting enough light (no received
square wave)?
Put the fiber up against the end of connector. Tilt the fiber away from directly into the housing. How much angle
can you make before the photodetector is not getting enough light?
5. Connect a TTL (5 Vpp), 5 Hz, square wave to Tx-EXT. Connect EN to GND. Disconnect the receive side of
the fiber, and carefully look at the end of the fiber to see the light pulsing. How fast can you make the transmit
freq until you can’t see the pulses as separate?
6. Reconnect to the receiver circuit. How fast can you make the transmit freq until you can’t see the pulses as
separate on the scope? This is a limitation of the electronics used, not the fiber.
59