请问下DMA用 region的话,DAREH,DARE是怎么配置的?
对于文档上描述的不是很懂,比如下面的代码,请高手赐教,谢谢
EDMA_REG->DRA[5].DRAEH = EDMA_REG->DRA[5].DRAEH|0xf;
EDMA_REG->SHADOW[5].IESRH = 0xf //interrupt enable (bits 52-55) for shaddow region 5
EDMA_REG->IESRH = 0xf;
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请问下DMA用 region的话,DAREH,DARE是怎么配置的?
对于文档上描述的不是很懂,比如下面的代码,请高手赐教,谢谢
EDMA_REG->DRA[5].DRAEH = EDMA_REG->DRA[5].DRAEH|0xf;
EDMA_REG->SHADOW[5].IESRH = 0xf //interrupt enable (bits 52-55) for shaddow region 5
EDMA_REG->IESRH = 0xf;
你好还是不太理解,手册上说:
there regiesters need to be programed to assigen ownership of DMA channel.
and interfupt (or TCC codes)to the respective region. Accesses to DMA event
registers and interrupt regisers via the shadow region address map are filtered
through the DRAE/DRAED pair. a value of 1 in the cooresponding DARE(H) bit implies
that the corresponding DMA /interrupt chaanle is accessible.
如果regionAccess.dare = 0xFFFF; regionAccess.dareh=0x0,
都说是分配了DMA通道1到通道15,那这里的TCC codes是怎么体现的?
如果dare = 0xFFFFFFFF;dareh = 0xFFFFFFFF
就仅仅说明region能用64个channel吗。还能给出其他信息吗?难道说,这俩寄存器只是用来指定region所用的通道吗?
如果不能,那怎么体现出上面英文里的 assigen ownership of interfupt (or TCC codes)???
谢谢,