Hi. I´m having problems with the DMA. I use a k20 MCU, clocked to 72MHz.
I want to receive 8 bytes in the UART0, filling the RX buffer FIFO, and then move them to a int mem[8] array.
I can´t make it work. My question is about UART0_D register, because, as I understand, I have to read 8 successive times that register to get the 8 bytes, and the DMA machine increment the source pointer automatically after every read. So, How do I do it?. Can i force the DMA machine to keep the source pointer pointing to UART0_D while the destiny pointer incrementing automatically?
Actually, if I can force the DMA machine to do that, I guess that I didn't need to use the RX buffer FIFO.
Any ideas?
sorry for my poor english.
解決済! 解決策の投稿を見る。
I make it work, so I post here the answer.
If I set DMA_TCDn_SOFF = 0 , then the source pointer wont increment.
very easy actually.
I make it work, so I post here the answer.
If I set DMA_TCDn_SOFF = 0 , then the source pointer wont increment.
very easy actually.