Enabling a Timer
14-6
ADSP-2126x SHARC Processor Hardware Reference
TMSTAT
register. To enable all three timers in parallel, set all the
TIMxEN
bits in the
TMSTAT
register.
Before enabling a timer, always program the corresponding timer’s Con-
figuration (
TMxCTL
) register. This register defines the timer’s operating
mode, the polarity of the
TIMERx
signal, and the timer’s interrupt behav-
ior. Do not alter the operating mode while the timer is running. For more
information on the
TMxCTL
register, see
“Timer Configuration Registers
The timer enable and disable timing appears in
.
When the timer is enabled, the Count register is loaded according to the
operation mode specified in the
TMxCTL
register. When the timer is dis-
abled, the Counter registers retain their state; when the timer is
re-enabled, the counter is reinitialized based on the operating mode. The
software should never write the counter value directly.
Figure 14-2. Timer PWM Enable and Disable Timing
CCLK
PWMOUT
CCLK
TCOUNT
= M
TC OUNT
= M + 1
TCOUNT
= M + 1
TCOUNT
= M + 1
TIMER ENA BLE
SET
TIMEN
TIMER
ENABLED
T MxP RD = 0x2
T MxW = 0x1
TCOUNT
= XX
TCOUNT
= XX
TCOUNT
= 1
TCOUNT
= 2
TCO UNT
= 4
TCOUNT
= 3
TIMER
DISABLED
TIMER D ISAB LE
SET
TIMDIS
Содержание ADSP-21261 SHARC
Страница 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Страница 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Страница 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Страница 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Страница 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...