You are on page 1of 17

Simulation of digital modulation schemes using MATLAB Simulink

Aim :
The aim of this experiment is to study digital modulation schemes (Amplitude shift keying, Phase
shift Keying and Frequency Shift Keying) and observe corresponding waveforms using Matlab
Simulink.

Equipment:

PC with MATLAB and Simulink

Procedure for ASK Generation:

Formula:

S(t)= c(t) when i/p is1


0 when i/p is 0

where c(t) is carrier signal and i/p is on-off signal

Open the MATLAB, then click on ‘Simulink Library’ in tool bar to open it.

2) Create New Model.

3) Copy the blocks from Simulink library.

5) Click on blocks to enter the parameters (Shown in following Figures)

In Time based mode:

i) Consider Carrier Signal amplitude is 1 volt, Frequency 100Hz, Sampling time is 0.00001 sec
ii) Consider Discrete message signal whose amplitude 2v, period 0.01 and pulse width:50%

6) Save the Model.

7) Run the Model.

8)Finally click on Scope Block to see output waveforms.


ASK model:
Block Parameters-carrier Signal (100Hz)
Block Parameters-Discrete Pulse generator:
Carrier signal:

Binary i/p:
ASK O/P:

Procedure for PSK Generation:

1) Formula:
S(t)= ACCOS(2πfCt) when i/p is1

ACCOS(2πfCt+π) when i/p is 0

where ACCOS(2πfCt) is carrier signal

Open the MATLAB , then click on ‘Simulink Library’ in tool bar to open it.

2) Create New Model.

3) Copy the blocks from simulink library.

5) Click on blocks to enter the parameters(Shown in following Figures)

In Time based mode:

i) Consider Carrier Signal amplitude is 1 volt, Frequency 1000Hz, Sampling time is 0.00001 sec
ii) Consider Discrete message signal whose amplitude 2v, period 0.01 and pulse width:50%

6) Save the Model.


7) Run the Model. (If you want to observe output for n cycles of input then run the model with
simulation runtime equals to n multiples of message signal frequency)

8)Finally click on Scope Block to see output waveforms.

PSK Model

MUX
Procedure for FSK Generation

1) Formula:
S(t) = c1(t) when i/p is 1
= c2(t) when i/p is 0
Where c1(t) and c2(t) are carrier signals of different frequencies.

2) Open the MATLAB, then click on ‘Simulink Library’ in tool bar to open it.

3) Create New Model.

4) Copy the blocks from Simulink library.

5) Click on blocks to enter the parameters (Shown in following Figures)

For Example, (in Time based mode)

i) Consider Discrete pulse generator (binary i/p) amplitude is 1 volt, period :0.01 sec, pulse
width: 50%
ii) Consider Carrier 1 Signal amplitude is 1 volt, Frequency 1000Hz, Sampling time is 0.00001 sec
iii) consider Carrier 2 Signal amplitude is 1volt, Frequency 2000Hz, sampling time is 0.00001 sec

6) Save the Model.

7) Run the Model.


8)Finally click on Scope Block to see output waveforms.

FSK model:

Parameters-Dicrete pulse generator:


Parameters -carrier1 wave:
Parameters -carrier 2 wave:
Binary i/p:

Carrier 1 wave(1000Hz):

Carrier 2 wave(2000Hz):
FSK Output:

Result:

Various digital modulation signals (ASK, PSK, FSK) have been generated and observed using
MATLAB Simulink.

You might also like