Sei sulla pagina 1di 4

MATLAB Digest | Academ i c Ed itio n

Teaching Digital Communication Theory with


Simulink at Brigham Young University
By Michael Rice, Ph.D., Brigham Young University

Students must understand the principles of digital communication before they


Products Used
work on actual systems. When digital communication coursework is nothing but
MATLAB
theory, however, students leave their core classes swimming in information and
Simulink
unsure how all the pieces fit together. They know how to manipulate equations,
Communications Blockset
but have no idea how a real system works.
Signal Processing Blockset

In ECEn 485: Introduction to Digital Course Overview


Communication Theory, a senior-level elec- Introduction to Digital Communication Laying the Foundation with
tive at Brigham Young University, I present Theory is taken by 25 to 40 seniors each year. Phase-Locked Loops
the theory and its implementation at the As a prerequisite, students must complete a At one point in my career, I taught PLLs
same time. Students use MATLAB and junior-level signals and systems course with without using MATLAB and Simulink.
Simulink to design and test digital modems lab sessions conducted using MATLAB. Because so many of the students didnt
and communication systems. Simulink en- Familiarity with Simulink is not required. understand the mathematical derivations
ables me to link theory to concrete imple- and theory, I was tempted to drop the
The main goals are for the students to un-
mentation in an interactive environment.
derstand the basic structure of quadrature
I can respond to a question in lecture by
amplitude modulation (QAM), including
quickly assembling an example in Simulink About the Author
both modulators and demodulators, and to
and running a simulation. The students see
understand how digital signal processing is
the theory embodied in the system on the Michael Rice is the Jim Abrams Profes-
used to modulate or demodulate a signal.
screen. I ask them to predict what will hap- sor in the Department of Electrical and
The three one-hour lectures each week Computer Engineering at Brigham
pen if we change this parameter or that, and
cover signal space concepts, modulation, Young University. Professor Rice re-
then show them the results of each change in
phase-locked loops (PLLs), matched filter ceived his Ph.D. from Georgia Tech, At-
the output. In this way, the theory becomes
and correlation detection, synchroniza- lanta, GA. In 1994 and 1995, he was
tangible, and they are no longer intimidated
tion, and performance. The weekly three- a NASA/ASEE Summer Faculty Fellow
by the math. at the Jet Propulsion Laboratory, work-
hour labs, which are all completed using
Using this approach, I am able to guide ing on land mobile satellite systems. His
Simulink, begin with baseband signaling,
students through increasing levels of dif- research interests are in the areas of
progressing to binary phase shift keying
ficulty, covering everything from binary digital communication theory and error
(BPSK) and quaternary phase shift keying
control coding, with a special interest in
baseband signaling to symbol timing syn-
(QPSK), QAM, carrier phase synchroniza- applications to aeronautical telemetry
chronization in a single semester.
tion, and symbol timing synchronization. and software radio design.

1 MATLAB Digest | Ac a d e m i c Ed i t i o n www.mathworks.com


Key:
MF= matched filter.
N = downsampling by a factor of N.
LUT = lookup table.
N = upsampling by a factor of N.
FIR= finite impulse response filter.

Figure 1a. A basic QPSK modulator.

Figure 1b. A basic QPSK detector.

discussion of PLLs from the course, but the Bringing the Textbook to Life gogically, because students can take a block
PLL is a fundamental part of digital com- QPSK is among the most popular digital diagram in a book and hook together Simu-
munication, QAM, carrier phase synchro- carrier modulations in use today. Block dia- link blocks to build a version that they can
nization, and timing synchronization, and grams of the basic modulator and detector simulate. Suddenly, the theory in the book
I felt that I had to find a way to make the designs (Figures 1a and 1b) are staples of comes alive.
concept clear. digital communication textbooks. For example, in the fourth lab in
When I teach the principles of PLLs To fully understand how these designs my course, the students build the de-
today, I build a PLL in Simulink and dem- work, students need more than a static rep- signs shown in Figures 1a and 1b using
onstrate it in class using plots and scopes resentation on a page; they need to interact Simulink, Communications Blockset,
to illustrate signal characteristics. The stu- with the systems in a dynamic environ- and Signal Processing Blockset. They
dents see right away what a PLL does and ment. Simulink diagrams map easily to parameterize the blocks and run simula-
how it works. They are then ready to tackle typical textbook diagrams of communica- tions, using an AWGN channel block to
more advanced concepts. tion systems. This is very powerful peda- add white Gaussian noise to the signal.

2 MATLAB Digest | Ac a d e m i c Ed i t i o n www.mathworks.com


the ground up. When they eventually dis-
cover the Demodulator and other advanced
blocks, it is too latetheyve already learned
how to build their own!

From the Basics to Symbol


Timing Synchronization in
14 Weeks
Even for engineers, the math behind digital
communication can be intimidating. In my
class, when I write down a complex equa-
tion and see the students quizzical expres-
sions, I can say, This is just the equation for
what youve already seen in Simulink. That
removes the intimidation and inspires them
to make the effort to understand what the
Figure 2. Students building Simulink models of the QSPK detector. math is saying.

Simulink enables me to cover an extraor-


Before the lab, I create a file with modulated In the labs, I limit the students to using dinary amount of material in the 14 lab ses-
data of a simple ASCII string. I have the stu- a small subset of the blocks available in the sions. In fact, in the final month, we explore
dents use a Signal From Workspace block to Simulink environment. For example, they two topics rarely covered in undergradu-
feed this modulated data into their detectors can use the Upsample and Downsample ate digital communication courses: carrier
and extract the hidden message (Figure 2). blocks from Signal Processing Blockset, phase synchronization and symbol timing
They submit the message, with an eye dia- but not the Demodulator blocks. I want the synchronization. In the final lab, students
gram and signal space projections, as con- students to learn how the more advanced design and simulate a QPSK system with
firmation that their designs worked. blocks work by building them first from symbol timing synchronization (Figure 3).
This is a challenge because it involves com-
bining many different pieces of theory and
implementation. While students often un-
derstand individual components, without
Simulink it would be all but impossible for
them to understand how all the components
work together as a complete system.

By the end of the course, they can build


and simulate real digital communication
systems using Simulink and MATLAB,
and they understand the design trade-offs
involved in meeting performance specifica-
tions for communication systems.

Figure 3. Block diagram of QPSK with symbol timing synchronization, incorporating a direct digital
synthesizer (DDS) and a timing error detector (TED).

3 MATLAB Digest | Ac a d e m i c Ed i t i o n www.mathworks.com


Resources
Preparing Students for Post-
visit
Graduate Work and Careers
www.mathworks.com/academia
in Industry
MATLAB and Simulink are powerful Technical Support
teaching tools. They engage students in an www.mathworks.com/support

interactive environment that encourages


Online User Community
exploration. With Simulink the theory be- www.mathworks.com/matlabcentral
comes tangible; the block diagrams come
to life, and the students see how the com- Demos
www.mathworks.com/demos
ponents work.

Just as important, students leave the Training Services


www.mathworks.com/training
course with a complete picture of digital
communications, well-prepared for post- Third-Party Products
graduate work and careers in industry. I and Services
www.mathworks.com/connections
hear from many of my students that pro-
spective employers are impressed that grad- Worldwide CONTACTS
uating seniorsnot graduate students www.mathworks.com/contact
have such a deep understanding of digital
e-mail
communication. Of course, many engineer- info@mathworks.com
ing companies use Simulink for their own
design work, which gives our students an-
other advantage. 2009 The MathWorks, Inc. MATLAB and Simulink
are registered trademarks of The MathWorks, Inc. See
www.mathworks.com/trademarks for a list of additional
trademarks. Other product or brand names may be trade-
marks or registered trademarks of their respective holders.

91646v00 04/09

For More Information

The MathWorks in Academia


www.mathworks.com/academia

Simulink exercises from ECEn 485:


Introduction to Digital Communication
Theory
www.mathworks.com/EE485_simulink

4 MATLAB Digest | Ac a d e m i c Ed i t i o n www.mathworks.com

Potrebbero piacerti anche