Programming Examples
10-54
ADSP-BF50x Blackfin Processor Hardware Reference
same times with the exception of the first timer 5 interrupt (at
IRQ1
)
which is not visible to timer 4.
Listing 10-5. Non-Overlapping Clock Pulses
#define P 0x1000
/* signal period */
#define W 0x0600
/* signal pulse width */
#define N 4
/* number of pulses before disable */
timer45_toggle_hi:
[--sp] = (r7:1, p5:5);
p5.h = hi(TIMER_ENABLE);
p5.l = lo(TIMER_ENABLE);
/* config timers */
r7.l = IRQ_ENA | PERIOD_CNT | TOGGLE_HI | PULSE_HI | PWM_OUT;
w[p5 + TIMER5_CONFIG - TIMER_ENABLE] = r7;
r7.l = PERIOD_CNT | TOGGLE_HI | PULSE_HI | PWM_OUT;
w[p5 + TIMER4_CONFIG - TIMER_ENABLE] = r7;
/* calculate timers widths and period */
r0.l = lo(P);
Figure 10-23. Non-Overlapping Clock Pulses
TMR5
ENABLE
IRQ1
IRQ2
P/2 - W/2
TMR4
IRQ3
W/2
W/2
W/2
W/2
P/2
P/2
P/2
P/2
P - W/2
P
W
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...