ADSP-BF535 Blackfin Processor Hardware Reference
16-7
Timers
Timer Configuration Registers (TIMERx_CONFIG)
To enable timer interrupts, set the
IRQ_ENA
bit in the Timer Configura-
tion register (
TIMERx_CONFIG
) and unmask the timer interrupt by setting
the corresponding bit of the System Interrupt Mask register
(SIC_IMASK)
.
If the
IRQ_ENA
bit is cleared, a timer does not set its
IRQx
bits. To poll the
IRQx
bits without permitting a timer interrupt, set the
IRQ_ENA
bit while
leaving the
SIC_IMASK
timer interrupt masked off.
If interrupts are enabled, make sure that the interrupt service routine
(ISR) clears the
IRQx
bit in the
TIMERx_STATUS
register before the
RTI
instruction executes. This ensures that the interrupt is not reissued.
Remember that writes to system registers are delayed. If only a few
instructions separate the
IRQx
clear command from the
RTI
instruction, an
Figure 16-3. Timer2 Status 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
Reset = 0x0000
0
Timer2 Status Register (TIMER2_STATUS)
IRQ0 (Timer0 Interrupt) - RO
IRQ1 (Timer1 Interrupt) - RO
1 - Clear Timer2 interrupt flag
0 - No Timer1 interrupt occurred
1 - Timer1 interrupt occurred
TIMDIS2 (Timer2 Disable) -
W1C
TIMEN2 (Timer2 Enable) - W1S
1 - Disable Timer2
1 - Enable Timer2
TIMDIS1 (Timer1 Disable) - RO
TIMEN1 (Timer1 Enable) - RO
TIMDIS0 (Timer0 Disable) - RO
TIMEN0 (Timer0 Enable) - RO
IRQ2 (Timer2 Interrupt) - W1C
OVF_ERR0 (Timer0 Counter
Overflow) - RO
0 - No Timer0 interrupt occurred
1 - Timer0 interrupt occurred
1 - Clear Timer2 overflow flag
OVF_ERR1 (Timer1 Counter
Overflow) - RO
OVF_ERR2 (Timer2 Counter
Overflow) - W1C
0 - No Timer1 overflow occurred
1 - Timer1 overflow occurred
0 - No Timer0 overflow occurred
1 - Timer0 overflow occurred
1 - Timer1 enabled (if TIMEN1 = 1)
1 - Timer1 enabled (if TIMDIS1 = 1)
1 - Timer0 enabled (if TIMEN0 = 1)
1 - Timer0 enabled (if TIMDIS0 = 1)
0xFFC0 2020
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...