How do I read data from a GPS module via the serial port into FPGA?

Status
Not open for further replies.

Naumanpak

Member level 2
Joined
Nov 19, 2009
Messages
51
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Pakistan
Activity points
1,635
Experts, I want to receive data from a GPS module serially into FPGA, process it and then display results.

How do I read data from the serial port into FPGA?


I did that easily in C on laptop but have no clue on how to implement the same on FPGA. I have the kit for Spartan 3E.


thanks
 

Re: GPS Fpga interface

Hello Naumanpak,

If you read my replies in your previous thread, you will notice I already gave you the answer. But what the hell, here goes Redundancy Man [tm]:

I am assuming you have the PC side of the serial communication covered yes? As for the FPGA, you need some verilog code where you can read/write from/to registers or fifo, and it will take care of the Rx/Tx signals for you.

Please take a look at https://www.fpga4fun.com/SerialInterface.html for verilog code for your serial interface.

I have used the verilog code over there on my nexys2 board (spartan-3E) at 15200 baud and it works without any hard work. You just set the baudrate + your system clock to whatever you want and go.
 

    Naumanpak

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…