39.6.2.3 Disabling a DMA Channel

Follow the steps below to disable a DMA channel:

  1. Clearing the DFETCH bit in the DSCR.CHXCTRL field of the DSCR structure disables the channel at the end of the frame.
  2. Setting the DSCR.CHXNEXT field of the DSCR structure disables the channel at the end of the frame.
  3. Writing one to the CHDIS field of the CHXCHDR register disables the channel at the end of the frame.
  4. Writing one to the CHRST field of the CHXCHDR register disables the channel immediately. This may occur in the middle of the image.
  5. Polling CHSR field in the CHXCHSR register until the channel is successfully disabled.