Programming Examples
15-54
ADSP-BF537 Blackfin Processor Hardware Reference
#endif
w[p5 + TIMER5_CONFIG - TIMER_ENABLE] = r7;
w[p5 + TIMER4_CONFIG - TIMER_ENABLE] = r7;
r7 = 0x10 (z);
[p5 + TIMER5_WIDTH - TIMER_ENABLE] = r7;
r7 = 0x20 (z);
[p5 + TIMER4_WIDTH - TIMER_ENABLE] = r7;
#ifndef SINGLE_PULSE
r7 = 0x40 (z);
[p5 + TIMER5_PERIOD - TIMER_ENABLE] = r7;
[p5 + TIMER4_PERIOD - TIMER_ENABLE] = r7;
#endif
r7.l = TIMEN5 | TIMEN4;
w[p5] = r7;
(r7:7, p5:5) = [sp++];
rts;
timer45_signal_generation.end:
All subsequent examples use interrupts. Thus,
illustrates how
interrupts are generated and how interrupt service routines can be regis-
ters. In this example, the timer 5 interrupt is assigned to the IVG7
interrupt channel of the CEC controller.
Listing 15-3. Interrupt Setup
timer5_interrupt_setup:
[--sp] = (r7:7, p5:5);
p5.h = hi(IMASK);
p5.l = lo(IMASK);
/* register interrupt service routine */
r7.h = hi(isr_timer5);
r7.l = lo(isr_timer5);
[p5 + EVT7 - IMASK] = r7;
/* unmask IVG7 in CEC */
r7 = [p5];
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 ...