
ADSP-BF59x Blackfin Processor Hardware Reference
5-99
Direct Memory Access
w[p0 + MDMA_S0_CONFIG - MDMA_S0_CONFIG] = r6;
w[p0 + MDMA_D0_CONFIG - MDMA_S0_CONFIG] = r7;
jump _main.wait;
_main.end:
Handshaked Memory DMA Example
The functional block for the handshaked MDMA operation can be con-
sidered completely separately from the MDMA channels themselves.
Therefore the following HMDMA setup routine can be combined with
any of the MDMA examples discussed above. Be sure that the HMDMA
module is enabled before the MDMA channels.
Listing 5-8
enables the HMDMA1 block, which is controlled by the
DMAR1
pin and is associated with the MDMA1 channel pair.
Listing 5-8. HMDMA1 Block Enable
/* optionally, enable all four bank select strobes */
p1.l = lo(EBIU_AMGCTL);
p1.h = hi(EBIU_AMGCTL);
r0.l = 0x0009;
w[p1] = r0;
/* function enable for DMAR1 */
p1.l = lo(PORTG_FER);
r0.l = PG12;
w[p1] = r0;
p1.l = lo(PORTG_MUX);
r0.l = 0x0000;
w[p1] = r0;
/* every single transfer requires one DMAR1 event */
p1.l = lo(HMDMA1_BCINIT);
Summary of Contents for ADSP-BF59x Blackfin
Page 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Page 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Page 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Page 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Page 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...