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

Table of Contents

Advertisement

Programming Model
3. Set the
TIMEN
on the period and width values:
• If (width == 0 or Period < width or period == width) both
the
• If there are no exceptions, the width value is loaded into the
counter and it starts counting.
The timer produces PWM waveform with a period of 2 x period
and a width of 2 x width.
• When 2 x width expires, the counter is loaded with
2x(period – width) and continues counting.
• When 2 x period expires, the counter is loaded with 2 x
width value again and the cycle repeats.
• When the width or period expires, the
set depending on the
• When
perform the appropriate "write-one" to clear.
WDTH_CAP Mode
Use the following procedure to configure and run the timer in
WDTH_CAP out mode.
1. Reset the
WDTH_CAP operation. This configures the
input pin with its polarity determined by the
• The timer measures a positive active pulse width at the
TIMERx_I
• The timer measures a negative active pulse width at the
TIMERx_I
16-22
www.BDTIC.com/ADI
bit. The timer performs boundary exception checks
and
bits are set.
OVF_ERR
IRQ
PRDCNT
is sensed, read the status register (
IRQ
bit and set the configuration mode to 10 to select
TIMEN
pin.
pin.
ADSP-214xx SHARC Processor Hardware Reference
bit (if enabled) is
IRQ
bit.
TMxSTAT
TIMERx_I
bit.
PULSE
) and
pin as an

Advertisement

Table of Contents
loading

Table of Contents