— Data Transmit with the PDC in Client Mode

The following procedure shows an example to transmit data with PDC.

  1. Initialize the transmit PDC (memory pointers, transfer size).
  2. Start the transfer by setting the PDC TXTEN bit.
  3. Wait for the PDC ENDTX Flag by using either the polling method or the ENDTX interrupt.
  4. Disable the PDC by setting the PDC TXTDIS bit.
  5. (Optional) Wait for the FLEX_TWI_SR.TXCOMP flag before disabling the peripheral clock if required.