Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Uart transmitter from fpga to arduino

Not open for further replies.


I am trying to send data from fpga to arduino by using uart .
I am attaching the code below , I am not sure whether the logic is correct or not.
The data to be sent in the code below is dstnc, strngth,temp.
I am using xilinx generated ip fifo to store this data (dstnc,strngth,temp) before giving it to uart transmitter module.
I am displaying the data dstnc on seven segment display of fpga and it is showing correct .
On the Arduino side while receiving the data from fpga there is mismatch in that data
--- Updated ---

I am also attaching the receiver code on Arduino side
--- Updated ---

I am also attaching the receiver code on Arduino side


  • uart_tx_test.txt
    8.8 KB · Views: 131
  • arduino_uart.txt
    1,015 bytes · Views: 112
Last edited by a moderator:

Using a HDL simulator is the best way to check your code.

A basic problem is raised by having multiple clock domains (clk, rxClk, txClk) in your design. I don't recognize a useful synchronization of module activity across the clock domains. The fifo module is effectively useless by permanently enabling read and write. You need logic that e.g. sends one character from the fifo to the TX module and waits until the UART is ready again. To avoid additional synchronizer, all modules should use the same clock and rxClk and txClk should be replaced by rxClken and txClken signals, one clock cycle wide.
Not open for further replies.

Part and Inventory Search

Welcome to