52.6.3.2 With DMAC
- Write the Interrupt Enable and Interrupt Disable Registers (IER and IDR) in order to configure the PCC interrupt mask.
- Configure DMAC transfer in the DMAC registers.
- Write the Mode Register (MR) fields ISIZE, SCALE, DSIZE, ALWYS, HALFS and FRSTS in order to configure the PCC. Do not enable the PCC in this write access.
- Write the PCC Enable bit in the Mode Register (MR.PCEN) to '1' in order to enable the PCC. Do not change the configuration from the previous step.
- Wait for the DMA status flag to indicate that the buffer transfer is complete.
- Check the Overrun Error flag (ISR.OVRE).
- If a new buffer transfer is expected, go to step 5.
- Disable the PCC by writing MR.PCEN to '0' without changing the configuration.