Line Coding-Simulink

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Kocaeli University, Electronics and Telecommunications Engineering Department

Digital Communications Laboratory

Experiment 3: Line Coding – Simulink Lab Report (11.03.2024)

Name-Surname-Number:
Name-Surname-Number:
Name-Surname-Number:

PART A. LINE CODING


Construct below block diagram in Simulink. Set block parameters appropriately in order to generate
UNIPOLAR line coding scenarios in Table 1 (“Bernoulli Binary” block generates only unipolar random
data)

Table-1
Parameter Value
Line Coding Unipolar RZ
rb 1000 bps, 3000 bps
Vp 5V,10V
Duty Cycle (𝜏/𝑇𝑏) %50, %75, %100*
*Can be considered as NRZ
Q1) How does changing one of the parameters given in Table 1 (𝑟𝑏 , Vp and Duty Cycle) effects the
bandwidth and power of frequency spectrum.

Set block parameters appropriately to generate POLAR line coding scenarios in Table 2 (To generate
POLAR line coding we used “Unipolar to Bipolar Converter” block just after “Bernoulli Binary” block
in order to convert unipolar to polar).
Table-2
Parameter Value
Line Coding Polar RZ
rb 1000 bps, 3000 bps
Vp 5V,10V
Duty Cycle %50, %75, %100*
*Can be considered as NRZ
Q2) Run the code for 10 secs. Observe spectrum analyzer outputs for each
polar NRZ and unipolar NRZ signals. Do they have included any DC
component? Which one has greater DC values? Explain it.

For frequency spectrum representation use the parameter set in the right
figure.
Q3) Copy and paste scope and spectrum analyzer outputs to the given spaces
below.
Polar RZ, %50 duty cycle, Vp=5V, Rb=1 [kbps] Polar RZ, %50 duty cycle, Vp=5V, Rb=3 [kbps]
Run the code for 5 secs Run the code for 5 secs

Scope OUTPUT1 for 5 bit times Scope OUTPUT2 for 5 bit times

Spectrum analyzer OUTPUT1 (Y-axis: Power Spectrum analyzer OUTPUT2 (Y-axis: Power
[dBm]) [dBm])

Q4) Based on your answer to Q3, Comment on differences on BW, power consumption and data rate.
Q5) Copy and paste scope and spectrum analyzer outputs to the given spaces below.

Polar RZ, %50 duty cycle, Vp=5V, Rb=1 [kbps] Polar RZ, %75 duty cycle, Vp=5V, Rb=1 [kbps]

Scope OUTPUT1 for 5 bit times Scope OUTPUT2 for 5 bit times

Spectrum analyzer OUTPUT1 (Y-axis: Power Spectrum analyzer OUTPUT2 (Y-axis: Power
[dBm]) [dBm])

Q6) Based on your answer to Q5; Comment on BW, power consumption and data rate differences on
outputs’ scope and spectrum.

Q7) According to your observations, fill the table below. Blue arrow stands for causal (cause and result)
relationship. Select only the true item(s) and delete the others.
Increase in data rate BW increase / BW decrease / None
Increase in duty cycle BW increase / BW decrease / None
Increase in duty cycle data rate increase / data rate decrease / None
Decrease in duty cycle data rate increase / data rate decrease / None
Decrease in duty cycle BW increase / BW decrease / None
Decrease in data rate BW increase / BW decrease / None
Power consumption increase / Power
Increase in duty cycle
consumption decrease / None
In terms of
DC presence in line coding Advantage / disadvantage
error rate
Time synchronization information Present in Unipolar / polar / both

PART B. INTER SYMBOL INTERFERENCE


Q8) Model the communication channel as a Low Pass Filter (Use butter block in Simulink). Change the
cutoff frequency between 1 kHz and 10 kHz to fill the table below by copying & pasting filter outputs.
LINE CODED DATA Scope outputs
Copy & paste scope output for 8 bit times

Scope filter output for


fc=1kHz

Copy & paste scope output for 8 bit times

Scope filter output for


fc=5kHz

Copy & paste scope output for 8 bit times

Scope filter output for


fc=10kHz

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy