Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 677

Table of Contents

Advertisement

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
ister. To disable an individual timer, set the timer's
register. To enable both timers in parallel, set all the
TMSTAT
the
register.
TMSTAT
Before enabling a timer, always program the corresponding timer's config-
uration (
TMxCTL
the polarity of the
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
PWM_OUT operation. This configures the
output pin with its polarity determined by the
• The timer outputs a positive active pulse width at the
TIMERx_O
• The timer outputs a negative active pulse width at the
TIMERx_O
2. Initialize the period and width register values. Insure that the
period value is greater than the width value.
ADSP-214xx SHARC Processor Hardware Reference
www.BDTIC.com/ADI
) register. This register defines the timer's operating mode,
signal, and the timer's interrupt behavior. Do
TIMERx
bit and set the configuration mode to 01 to select
TIMEN
pin.
pin.
Peripheral Timers
bit in the
TIMxEN
TMSTAT
bit in the
TIMxDIS
TIMxEN
For more infor-
pin as an
TIMERx_O
bit.
PULSE
reg-
bits in
16-21

Advertisement

Table of Contents
loading

Table of Contents