SIGNALPROCESSING&SIMULATIONNEWSLETTER
TUTORIAL 2 DIFFERENTIAL ENCODING
Oneofthecommondifficultiesincommunicationsengineeringisthatoftenthesametermsareusedtorepresent differentideas.DifferentialEncodingisonesuchterm.Wewilldescribeheretwocommonwaysthistermis usedandunlessyouknowthesedifferences,theycanleadtoconfusion.
DifferentialEncodingIsusedtoprovidepolarityreversalprotection
Bitstreamsgoingthroughthemanycommunicationscircuitsinthechannelcanbeunintentionally inverted.Mostsignalprocessingcircuitscannottellifthewholestreamisinverted.Thisisalsocalledphase ambiguity.DifferentialEncodingisusedtoprotectagainstthispossibility.Itisoneofthesimplestformoferror protectioncodingdoneonabasebandsequencepriortomodulation. ADifferentialCodingsystemconsistsofamodulo2adderoperationasshownbelow. d in=Datasequencein eout=DifferentiallyEncodeddatasequenceout Encoding
Eout=d in+en1 Hereishowitworks.Letstakeasequenceasshownbelow.TheEncodingcircuitabovehasareference bit(itcanbe0or1,itdoesntmatter).Theincomingdatasequenceisaddedtothisreferencebitandformsthe secondbitoftheencodedsequence.Thisbitisthenaddedtothenextdatabittocontinuetheprocessasshown below.
Decoding
Thedecodingprocessreversestheabove.Theincomingbitsareaddedtogethertorecreatetheinputdata sequence. Therearenowtwopossibilities,1.thatthereceivedsequencewasnotreversedand2.thatitwas.lets seehowthecircuitdealswitheachofthesetwopossibilities. BitSequenceReceivedCorrectly
BitSequenceReceivedReversed
Ineithercase,bythemagicofbinarynumbers,wewereabletogettheoriginalbitsequenceback. DifferentialEncodingUsedtoprovidephasereference
DifferentialEncodingasinDEBPSKorDPSK)isananotherwaytoapplythissameconcept.Although theconceptisexactlythesame,herethepurposeofDifferentialEncodingistoenocodetheinformationinterms ofphasechanges.DPSKorDEBPSKisusedinsituationswherecoherentdetectionisnotpossibleandthesignal phasetransitionsareusedtodecodethedata.Wewilllookatthedetailsofthismodulationinalaterrelease. Summary:MainpurposeofDifferentialEncodingistoprotectagainstpolarityreversalsofinputbit sequences.HenceDifferentiallyEncodeddatasequenceshaveaslightlysuperiorerrorperformance.Differential EncodingisalsousedtoprovideawaytodecodeaBPSKsignal,calledDEBPSKorDPSK.Theoperationis exactlythesameasdescribedabove. Insoftwaresimulation,thereisnochancethatabitsequencewillbereversed.Sowhencreatinga simulationmodelofaDifferentiallyEncodedsequence,wecanignorethisbasebandcoding.However,when modelingaDPSKsystem,weneedtoconsideritsimplicationsinceitisessentialtothesystem.