Altera_Forum
Honored Contributor
10 years agoRAM -> DMA -> UART, How to set up?
Transmit
My requirement is to be able to fill an area of RAM with a message c. 512 bytes and then use DMA to transfer that 512 bytes into the UART. From what I can glean the UART / DMA interface will automatically handle the flow control. I am a little unsure as to how the NIOS should connect to the UART. Obviously the NIOS needs to connect to the RAM to fill it with data. I have used dual port ram and port# 2 connects to the DMA read port. The DMA write port connects to the UART. After filling the RAM I intend to start a 512 byte transfer with a constant write address. Does the NIOS connect to the UART or is that unnecessary? Receive The return message will vary in size but I know the maximum number of bytes that could possibly be received. Can I set up the system such that the DMA is setup for the maximum message length and periodically check the number of bytes received? Finally how does the DMA work for full duplex with the UART? Do I need to use 2 DMAs? Many thanks