Skip to content

A Python/MATLAB project which implements pulse-code modulation (PCM) and delta modulation (DM).

License

Notifications You must be signed in to change notification settings

arasgungore/PCM-and-DM-modulators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCM-and-DM-modulators

A Python/MATLAB project which implements pulse-code modulation (PCM) and delta modulation (DM).

This project was assigned for the Communication Engineering (EE 374) course in the Spring 2022 semester. For reference, check out the instructor of this course, Ali E. Pusane's implementation of delta modulation (DM) in Python.

Run on Terminal

matlab -nodisplay -nosplash -nodesktop -r "run('main.m');exit;"

Description

Consider the message signal m(t) = −cos(200πt) + sin(50πt).

  • Task 1: Pulse Code Modulation: Consider the message signal m(t) for the time interval (0,2) seconds. Obtain the pulse code modulated binary sequence if the signal is sampled at the Nyquist sample rate and L=128 quantization levels are used. You can start labeling the quantization labels from the top. The first sample is taken at t=Ts. Your code should display the binary representation of the first 10 samples on the screen, in the format “0110011-1010010-... ”.
  • Task 2: Delta Modulation: Consider the message signal m(t) for the time interval (0,2) seconds. Obtain the delta modulated binary sequence if the signal is sampled at four times the Nyquist sample rate. The first sample is taken at t=Ts. Your code should display the binary representation of the first 20 samples on the screen.

Figures

Delta Modulation (DM)

Python

Figure

MATLAB

Figure

Author

👤 Aras Güngöre