Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Well usually when using that DMA I just bit bang the slave port which has a register map show in page 243 here: http://www.altera.com/literature/ug/ug_embedded_ip.pdf I'll leave it to you to read but basically you just need to state where to read from, where to write to, the transfer length in bytes, and various control bits like reading/writing to fixed location, data width, etc... Sorry I haven't used this DMA in ages so I can't be of more help, usually I stick to my own DMA.... --- Quote End --- Thanks. I have already gone through this document. I am confused in the part about how to define my custom made module in the receiving channel. Can I do like this: --- Quote Start --- alt_dma_txchan txchan; void* tx_data_to = IMM_X_BASE; //is it correct??????? alt_dma_txchan_ioctl(txchan, ALT_DMA_SET_MODE_32, NULL); alt_dma_txchan_ioctl(txchan, ALT_DMA_TX_ONLY_ON, tx_data_to); alt_dma_txchan_ioctl(txchan, ALT_DMA_RX_ONLY_OFF, NULL); --- Quote End --- Thanks