ADSP-BF537 Blackfin Processor Hardware Reference
15-45
General-Purpose Timers
TIMERx_COUNTER Registers
These read-only registers retain their state when disabled. When enabled,
the
TIMERx_COUNTER
register is reinitialized by hardware based on configu-
ration and mode. The
TIMERx_COUNTER
register, shown in
,
may be read at any time (whether the timer is running or stopped), and it
returns an atomic 32-bit value. Depending on the operation mode, the
incrementing counter can be clocked by four different sources:
SCLK
, the
TMRx
pin, the alternative timer clock pin
TACLKx
, or the common
TMRCLK
pin, which is most likely used as the PPI clock (
PPI_CLK
).
While the processor core is being accessed by an external emulator debug-
ger, all code execution stops. By default, the
TIMERx_COUNTER
also halts its
counting during an emulation access in order to remain synchronized with
the software. While stopped, the count does not advance—in
PWM_OUT
mode, the
TMRx
pin waveform is “stretched”; in
WDTH_CAP
mode, measured
values are incorrect; in
EXT_CLK
mode, input events on
TMRx
may be
missed. All other timer functions such as register reads and writes, inter-
rupts previously asserted (unless cleared), and the loading of
TIMERx_PERIOD
and
TIMERx_WIDTH
in
WDTH_CAP
mode remain active during
an emulation stop.
Some applications may require the timer to continue counting asynchro-
nously to the emulation-halted processor core. Set the
EMU_RUN
bit in
TIMERx_CONFIG
to enable this behavior.
TIMER4_CONFIG
0xFFC0 0640
TIMER5_CONFIG
0xFFC0 0650
TIMER6_CONFIG
0xFFC0 0660
TIMER7_CONFIG
0xFFC0 0670
Table 15-2. Timer Configuration Register Memory-mapped
Addresses (Cont’d)
Register Name
Memory-mapped Address
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 ...