ADSP-BF537 Blackfin Processor Hardware Reference
15-37
General-Purpose Timers
If in
PWM_OUT
mode the PWM patterns of the second period differ from
the patterns of the first one, the initialization sequence above might
become:
1. Set timer mode to
PWM_OUT.
2. Write first
TIMERx_WIDTH
and
TIMERx_PERIOD
value pair.
3. Enable timer.
4. Immediately write second
TIMERx_WIDTH
and
TIMERx_PERIOD
value
pair.
Hardware ensures that the buffered width and period values become active
when the first period expires.
Once started, timers require minimal interaction with software, which is
usually performed by an interrupt service routine. In
PWM_OUT
mode soft-
ware must update the pulse width and/or settings as required. In
WDTH_CAP
mode it must store captured values for further processing. In any case, the
service routine should clear the
TIMILx
bits of the timers it controls.
Timer Registers
The timer peripheral module provides general-purpose timer functional-
ity. It consists of eight identical timer units.
Each timer provides four registers:
•
TIMERx_CONFIG[15:0]
– timer configuration register
•
TIMERx_WIDTH[31:0]
– timer pulse width register
•
TIMERx_PERIOD[31:0]
– timer period register
•
TIMERx_COUNTER[31:0]
– timer counter register
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...