EasyManua.ls Logo

Texas Instruments TMS320F2837 D Series

Texas Instruments TMS320F2837 D Series
324 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ePWM
TMS320F2837xD Microcontroller Workshop - Control Peripherals 7 - 23
PWM Computation Example
Symmetric PWM Computation Example
Determine TBPRD and CMPA for 100 kHz, 25% duty
symmetric PWM from a 100 MHz time base clock
CMPA = (100% - duty cycle)*TBPRD = 0.75*500 = 375
TBPRD =
f
TBCLK
f
PWM
2
2
11
100 kHz
100 MHz
..
= 500=
Counter
Compare
Period
PWM Pin
f
TBCLK
= 100 MHz
CA
CA
.
.
f
PWM
= 100 kHz
(T
PWM
= 10 ms)
(T
TBCLK
= 10 ns)
Asymmetric PWM Computation Example
Determine TBPRD and CMPA for 100 kHz, 25% duty
asymmetric PWM from a 100 MHz time base clock
CMPA = (100% - duty cycle)*(TBPRD+1) - 1 = 0.75*(999+1) - 1 = 749
TBPRD =
f
TBCLK
f
PWM
100 kHz
100 MHz
- 1 = 999- 1 =
Counter
Compare
Period
PWM Pin
P
CA
f
TBCLK
= 100 MHz
.
.
f
PWM
= 100 kHz
(T
PWM
= 10 ms)
(T
TBCLK
= 10 ns)

Table of Contents

Other manuals for Texas Instruments TMS320F2837 D Series

Related product manuals