Programming Examples
13-38
ADSP-BF537 Blackfin Processor Hardware Reference
r5 = b[p2++] (z); /* load next byte */
w[p0+UART0_THR-UART0_GCTL] = r5;
jump uart_loop;
uart_loop.error:
...
jump uart_loop;
In non-DMA interrupt operation, the three UART interrupt request lines
may or may not be ORed together in the SIC controller. If they had three
different service routines, they may look as shown in
.
Listing 13-7. UART Non-DMA Interrupt Operation
isr_uart_rx:
[--sp] = astat;
[--sp] = r7;
r7 = w[p0+UART0_RBR-UART0_GCTL] (z);
b[p4++] = r7;
ssync;
r7 = [sp++];
astat = [sp++];
rti;
isr_uart_rx.end:
isr_uart_tx:
[--sp] = astat;
[--sp] = r7;
r7 = b[p3++] (z);
CC = r7 == 0;
if CC jump isr_uart_tx.final;
w[p0+UART0_THR-UART0_GCTL] = r7;
r7 = [sp++];
astat = [sp++];
ssync;
rti;
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 ...