Hi, all!
I use PDCA example on EVK1100. First, SPI modules, drivers were added into the project. SPI is corectly worked in this project.
Then PDCA were configured for transfer from RAM to SPI0
// PDCA channel options static const pdca_channel_options_t PDCA_SPI_OPTIONS = { .addr = (void *)ascii_anim1
, // memory address .pid = AVR32_PDCA_PID_SPI0_TX , // select peripheral - data are transmit on SPI TX line. .size = sizeof(ascii_anim1), // transfer counter .r_addr = NULL, // next memory address .r_size = 0, // next transfer counter .mode = PDCA_MODE_BYTE, // select size of the transfer };
Ttransfer started only after execute commands
spi_selectChip(SPARE_SPI, SPARE_SPI_NPCS); SPARE_SPI->tdr = 0xsmth;
I reads in datasheet about SPI and PDCA, but I don't understand what I need to do for SPI-DMA-transfer. Does I need set any flag?