Programming Model
16-22
ADSP-214xx SHARC Processor Hardware Reference
3. Set the
TIMEN
bit. The timer performs boundary exception checks
on the period and width values:
• If (width == 0 or Period < width or period == width) both
the
OVF_ERR
and
IRQ
bits are set.
• 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
IRQ
bit (if enabled) is
set depending on the
PRDCNT
bit.
• When
IRQ
is sensed, read the status register (
TMxSTAT
) and
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
TIMEN
bit and set the configuration mode to 10 to select
WDTH_CAP operation. This configures the
TIMERx_I
pin as an
input pin with its polarity determined by the
PULSE
bit.
• The timer measures a positive active pulse width at the
TIMERx_I
pin.
• The timer measures a negative active pulse width at the
TIMERx_I
pin.
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...