This application gives an example of how to use TWIM driver of SAM to access an TWI-compatible EEPROM via PDCA.
The program needs a TWI-compatible EEPROM connected with the TWIM module. See the connection below:
GND – GND
At first, the specified TWIM write some data pattern to the EEPROM, then read it back and check if the written and the read match in the end.