Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

about dpsk matlab cdes

Status
Not open for further replies.

anup kumar

Newbie level 1
Joined
Sep 2, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
i want matlab codes for dpsk modulation & demodulation
 

Kumar, this is very simple. Here are my functions:

function [Passband] = DPSK_mod(Baseband)

%%The DPSK reference phase
dk_1 = 1 ;
N = length(Baseband);

%%The DPSK feedback loop
for j = 1 : N

Passband(j) = not(xor(dk_1,Baseband(j)));
dk_1 = Passband(j) ;

end

%% The Amplitude level shifter

Passband = 2*Passband -1




%%% The demodulator
function [Baseband] = DPSK_demod(Passband)


%% The Amplitude level recovery

Passband = (Passband + 1)/2;

%%The DPSK reference phase
dk_1 = 1 ;
N = length(Passband);

%%The DPSK feedback loop
for j = 1 : N

Baseband(j) = not(xor(dk_1,Passband(j)));
dk_1 = Passband(j) ;

end
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top