
ADSP-BF59x Blackfin Processor Hardware Reference
8-55
General-Purpose Timers
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:
Listing 8-5
generates N pulses on both timer output pins. Disabling the
timers does not corrupt the generated pulse pattern anyhow.
Listing 8-6
configures timer 5 in
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 8-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);
Содержание 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...