General-Purpose Timers
PWM Outputs and Interrupts
Generated Outputs and Interrupts
Generated Outputs and Interrupts
TxCMP
TxCMP
/
/
TxPWM
TxPWM
(active high)
(active high)
Compare
Compare
Ints
Ints
Period
Period
Ints
Ints
Underflow
Underflow
Ints
Ints
PWM period #2
PWM period #2
T
im
er Coun
ter
T
im
er C
oun
ter
Va
lu
e
Val
u
e
PWM period #1
PWM period #1
Comp1
Comp1
Comp2
Comp2
CPU Changes
CPU Changes
Period Reg. Buffer
Period Reg. Buffer
anytime here
anytime here
New Period is
New Period is
Auto
Auto
-
-
loaded on
loaded on
Underflow here
Underflow here
TxCMP
TxCMP
/
/
TxPWM
TxPWM
(active low)
(active low)
GP Timer Registers
As was the case with the period register, buffering is present for each timer compare register.
Software writes a value to the
compare register buffer
, from which the TxCMPR register is
automatically loaded on one of three user selected events:
1. timer underflow (TxCNT = 0)
2. timer underflow or period match
3. immediately
The event selection is made using bits 2 and 3 of the TxCON register, and allows for on-the-fly
compare value changes. Note that the compare register buffer is static in that if no change in the
current compare value is desired, one is not required to write the same value to the buffer on
successive timer cycles.
Each GP Timer unit has its own
Symmetric/Asymmetric PWM Waveform Generator
, which as its
name implies, is capable of generating two types of PWM. The waveform generator uses the
timer compare signal as an input, and outputs a PWM signal to the
Output Logic Unit
. The
output logic lets the user select the polarity of the TTL signal on the TxPWM/TxCMP pin (e.g.
active high or low) or alternately force the pin either high or low. The selection is made using
bits 0-1, and 2-3 of the GPTCONA register for timers 1 and 2 respectively (EVA), and bits 0-1,
and 2-3 of the GPTCONB register for timers 3 and 4 respectively (EVB).
7 - 12
C28x - Event Manager
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...