31.5.14.4.2 With DMA
- Write PIO_PCIDR and PIO_PCIER to configure the Parallel Capture mode interrupt mask.
- Configure DMA transfer in DMA registers.
- Write PIO_PCMR to set the DSIZE, ALWYS, HALFS and FRSTS fields to configure the Parallel Capture mode without enabling the Parallel Capture mode.
- Write PIO_PCMR to set the PCEN bit to ‘1’ to enable the Parallel Capture mode without changing the previous configuration.
- Wait for the DMA status flag to indicate that the buffer transfer is complete.
- Check OVRE flag in PIO_PCISR.
- If a new buffer transfer is expected, go to step 5.
- Write PIO_PCMR to set the PCEN bit to ‘0’ to disable the Parallel Capture mode without changing the previous configuration.
