0% found this document useful (0 votes)
239 views2 pages

Simulink Exercises For - Digital Communications - A Discrete-Time Approach, - by M

The document describes a Simulink exercise for designing a binary phase-shift keying (BPSK) detector. It provides specifications for a BPSK signal and instructions to design a modulator and detector, connect them, and test the detector design by processing a test signal and verifying the output. The exercise then has the user replace the modulator with a file source and process an actual BPSK signal to determine the encoded message.

Uploaded by

binesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
239 views2 pages

Simulink Exercises For - Digital Communications - A Discrete-Time Approach, - by M

The document describes a Simulink exercise for designing a binary phase-shift keying (BPSK) detector. It provides specifications for a BPSK signal and instructions to design a modulator and detector, connect them, and test the detector design by processing a test signal and verifying the output. The exercise then has the user replace the modulator with a file source and process an actual BPSK signal to determine the encoded message.

Uploaded by

binesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

11/1/2016

SimulinkExercisesfor"DigitalCommunications:ADiscreteTimeApproach,"byM.Rice

DIGITALCOMMUNICATIONS:ADISCRETETIMEAPPROACH
BYMICHAELRICE
SimulinkExercises | SimulinkFiles | Aboutthetextbook |

BinaryPhaseShiftKeying(BPSK)
Introduction
Inthisexercise,youwilldesignaBPSKdetectortoprocessmodulateddatacontainedinthefilebpskdata.mat

TextbookReferences
MaryQAM:Section5.3(pp.238260),discretetimerealizations:Section5.3.2(pp.256260),partialresponsepulseshapes:SectionA.2
(pp.682687).

Specifications
normalizedsamplerate:

8samples/bit

normalizedcarrierfrequency: 0.25cycles/sample
carrierphase:

0degrees

averageenergy:

pulseshape:

SRRC(50%excessbandwidth,span=12symbols)

symbolclockoffset:

inputfile

bpskdata.mat

inputmessagelength:

154symbols(154bitsor22ASCIIcharacters)

PreliminaryDesign
DesigntheDetector

Designthedetector,shownbelow,usingblocksfromtheSimulink,DSPSystem,andCommunicationsSystemToolboxes.

TesttheDetectorDesign

Youshouldtestthedetectoryoudesignedbyconstructingamodulatortoproduceatestsignal.Thefollowingprocedurestepsyouthroughthis
designprocess:

1.Designthemodulatorshownbelowtomeettheabovespecificationsexceptmaketheinputthefoursymbolsequence10
01.

2.Connecttheoutputofyourmodulatortotheinputofyourdetector.
3.ConnecttheoutputofyourdetectortoaToWorkspaceblock(besuretoopenthePropertiesDialogWindowandsetthe
Saveformattomatrix)andaScopeblock.
4.Setthesimulationparametersasfollows:
SimulationTime
StartTime: 0.0
StopTime: (12+4)*81
SolverOptions
Type:
Fixedstep
Solver:

discrete(nocontinuousstates)

Fixedstepsize: auto
Taskingandsampletimeoptions
Periodicsampletimeconstraint:

Unconstrained

Taskingmodeforperiodicsampletimes: SingleTasking
Note:thestoptimeiscomputedasfollows:12=2*(span/2)[thedelayofthepulseshapingfilterplusthedelayofthe
matchedfilter]4=thenumberofdatasymbols8=thenumberofsamples/symbol.Wesubtractbecausethestarttime
ist=0.0.
5.Runthesimulationandplotthedemodulatorinputandthematchedfilteroutputonthesamesetofaxes.Thesimulation
produces18downsampledmatchedfilteroutputsthelastfourcorrespondtothesequence1001.Checkthevaluesin
theworkspacetoseeiftheyagreewithinputsequence1001.
6.AdjusttheoffsetoftheDownsampleblocktoobtainthepropervalues.

Exercise
1.ReplacethemodulatorblockswiththeFromFileblockandsettheFilenametobpskdata.matandthesampletimeto1.
2.Setthesimulationparametersasfollows:
SimulationTime
StartTime: 0.0
StopTime: (12+154)*81
SolverOptions
Type:
Fixedstep
Solver:

discrete(nocontinuousstates)

Fixedstepsize: auto
Taskingandsampletimeoptions

http://ricesimulink.groups.et.byu.net/bpsk.phtml

1/2

11/1/2016

SimulinkExercisesfor"DigitalCommunications:ADiscreteTimeApproach,"byM.Rice
Periodicsampletimeconstraint:

Unconstrained

Taskingmodeforperiodicsampletimes: SingleTasking
3.Runthesimulation.
4.Thedetectorproduces166symbolestimates.Thelast154ofthesecorrespondto227bitASCIIcharacters.Determine
themessageusingeitheryourMatlabscriptoranASCIITable.
5.Plottheeyediagramandsignalspaceprojections.

BrighamYoungUniversityProvo|FultonCollegeofEngineeringandTechnology|TheChurchofJesusChristofLatterdaySaints
DepartmentofElectricalandComputerEngineering,BYU,Provo,UT84602(801)4224012Copyright2009.AllRightsReserved

http://ricesimulink.groups.et.byu.net/bpsk.phtml

2/2

You might also like