38.6.2.2 Enabling a DMA Channel
Follow the steps below to enable a DMA channel:
- Check the status of the channel by reading the CHXCHSR register.
- Write the channel descriptor (DSCR) structure in the system memory by writing DSCR.CHXADDR Frame base address, DSCR.CHXCTRL channel control and DSCR.CHXNEXT next descriptor location.
- If more than one descriptor is expected, the field DFETCH of DSCR.CHXCTRL is set to ‘1’ to enable the descriptor fetch operation.
- Write the DSCR.CHXNEXT register with the address location of the descriptor structure and set DFETCH field of the DSCR.CHXCTRL register to ‘1’.
- Enable the relevant channel by writing one to the CHEN field of the CHXCHER register.
- An interrupt may be raised if unmasked when the descriptor has been loaded.