EasyManuals Logo

Texas Instruments C28 Series Student Guide

Texas Instruments C28 Series
342 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
Page #130 background imageLoading...
Page #130 background image
General-Purpose Timers
Asymmetric and Symmetric PWM via General Purpose
Timer Compares
PWM switching frequency:
The PWM carrier frequency is determined by the value contained in the period register TxPR,
and the frequency of the clocking signal. The value needed in the period register is:
Asymmetric PWM:
1
periodtimer
period switching
register period
=
Symmetric PWM:
period)2(timer
period switching
register period =
Notice that in the symmetric case, the period value is half that of the asymmetric case. This is
because for up/down counting, the actual timer period is twice that specified in the period register
(i.e. the timer counts up to the period register value, and then counts back down).
PWM resolution:
The PWM compare function resolution can be computed once the period register value is
determined. The largest power of 2 is determined that is less than (or close to) the period value.
As an example, if asymmetric was 1000, and symmetric was 500, then:
Asymmetric PWM:
approx. 10 bit resolution since 2
10
= 1024 1000
Symmetric PWM: approx. 9 bit resolution since 2
9
= 512 500
PWM duty cycle:
Duty cycle calculations are simple provided one remembers that the PWM signal is initially
inactive during any particular timer period, and becomes active after the (first) compare match
occurs. The timer compare register should be loaded with the value as follows:
Asymmetric PWM:
TxCMPR TxPR cycle)duty - (100% =
Symmetric PWM:
TxPR cycle)duty - (100% = TxCMPR
Note that for symmetric PWM, the desired duty cycle is only achieved if the compare register
TxCMPR contains the computed value for both the up-count compare and down-count compare
portions of the timer period.
7 - 16 C28x - Event Manager

Table of Contents

Other manuals for Texas Instruments C28 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C28 Series and is the answer not in the manual?

Texas Instruments C28 Series Specifications

General IconGeneral
BrandTexas Instruments
ModelC28 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals