
Timer Registers
8-34
ADSP-BF59x Blackfin Processor Hardware Reference
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
TIMER_WIDTH
and
TIMER_PERIOD
value pair.
3. Enable timer.
4. Immediately write second
TIMER_WIDTH
and
TIMER_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
TIMIL
bits of the timers it controls.
Timer Registers
The timer peripheral module provides general-purpose timer functional-
ity. It consists of multiple identical timer units.
Each timer provides four registers:
•
TIMER_CONFIG[15:0]
– timer configuration register
•
TIMER_WIDTH[31:0]
– timer pulse width register
•
TIMER_PERIOD[31:0]
– timer period register
•
TIMER_COUNTER[31:0]
– timer counter register
Содержание ADSP-BF59x Blackfin
Страница 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 204: ...Unique Information for the ADSP BF59x Processor 5 104 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 345: ...ADSP BF59x Blackfin Processor Hardware Reference 9 9 Core Timer Unique Information for the ADSP BF59x Processor None...
Страница 346: ...Unique Information for the ADSP BF59x Processor 9 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 398: ...Unique Information for the ADSP BF59x Processor 11 42 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 622: ...Unique Information for the ADSP BF59x Processor 15 38 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...