Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
I. Abstract:
Signal modulation is an important technique in the field of
communication and telecommunications also power control. One of
the analog signal modulation techniques was the pulse width
modulation technique. In this report, we mentioned about the theory
of the pulse width modulation and conduct experiment about PWM
application in Digital Signal Processing using MATLAB and kit
TMS320C5515.
II. Introduction to project:
1. Aim:
- To know about Duty cycle, pulse width, pulse width modulation and
how to apply it.
2. Relevant Theories:
Digital Signal: A signal that is being used to represent data as a sequence of
discrete values; at any given time it can only take on one of a finite number
of values.
2
REPORT
3
REPORT
y = D. ymax+(1-D)ymin .
4
REPORT
5
REPORT
6
REPORT
Step 1: Create message signal from MATLAB and save as file m1.bin
7
REPORT
8
REPORT
Step 2: Reads file m1.bin and create carrier signal (Sawtooth wave)
9
REPORT
Step 3: Compare the 2 signals and generate PWM as output then save as file
pwm.bin
The file pwm.bin in Step 3 was not created although all the codes were
compiled successfully. However, when we generated codes by
CodeBlocks, the program worked successfully.
10
REPORT
11
REPORT
//major.c
#include "usbstk5515.h"
#include "usbstk5515_gpio.h"
#include "usbstk5515_i2c.h"
#include "stdio.h"
#include "stdint.h"
#include "stdlib.h"
fread(m,sizeof(float),1001,ftr);
fclose(ftr);
//Generate back to MATLAB for drawing graph
ftr = fopen("D:/Mup_Projects/MatLab/DSP/Major/m.bin","wb");
fwrite(m,sizeof(float),time_elements,ftr);
fclose(ftr);
14
REPORT
IV. Conclusion
Through the process of implementing the project, although we
failed to generate the final results but our team has improved the
knowledge of pulse width modulation and added the knowledge of
simulation calculation on MATLAB and programming DSP kit on
Code Composer Studio.
V. References
Mathworks.com. (2019). ReferenceEntities. [online] Available at:
https://www.mathworks.com/help/matlab/.
15