Programming Examples
13-34
ADSP-BF537 Blackfin Processor Hardware Reference
r7 = r7 - r5;
r7 >>= 4; /* r7 holds the 'x' of TIMERx_CONFIG now */
r5 = TIMEN0 (z);
r5 <<= r7; /* r5 holds TIMENx/TIMDISx now */
r6 = TRUN0 | TOVL_ERR0 | TIMIL0 (z);
r6 <<= r7;
CC = r7 <= 3;
r7 = r6 << 12;
if !CC r6 = r7; /* r6 holds TRUNx | TOVL_ERRx | TIMILx */
p5.h = hi(TIMER_STATUS);
p5.l = lo(TIMER_STATUS);
w[p5 + TIMER_DISABLE - TIMER_STATUS] = r5; /* disable Timer x
*/
[p5 + TIMER_STATUS - TIMER_STATUS] = r6; /* clear pending
latches */
/* period capture, falling edge to falling edge */
r7 = TIN_SEL | IRQ_ENA | PERIOD_CNT | WDTH_CAP (z);
w[p1 + TIMER0_CONFIG - TIMER0_CONFIG] = r7;
w[p5+TIMER_ENABLE-TIMER_STATUS] = r5;
uart_autobaud.wait: /* wait for timer event */
r7 = w[p5 + TIMER_STATUS - TIMER_STATUS] (z);
r7 = r7 & r5;
CC = r7 == 0;
if CC jump uart_autobaud.wait;
w[p5 + TIMER_DISABLE - TIMER_STATUS] = r5; /* disable Timer x
*/
[p5 + TIMER_STATUS - TIMER_STATUS] = r6; /* clear pending
latches */
/* Save period value to R0 */
r0 = [p1 + TIMER0_PERIOD - TIMER0_CONFIG];
/* delay processing as autobaud character is still ongoing */
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 ...