
ADSP-BF59x Blackfin Processor Hardware Reference
8-49
General-Purpose Timers
r7.l = PERIOD_CNT | PULSE_HI | PWM_OUT;
#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,
Listing 8-3
illustrates how
interrupts are generated and how interrupt service routines can be regis-
tered. In this example, the timer 5 interrupt is assigned to the IVG12
interrupt channel of the CEC controller.
Listing 8-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 + EVT12 - IMASK] = r7;
/* unmask IVG12 in CEC */
Содержание 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...