You are on page 1of 2

PPM

DEFINE AND EXPLAIN:


Pulse-position modulation (PPM) is a form of signal modulation in which M message bits are encoded
by transmitting a single pulse in one of   possible time-shifts. This is repeated every T seconds, such
that the transmitted bit rate is M/T bits per second. It is primarily useful for optical
communications systems, where there tends to be little or no multipath interference.

CODE
pulsewidth = 0.1;
fs = 500e3; % sampling frequency
fsub = 62.5e3; % subcarrier frequency (+/- carrier)
fc = 125e3; % carrier frequency
carrierampl = 10; % carrier amplitude (x stronger than signal)

data = [ 0 1 1 0 0 0 0 1 0 1 0 1 1 1] * 0.4; % (avoid pulse overlap)


fs = 500e3;
ppm = modulate(data, 1000, fs, 'ppm', pulsewidth);
t = 0: 1/fs : 1/fs*(length(ppm)-1);
po = rand(); % random phase offset
rf = ppm .* cos(2*pi*fsub*t + po);
[ppmam, t] = modulate(rf, fc, fs, 'amdsb-tc', carrierampl);
plot(t, ppmam)
15

10

-5

-10

-15
0 0.002 0.004 0.006 0.008 0.01 0.012 0.014

You might also like