![Analog Devices Blackfin ADSP-BF537 Скачать руководство пользователя страница 912](http://html.mh-extra.com/html/analog-devices/blackfin-adsp-bf537/blackfin-adsp-bf537_hardware-reference-manual_2939700912.webp)
Programming Model
15-36
ADSP-BF537 Blackfin Processor Hardware Reference
subsequent leading edge increments the count register. After reaching the
period value, the
TIMILx
bit is set, and an interrupt is generated. The next
leading edge reloads the timer counter register again with 0x1. The timer
continues counting until it is disabled. The
PULSE_HI
bit determines
whether the leading edge is rising (
PULSE_HI
set) or falling (
PULSE_HI
cleared).
The configuration bits,
TIN_SEL
and
PERIOD_CNT
, have no effect in this
mode. The
TOVF_ERRx
and
ERR_TYP
bits are set if the timer counter register
wraps around from 0xFFFF FFFF to 0 or if
Period = 0
at startup or when
the timer counter register rolls over (from
Count = Period
to
Count = 0x1
). The timer pulse width register is unused.
Programming Model
The architecture of the timer block enables any of the eight timers to work
individually or synchronously along with others as a group of timers.
Regardless of the operation mode, the timers’ programming model is
always straightforward. Because of the error checking mechanism, always
follow this order when enabling timers:
1. Set timer mode.
2. Write
TIMERx_WIDTH
and
TIMERx_PERIOD
registers as applicable.
3. Enable timer.
If this order is not followed, the plausibility check may fail because of
undefined width and period values, or writes to
TIMERx_WIDTH
and
TIMERx_PERIOD
may result in an error condition, because the registers are
read-only in some modes. The timer may not start as expected.
Содержание Blackfin ADSP-BF537
Страница 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...