Programming Examples
15-60
ADSP-BF537 Blackfin Processor Hardware Reference
r5.l = 0;
r7.l = TIMDIS5 | TIMDIS4;
if !CC r7 = r5;
w[p5 + TIMER_DISABLE - TIMER_ENABLE] = r7;
(r7:5, p5:5) = [sp++];
astat = [sp++];
rti;
isr_timer5.end:
generates N pulses on both timer output pins. Disabling the
timers does not corrupt the generated pulse pattern anyhow.
WDTH_CAP
mode. If looped back exter-
nally, this code might be used to receive N PWM patterns generated by
one of the other timers. Ensure that the PWM generator and consumer
both use the same
PERIOD_CNT
and
PULSE_HI
settings.
Listing 15-6. Timer Configured in WDTH_CAP Mode
.section L1_data_a;
.align 4;
#define N 1024
.var buffReceive[N*2];
.section L1_code;
timer5_capture:
[--sp] = (r7:7, p5:5);
/* setup DAG2 */
r7.h = hi(buffReceive);
r7.l = lo(buffReceive);
i2 = r7;
b2 = r7;
l2 = length(buffReceive)*4;
/* config timer for high pulses capture */
p5.h = hi(TIMER_ENABLE);
p5.l = lo(TIMER_ENABLE);
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 ...