Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20693 Discussions

Data Logging from FPGA to PC

Altera_Forum
Honored Contributor II
1,053 Views

Hi !!!  

 

I am still a newbie to digital world.  

 

I wish to use the UART in SOPC to send some data to (RS485 interface) my laptop for logging purpose. 

Laptop does not have a RS485 terminal so i am planning a RS485-USB converter. 

Now if all this works i am lost as to how i must read the data on this using C or VB. 

 

Kindly let me know the plan would work ??? if so how to read the data using C or VB ? i need some direction. 

 

thanks 

santhosh:confused::confused::confused:
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
296 Views

Why RS485 and not RS232 or just the UART signals directly from the FPGA? 

 

FTDI have a series of cables that you might be able to use. For example,  

 

http://www.digikey.com/product-detail/en/c232hd-ddhsp-0/768-1011-nd/2767783 

 

This cable can be connected directly to 3.3V logic level pins on the FPGA, and those pins can internally connect to a UART inside the FPGA. 

 

At that point, you can use standard serial communications on your PC. 

 

FTDI show RS485 connections in their data sheets, so they may also have pre-made cables that support RS485. Check out their web site www.ftdichip.com. 

 

Cheers, 

Dave
0 Kudos
Reply