2009-09-08 02:57 AM
dmar & dmat bits
2011-05-17 04:23 AM
Hello,
I have been using DMA for both Rx and Tx without any problems for some time. During USART initialization both DMAR and DMAT bits are set and do not change for the rest of my application. However the user manual says I should reset them after each DMA transfer but it does not explains why. I also changed the code to work that way but in the end no change. That works too. However I had to enable xfer complete interrupts which I dont need in fact. Can someone tell why we should reset DMAR and DMAT bits after each transfer. It is easily doable for tx but not easy for rx as we dont know when a byte would come. Also it adds two unnecessary interrupts. I appreciate any input... Kerem