Programming Examples
12-76
ADSP-BF537 Blackfin Processor Hardware Reference
W[P0 + (DMA3_X_MODIFY - DMA3_CONFIG)] = R1;
/* X_modify regis-
ter */
/* start_address register points to memory buffer to be filled
*/
R1.l = rx_buf;
R1.h = rx_buf;
[P0 + (DMA3_START_ADDR - DMA3_CONFIG)] = R1;
BITSET(R0,0);
/* R0 still contains value of CONFIG register -
set bit 0 */
W[P0] = R0;
/* enable DMA channel (SPORT not enabled yet) */
/* Transmitter (DMA channel 4) */
/* Set P0 to DMA Base Address */
P0.l = lo(DMA4_CONFIG);
P0.h = hi(DMA4_CONFIG);
/* Configuration (for instance 0x1088 for Autobuffer, 32-bit
wide transfers) */
R0 = DMA_TRANSMIT_CONF(z);
W[P0] = R0;
/* configuration register */
/* tx_buf = Buffer in Data memory (divide count by four because
of 32-bit DMA transfers) */
R1 = (length(tx_buf)/4)(z);
W[P0 + (DMA4_X_COUNT - DMA4_CONFIG)] = R1;
/* X_count register
*/
R1 = 4(z);
/* 4 bytes in a 32-bit transfer */
W[P0 + (DMA4_X_MODIFY - DMA4_CONFIG)] = R1;
/* X_modify regis-
ter */
/* start_address register points to memory buffer to be trans-
mitted from */
R1.l = tx_buf;
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 ...