Hi,
I am looking into implementing DMA for SPI rx/tx to talk to external flash chip. I have a few questions.
1. From TMS470 DMA ref. guide (spnu194): DMAC register has DSTMOD and SRCMOD. Can you pleasse explain this. I am not sure what value I have to select for these?
2. I intent to send a command to flash chip and expect a response in return (read from flash). I suppose I should assign a packet for tx and another packet for rx. Can I enable both packets in DMACCP?
3. Do I need to toggle Chip Select (CS#) line prior to enabling DMACCP and then toggle CS# again when transfer is done? How can I do this in between the command being sent and the response?
4. Is there any configuration to enable DMA0 or DMA1? Or it simply depends on which control registers are enabled?
5. Do you have any example for SPI DMA?
Regards,
Pinakin