— Data Transmit with the PDC in Client Mode
The following procedure shows an example to transmit data with PDC.
- Initialize the transmit PDC (memory pointers, transfer size).
- Start the transfer by setting the PDC TXTEN bit.
- Wait for the PDC ENDTX Flag by using either the polling method or the ENDTX interrupt.
- Disable the PDC by setting the PDC TXTDIS bit.
- (Optional) Wait for the FLEX_TWI_SR.TXCOMP flag before disabling the peripheral clock if required.
