Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Set below registers:
    • LLI_ACCESS_INDEX: Determine which LLI(Link List Item) mapping to following registers.
    • LAST_LLI_IN_TASK: If this flag setup, it indicate the last LLI.
    • dma_mode: Set dma_mode to DMA Copy mode.
    • Length: The number of bytes to copy.
    • Dest Addr: Copy the data into the address of the DRAM.
    • Src Addr: Read the data from the address of the DRAM and write it to Dest DRAM.
    • Repeat above action.
  • After SG DMA Go, CB_DMA will move data from the DRAM of Src_Addr to the DRAM starting with Dest_Addr according index. After the copy ends, DMA_DONE_FLAG will be set to 1. If the interrupt of DMA_DONE is not masked, there will be an interrupt of DMA_DONE.

Figure 25-5 shows an example of SG DMA with DMA copy mode

Image Added

Figure 25-5 SG DMA with DMA copy mode

25.4 CBDMA Interrupts

The CBDMA interrupt events are connected to the same interrupt vector, please refer to Group 26.5 register. These events generate an interrupt if the corresponding "Enable Control Bit" is set, please refer to Group 26.6 register.



Anchor
_GoBack
_GoBack



...