X10 - FM Demodulation - Pulse Counting Method-Ans
X10 - FM Demodulation - Pulse Counting Method-Ans
Class:
Preliminary discussion
There are as many methods of demodulating an FM signal as there are of generating one.
Examples include: the slope detector, the Foster-Seeley discriminator, the ratio detector, the
phase-locked loop (PLL), the quadrature FM demodulator and the zero-crossing detector. It’s
possible to implement several of these methods using the Emona Telecoms-Trainer 101 but, for
an introduction to the principles of FM demodulation, only the zero-crossing detector is used in
this experiment.
Figure 1
The received FM signal is first passed through a comparator to heavily clip it, effectively
converting it to a squarewave. This allows the signal to be used as a trigger signal for the zero-
crossing detector circuit (ZCD).
The ZCD generates a pulse with a fixed duration every time the squared-up FM signal crosses
zero volts (either on the positive or the negative transition but not both). Given the squared-up
FM signal is continuously crossing zero, the ZCD effectively converts the squarewave to a
rectangular wave with a fixed mark time.
When the FM signal’s frequency changes (in response to the message), so does the rectangular
wave’s frequency. Importantly though, as the rectangular wave’s mark is fixed, changing its
frequency is achieved by changing the duration of the space and hence the signal’s mark/space
ratio (or duty cycle). This is shown in Figure 2 on the next page using an FM signal that only
switches between two frequencies (because it has been generated by a squarewave for the
message).
Comparator's
output
0V
ZCD signal
0V
Figure 2
Recall from the theory of complex waveforms, pulse trains are actually made up of sinewaves
and, in the case of Figure 2 above, a DC voltage. The size of the DC voltage is affected by the
pulse train’s duty cycle. The greater its duty cycle, the greater the DC voltage.
That being the case, when the FM signal in Figure 2 above switches between the two
frequencies, the DC voltage that makes up the rectangular wave out of the ZCD changes
between two values. In others words, the DC component of the rectangular wave is a copy of the
squarewave that produced the FM signal in the first place. Recovering this copy is a relatively
simple matter of picking out the changing DC voltage using a low-pass filter.
Importantly, this demodulation technique works equally well when the message is a sinewave or
speech.
The experiment
In this experiment you’ll use the Emona Telecoms-Trainer 101 to generate an FM signal using a
VCO. Then you’ll set-up a zero-crossing detector and verify its operation for variations in the
message’s amplitude.
Procedure
3. Locate the VCO module and turn its Gain control fully clockwise.
4. Set the VCO module’s Frequency Adjust control to about the middle of its travel.
VCO
DIGITAL
GAIN
FREQ
HI
LO
VCO SINE
INPUT
Figure 3
1
Note: You do this by adjusting the signal’s period to 100µs (recall that P = )
f
10. Set the scope’s Channel 1 and Channel 2 Input Coupling controls to the DC position.
Figure 4
This set-up can be represented by the block diagram in Figure 5 on the next page. The Variable
DCV module is being used to provide a simple DC message and the VCO module implements an FM
modulator with a carrier frequency of 10kHz.
FM signal
DC V To Ch.2
10kHz rest
frequency
Figure 5
13. Vary the Variable DCV module’s DC Voltage control and check that the VCO module’s
output frequency changes above and below its rest frequency.
For the FM demodulator that you’ll wire in this experiment, the FM modulator’s output
frequency must not exceed about 15kHz. And, as the sinewave that you’ll use for the message
later in the experiment is 4Vp-p (or ±2V peak), this means that sensitivity must not be greater
than 2.5kHz/volt.
The VCO module’s sensitivity can be adjusted using its Gain control and the next part of the
experiment gets you to do so.
15. Adjust the VCO module’s Gain control for a 15kHz output.
Note: Take care here – You’re adjusting the VCO module’s output frequency using the
Gain control and not its Frequency Adjust control.
Note: As the VCO module’s operation is fairly linear, the new output frequency should be
about 5kHz.
18. Return the scope’s Trigger Source control to the CH1 (or INT) position.
19. Locate the Twin Pulse Generator module and turn its Width control fully anti-clockwise.
20. Set the Twin Pulse Generator module’s Delay control fully anti-clockwise.
100kHz
SINE WIDTH
100kHz
COS
100kHz Q2
DIGITAL
8kHz
DIGITAL
2kHz
DIGITAL DELAY
2kHz
SINE
CLK Q1
Figure 6
23. Adjust the Twin Pulse Generator module’s Width control for an output pulse that is 12µs
long.
Note: Generally speaking, the longer the pulse the greater it’s DC component and, in the
case of the zero-crossing detector, the greater the size of the recovered message.
However, the pulses cannot be too long otherwise the circuit’s operation breaks down due
to other performance parameters of the TPG module. In this case, 12µs is a compromise.
CHANNEL
GND BPF
VDC GAIN
IN OUT BASEBAND
WIDTH LPF
RECTIFIER
FREQ
SPEECH ADDER
Q2
DIODE & RC LPF
HI NOISE
A EXOR LO
DELAY
RC LPF
VCO SINE SIGNAL CHANNEL
INPUT OUT
B A+B CLK Q1
Figure 7
The additions to the set-up can be represented by the block diagram in Figure 8 on the next
page.
FM Demodulated
ZCD
signal message
To Ch.2
Figure 8
The entire set-up can be represented by the block diagram in Figure 9 below.
Message
To Ch.1
Demodulated
ZCD
message
DC V
To Ch.2
10kHz rest
frequency
FM modulator FM demodulator
Figure 9
26. Vary the Variable DCV module’s DC Voltage control left and right.
Note: If the FM demodulator is working, the DC voltage out of the Baseband LPF should
vary as you do though it will be a small voltage.
Tip: If this doesn’t happen, check that the scope’s Channel 2 Input Coupling control is set
to the DC position before you start checking your wiring.
27. Rearrange the scope’s connections to the set-up as shown in Figure 10 below.
CHANNEL
GND BPF
VDC GAIN
IN OUT BASEBAND
WIDTH LPF
RECTIFIER
FREQ
SPEECH ADDER
Q2
DIODE & RC LPF
HI NOISE
A EXOR LO
DELAY
RC LPF
VCO SINE SIGNAL CHANNEL
INPUT OUT
B A+B CLK Q1
Figure 10
The new scope connections can be shown using the block diagram in Figure 11 on the next page.
Demodulated
ZCD
message
DC V
10kHz
FM modulator FM demodulator
Figure 11
Question 1
Why is the FM signal no-longer a sinewave? Tip: If you’re not sure, see the preliminary
discussion.
28. Vary the Variable DCV module’s DC Voltage control left and right to model the FM signal’s
continuously changing frequency.
29. As you perform the step above, examine the waveshape of the Comparator’s output.
Question 2
What type of waveform does the Comparator output?
A squarewave.
Question 3
What does this tell us about the DC component of the comparator’s output?
As the squarewave’s duty cycle never changes, its DC component is always the same
size.
CHANNEL
GND BPF
VDC GAIN
IN OUT BASEBAND
WIDTH LPF
RECTIFIER
FREQ
SPEECH ADDER
Q2
DIODE & RC LPF
HI NOISE
A EXOR LO
DELAY
RC LPF
VCO SINE SIGNAL CHANNEL
INPUT OUT
B A+B CLK Q1
Figure 12
The new scope connections can be shown using the block diagram in Figure 13 below.
Demodulated
ZCD
message
DC V
10kHz
FM modulator FM demodulator
Figure 13
32. As you perform the step above, compare the outputs from the Comparator and the Twin
Pulse Generator module (the ZCD).
Question 4
What type of waveform does the ZCD output?
Question 5
As the FM signal changes frequency so does the ZCD’s output. What aspect of the signal
changes to achieve this?
Question 6
What does this tell us about the DC component of the comparator’s output?
As the duty cycle of the ZCD’s output changes, its DC component changes also.
33. Rearrange the scope’s connections to the set-up as shown in Figure 14 below.
CHANNEL
GND BPF
VDC GAIN
IN OUT BASEBAND
WIDTH LPF
RECTIFIER
FREQ
SPEECH ADDER
Q2
DIODE & RC LPF
HI NOISE
A EXOR LO
DELAY
RC LPF
VCO SINE SIGNAL CHANNEL
INPUT OUT
B A+B CLK Q1
Figure 14
The new scope connections can be shown using the block diagram in Figure 15 below.
ZCD's o/p
To Ch.1
Demodulated
ZCD
message
DC V
To Ch.2
10kHz
FM modulator FM demodulator
Figure 15
35. As you perform the step above, compare the outputs from the Twin Pulse Generator
module (the ZCD) and the Baseband LPF.
Tip: You may find it helpful to set the scope’s Channel 2 Vertical Attenuation control to
0.5V/div setting.
Question 7
If the original message is a sinewave instead of a variable DC voltage, what would you
expect to see out of the Baseband LPF?
36. Disconnect the plug to the Variable DCV module’s VDC output.
Note: Leave the other plug that’s connected to the module’s GND output in place.
CHANNEL
GND BPF
VDC GAIN
IN OUT BASEBAND
WIDTH LPF
RECTIFIER
FREQ
SPEECH ADDER
Q2
DIODE & RC LPF
HI NOISE
A EXOR LO
DELAY
RC LPF
VCO SINE SIGNAL CHANNEL
INPUT OUT
B A+B CLK Q1
MASTER
SIGNALS
100kHz
SINE
100kHz
COS
100kHz
DIGITAL
8kHz
DIGITAL
2kHz
DIGITAL
2kHz
SINE
Figure 16
This modification to the FM modulator can be shown using the block diagram in Figure 17 on the
next page. Notice that the message is now provided by the Master Signals module’s 2kHz SINE
output.
Message
To Ch.1
Master Signals VCO
FM signal
2kHz
38. Set the scope’s Channel 2 Input Coupling control to the AC position.
39. Adjust the scope’s Timebase control to view two or so cycles of the Master Signals
module’s 2kHz SINE output.
Note: If your set-up is working correctly, the FM demodulator’s output should be the
same as the message (with some phase shift).
Question 8
What does the FM modulator’s output signal tell you about the ZCD signal’s duty cycle?
41. To verify your answer to the question above, use the scope’s Channel 2 input to examine
the output of the ZCD.
Tip: Leave the scope’s Channel 1 input connected to the Master Signals module’s 2kHz
SINE output.
42. Locate the Tuneable Low-pass Filter module and set its Gain control to about the middle
of its travel.
43. Set the Tuneable Low-pass Filter module’s Cut-off Frequency Adjust control to about the
middle of its travel.
TUNEABLE
LPF
f Cx10 0
fC
GAIN
IN OUT
Figure 18
46. Adjust the signal out of the Tuneable Low-pass Filter module’s fC×100 output to 200kHz.
Note 2: Once the fC×100 output is 200kHz, the Tuneable Low-pass Filter module’s cut-
off frequency is 2kHz.
CHANNEL
GND BPF -6dB
DELAY
RC LPF
VCO SINE SIGNAL CHANNEL IN OUT
INPUT OUT
B A+B CLK Q1
VARIABLE TUNEABLE
DCV LPF
+5V
VDC
f Cx10 0
GND
VDC
fC
SPEECH
A EXOR
GAIN
B A+B IN OUT
Figure 19
51. Without wearing the headphones, plug them into the Buffer module’s headphone socket.
53. As you perform the next step, set the Buffer module’s Gain control to a comfortable
sound level.
54. Talk, sing or hum while watching the scope’s display and listening on the headphones.