logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

XMega 128 - Czy można zmieniać adresy źródła i celu podczas pracy DMA?

ASMnauka_ 12 Lis 2015 17:56 876 2
REKLAMA
  • REKLAMA
  • Pomocny post
    #2 15145224
    tronics
    Poziom 38  
    Cytat:
    By default the source and destination addresses are fixed during all transfers, which means each data transfer for the
    channel copies data to and from the same memory locations. This is useful for e.g. piping data from one peripheral to
    another. The burst length decides the number of bytes to copy during each data transfer, but the source and destination
    address are still fixed for each access. For instance, four-byte burst mode would copy the same byte four times during
    each data transfer.
    For applications where data is to be stored in an array, the DMAC can be configured to increase or decrease the
    destination address after each byte access. Similarly, when data is to be retrieved from an array, the DMAC can be
    configured to increase or decrease the source address after each byte access. Finally, for copying data from one array
    to another, both source and destination address can be increased or decreased after each byte access.
    Addressing modes are configured with the Source and Destination Address Mode bitfields (SRCDIR and DESTDIR) in
    each channel’s Address Control register (ADDRCTRL).

    http://www.atmel.com/Images/Atmel-8046-Using-...A-DMA-Controller_Application-Note_AVR1304.pdf
REKLAMA