Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1-6
School of Electrical System Engineering, Universiti Malaysia Perlis, 01000, Perlis, Malaysia
Faculty of Computer Science and Information Technology, Universiti Teknologi Malaysia, 81310 Johor, Malaysia
faridun@unimap.edu.my, m.fayzul@.unimap.edu.my, baha@unimap.edu.my
I.
INTRODUCTION
IV.
2.
3.
Load TxCMPR with values corresponding to the online calculated widths (duty cycles) of PWM pulses
V.
143
Comp
pare register vaalue calculationn:
PR
ROGRAMMING OF TMS320F2
2812
Fo
or the prograamming, softw
ware called Coode Composerr
Studiio (CCS) will be use. This
T
softwaree comes withh
TMS320F2812 Dig
gital Signal Prrocessor and especially
e
beenn
use for
f design the programming and uploadin
ng the program
m
into the
t hardware (eZdsp
(
2812 Board)
B
[6, 7]. CCS 3.0 weree
desig
gned for the Teexas Instrumen
nts TMS320Cx
x digital signaal
proceessor (DSP) pllatforms, The CCS
C
applicatioon provides ann
integrrated environnment that comprises the
t
followingg
capab
bilities [2]:
x
C/C++ com
mpiler, assembbly optimizer an
nd linker (codee
generation
n tools)
Simulator
Figure 4. Period T
Time and Comparee value setting in CCS.
C
The calculated
c
Periood Time and Compare
C
value need to be
set in theeir respective registers. Fig. 4 shows the registers that
need to be
b set, in order to get the requuired PWM ouutput in the
main proogram. Fig. 5 sshows the corrresponding PW
WM output
generated
d by the calculated period tiime and compare values.
From thee figure, it is sseen that the generated
g
PWM
M output is
exactly thhe same as the desired frequeency and the duuty cycle.
(1))
w
where,
= 12550
A. Fix
F Frequency And
A Duty Cyclle PWM
The frequency and
a the duty cyycle generated by DSP can bee
contrrol by following the steps desscribed in Section V. In orderr
to crreate a PWM Signal with specific
s
frequeency and dutyy
cyclee, the value of Period Time and
a Compare that
t
need to bee
writteen in the proogramming reegister is firsst need to bee
calcu
ulated. In ord
der to calculaate the valuees, the properr
SYSC
CLKOUT freequency need
ds to be knnown. In thiss
TMS320F2812 DSP
P application, its SYSCLKO
OUT frequencyy
0MHz. To gen
nerate the PWM
M with specificc frequency andd
is 150
duty cycle, the follo
owing equationns are used exteensively.
(3)
(2))
144
V
VII.
CONCLUS
SION
The TMS320F2812
T
Digital Sign
nal Processor has high
capabilityy usage in pow
wer electronic converter.
c
To achieve
a
this
target, the programmingg using Code Composer
C
Studdio need to
be explorre in detail so that the desireed PWM wavee form can
be easily control by useer.
Figurre 7. Example off a figure caption Example
E
PWM outtput by DSP with
Dead Band = 4.4 s.
REFERENCESS
[1]
Figure 8.
[2]
C. G
Generation of Variable
V
Frequency and Dutyy Cycle with
D
Dead
Band Con
ntrol
By
y setting the programming
p
code,
c
the variaable frequencyy
and Duty
D
Cycle PW
WM can be gen
nerated. The changing
c
of thee
frequ
uency and dutyy cycle can be made via key
yboard input orr
analo
og input. The variable can be change usiing the Watchh
Regisster in CCS as shown in Fig. 8. Fig. 9 show
ws the program
m
codess need to be ad
dded within thhe while loop in
i the program
m
to maake it possiblee to change thhe frequency, duty
d
cycle andd
Dead
d Band through
h variables. Thhe example PW
WM waveform
m
generrated by the pro
ogramming is shown in Fig. 10.
[3]
[4]
[5]
[6]
[7]
[8]
145
Kun Shan
S
Lin, Gene A. Frantz and Ray Simar,
S
The TMS332O Family of
Digitaal Signal Processorrs.
Baris Bagci, Programm
ming and use of TMS320F2810 University of
Applied Science Colognne, Germany.
Jenniffer Eyre and Jefff Bier, The Evolu
ution of DSP Proocessors from
early Architectures
A
to thhe Latest Develo
opments
H. Maatsuo, F. Kurokaw
wa, Z. Luo, Y. Maakino, Y. Ishizuka, T. Oshikata.
Partiaally Resonant Activve Filter Using thhe Digital PWM C
Control Circuit
with the
t DSP. IEEE TE
ELESCON, 2000.
Timotthy L. Skvarenina,, The Power Elecctronics Handboook Timothy
L. Skvvarenina, The Pow
wer Electronics Handbook
H
TMS3320F28x Event Manager (EV) Perippheral Reference Guide. Texas
Instru
uments,May 2002.
eZdspp F2812 Technical Reference. Spectrrum Digital, Inc., July
J
2002.
TMS3320F28x DSP Periipherals Referencee Guide. Texas Instruments,
May 2002.
2