ADSP-214xx SHARC Processor Hardware Reference
16-21
Peripheral Timers
Programming Model
The section describes which sequences of software steps are required to get
the peripheral working successfully.
To enable an individual timer, set the timer’s
TIMxEN
bit in the
TMSTAT
reg-
ister. To disable an individual timer, set the timer’s
TIMxDIS
bit in the
TMSTAT
register. To enable both timers in parallel, set all the
TIMxEN
bits in
the
TMSTAT
register.
Before enabling a timer, always program the corresponding timer’s config-
uration (
TMxCTL
) register. This register defines the timer’s operating mode,
the polarity of the
TIMERx
signal, and the timer’s interrupt behavior. Do
not alter the operating mode while the timer is running.
mation, see “Timer Configuration Registers (TMxCTL)” on page A-270.
PWM Out Mode
Use the following procedure to configure and run the timer in PWM out
mode.
1. Reset the
TIMEN
bit and set the configuration mode to 01 to select
PWM_OUT operation. This configures the
TIMERx_O
pin as an
output pin with its polarity determined by the
PULSE
bit.
• The timer outputs a positive active pulse width at the
TIMERx_O
pin.
• The timer outputs a negative active pulse width at the
TIMERx_O
pin.
2. Initialize the period and width register values. Insure that the
period value is greater than the width value.
www.BDTIC.com/ADI
Содержание SHARC ADSP-214 Series
Страница 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...