— Data Receive with the PDC in Client Mode
The following procedure shows an example to transmit data with PDC where the number of characters to receive is known.
- Initialize the receive PDC (memory pointers, transfer size).
- Set the PDC RXTEN bit.
- Wait for the PDC ENDRX flag by using either the polling method or the ENDRX interrupt.
- Disable the PDC by setting the PDC RXTDIS bit.
- (Optional) Wait for the FLEX_TWI_SR.TXCOMP flag before disabling the peripheral clock if required.
