39.6.3.2 With DMAC

  1. Write the Interrupt Enable and Interrupt Disable Registers (IER and IDR) in order to configure the PCC interrupt mask.
  2. Configure DMAC transfer in the DMAC registers.
  3. 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.
  4. 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.
  5. Wait for the DMA status flag to indicate that the buffer transfer is complete.
  6. Check the Overrun Error flag (ISR.OVRE).
  7. If a new buffer transfer is expected, go to step 5.
  8. Disable the PCC by writing MR.PCEN to '0' without changing the configuration.