Hi,
I've configured a USART TX DMA channel (using the graphical config tool) that I trigger from software when bytes are available to be transmitted using:
DMA_DoChannelSoftwareTrigger(DMA0_DMA_BASEADDR, DMA0_LOG_UART_DMA_CHANNEL);
This works fine, but only with a fixed number of bytes each trigger.
How can I update the DMA channel so it knows how many bytes it should transfer?
Thanks in advance.
Kind regards,
Remco Poelstra
已解决! 转到解答。
Hello Remco Poelstra,
Yes, the DMA only can transfer fixed number of bits.
And a ring buffer DMA maybe suit for you , there is demo"lpcxpresso845max_usart_transfer_rb_dma" under SDK, you can have a look.
Regards,
Alice
Hello Remco Poelstra,
Yes, the DMA only can transfer fixed number of bits.
And a ring buffer DMA maybe suit for you , there is demo"lpcxpresso845max_usart_transfer_rb_dma" under SDK, you can have a look.
Regards,
Alice