
ADSP-BF59x Blackfin Processor Hardware Reference
8-41
General-Purpose Timers
Timer Counter Register (TIMER_COUNTER)
This read-only register retains its state when disabled. When enabled, the
TIMER_COUNTER
register is reinitialized by hardware based on configuration
and mode. The
TIMER_COUNTER
register, shown in
Figure 8-20
, may be
read at any time (whether the timer is running or stopped), and it returns
an atomic 32-bit value. Depending on the operating mode, the increment-
ing counter can be clocked by four different sources:
SCLK
, the
TMR
pin, the
alternative timer clock pin
TACLK
, or the common
TMRCLK
pin, which is
most likely used as the PPI clock (
PPI_CLK
).
Figure 8-19. Timer Configuration Register
0
0
0
15 14
13 12
11 10
9
8
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
0
0
0
0
0
TMODE[1:0] (Timer Mode)
Reset = 0x0000
0
Timer Configuration Register (TIMER_CONFIG)
0 - Negative action pulse
1 - Positive action pulse
0 - Use system clock SCLK for counter
1 - Use PWM_CLK to clock counter
0 - The effective state of PULSE_HI
is the programmed state
1 - The effective state of PULSE_HI
alternates each period
00 - No error
01 - Counter overflow error
10 - Period register programming error
11 - Pulse width register programming error
00 - Reset state - unused
01 - PWM_OUT mode
10 - WDTH_CAP mode
11 - EXT_CLK mode
PUL
S
E_HI
CLK_
S
EL (Timer Clock
S
elect)
TOGGLE_HI (PWM_OUT PUL
S
E_HI
Toggle Mode)
ERR_TYP[1:0] (Error
Type) - RO
PERIOD_CNT (Period
Count)
0 - Interrupt request disable
1 - Interrupt request enable
0 - Count to end of width
1 - Count to end of period
IRQ_ENA (Interrupt
Request Enable)
PWM_OUT Mode
0 - Clock from TACLK
input if CLK_SEL = 1
1 - Clock from TMRCLK
input if CLK_SEL = 1
WDTH_CAP Mode
0 - Sample TMR pin input
1 - Sample TACI input
TIN_
S
EL (Timer Input
S
elect)
0 - Enable TMR pad in PWM_OUT mode
1 - Disable pad in PWM_OUT mode
OUT_DI
S
(Output Pad Disable)
0 - Timer counter stops during emulation
1 - Timer counter runs during emulation
EMU_RUN (Emulation Behavior
S
elect)
Содержание 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...