Content originally posted in LPCWare by federoasio on Tue Oct 23 06:49:23 MST 2012
Not much data will be received. Is it possible to use DMA for transmitted data but interrupts for received data?
Yes, it is. Receive and Transmit interrupts or DMA requests come from different sources, the Rx and Tx FIFOs. You can have DMA interrupts for receive and transmit, UART interrupts for receive and transmit, or a mix of them. I have it working as you want, UART interrupt for receive and DMA for transmit. I also have it working with DMA for both receive and transmit.
Or is there a way of getting an interrupt for each byte when receiving by DMA?
This is also possible just set the DMA transfer size to 1B.
I hope it helps, just ask me if you have any doubts.