You are on page 1of 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